/* =========================================
   OTKID — СВЕТЛАЯ ТЕМА
   Stand-alone лендинг, без Bootstrap, без CMS
   ========================================= */

/* ---------- ПЕРЕМЕННЫЕ ---------- */
:root {
    --bg: #f8f9fb;
    --bg-2: #ffffff;
    --bg-3: #eef1f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f7fa;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --white: #ffffff;
    --blue: #173662;
    --blue-2: #166284;
    --blue-bright: #00b4ff;
    --blue-light: #c6eff5;
    --green: #25d366;
    --yellow: #fbbb1b;
    --red: #ef4444;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(23, 54, 98, 0.12);
    --transition: 0.3s ease;
    --font-head: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Ubuntu', 'Segoe UI', sans-serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-2); text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { color: var(--blue-bright); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0px; }
strong { color: var(--blue); font-weight: 700; }

/* ---------- ТИПОГРАФИКА ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--blue);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.accent-blue   { color: var(--blue); }
.accent-bright { color: var(--blue-bright); }
.text-muted    { color: var(--text-muted); }

/* ---------- КОНТЕЙНЕР ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
    font-family: var(--font-body);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
    height: 70px; /* Общая высота шапки */
}

/* Логотип (немного уменьшили) */
.logo { display: flex; align-items: center; flex-shrink: 0; height: 100%; }
.logo-img { height: 36px; width: auto; display: block; } 

/* Телефон в шапке (десктоп) */
.desktop-phone {
    color: var(--blue);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    margin-right: auto;
    white-space: nowrap;
    height: 100%;
    text-decoration: none;
    flex-shrink: 0;
}
.desktop-phone:hover { color: var(--blue-bright); }
.desktop-phone i { color: var(--blue-2); display: flex; align-items: center; line-height: 1; }

/* Обертка меню */
.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Меню страниц */
.header-menu {
    display: flex;
    align-items: center;
    gap: 2px; /* Уменьшили зазор между пунктами */
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
}

.header-menu li {
    height: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important; /* Убираем глобальный отступ снизу */
}

.header-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px; /* Высота плашки */
    padding: 0 10px; /* Уменьшили боковые отступы, чтобы меню не вываливалось */
    border-radius: 8px;
    color: var(--blue);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.header-menu a:hover { color: var(--blue-bright); }
.header-menu a.active { background: var(--blue); color: var(--white); }

/* Правая часть шапки (мобильная) */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 100%;
}

/* Телефон в шапке (мобильный — иконка) */
.mobile-phone {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: transform var(--transition), background var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}
.mobile-phone:hover {
    background: var(--blue-bright);
    transform: translateY(-2px);
    color: var(--white);
}

/* Гамбургер */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 18px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    padding: 80px 0 100px;
    background: linear-gradient(135deg, #f0f5fa 0%, #e6eff7 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(23, 54, 98, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content { text-align: left; }
.hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(23, 54, 98, 0.08);
    border: 1px solid rgba(23, 54, 98, 0.15);
    border-radius: 30px;
    color: var(--blue);
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.hero-title { margin-bottom: 20px; }
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-image { position: relative; }
.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: transform 0.6s ease;
}
.hero-image:hover img { transform: scale(1.02); }

/* =========================================
   КНОПКИ
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn i { font-size: 1.1em; }

.btn-primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 4px 16px rgba(23, 54, 98, 0.25);
}
.btn-primary:hover {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 180, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-wa {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn-wa:hover {
    background: #1da851;
    border-color: #1da851;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

.btn-vk {
    background: #447bba;
    color: var(--white);
    border-color: #447bba;
}
.btn-vk:hover {
    background: #356399;
    border-color: #356399;
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* =========================================
   СЕКЦИИ
   ========================================= */
.section { padding: 90px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head {
    text-align: center;
    margin-bottom: 56px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(23, 54, 98, 0.08);
    border: 1px solid rgba(23, 54, 98, 0.15);
    border-radius: 30px;
    color: var(--blue);
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-head h2 { margin-bottom: 16px; }
.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
}

/* =========================================
   ПРЕИМУЩЕСТВА
   ========================================= */
.adv-row-full { margin-bottom: 24px; }
.adv-row-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}
.advantage-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
    height: 100%;
}
.advantage-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-bright);
}
.advantage-card.blue-tone {
    background: var(--blue-light);
    border-color: rgba(22, 98, 132, 0.15);
}
.advantage-card.blue-tone h3,
.advantage-card.blue-tone .adv-icon { color: var(--blue-2); }
.advantage-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.adv-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(23, 54, 98, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.3rem;
    flex-shrink: 0;
}
.advantage-card.blue-tone .adv-icon {
    background: rgba(22, 98, 132, 0.15);
}
.advantage-card h3 { margin: 0; font-size: 1.15rem; }
.advantage-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}
.advantage-image {
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: auto;
    padding-top: 8px;
}
.advantage-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.advantage-card:hover .advantage-image img { transform: scale(1.05); }

/* Универсальная обёртка для одиночных картинок */
.showcase-image {
    text-align: center;
    margin-top: 40px;
}
.showcase-image img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* =========================================
   БАННЕР
   ========================================= */
.banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
    box-shadow: var(--shadow-lg);
}
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://otkid.ru/image/catalog/ramka-stol.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}
.banner-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.banner h2 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: clamp(1.4rem, 3vw, 2rem);
}
.banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-size: 1.05rem;
}
.banner .btn-outline {
    color: var(--white);
    border-color: var(--white);
}
.banner .btn-outline:hover {
    background: var(--white);
    color: var(--blue);
}

/* =========================================
   КОНТЕНТ-ГРИД
   ========================================= */
.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 48px;
}
.content-grid.reverse { grid-template-columns: 1fr 1.2fr; }
.content-grid.reverse .content-text { order: 2; }
.content-grid.reverse .content-image { order: 1; }
.content-text p { font-size: 1.02rem; margin-bottom: 1.1em; }
.content-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.content-image.double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.content-image.double img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Плашка с телефоном */
.cta-banner {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    color: var(--white);
    margin: 32px 0;
    box-shadow: var(--shadow-lg);
}
.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: 16px;
}
.cta-banner .cta-phone {
    display: inline-block;
    color: var(--white);
    font-family: var(--font-head);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    transition: color var(--transition);
}
.cta-banner .cta-phone:hover { color: var(--blue-bright); }
.cta-banner .btn-primary {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
}
.cta-banner .btn-primary:hover {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
    color: var(--white);
}

/* =========================================
   КЛИЕНТООРИЕНТИРОВАННОСТЬ
   ========================================= */
.client-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.client-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.client-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-bright);
}
.client-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}
.client-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(23, 54, 98, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.client-card h3 { font-size: 1.1rem; margin: 0; }
.client-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }
.client-image {
    margin-top: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.client-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: var(--bg-3);
    padding: 16px;
}

/* =========================================
   МАГНИТНЫЕ РАМКИ
   ========================================= */
.magnet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}
.magnet-grid img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform var(--transition);
}
.magnet-grid img:hover { transform: scale(1.02); }
.magnet-full { margin: 32px 0; }
.magnet-full img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* =========================================
   УСЛУГИ
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
    border-left: 4px solid var(--blue);
}
.service-card:nth-child(2n) { border-left-color: var(--blue-2); }
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(23, 54, 98, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.service-card:nth-child(2n) .service-icon {
    background: rgba(22, 98, 132, 0.1);
    color: var(--blue-2);
}
.service-card h3 { font-size: 1.1rem; margin: 0; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* =========================================
   КОНТАКТЫ
   ========================================= */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: stretch;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.contact-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}
.contact-item i {
    color: var(--blue);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 4px;
    width: 32px;
    text-align: center;
}
.contact-item h4 {
    margin-bottom: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-body);
}
.contact-item p {
    color: var(--text);
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}
.contact-item a { color: var(--text); }
.contact-item a:hover { color: var(--blue-bright); }
.contact-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 420px;
    box-shadow: var(--shadow);
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: #1a1a1a;
    color: #a0a0a0;
    padding: 60px 0 0;
    margin-top: 60px;
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: var(--white);
    font-family: var(--font-head);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 3px;
    background: var(--blue-bright);
    border-radius: 2px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: #a0a0a0;
    font-size: 0.92rem;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--blue-bright); }
.footer-col .footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 12px;
}
.footer-col .footer-phone i { color: var(--blue-bright); }
.footer-bottom {
    background: #0f0f0f;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #707070;
    border-top: 1px solid #2a2a2a;
}
.footer-bottom a { color: #909090; }
.footer-bottom a:hover { color: var(--blue-bright); }

/* =========================================
   МОДАЛЬНОЕ ОКНО
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}
.modal-overlay.open { display: flex; opacity: 1; }
.modal {
    background: var(--bg-2);
    border-radius: var(--radius);
    max-width: 480px;
    width: 100%;
    padding: 40px 32px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-3);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.modal-close:hover { background: var(--red); color: var(--white); }
.modal h3 { text-align: center; margin-bottom: 8px; font-size: 1.5rem; }
.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.modal-form input[type="text"],
.modal-form input[type="tel"] {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition), background var(--transition);
}
.modal-form input:focus {
    outline: none;
    border-color: var(--blue-bright);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 180, 255, 0.1);
}
.modal-form input::placeholder { color: var(--text-muted); }
.modal-form .btn { width: 100%; margin-top: 6px; }
.agreement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    cursor: pointer;
}
.agreement input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--blue);
    cursor: pointer;
}
.agreement a { color: var(--blue-2); text-decoration: underline; }
.form-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    display: none;
}
.form-message.success {
    display: block;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.35);
    color: #15803d;
}
.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #b91c1c;
}

/* =========================================
   ПЛАВАЮЩИЕ КНОПКИ
   ========================================= */
.float-btn {
    position: fixed;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--white);
    z-index: 999;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition), box-shadow var(--transition);
}
.float-btn:hover { transform: scale(1.1) translateY(-2px); color: var(--white); }
.float-call { bottom: 96px; background: var(--blue); }
.float-call:hover { box-shadow: 0 8px 32px rgba(23, 54, 98, 0.5); }
.float-wa { bottom: 24px; background: var(--green); }
.float-wa:hover { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5); }

/* =========================================
   COOKIE-БАННЕР
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 2px solid var(--blue);
    padding: 16px 24px;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}
.cookie-banner.show { display: flex; animation: slideUp 0.4s ease both; }
.cookie-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text);
    max-width: 900px;
    line-height: 1.5;
}
.cookie-banner a { color: var(--blue); text-decoration: underline; }
.cookie-btn {
    background: var(--blue);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}
.cookie-btn:hover { background: var(--blue-bright); transform: translateY(-1px); }
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* =========================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   АДАПТИВ — ПЛАНШЕТ (≤ 992px)
   ========================================= */
@media (max-width: 992px) {
    .section { padding: 70px 0; }
    
    .desktop-phone { display: none; }
    .mobile-phone { display: inline-flex; }
    .header-menu { display: none; }
    .menu-toggle { display: flex; }

    .header-inner {
        flex-wrap: nowrap;
        gap: 10px;
    }
    .header-nav {
        gap: 6px;
    }

    /* Мобильное выпадающее меню */
    /* Мобильное выпадающее меню */
    /* Мобильное выпадающее меню (Оверлей на весь экран) */
    /* Убираем размытие шапки, которое ломает выпадающие меню */
    .site-header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #ffffff !important;
    }

    .header-inner {
        flex-wrap: nowrap;
        gap: 10px;
        position: relative; /* Чтобы меню позиционировалось от шапки */
    }

    /* Мобильное выпадающее меню */
    /* Мобильное выпадающее меню */
    .header-menu.mobile-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: -16px; /* Растягиваем на всю ширину */
        right: -16px;
        width: calc(100% + 32px);
        height: auto; /* Высота по контенту */
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 0; /* Убираем gap, будем использовать margin у li */
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        z-index: 9999;
    }
    
    .header-menu.mobile-open li {
        margin-bottom: 4px !important; /* Убираем глобальные 8px, оставляем аккуратные 4px */
    }
    
    .header-menu.mobile-open a {
        display: flex;
        justify-content: flex-start;
        padding: 12px 16px;
        border-radius: 8px;
        width: 100%;
        font-size: 16px;
    }
    
    .header-menu.mobile-open a.active {
        background: var(--blue);
        color: var(--white);
        border-bottom: none;
    }
    
    .header-menu.mobile-open a:last-child {
        border-bottom: none;
    }
    
    /* ... остальные стили адаптива (hero, карточки и т.д.) остаются без изменений ... */
}

/* =========================================
   АДАПТИВ — МОБИЛЬНЫЙ (≤ 640px)
   ========================================= */
@media (max-width: 640px) {
    body { font-size: 15px; line-height: 1.65; }
    .container { padding: 0 16px; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }

    .site-header { padding: 10px 0; }
    .logo-img { height: 32px; }
    .header-nav { gap: 8px; }
    .header-phone { font-size: 13px; }
    .header-social { display: none; }
    .header-inner { gap: 10px; }

    .hero { padding: 40px 0 60px; }
    .hero-title { font-size: 1.9rem; }
    .hero-desc { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 320px; }

    .btn { padding: 12px 22px; font-size: 0.9rem; letter-spacing: 0.06em; }

    .advantage-card { padding: 22px; }
    .client-card { padding: 22px; }
    .service-card { padding: 22px; }

    .magnet-grid { grid-template-columns: 1fr; }
    .content-image.double { grid-template-columns: 1fr; }

    .banner { padding: 40px 20px; }
    .cta-banner { padding: 24px 20px; }

    .contact-item { padding: 16px; }
    .contact-buttons { flex-direction: column; }
    .contact-buttons .btn { width: 100%; }

    .footer-inner { grid-template-columns: 1fr; gap: 28px; }

    .float-btn { width: 52px; height: 52px; font-size: 1.35rem; right: 16px; }
    .float-call { bottom: 84px; }
    .float-wa { bottom: 20px; }

    .modal { padding: 28px 20px; }
    .modal h3 { font-size: 1.25rem; }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 16px;
        gap: 12px;
    }
    .cookie-banner p { font-size: 0.82rem; }
    .cookie-btn { width: 100%; padding: 12px 20px; }

    .showcase-image { margin-top: 24px; }
	
	    /* Исправляем сетку преимуществ на мобильных */
    .adv-row-2col,
    .client-grid,
    .services-grid,
    .content-image.double,
    .magnet-grid {
        grid-template-columns: 1fr; /* В одну колонку */
        gap: 16px; /* Чуть уменьшаем отступ */
    }

    .advantage-card,
    .client-card,
    .service-card {
        padding: 22px;
    }
	    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Карта на мобильных — на всю ширину и с нормальной высотой */
   .contacts-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact-map {
        width: 100%;
        min-height: 350px; /* Даем нормальную высоту */
        margin-top: 10px;
    }

    .contact-map iframe {
        width: 100%;
        min-height: 350px;
    }
	
}

/* =========================================
   ВНУТРЕННИЕ СТРАНИЦЫ (warranty, delivery, about, sgu, protection, contacts)
   ========================================= */
.inner-hero {
    position: relative;
    padding: 60px 0 50px;
    background: linear-gradient(135deg, #f0f5fa 0%, #e6eff7 100%);
    overflow: hidden;
    text-align: center;
}
.inner-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.inner-hero .container { position: relative; z-index: 1; }
.inner-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.inner-hero .breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.inner-hero .breadcrumbs a {
    color: var(--text-muted);
    transition: color var(--transition);
}
.inner-hero .breadcrumbs a:hover { color: var(--blue-bright); }
.inner-hero .breadcrumbs .sep { opacity: 0.5; }
.inner-hero .breadcrumbs .current { color: var(--blue); font-weight: 500; }

.inner-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 0 80px;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text);
}
.inner-content h2,
.inner-content h3 {
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--blue);
}
.inner-content h3 {
    text-transform: uppercase;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
}
.inner-content p {
    margin-bottom: 1.1em;
    text-align: justify;
}
.inner-content ul,
.inner-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}
.inner-content li {
    margin-bottom: 10px;
    line-height: 1.65;
}
.inner-content a {
    color: var(--blue-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.inner-content a:hover { color: var(--blue-bright); }
.inner-content strong { color: var(--blue); }
.inner-content .note {
    background: var(--blue-light);
    border-left: 4px solid var(--blue-2);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin: 24px 0;
    font-size: 0.98rem;
}
.inner-content .note strong { color: var(--blue-2); }

@media (max-width: 640px) {
    .inner-hero { padding: 40px 0 36px; }
    .inner-content { padding: 40px 0 56px; }
    .inner-content h2 { margin-top: 28px; }
    .inner-content h3 { font-size: 1.05rem; }
    .inner-content p,
    .inner-content li { font-size: 0.98rem; }
}

/* Карточки доставки */
.delivery-card {
    padding: 20px 24px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--blue);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform var(--transition);
}
.delivery-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
/* Таймлайн для инструкций */
.timeline {
    position: relative;
    margin: 30px 0;
    padding-left: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 38px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--border-strong);
    z-index: 1;
}
.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}
.timeline-marker {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 4px solid var(--bg);
    margin-top: 4px;
}
.timeline-content {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.timeline-content h3 {
    margin-top: 0;
    font-size: 1.1rem;
}
@media (max-width: 640px) {
    .timeline::before { display: none; }
    .timeline-item { flex-direction: column; gap: 10px; }
    .timeline-marker { margin-bottom: 10px; }
}

/* Убираем подчёркивание у ссылок-кнопок */
a.btn,
a.float-btn,
a.trust-link {
    text-decoration: none !important;
}