@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
    --brand-primary: #0057a8;
    --brand-primary-dark: #003d75;
    --brand-accent: #00b4d8;
    --brand-accent-soft: #e8f7fc;
    --text-primary: #1a2332;
    --text-muted: #5c6b7a;
    --surface: #ffffff;
    --surface-muted: #f4f7fb;
    --surface-dark: #0d1b2a;
    --border: #dde5ef;
    --shadow-sm: 0 4px 16px rgba(13, 27, 42, 0.06);
    --shadow-md: 0 12px 32px rgba(13, 27, 42, 0.1);
    --shadow-lg: 0 20px 48px rgba(13, 27, 42, 0.14);
    --radius: 14px;
    --radius-lg: 20px;
    --transition: 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
    color: var(--text-primary);
    background: var(--surface-muted);
    line-height: 1.6;
}

a {
    transition: color var(--transition), opacity var(--transition);
}

/* ── Header ── */
.site-header {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.top-bar {
    background: var(--surface-dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8125rem;
    border: none !important;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
    color: #fff;
}

.main-header {
    border: none !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.site-logo {
    max-height: 52px;
    width: auto;
}

.brand-text {
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-form .form-control {
    border-radius: 999px 0 0 999px;
    border: 1px solid var(--border);
    padding: 0.65rem 1.25rem;
    background: var(--surface-muted);
}

.search-form .form-control:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
    background: #fff;
}

.search-form .btn {
    border-radius: 0 999px 999px 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.search-form .btn:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

.phone-link {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
}

.phone-link:hover {
    color: var(--brand-primary);
}

.btn-brand {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 1.35rem;
}

.btn-brand:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
}

.btn-outline-brand {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.5rem 1.35rem;
    background: transparent;
}

.btn-outline-brand:hover {
    background: var(--brand-primary);
    color: #fff;
}

.site-nav {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-top: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
}

@media (min-width: 992px) {
    .site-nav .navbar-collapse {
        justify-content: center;
    }

    .site-nav__links {
        gap: 0.25rem;
    }
}

@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        text-align: center;
    }

    .site-nav__links {
        align-items: center;
        padding: 0.5rem 0 1rem;
    }
}

.site-nav .nav-link {
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.85rem 1.1rem !important;
    position: relative;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: var(--brand-primary);
}

.site-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1.1rem;
    right: 1.1rem;
    height: 2px;
    background: var(--brand-accent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.site-nav .nav-link:hover::after {
    transform: scaleX(1);
}

.mega-menu {
    min-width: 720px;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 0.5rem !important;
    padding: 1.5rem !important;
}

.mega-menu a.fw-semibold {
    color: var(--brand-primary) !important;
    font-size: 0.95rem;
}

.mega-menu a.fw-semibold:hover {
    color: var(--brand-accent) !important;
}

.mega-menu .list-unstyled a {
    color: var(--text-muted) !important;
    display: block;
    padding: 0.2rem 0;
}

.mega-menu .list-unstyled a:hover {
    color: var(--brand-primary) !important;
    padding-left: 4px;
}

/* ── Hero ── */
.hero-section {
    position: relative;
}

.hero-swiper {
    border-radius: 0;
}

.hero-slide {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 45, 90, 0.82) 0%,
        rgba(0, 87, 168, 0.55) 45%,
        rgba(0, 180, 216, 0.25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 4rem 0;
}

.hero-content h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-content .lead {
    font-size: 1.15rem;
    opacity: 0.92;
    margin-bottom: 1.75rem;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 1.1rem;
}

.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

/* ── Sections ── */
.section-block {
    padding: 4.5rem 0;
}

.section-block--muted {
    background: var(--surface);
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 0.5rem;
}

.section-title {
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-lead {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
}

.intro-block {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.intro-block .page-content {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.intro-block .page-content p:last-child {
    margin-bottom: 0;
}

/* ── Category cards ── */
.category-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: block;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.category-card__img-wrap {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, var(--brand-accent-soft), #dce9f5);
}

.category-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card__img {
    transform: scale(1.06);
}

.category-card__body {
    padding: 1.25rem 1.5rem;
}

.category-card__title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin: 0;
}

.category-card__arrow {
    color: var(--brand-accent);
    font-size: 1.25rem;
    transition: transform var(--transition);
}

.category-card:hover .category-card__arrow {
    transform: translateX(4px);
}

/* ── Product cards ── */
.product-card {
    background: var(--surface);
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md) !important;
}

.product-card-img,
.product-card-placeholder {
    height: 200px;
    object-fit: cover;
    background: var(--surface-muted);
}

.product-card .card-title {
    font-weight: 700;
    font-size: 0.95rem;
}

/* ── CTA band ── */
.cta-band {
    background: linear-gradient(135deg, var(--brand-primary-dark) 0%, var(--brand-primary) 50%, #0077b6 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(0, 180, 216, 0.2);
    border-radius: 50%;
}

.cta-band h2 {
    font-weight: 800;
    position: relative;
}

.cta-band p {
    opacity: 0.9;
    position: relative;
}

/* ── Catalog cards ── */
.catalog-card {
    background: var(--surface);
    border-radius: var(--radius) !important;
    border: 1px solid var(--border) !important;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md) !important;
}

.catalog-card__cover-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.catalog-cover {
    height: 300px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.4s ease;
}

.catalog-card:hover .catalog-cover {
    transform: scale(1.04);
}

.catalog-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 45, 90, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.catalog-card:hover .catalog-card__overlay {
    opacity: 1;
}

.catalog-card__overlay span {
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

.catalog-card .card-title {
    font-weight: 700;
}

/* ── Page layout ── */
.page-hero {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
    color: #fff;
    padding: 2.5rem 0;
    margin-bottom: 2rem;
}

.page-hero h1 {
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.95);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.page-content-inner .breadcrumb a {
    color: var(--brand-primary);
}

.page-content-inner .breadcrumb-item.active {
    color: var(--text-muted);
}

.page-content-inner .breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* ── Product detail ── */
.product-main-img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    background: var(--surface-muted);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.product-thumb-img {
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.65;
    border-radius: 8px;
    transition: opacity var(--transition), border-color var(--transition);
}

.swiper-slide-thumb-active .product-thumb-img {
    opacity: 1;
    border: 2px solid var(--brand-primary);
}

.product-placeholder {
    height: 400px;
    border-radius: var(--radius);
    background: var(--surface-muted);
}

.specs-table {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.specs-table table {
    margin: 0;
}

.specs-table th {
    width: 42%;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--surface-muted);
}

/* ── Contacts ── */
.contact-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-accent-soft);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--brand-primary);
}

.yandex-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    height: 360px;
}

.yandex-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.feedback-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.feedback-card .form-control {
    border-radius: 10px;
    border-color: var(--border);
    padding: 0.65rem 1rem;
}

.feedback-card .form-control:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
}

/* ── Footer ── */
.site-footer {
    background: var(--surface-dark) !important;
    margin-top: 0 !important;
    padding: 4rem 0 2rem !important;
}

.site-footer h5,
.site-footer h6 {
    font-weight: 700;
    color: #fff;
}

.site-footer a:hover {
    color: var(--brand-accent) !important;
}

/* ── Misc ── */
.page-content {
    line-height: 1.75;
}

.page-content h2,
.page-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hp-field {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    color: var(--brand-primary);
}

.pagination .page-item.active .page-link {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

@media (max-width: 991px) {
    .mega-menu {
        min-width: auto;
    }

    .hero-slide {
        min-height: 400px;
    }

    .intro-block {
        padding: 1.75rem;
    }

    .cta-band {
        padding: 2rem;
    }
}
