:root {
    --primary: #1e3a8a; /* Глубокий синий */
    --secondary: #ea580c; /* Оранжевый */
    --light: #f3f4f6;
    --dark: #111827;
    --white: #ffffff;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Шапка */
header { 
    background: #f3f2ec; 
    border-bottom: 1px solid var(--border); 
    padding: 15px 0; 
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-wrap { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap;
}

.logo { 
    font-size: 24px; 
    font-weight: 900; 
    color: var(--primary); 
    text-transform: uppercase; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    text-decoration: none;
}

.logo span { 
    color: var(--secondary); 
}

.nav { 
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 500; 
    font-size: 14px; 
    transition: color 0.3s;
}

.nav a:hover { 
    color: var(--primary); 
}

header a[href^="tel:"]:hover {
    text-decoration: underline;
}

.btn-call { 
    background: var(--primary); 
    color: var(--white); 
    padding: 10px 20px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 14px; 
    transition: background 0.3s;
}

.btn-call:hover {
    background: var(--secondary);
}

/* Герой */
.hero {
    background: var(--primary); /* Fallback */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 { 
    font-size: 42px; 
    margin-bottom: 15px; 
}

.hero p { 
    font-size: 18px; 
    max-width: 700px; 
    margin: 0 auto 30px; 
    opacity: 0.9; 
}

/* Общие стили секций */
.section { 
    padding: 60px 0; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 50px; 
}

.section-title h2 { 
    font-size: 32px; 
    color: var(--primary); 
    margin-bottom: 10px; 
    margin-top: 0; 
}

.section-title span { 
    width: 60px; 
    height: 4px; 
    background: var(--secondary); 
    display: block; 
    margin: 0 auto; 
}

/* Сетка продукции */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.card { 
    background: var(--white); 
    border: 1px solid var(--border); 
    border-radius: 8px; 
    overflow: hidden; 
    transition: 0.3s; 
    display: flex;
    flex-direction: column;
}

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

.card img { 
    width: 100%; 
    height: 250px; 
    object-fit: cover; 
}

.card-content { 
    padding: 25px; 
    flex: 1;
}

.tag { 
    display: inline-block; 
    background: var(--secondary); 
    color: white; 
    padding: 4px 10px; 
    font-size: 12px; 
    border-radius: 4px; 
    margin-bottom: 10px; 
}

.dealer-tag { 
    background: #059669; 
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--primary);
    margin-top: 0;
}

.card-content p {
    color: #666;
    font-size: 14px;
}

/* Блок опыта (Текст + Картинка) */
.experience-block { 
    display: flex; 
    gap: 40px; 
    align-items: center; 
    background: white; 
    padding: 40px; 
    border-radius: 8px; 
    border: 1px solid var(--border); 
    flex-wrap: wrap;
}

.exp-text { 
    flex: 1; 
    min-width: 300px;
}

.exp-text h3 { 
    margin-top: 0; 
    color: var(--primary); 
    margin-bottom: 15px;
}

.exp-stats { 
    display: flex; 
    gap: 30px; 
    margin-top: 20px; 
    flex-wrap: wrap;
}

.stat-item { 
    text-align: center;
}

.stat-item strong { 
    display: block; 
    font-size: 24px; 
    color: var(--secondary); 
}

.stat-item span { 
    font-size: 13px; 
    color: #666; 
}

/* Преимущества (Иконки) */
.adv-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px; 
}

.adv-item { 
    text-align: center; 
    padding: 20px; 
    background: white; 
    border-radius: 8px; 
    border: 1px solid var(--border); 
}

.adv-icon { 
    width: 50px; 
    height: 50px; 
    background: #eff6ff; 
    color: var(--primary); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto 15px; 
}

.adv-icon svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.adv-item h4 {
    margin-bottom: 10px;
    color: var(--primary);
    margin-top: 0;
}

.adv-item p {
    color: #666;
    font-size: 14px;
}

/* Партнеры */
.partners-grid { 
    display: flex; 
    justify-content: space-between; 
    gap: 20px; 
    opacity: 0.7; 
    flex-wrap: wrap;
}

.partner-logo { 
    background: #e5e7eb; 
    height: 60px; 
    flex: 1;
    min-width: 150px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold; 
    color: #6b7280; 
    border-radius: 4px; 
}

/* Реквизиты */
.req-section { 
    background: var(--primary); 
    color: white; 
    padding: 40px 0; 
}

.req-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 20px; 
}

.req-table td { 
    padding: 10px; 
    border-bottom: 1px solid rgba(255,255,255,0.2); 
}

.req-table tr:last-child td { 
    border-bottom: none; 
}

.req-table td:first-child { 
    color: rgba(255,255,255,0.6); 
    width: 30%; 
}

/* Футер */
footer { 
    background: var(--dark); 
    color: #9ca3af; 
    padding: 40px 0; 
    font-size: 14px; 
    text-align: center; 
}

/* Форма обратной связи */
.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Модальное окно подтверждения */
.form-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 2000;
    padding: 20px;
}

.form-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.form-modal {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(10px);
    transition: transform 0.2s ease;
}

.form-modal-overlay.visible .form-modal {
    transform: translateY(0);
}

.form-modal h3 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 20px;
}

.form-modal p {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 14px;
}

.form-modal-btn {
    width: 100%;
    padding: 12px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-modal-btn:hover {
    background: var(--secondary);
}

/* Контакты - сетка */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    grid-column: 1;
    grid-row: 1;
}

.contact-req {
    grid-column: 1;
    grid-row: 2;
}

.contact-form-block {
    grid-column: 2;
    grid-row: 1 / span 2;
}

/* Карта на странице контактов */
.contact-map-section {
    margin-top: 50px;
}

.contact-map-section h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 22px;
}

.contact-map-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--light);
}

.contact-map-wrap iframe {
    display: block;
}

.contact-map-link {
    padding: 12px 20px;
    background: var(--white);
    margin: 0;
    font-size: 14px;
    border-top: 1px solid var(--border);
}

.contact-map-link a {
    color: var(--primary);
    text-decoration: none;
}

.contact-map-link a:hover {
    text-decoration: underline;
}

/* Cookie-баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    flex: 1;
    min-width: 280px;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: var(--secondary);
}

.cookie-accept {
    white-space: nowrap;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.cookie-accept:hover {
    background: var(--secondary);
}

/* ===== АДАПТИВНОСТЬ: 5 размеров экрана ===== */

/* 1. Большой монитор (1400px+) — базовые стили уже заданы, при необходимости уточняем */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        padding: 0 24px;
    }
    .hero {
        padding: 120px 0;
    }
    .hero h1 {
        font-size: 48px;
    }
    .section {
        padding: 80px 0;
    }
    .grid-3 {
        gap: 36px;
    }
    .card img {
        height: 280px;
    }
}

/* 2. Обычный монитор (1024px – 1399px) */
@media (max-width: 1399px) and (min-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    .hero {
        padding: 80px 0;
    }
    .hero h1 {
        font-size: 38px;
    }
    .hero p {
        font-size: 17px;
    }
    .section-title h2 {
        font-size: 28px;
    }
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .experience-block {
        padding: 32px;
        gap: 32px;
    }
    .nav {
        gap: 16px;
    }
    .nav a {
        font-size: 14px;
    }
}

/* 3. Планшет (768px – 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .header-wrap {
        flex-wrap: wrap;
        gap: 12px;
    }
    .logo img {
        height: 44px !important;
    }
    .nav {
        width: 100%;
        order: 3;
        justify-content: center;
        gap: 12px;
    }
    .nav a {
        font-size: 13px;
    }
    .hero {
        padding: 60px 0;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .section {
        padding: 50px 0;
    }
    .section-title h2 {
        font-size: 26px;
    }
    .section-title {
        margin-bottom: 36px;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .card img {
        height: 220px;
    }
    .card-content {
        padding: 20px;
    }
    .experience-block {
        flex-direction: column;
        padding: 28px;
        gap: 24px;
    }
    .exp-text {
        min-width: 100%;
    }
    .adv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .partners-grid {
        justify-content: center;
    }
    .partner-logo {
        min-width: 120px;
    }
    .req-table td:first-child {
        width: 35%;
    }
}

/* 4. Большой телефон (480px – 767px) */
@media (max-width: 767px) and (min-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .header-wrap {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .logo {
        order: 1;
    }
    .header-wrap > div:last-child {
        order: 2;
        text-align: right;
    }
    .logo img {
        height: 40px !important;
    }
    .nav {
        gap: 10px;
        flex-wrap: wrap;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    /* Contacts Grid Mobile */
    .contacts-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .contact-info { order: 1; }
    .contact-form-block { order: 2; }
    .contact-req { order: 3; }
    .nav a {
        font-size: 13px;
    }
    .hero {
        padding: 48px 0;
    }
    .hero h1 {
        font-size: 26px;
    }
    .hero p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .section {
        padding: 40px 0;
    }
    .section-title h2 {
        font-size: 24px;
    }
    .section-title {
        margin-bottom: 28px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card img {
        height: 220px;
    }
    .card-content {
        padding: 18px;
    }
    .card-content h3 {
        font-size: 16px;
    }
    .experience-block {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }
    .exp-text h3 {
        font-size: 20px;
    }
    .exp-stats {
        gap: 20px;
    }
    .stat-item strong {
        font-size: 20px;
    }
    .adv-grid {
        grid-template-columns: 1fr;
    }
    .adv-item {
        padding: 16px;
    }
    .partners-grid {
        flex-direction: column;
        align-items: center;
    }
    .partner-logo {
        min-width: 100%;
        max-width: 280px;
    }
    .req-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
    }
    .req-table td:first-child {
        color: rgba(255,255,255,0.9);
        font-weight: bold;
        padding-bottom: 2px;
    }
    footer {
        padding: 28px 0;
        font-size: 13px;
    }
    footer a {
        display: inline-block;
        margin-top: 8px;
    }
}

/* 5. Маленький смартфон (до 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 12px;
    }
    .header-wrap {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .logo {
        order: 1;
        justify-content: flex-start;
    }
    .logo img {
        height: 36px !important;
    }
    .nav {
        justify-content: center;
        gap: 8px;
        order: 3;
        width: 100%;
        margin-top: 10px;
    }
    .nav a {
        font-size: 12px;
    }
    header > .container > div:last-child {
        text-align: right;
        width: auto;
        order: 2;
    }

    /* Contacts Grid Mobile */
    .contacts-grid {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .contact-info { order: 1; }
    .contact-form-block { order: 2; }
    .contact-req { order: 3; }
    .hero {
        padding: 36px 0;
    }
    .hero h1 {
        font-size: 22px;
        line-height: 1.25;
    }
    .hero p {
        font-size: 14px;
        margin-bottom: 18px;
    }
    .btn-call {
        padding: 12px 20px;
        font-size: 13px;
    }
    .section {
        padding: 32px 0;
    }
    .section-title h2 {
        font-size: 20px;
    }
    .section-title {
        margin-bottom: 24px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .card img {
        height: 200px;
    }
    .card-content {
        padding: 16px;
    }
    .card-content h3 {
        font-size: 15px;
    }
    .card-content p {
        font-size: 13px;
    }
    .tag, .dealer-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
    .experience-block {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }
    .exp-text h3 {
        font-size: 18px;
    }
    .exp-text p, .exp-text li {
        font-size: 14px;
    }
    .exp-stats {
        flex-direction: column;
        gap: 16px;
    }
    .stat-item strong {
        font-size: 22px;
    }
    .stat-item span {
        font-size: 12px;
    }
    .adv-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .adv-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .adv-item h4 {
        font-size: 15px;
    }
    .adv-item p {
        font-size: 13px;
    }
    .partners-grid {
        flex-direction: column;
        gap: 12px;
    }
    .partner-logo {
        min-width: 100%;
        height: 50px;
        font-size: 13px;
    }
    .req-section {
        padding: 28px 0;
    }
    .req-table td {
        display: block;
        width: 100%;
        padding: 6px 0;
        font-size: 13px;
    }
    .req-table td:first-child {
        color: rgba(255,255,255,0.9);
        font-weight: bold;
    }
    footer {
        padding: 24px 0;
        font-size: 12px;
    }
    footer p {
        line-height: 1.6;
    }
    footer a {
        display: block;
        margin-top: 6px;
        margin-left: 0 !important;
    }
    .contact-form .form-group input,
    .contact-form .form-group textarea {
        font-size: 16px; /* уменьшает зум на iOS */
    }
    .contact-map-section {
        margin-top: 32px;
    }
    .contact-map-wrap iframe {
        height: 300px;
    }
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-content p {
        min-width: auto;
    }
}
