/* ============================================================
   ОПОЛО — Поставщик промышленного оборудования
   Чистый CSS, без зависимостей от Bootstrap/Bitrix
   ============================================================ */

/* === Reset & base === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a2332;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* === Дизайн-токены === */
:root {
    --primary: #1a3a5c;
    --primary-dark: #0d2540;
    --primary-light: #2c5a87;
    --accent: #00a8b5;
    --accent-hover: #008a96;
    --bg-light: #f4f7fa;
    --text-dark: #1a2332;
    --text-muted: #5a6878;
    --border: #d9e1ea;
    --shadow-sm: 0 2px 8px rgba(26, 58, 92, 0.06);
    --shadow-md: 0 6px 20px rgba(26, 58, 92, 0.12);
    --shadow-lg: 0 14px 40px rgba(26, 58, 92, 0.15);
    --radius: 8px;
    --container-w: 1200px;
}

/* === Контейнер === */
.container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
    background: linear-gradient(135deg, #0d2540 0%, #1a3a5c 50%, #1f476f 100%);
    color: #fff;
    padding: 16px 0;
    border-bottom: 3px solid var(--accent);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.site-header__brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.site-header__brand-name {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.site-header__brand-sub {
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
}
.site-header__tagline {
    font-size: 13px;
    line-height: 1.45;
    color: #c8d4e2;
    border-left: 2px solid var(--accent);
    padding: 4px 0 4px 18px;
    flex: 0 1 auto;
}
.site-header__contacts {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}
.site-header__contact {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}
.site-header__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent);
}
.site-header__phone {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.site-header__phone:hover { color: var(--accent); }
.site-header__email {
    color: #fff;
    font-size: 14px;
    padding: 8px 14px 8px 38px;
    background: rgba(0, 168, 181, 0.15);
    border: 1px solid var(--accent);
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
}
.site-header__email .site-header__icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.site-header__email:hover {
    background: var(--accent);
    color: #fff;
}

/* ============================================================
   НАВИГАЦИЯ
   ============================================================ */
.site-nav {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 20px;
}
.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.site-nav__toggle {
    display: none;
}
.site-nav__link {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 18px 16px;
    transition: all 0.2s;
    position: relative;
}
.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--accent);
    background: var(--bg-light);
}
.site-nav__item--has-children { position: relative; }
.site-nav__link--toggle::after {
    content: '▾';
    margin-left: 6px;
    font-size: 10px;
    color: var(--accent);
}
.site-nav__dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 280px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 110;
}
.site-nav__item--has-children:hover .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.site-nav__dropdown a {
    display: block;
    padding: 10px 18px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}
.site-nav__dropdown a:hover {
    background: var(--bg-light);
    color: var(--accent);
    padding-left: 22px;
}

/* ============================================================
   СЛАЙДЕР (главная страница)
   ============================================================ */
.slider {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: var(--primary-dark);
    border-bottom: 4px solid var(--accent);
}
.slider__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 6s ease;
    z-index: 1;
}
.slider__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13,37,64,0.85) 0%, rgba(13,37,64,0.55) 45%, rgba(13,37,64,0.2) 85%);
}
.slider__slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}
.slider__caption {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-40%);
    z-index: 3;
    color: #fff;
    max-width: 560px;
    opacity: 0;
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}
.slider__slide.is-active .slider__caption {
    opacity: 1;
    transform: translateY(-50%);
}
.slider__tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 3px;
    margin-bottom: 18px;
}
.slider__title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.slider__desc {
    font-size: 18px;
    line-height: 1.5;
    margin: 0 0 28px;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.slider__btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    border: 2px solid var(--accent);
    transition: all 0.25s;
}
.slider__btn:hover {
    background: transparent;
    color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0,168,181,0.35);
}
.slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,168,181,0.85);
    color: #fff;
    border: none;
    font-size: 28px;
    z-index: 4;
    transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.slider__arrow:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.08);
}
.slider__arrow--prev { left: 24px; }
.slider__arrow--next { right: 24px; }
.slider__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}
.slider__dot {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.4);
    border: none;
    transition: all 0.3s;
    padding: 0;
}
.slider__dot.is-active {
    background: var(--accent);
    width: 60px;
}

/* ============================================================
   СЕКЦИИ — общее
   ============================================================ */
.section {
    padding: 70px 0;
}
.section--bg {
    background: var(--bg-light);
}
.section--dark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
}
.section__title {
    text-align: center;
    color: var(--primary);
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 50px;
    position: relative;
    padding-bottom: 20px;
}
.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.section--dark .section__title {
    color: #fff;
}

/* ============================================================
   КАТЕГОРИИ — плитка
   ============================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}
.category-card:hover::before {
    transform: scaleX(1);
}
.category-card__image {
    width: 100%;
    height: 160px;
    background: var(--bg-light);
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.category-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.category-card:hover .category-card__image img {
    transform: scale(1.08);
}
.category-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

/* ============================================================
   ПРЕИМУЩЕСТВА
   ============================================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.advantage {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,168,181,0.2);
    border-radius: 10px;
    padding: 28px;
    transition: all 0.25s;
}
.advantage:hover {
    background: rgba(0,168,181,0.1);
    border-color: var(--accent);
    transform: translateY(-4px);
}
.advantage__num {
    display: inline-block;
    color: var(--accent);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
}
.advantage__title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}
.advantage__desc {
    color: #d8e2ec;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   О КОМПАНИИ — карточки брендов
   ============================================================ */
.about {
    text-align: center;
}
.about__lead {
    max-width: 760px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-dark);
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}
.brand {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 12px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}
.brand::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.brand:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.brand:hover::before { transform: scaleX(1); }
.brand__name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.site-footer {
    background: var(--primary-dark);
    color: #c8d2dd;
    padding: 40px 0 0;
    margin-top: 0;
}
.site-footer__main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 30px;
}
.site-footer__contact {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.site-footer__contact:hover { color: var(--accent); }
.site-footer__icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
    flex-shrink: 0;
}
.site-footer__bottom {
    background: #061525;
    padding: 18px 0;
    text-align: center;
}
.site-footer__bottom p {
    margin: 4px 0;
    font-size: 12px;
    color: #8a96a6;
}

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — хлебные крошки, шапка раздела, контент
   ============================================================ */
.breadcrumbs {
    background: var(--bg-light);
    padding: 14px 0;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { margin: 0 8px; color: var(--border); }

.page {
   
}
.page__title {
    color: var(--primary);
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 28px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}
.page__notice {
    background: linear-gradient(135deg, var(--bg-light) 0%, #fff 100%);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    margin: 24px 0 32px;
    border-radius: 4px;
    font-style: italic;
    color: var(--text-muted);
}
.page p { line-height: 1.75;  }
.page h3 {
    color: var(--primary);
    margin-top: 36px;
    font-size: 22px;
    font-weight: 700;
}
.page ul { padding-left: 24px; }
.page ul li { margin: 8px 0; }
.page ul li::marker { color: var(--accent); }

.catalog-intro {
    text-align: center;
    max-width: 760px;
    margin: 40px auto 30px;
    padding: 0 20px;
}
.catalog-intro h1 {
    color: var(--primary);
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 16px;
    position: relative;
    padding-bottom: 18px;
    display: inline-block;
}
.catalog-intro h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}
.catalog-intro p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 420px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    border: 1px solid var(--accent);
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    z-index: 9999;
    display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    background: none;
    border: none;
}
.cookie-banner__text {
    margin: 0 0 12px;
    font-size: 14px;
}
.cookie-banner__buttons {
    display: flex;
    gap: 10px;
}
.cookie-banner__btn {
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}
.cookie-banner__btn--primary {
    background: var(--accent);
    color: #fff;
}
.cookie-banner__btn--primary:hover { background: var(--accent-hover); }
.cookie-banner__btn--secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* Большие планшеты */
@media (max-width: 1100px) {
    .site-header__tagline { display: none; }
    .slider__title { font-size: 40px; }
}

/* Планшеты */
@media (max-width: 992px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-grid { grid-template-columns: repeat(3, 1fr); }
    .site-header__contacts { gap: 12px; }
    .site-header__phone { font-size: 15px; }
    .site-header__email { font-size: 13px; }
    .slider { height: 400px; }
    .slider__title { font-size: 36px; }
}

/* Маленькие планшеты / большие телефоны */
@media (max-width: 768px) {
    .site-header { padding: 14px 0; }
    .site-header .container {
        justify-content: center;
        text-align: center;
        gap: 16px;
    }
    .site-header__brand { align-items: center; }
    .site-header__contacts {
        margin-left: 0;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .site-nav { position: relative; }
    .site-nav .container { padding: 0; }
    .site-nav__list {
        width: 100%;
        flex-direction: column;
        gap: 0;
        display: none;
        background: #fff;
        border-top: 1px solid var(--border);
    }
    .site-nav__list.is-open { display: flex; }
    .site-nav__link {
        padding: 14px 20px;
        border-bottom: 1px solid var(--border);
        text-align: center;
        font-size: 14px;
    }
    .site-nav__item--has-children { width: 100%; }
    .site-nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--bg-light);
        padding: 0;
        display: none;
    }
    .site-nav__item--has-children.is-open .site-nav__dropdown { display: block; }
    .site-nav__item--has-children:hover .site-nav__dropdown {
        transform: none;
    }
    .site-nav__dropdown a { padding: 12px 24px; }
    .site-nav__toggle {
        display: flex;
        width: 100%;
        padding: 14px;
        background: #fff;
        border: none;
        border-bottom: 1px solid var(--border);
        color: var(--primary);
        font-size: 16px;
        font-weight: 700;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
    }

    .slider { height: 320px; border-bottom-width: 3px; }
    .slider__title { font-size: 28px; }
    .slider__desc { font-size: 14px; margin-bottom: 18px; }
    .slider__tag { margin-bottom: 12px; font-size: 11px; }
    .slider__caption { left: 5%; max-width: 85%; }
    .slider__btn { padding: 12px 24px; font-size: 14px; }
    .slider__arrow { width: 40px; height: 40px; font-size: 20px; }
    .slider__arrow--prev { left: 8px; }
    .slider__arrow--next { right: 8px; }
    .slider__dots { bottom: 14px; }
    .slider__dot { width: 28px; }
    .slider__dot.is-active { width: 44px; }

    .section { padding: 50px 0; }
    .section__title { font-size: 26px; margin-bottom: 32px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .category-card { padding: 18px 14px; }
    .category-card__image { height: 130px; }
    .category-card__title { font-size: 16px; }
    .advantages-grid { grid-template-columns: 1fr; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }

    .page { padding: 30px 0 50px; }
    .page__title { font-size: 26px; }
    .catalog-intro h1 { font-size: 28px; }

    .site-footer__main { flex-direction: column; gap: 16px; }

    .cookie-banner {
        left: 10px;
        right: 10px;
        max-width: none;
        bottom: 10px;
    }
}

/* Телефоны */
@media (max-width: 480px) {
    .site-header__brand-name { font-size: 22px; }
    .site-header__brand-sub { font-size: 10px; }
    .site-header__contacts { gap: 8px; }
    .site-header__phone { font-size: 14px; }
    .site-header__email {
        font-size: 12px;
        padding: 6px 12px 6px 32px;
    }
    .site-header__email .site-header__icon {
        width: 18px;
        height: 18px;
        left: 8px;
    }

    .slider { height: 280px; }
    .slider__title { font-size: 22px; line-height: 1.2; }
    .slider__desc { font-size: 13px; margin-bottom: 14px; }
    .slider__caption { left: 18px; right: 18px; max-width: none; }

    .section { padding: 36px 0; }
    .section__title { font-size: 22px; padding-bottom: 14px; }
    .categories-grid { grid-template-columns: 1fr; gap: 14px; }
    .category-card__image { height: 160px; }
    .brands-grid { grid-template-columns: 1fr 1fr; }

    .page__title { font-size: 22px; }
    .catalog-intro h1 { font-size: 24px; }

    .cookie-banner__text { font-size: 13px; }
}
