/* ============================================
   Megagas Theme — v2.0.0
   ============================================ */

/* === 1. Variables === */
:root {
    --color-bg: #ffffff;
    --color-text: #1a1a2e;
    --color-text-muted: #5a6378;
    --color-accent: #4a90d9;
    --color-accent-light: #e8f0fe;
    --color-accent-dark: #2d6cb4;
    --color-border: #e2e8f0;
    --color-card-bg: #f7f9fc;
    --color-btn-start: #4a90d9;
    --color-btn-end: #6ab0f3;
    --font: 'Roboto Condensed', sans-serif;
    --fw-light: 300;
    --fw-bold: 700;
    --shadow: 0 2px 8px rgba(74,144,217,.15);
    --container: 1170px;
    --header-h: 60px;
}

/* === 2. Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-weight: var(--fw-light);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-text); text-decoration: none; }
ul, ol { list-style-position: inside; }

/* === 3. Container === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* === 4. Header & Navigation === */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--header-h);
    border-bottom: 1px solid var(--color-border);
}
.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    height: 100%;
}
.site-logo img { height: 105px; width: auto; }
.main-nav .nav-list {
    display: flex;
    gap: 0;
    list-style: none;
}
.main-nav .nav-list li a {
    display: block;
    padding: 18px 14px;
    font-size: 13px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--color-text);
    transition: color .3s;
    white-space: nowrap;
}
.main-nav .nav-list li a:hover,
.main-nav .nav-list li.current-menu-item a {
    color: var(--color-accent);
}

/* === 5. Mobile menu === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    position: absolute;
    left: 0;
    transition: all .3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 11px; }
.menu-toggle span:nth-child(3) { top: 22px; }
.menu-open .menu-toggle span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* === 6. Hero (compact) === */
.hero--compact {
    position: relative;
    overflow: hidden;
    min-height: auto;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, var(--color-accent-light) 0%, #dce8f8 50%, var(--color-accent-light) 100%);
    border-bottom: 1px solid var(--color-border);
}
.hero--compact .container { position: relative; z-index: 1; }
.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hero--compact h1 {
    font-size: 44px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.15;
}
.hero--compact .hero-sub {
    font-size: 18px;
    color: var(--color-text-muted);
    font-weight: var(--fw-light);
    margin-bottom: 28px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero--home { padding: 100px 0 80px; }
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-accent-light);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 13px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 20px;
}

/* === 7. Hero animations === */
.hero-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.hero-bubbles span {
    position: absolute;
    bottom: -40px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0;
    animation: bubbleFloat linear infinite;
}
.hero-bubbles span:nth-child(1)  { width: 14px; height: 14px; left: 8%;  animation-duration: 12s; animation-delay: 0s; }
.hero-bubbles span:nth-child(2)  { width: 8px;  height: 8px;  left: 18%; animation-duration: 10s; animation-delay: 1.5s; }
.hero-bubbles span:nth-child(3)  { width: 18px; height: 18px; left: 30%; animation-duration: 14s; animation-delay: 0.5s; }
.hero-bubbles span:nth-child(4)  { width: 10px; height: 10px; left: 42%; animation-duration: 11s; animation-delay: 3s; }
.hero-bubbles span:nth-child(5)  { width: 22px; height: 22px; left: 55%; animation-duration: 15s; animation-delay: 2s; }
.hero-bubbles span:nth-child(6)  { width: 12px; height: 12px; left: 65%; animation-duration: 9s;  animation-delay: 4s; }
.hero-bubbles span:nth-child(7)  { width: 6px;  height: 6px;  left: 72%; animation-duration: 13s; animation-delay: 1s; }
.hero-bubbles span:nth-child(8)  { width: 16px; height: 16px; left: 80%; animation-duration: 11s; animation-delay: 2.5s; }
.hero-bubbles span:nth-child(9)  { width: 9px;  height: 9px;  left: 88%; animation-duration: 14s; animation-delay: 0.8s; }
.hero-bubbles span:nth-child(10) { width: 20px; height: 20px; left: 95%; animation-duration: 12s; animation-delay: 3.5s; }

@keyframes bubbleFloat {
    0%   { bottom: -40px; opacity: 0; transform: translateX(0) scale(0.4); }
    10%  { opacity: 0.12; }
    50%  { opacity: 0.06; transform: translateX(-30px) scale(1); }
    90%  { opacity: 0.1; }
    100% { bottom: 110%; opacity: 0; transform: translateX(20px) scale(0.6); }
}
.hero--compact .hero-badge  { animation: fadeSlideUp .6s ease both; }
.hero--compact h1           { animation: fadeSlideUp .6s ease .15s both; }
.hero--compact .hero-sub    { animation: fadeSlideUp .6s ease .3s both; }
.hero--compact .hero-buttons { animation: fadeSlideUp .6s ease .45s both; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === 8. Buttons === */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    border-radius: 50px;
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
    text-align: center;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(74,144,217,.25); }
.btn-primary {
    background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
    color: #fff;
    border: none;
}
.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 50px;
}
.btn-outline:hover { background: var(--color-accent-light); }

/* === 9. Breadcrumbs === */
.breadcrumbs {
    background: var(--color-bg);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    list-style: none;
    font-size: 13px;
    color: var(--color-text-muted);
}
.breadcrumbs__item + .breadcrumbs__item::before {
    content: '/';
    margin: 0 8px;
    color: var(--color-border);
}
.breadcrumbs__item a { color: var(--color-accent); transition: color .2s; }
.breadcrumbs__item a:hover { color: var(--color-accent-dark); text-decoration: underline; }

/* === 10. Page content === */
.site-main { padding-top: var(--header-h); }

.page-body { padding: 40px 0 60px; }
.page-body h2, .page-body h3, .page-body h4 {
    font-weight: var(--fw-bold);
    margin: 1.5em 0 .5em;
    color: var(--color-text);
}
.page-body h2 { font-size: 28px; }
.page-body h3 { font-size: 22px; }
.page-body h4 { font-size: 18px; }
.page-body p { margin-bottom: 1.2em; color: var(--color-text-muted); }
.page-body ul, .page-body ol { margin: 0 0 1.2em 1.6em; list-style-position: outside; color: var(--color-text-muted); }
.page-body li { margin-bottom: .5em; }
.page-body img { margin: 20px auto; border-radius: 8px; }

.seo-text { padding: 60px 0 80px; background: var(--color-accent-light); }
.seo-text h2, .seo-text h3, .seo-text h4 { font-weight: var(--fw-bold); margin: 1.5em 0 .5em; color: var(--color-text); }
.seo-text h2 { font-size: 28px; }
.seo-text h3 { font-size: 22px; }
.seo-text p { margin-bottom: 1.2em; color: var(--color-text-muted); }
.seo-text ul, .seo-text ol { margin: 0 0 1.2em 1.6em; list-style-position: outside; color: var(--color-text-muted); }
.seo-text li { margin-bottom: .5em; }
.seo-text a { color: var(--color-accent); }
.seo-text a:hover { text-decoration: underline; }

/* === 11. Products grid === */
.products { padding: 60px 0 80px; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.product-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .3s, box-shadow .3s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(74,144,217,.12);
}
.product-card__img {
    background: #fff;
    width: 100%;
    height: 320px;
    object-fit: cover;
}
.product-card__title {
    font-size: 22px;
    font-weight: var(--fw-bold);
    margin-bottom: 16px;
    padding: 20px 24px 0;
    color: var(--color-text);
}
.product-card__specs {
    list-style: none;
    margin-bottom: 24px;
    padding: 0 24px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-muted);
}
.product-card__specs li { margin-bottom: 4px; }
.product-card__specs strong { color: var(--color-accent); }
.product-card__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
    padding: 0 24px 24px;
}
.product-card__buttons .btn { padding: 12px 28px; font-size: 14px; }

/* === 12. Product detail === */
.balon-hero { padding: 60px 0; }
.balon-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.balon-detail__image {
    text-align: center;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
}
.balon-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}
.balon-detail__info h1,
.balon-detail__info h2 {
    font-size: 36px;
    font-weight: var(--fw-bold);
    margin-bottom: 24px;
    line-height: 1.2;
    color: var(--color-text);
}
.balon-detail__specs {
    list-style: none;
    font-size: 18px;
    line-height: 2;
    margin-bottom: 32px;
    color: var(--color-text-muted);
}
.balon-detail__specs strong { color: var(--color-accent); }
.balon-detail__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* === 13. Homepage === */
.home-advantages {
    padding: 50px 0;
    border-bottom: 1px solid var(--color-border);
}
.home-adv__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.home-adv {
    text-align: center;
    padding: 24px 16px;
}
.home-adv__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.home-adv h3 { font-size: 16px; font-weight: var(--fw-bold); margin-bottom: 6px; color: var(--color-text); }
.home-adv p { font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }

.home-products { padding: 50px 0; background: var(--color-accent-light); }
.home-products h2 { font-size: 28px; font-weight: var(--fw-bold); margin-bottom: 30px; color: var(--color-text); }
.home-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.home-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: transform .3s, box-shadow .3s;
    color: var(--color-text);
}
.home-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(74,144,217,.12);
}
.home-product img {
    background: #fff;
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.home-product h3 { font-size: 16px; font-weight: var(--fw-bold); padding: 14px 16px 4px; }
.home-product__price { font-size: 15px; font-weight: var(--fw-bold); color: var(--color-accent); padding: 0 16px 16px; }
.home-products__more { text-align: center; }

.home-about { padding: 60px 0; }
.home-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.home-about__text h2 { font-size: 28px; font-weight: var(--fw-bold); margin-bottom: 16px; color: var(--color-text); }
.home-about__text p { font-size: 15px; color: var(--color-text-muted); margin-bottom: 12px; line-height: 1.7; }
.home-about__buttons { display: flex; gap: 12px; margin-top: 24px; }
.home-about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.home-stat {
    padding: 24px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    text-align: center;
}
.home-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.home-stat__num { display: block; font-size: 32px; font-weight: var(--fw-bold); color: var(--color-accent); margin-bottom: 4px; }
.home-stat__label { font-size: 13px; color: var(--color-text-muted); }

/* === 14. Contacts === */
.contacts { padding: 40px 0 60px; }
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: transform .3s, box-shadow .3s;
    color: var(--color-text);
    text-decoration: none;
}
a.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(74,144,217,.12);
}
.contact-card__icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.contact-card__icon--phone { background: var(--color-accent-light); color: var(--color-accent); }
.contact-card__icon--wa { background: #e8f5e9; color: #25d366; }
.contact-card__icon--address { background: #fce8e8; color: #e53935; }
.contact-card h3 { font-size: 18px; font-weight: var(--fw-bold); margin-bottom: 6px; }
.contact-card p { font-size: 14px; color: var(--color-text-muted); margin-bottom: 12px; }
.contact-card__action { font-size: 13px; font-weight: var(--fw-bold); color: var(--color-accent); text-transform: uppercase; letter-spacing: .5px; margin-top: auto; }
.contacts-info { max-width: 800px; }
.contacts-info h2 { font-size: 28px; font-weight: var(--fw-bold); margin-bottom: 16px; color: var(--color-text); }
.contacts-info p { font-size: 15px; color: var(--color-text-muted); margin-bottom: 12px; line-height: 1.7; }

/* === 15. Optovye === */
.opt-features { padding: 50px 0; }
.opt-features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.opt-feature {
    padding: 28px;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: transform .3s, box-shadow .3s;
}
.opt-feature:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(74,144,217,.1); }
.opt-feature__icon {
    width: 56px; height: 56px; border-radius: 12px;
    background: var(--color-accent-light); color: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.opt-feature h3 { font-size: 18px; font-weight: var(--fw-bold); margin-bottom: 6px; color: var(--color-text); }
.opt-feature p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

.opt-conditions { padding: 50px 0; background: var(--color-accent-light); }
.opt-conditions h2 { font-size: 28px; font-weight: var(--fw-bold); margin-bottom: 30px; color: var(--color-text); }
.opt-conditions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.opt-condition { padding: 24px; background: var(--color-bg); border-radius: 12px; border: 1px solid var(--color-border); }
.opt-condition__num { font-size: 32px; font-weight: var(--fw-bold); color: var(--color-accent); display: block; margin-bottom: 10px; }
.opt-condition h4 { font-size: 16px; font-weight: var(--fw-bold); margin-bottom: 6px; color: var(--color-text); }
.opt-condition p { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }

.opt-cta { padding: 50px 0 60px; }
.opt-cta__box {
    text-align: center; padding: 50px 40px;
    background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
    border-radius: 20px; color: #fff;
}
.opt-cta__box h2 { font-size: 28px; font-weight: var(--fw-bold); margin-bottom: 10px; }
.opt-cta__box p { font-size: 16px; opacity: .85; margin-bottom: 28px; }
.opt-cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.opt-cta__buttons .btn-primary { background: #fff; color: var(--color-accent); border: none; }
.opt-cta__buttons .btn-primary:hover { box-shadow: 0 8px 25px rgba(0,0,0,.2); }
.opt-cta__buttons .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.opt-cta__buttons .btn-outline:hover { background: rgba(255,255,255,.15); }

/* === 16. Delivery === */
.dlv-steps { padding: 50px 0; }
.dlv-steps h2 { font-size: 28px; font-weight: var(--fw-bold); margin-bottom: 30px; color: var(--color-text); }
.dlv-steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dlv-step {
    text-align: center; padding: 32px 24px;
    background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: 16px;
}
.dlv-step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-btn-start), var(--color-btn-end));
    color: #fff; font-size: 20px; font-weight: var(--fw-bold); margin-bottom: 16px;
}
.dlv-step h3 { font-size: 18px; font-weight: var(--fw-bold); margin-bottom: 8px; color: var(--color-text); }
.dlv-step p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

.dlv-info { padding: 50px 0; background: var(--color-accent-light); }
.dlv-info__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dlv-info__card { padding: 28px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 16px; }
.dlv-info__icon {
    width: 56px; height: 56px; border-radius: 12px;
    background: var(--color-accent-light); color: var(--color-accent);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.dlv-info__card h3 { font-size: 18px; font-weight: var(--fw-bold); margin-bottom: 12px; color: var(--color-text); }
.dlv-info__card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dlv-info__card li { font-size: 14px; color: var(--color-text-muted); padding-left: 16px; position: relative; line-height: 1.5; }
.dlv-info__card li::before { content: '\2192'; position: absolute; left: 0; color: var(--color-accent); }
.dlv-info__card strong { color: var(--color-text); }

/* === 17. Law page === */
.law-alert { padding: 40px 0; }
.law-alert__box {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 24px 28px; background: #fef3cd; border: 1px solid #ffc107; border-radius: 14px;
}
.law-alert__icon {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
    background: #fff3cd; color: #d4a017;
    display: flex; align-items: center; justify-content: center;
}
.law-alert__text h3 { font-size: 17px; font-weight: var(--fw-bold); color: #856404; margin-bottom: 6px; }
.law-alert__text p { font-size: 14px; color: #664d03; line-height: 1.6; }

.law-rules { padding: 40px 0 50px; }
.law-rules h2 { font-size: 28px; font-weight: var(--fw-bold); margin-bottom: 24px; color: var(--color-text); }
.law-rules__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.law-rule { padding: 28px; border-radius: 16px; border: 1px solid var(--color-border); }
.law-rule--allowed { background: #f0faf0; border-color: #c3e6cb; }
.law-rule--forbidden { background: #fdf0f0; border-color: #f5c6cb; }
.law-rule__header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.law-rule--allowed .law-rule__header { color: #28a745; }
.law-rule--forbidden .law-rule__header { color: #dc3545; }
.law-rule__header h3 { font-size: 18px; font-weight: var(--fw-bold); color: inherit; }
.law-rule ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.law-rule li { font-size: 14px; color: var(--color-text-muted); padding-left: 20px; position: relative; line-height: 1.5; }
.law-rule--allowed li::before { content: '\2713'; position: absolute; left: 0; color: #28a745; font-weight: bold; }
.law-rule--forbidden li::before { content: '\2717'; position: absolute; left: 0; color: #dc3545; font-weight: bold; }

.law-history { padding: 50px 0; background: var(--color-accent-light); }
.law-history h2 { font-size: 28px; font-weight: var(--fw-bold); margin-bottom: 20px; color: var(--color-text); }
.law-history__content { max-width: 800px; }
.law-history__content p { font-size: 15px; color: var(--color-text-muted); margin-bottom: 14px; line-height: 1.7; }

.law-company { padding: 50px 0 60px; }
.law-company__box {
    text-align: center; padding: 50px 40px;
    background: var(--color-card-bg); border: 1px solid var(--color-border); border-radius: 20px;
}
.law-company__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--color-accent-light); color: var(--color-accent);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.law-company__box h3 { font-size: 22px; font-weight: var(--fw-bold); margin-bottom: 12px; color: var(--color-text); }
.law-company__box p { font-size: 15px; color: var(--color-text-muted); max-width: 600px; margin: 0 auto 24px; line-height: 1.7; }

/* === 18. Articles grid === */
.articles-grid { padding: 0 0 60px; }
.articles-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.article-card {
    display: block; background: var(--color-card-bg); border: 1px solid var(--color-border);
    border-radius: 12px; overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card__img { width: 100%; height: 200px; object-fit: cover; }
.article-card__title { padding: 16px; font-size: 16px; font-weight: var(--fw-bold); line-height: 1.3; color: var(--color-text); }

/* === 19. 404 === */
.page-404 {
    min-height: calc(100vh - var(--header-h));
    display: flex; align-items: center; justify-content: center; padding: 40px 0;
}
.img-404 { margin-bottom: 30px; max-width: 400px; }
.page-404 h1 { font-size: 42px; margin-bottom: 16px; }
.page-404 p { margin-bottom: 30px; color: var(--color-text-muted); }

/* === 20. Footer === */
.footer-top { padding: 50px 0 40px; background: var(--color-accent-light); border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 80px; width: auto; }
.footer-desc { font-size: 14px; color: var(--color-text-muted); margin-bottom: 20px; line-height: 1.5; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contact {
    display: flex; align-items: center; gap: 10px;
    color: var(--color-text); font-size: 14px; font-weight: var(--fw-bold); transition: color .2s;
}
.footer-contact:hover { color: var(--color-accent); }
.footer-contact__icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer-contact__icon--phone { background: var(--color-accent-light); color: var(--color-accent); }
.footer-contact__icon--wa { background: #e8f5e9; color: #25d366; }
.footer-heading { font-size: 15px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .5px; color: var(--color-text); margin-bottom: 16px; }
.footer-menu { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-menu a { font-size: 14px; color: var(--color-text-muted); transition: color .2s; }
.footer-menu a:hover { color: var(--color-accent); }
.footer-bottom { padding: 16px 0; background: var(--color-accent-light); border-top: 1px solid var(--color-border); }
.footer-bottom p { text-align: center; font-size: 13px; color: var(--color-text-muted); }

/* === 21. Disclaimer modal === */
.disclaimer-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.disclaimer-overlay.active { opacity: 1; visibility: visible; }
.disclaimer-overlay.closing { opacity: 0; }
.disclaimer-modal {
    background: #fff; border-radius: 20px; padding: 40px 36px 32px;
    max-width: 480px; width: 100%; text-align: center;
    transform: translateY(20px) scale(.96); transition: transform .3s;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.disclaimer-overlay.active .disclaimer-modal { transform: translateY(0) scale(1); }
.disclaimer-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--color-accent-light); color: var(--color-accent);
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.disclaimer-modal h3 { font-size: 22px; font-weight: var(--fw-bold); color: var(--color-text); margin-bottom: 12px; }
.disclaimer-modal p { font-size: 15px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 24px; }
.disclaimer-btn { min-width: 160px; }
.disclaimer-timer { margin-top: 12px; height: 3px; border-radius: 3px; background: var(--color-border); overflow: hidden; position: relative; }
.disclaimer-timer::after {
    content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 100%;
    background: var(--color-accent); animation: timerShrink 7s linear forwards;
}
@keyframes timerShrink { from { width: 100%; } to { width: 0%; } }

/* === 22. myStickyElements overrides === */
.mystickyelements-position-left { left: auto !important; right: 0 !important; }
.mystickyelements-fixed ul li { margin-bottom: 12px !important; }
.mystickyelements-fixed .mystickyelements-social-icon {
    width: 48px !important; height: 48px !important; line-height: 48px !important;
    border-radius: 50% !important; font-size: 20px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.12) !important;
    transition: transform .3s, box-shadow .3s !important;
}
.mystickyelements-fixed .mystickyelements-social-icon:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.18) !important;
}
.mystickyelements-fixed .mystickyelements-social-icon a {
    width: 48px !important; height: 48px !important; line-height: 48px !important; font-size: 20px !important;
}
.mystickyelements-fixed .mystickyelements-social-icon i { font-size: 20px !important; }
.mystickyelements-fixed li:first-child .mystickyelements-social-icon { background: #25d366 !important; }
.mystickyelements-fixed li:last-child .mystickyelements-social-icon { background: var(--color-accent) !important; }
.mystickyelements-fixed .mystickyelements-social-text { display: none !important; }

/* === 23. Responsive === */
@media (max-width: 1024px) {
    .main-nav .nav-list li a { padding: 18px 10px; font-size: 12px; }
    .home-adv__grid { grid-template-columns: repeat(2, 1fr); }
    .home-products__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Mobile menu */
    .menu-toggle { display: block; }
    .main-nav {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: rgba(255,255,255,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        transition: right .3s; padding: 80px 20px 20px; z-index: 999;
        box-shadow: -4px 0 20px rgba(0,0,0,.1);
    }
    .menu-open .main-nav { right: 0; }
    .main-nav .nav-list { flex-direction: column; }
    .main-nav .nav-list li a { padding: 12px 0; font-size: 16px; }

    /* Hero */
    .hero--compact { padding: 60px 0 40px; }
    .hero--compact h1 { font-size: 26px; }
    .hero--compact .hero-sub { font-size: 15px; }
    .hero--home { padding: 70px 0 50px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; }

    /* Products */
    .products-grid { grid-template-columns: 1fr; }

    /* Product detail */
    .balon-detail { grid-template-columns: 1fr; gap: 30px; }
    .balon-detail__info { text-align: center; }
    .balon-detail__specs { display: inline-block; text-align: left; }
    .balon-detail__buttons { justify-content: center; }

    /* Homepage */
    .home-adv__grid { grid-template-columns: 1fr; }
    .home-products__grid { grid-template-columns: 1fr 1fr; }
    .home-about__grid { grid-template-columns: 1fr; }
    .home-about__text { text-align: center; }
    .home-about__buttons { flex-direction: column; align-items: center; }

    /* Contacts */
    .contacts-grid { grid-template-columns: 1fr; }

    /* Optovye */
    .opt-features__grid { grid-template-columns: 1fr; }
    .opt-conditions__grid { grid-template-columns: 1fr 1fr; }
    .opt-cta__box { padding: 36px 24px; }

    /* Delivery */
    .dlv-steps__grid { grid-template-columns: 1fr; }
    .dlv-info__grid { grid-template-columns: 1fr; }

    /* Law */
    .law-alert__box { flex-direction: column; }
    .law-rules__grid { grid-template-columns: 1fr; }
    .law-company__box { padding: 32px 20px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }

    /* myStickyElements mobile */
    .mystickyelements-position-mobile-bottom {
        bottom: auto !important; top: 50% !important; transform: translateY(-50%) !important;
        right: 0 !important; left: auto !important; width: auto !important;
        display: flex !important; flex-direction: column !important;
    }
    .mystickyelements-fixed ul { display: flex !important; flex-direction: column !important; gap: 0 !important; }
    .mystickyelements-fixed .mystickyelements-social-icon,
    .mystickyelements-fixed .mystickyelements-social-icon a {
        width: 56px !important; height: 56px !important; line-height: 56px !important; font-size: 24px !important;
    }
    .mystickyelements-fixed .mystickyelements-social-icon i { font-size: 24px !important; }
}

@media (max-width: 480px) {
    .opt-conditions__grid { grid-template-columns: 1fr; }
}
