* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1e293b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - увеличенная высота, строка контактов внизу */
header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 0 0 0;
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    width: auto;
    height: 90px;
    max-width: 300px;
    object-fit: contain;
    transition: opacity 0.3s;
}

.logo-img:hover {
    opacity: 0.8;
}

nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.3s;
    white-space: nowrap;
    padding: 5px 0;
}

nav a:hover {
    opacity: 0.8;
}

.admin-link {
    background: #dc2626;
    color: white !important;
    padding: 5px 12px;
    border-radius: 6px;
}

/* Header contacts line - привязана к низу хедера */
.header-contacts {
    margin-top: auto;
    padding: 8px 0;
    font-size: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.header-contacts .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.header-contacts span {
    color: var(--header-text);
}

.header-contacts .separator {
    color: var(--header-text);
    opacity: 0.4;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin: 30px 0;
    text-align: center;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #2563EB;
    color: white;
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid white;
}

/* Advantages */
.advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.advantage {
    text-align: center;
    padding: 20px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.advantage-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.advantage h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.advantage p {
    font-size: 13px;
    color: #64748b;
}

/* Sections */
.section {
    margin: 40px 0;
}

.section h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Product Grid */
.product-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card, .service-card {
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--card-bg);
    color: var(--card-text);
    border: 1px solid var(--card-text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.product-card:hover, .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--button-bg);
}

.product-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.product-card h3, .service-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #1e293b;
}

.product-card p, .service-card p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
    flex-grow: 1;
}

.product-card .price, .service-card .price {
    font-size: 18px;
    font-weight: bold;
    color: var(--button-bg);
    margin-top: auto;
    padding-top: 10px;
}

.product-card .version {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
}

/* Filters */
.filters {
    margin: 20px 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    color: var(--card-text);
}

.filters label {
    font-weight: 600;
    margin-right: 10px;
}

.filters select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

/* Info Box */
.info-box {
    background: #f1f5f9;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.info-box h3 {
    color: #1e293b;
    margin-bottom: 15px;
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 5px 0;
    color: #475569;
}

/* Contacts Page */
.contact-info {
    margin: 30px 0;
}

.info-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--card-text);
}

.info-card h2 {
    color: var(--header-text);
    margin-bottom: 15px;
}

.info-card p {
    margin: 10px 0;
    font-size: 16px;
}

.how-to-get {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    color: var(--card-text);
}

.how-to-get h3 {
    color: var(--header-text);
    margin-bottom: 15px;
}

/* Footer */
footer {
    margin-top: 60px;
    padding: 15px 0 10px;
    font-size: 13px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-col {
    flex: 1;
    min-width: 180px;
}

.footer-col h4 {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.footer-col p {
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.footer-col .address {
    font-size: 12px;
    line-height: 1.4;
}

.footer-col .phone {
    font-size: 13px;
    font-weight: 500;
}

.footer-col .work-hours {
    font-size: 12px;
}

.emails-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.email-item {
    font-size: 12px;
    word-break: break-word;
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #334155;
    font-size: 11px;
}

.footer-bottom p {
    margin: 3px 0;
}

.hashtags {
    font-size: 10px;
    opacity: 0.7;
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e293b;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
}

.login-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.error {
    background: #ef4444;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* No image placeholder */
.no-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 14px;
}

/* Баннеры с плавной бесконечной каруселью */
.banners-top, .banners-bottom {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 20px 0;
}

.banners-track {
    display: flex;
    gap: 20px;
    animation: slideLeft 15s linear infinite;  /* увеличили время было 15s*/
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.banner-item {
    flex: 0 0 auto;
    width: 270px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--card-bg);
}

.banner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);  /* 100% / 6 копий = 16.666%  было -50  */ 
    }
}

/* Responsive Design */
@media (max-width: 1100px) {
    .advantages,
    .product-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .banner-item {
        width: calc(33% - 14px);
    }
}

@media (max-width: 800px) {
    .advantages,
    .product-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section h2 {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .advantages,
    .product-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .banner-item {
        width: calc(50% - 10px);
    }
    
    header .container {
        flex-direction: column;
        justify-content: center;
    }
    
    .logo {
        justify-content: center;
    }
    
    nav {
        justify-content: center;
    }
    
    nav a {
        font-size: 14px;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 10px 0 0 0;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .header-contacts {
        font-size: 10px;
        padding: 6px 0;
    }
    
    .header-contacts .container {
        gap: 8px;
    }
    
    footer {
        padding: 12px 0 8px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-col {
        min-width: 100%;
        text-align: center;
    }
    
    .emails-list {
        align-items: center;
    }
    
    .advantages {
        gap: 15px;
        margin: 30px 0;
    }
    
    .section h2 {
        font-size: 18px;
    }
    
    .product-card img,
    .no-image {
        height: 120px;
    }
}

@media (max-width: 480px) {
    .banner-item {
        width: 100%;
    }
    
    footer {
        padding: 10px 0 6px;
    }
    
    .footer-col p,
    .email-item {
        font-size: 11px;
    }
    
    .footer-bottom {
        font-size: 10px;
    }
    
    .hashtags {
        font-size: 9px;
    }
    
    .login-form {
        margin: 50px 15px;
        padding: 25px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .advantage h3 {
        font-size: 14px;
    }
    
    .advantage p {
        font-size: 12px;
    }
    
    .product-card h3, .service-card h3 {
        font-size: 14px;
    }
    
    .product-card p, .service-card p {
        font-size: 12px;
    }
    
    .product-card .price, .service-card .price {
        font-size: 16px;
    }
}