/* RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-text: #1e1e1e;
    --color-text-light: #5f5f5f;
    --color-accent: #000000;
    --color-border: #e8e8e8;
    --color-card-bg: #f7f7f7;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-padding: 2rem;
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3 {
    font-weight: 500;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    font-weight: 500;
}

h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.section-subhead {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* LAYOUT */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: 6rem 0;
}

/* GRIDS */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
}

.btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn--outline:hover {
    background: var(--color-card-bg);
    border-color: var(--color-text);
    color: var(--color-text);
}

/* CARDS */
.brand-card, .category-card {
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.brand-card {
    padding: 1.5rem;
    text-align: center;
    background: white;
    border: 1px solid var(--color-border);
}

.brand-card img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    transition: var(--transition);
}

.brand-card:hover img {
    filter: grayscale(0%);
}

.brand-card p {
    font-weight: 500;
    color: var(--color-text-light);
}

.category-card {
    background: white;
    border: 1px solid var(--color-border);
}

.category-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover img {
    transform: scale(1.03);
}

.category-card__content {
    padding: 1.5rem;
}

.category-card h3 {
    margin-bottom: 1rem;
}

/* HERO */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #fff 0%, #f5f5f5 100%);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: url('/static/img/hero.jpg') center/cover no-repeat;
    opacity: 0.4;
    pointer-events: none;
}

.hero-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

/* Трехколоночная сетка для hero */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1rem;
    align-items: flex-start;
}

/* Левая колонка с логотипом */
.hero-left {
    display: flex;
    justify-content: flex-end;
}

.hero-logo {
    display: flex;
    align-items: center;
    height: 0.9rem;
}

.hero-logo img {
    height: 100%;
    width: auto;
    display: block;
}

/* Центральная колонка с контентом */
.hero-center {
    max-width: 800px;
}

.hero-badge {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 0.9rem;
    height: 0.9rem;
    display: flex;
    align-items: center;
}

.hero-center h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-brands {
    font-size: 1.3rem;
    color: var(--color-text-light);
    margin: 1.5rem 0;
}

.hero-center .section-subhead {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Правая колонка (пустая) */
.hero-right {
    /* пусто */
}

/* FEATURES */
.features {
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    background: url('/static/img/hero2.jpg') center/cover no-repeat;
    opacity: 0.15;
    pointer-events: none;
}

.features .container {
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    padding: 2rem;
    background: var(--color-card-bg);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1);
}

.feature-item span {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* FORM */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: white;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-text);
}

/* Чекбокс согласия */
.form-checkbox {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-accent);
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
}

.form-checkbox label a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.2s;
}

.form-checkbox label a:hover {
    opacity: 0.7;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.modal h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal p {
    color: var(--color-text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-btn {
    min-width: 200px;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 0;
    background: #fafafa;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Логотип в футере */
.footer-logo {
    margin-bottom: 0.5rem;
}

.footer-logo img {
    height: 20px;
    width: auto;
    display: block;
}

.footer-logo-text {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Нижняя часть футера */
.footer-bottom {
    margin-top: 3rem;
    text-align: center;
}

.footer-copyright {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-dev {
    font-size: 0.85rem;
    text-align: right;
}

.footer-dev a {
    color: var(--color-text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s, color 0.2s;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.footer-dev a:hover {
    opacity: 1;
    color: var(--color-text);
}

/* UTILITIES */
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1); }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

    .hero { min-height: 70vh; }
    .hero::before { opacity: 0.05; width: 100%; }

    /* Мобильная версия hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .hero-left {
        justify-content: flex-start;
        margin-bottom: 0.5rem;
    }

    .hero-right {
        display: none;
    }

    .hero-center {
        max-width: 100%;
    }

    .form-container { padding: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 2rem; width: 95%; }

    /* Мобильная версия футера */
    .footer-dev {
        text-align: center;
    }
}