/* ============================================================
   ВОЛГА-ЛИДЕР — CSS
   Brand palette from .agent/rules.md
   ============================================================ */

:root {
    --brand-dark: #0B1F3A;
    --brand-blue: #1E3557;
    --brand-gold: #D4A437;
    --brand-gold-hover: #F2C14E;
    --light-bg: #F4F6F9;
    --text-dark: #1A1A1A;
    --white: #FFFFFF;
    --border-light: #E6EAF0;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--brand-dark);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.text-brand-gold {
    color: var(--brand-gold) !important;
}

.bg-brand-dark {
    background-color: var(--brand-dark) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-gold);
    color: var(--brand-dark);
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-call:hover {
    background-color: var(--brand-gold-hover);
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 164, 55, 0.4);
}

.btn-call:focus {
    outline: 2px solid var(--brand-gold);
    outline-offset: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    background-color: var(--brand-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo */
.header-logo-img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--brand-gold);
    flex-shrink: 0;
}

.header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.01em;
}

.logo-accent {
    color: var(--brand-gold);
}

.logo-sub {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Nav links */
.nav-hover {
    position: relative;
    font-size: 0.9rem;
    color: var(--white) !important;
    transition: var(--transition);
}

.nav-hover:hover {
    color: var(--brand-gold) !important;
}

.nav-hover:focus {
    outline: 2px solid var(--brand-gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
    position: relative;
    min-height: 650px;
    background-color: var(--brand-dark);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.carousel-inner,
.carousel-item {
    height: 100%;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(212, 164, 55, 0.25) 0%, rgba(212, 164, 55, 0.15) 100%);
    border: 2px solid var(--brand-gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gold);
    left: auto;
    right: auto;
    padding: 0;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: linear-gradient(135deg, rgba(212, 164, 55, 0.4) 0%, rgba(212, 164, 55, 0.25) 100%);
    box-shadow: 0 8px 24px rgba(212, 164, 55, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 2px solid var(--brand-gold);
    outline-offset: 3px;
}

.carousel-control-prev svg,
.carousel-control-next svg {
    width: 28px;
    height: 28px;
    stroke: var(--brand-gold);
}

/* Carousel indicators */
.carousel-indicators {
    bottom: 25px;
    gap: 8px;
    justify-content: center;
    padding: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 6px;
    border: none;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: var(--transition);
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.carousel-indicators button.active {
    background-color: var(--brand-gold);
    width: 24px;
}

.hero-slide-item {
    height: 650px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-slide-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(11, 31, 58, 0.92) 0%,
            rgba(11, 31, 58, 0.75) 45%,
            rgba(11, 31, 58, 0.40) 100%);
}

.hero-container {
    position: relative;
    z-index: 10;
    /* Above carousel */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding-top: 80px;
    padding-bottom: 80px;
    width: 100%;
}

.hero-static-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hero-static-layer .hero-container {
    padding-top: 0;
    padding-bottom: 0;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 5;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--brand-gold);
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 500px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid var(--brand-gold);
    color: var(--white);
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-badge:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.1) 100%);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
}

/* Hero form side */
.hero-form-side {
    flex-shrink: 0;
    width: 380px;
    pointer-events: auto;
}

.calc-form-card {
    background: #F8F9FB;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.calc-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-dark);
    text-align: center;
    margin-bottom: 20px;
}

.calc-input {
    background: #F8F9FB;
    border: 1px solid #D0D7E3;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    padding: 12px 14px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.calc-input:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(212, 164, 55, 0.15);
    outline: 2px solid transparent;
    outline-offset: 2px;
    background: #FFFFFF;
    color: var(--text-dark);
}

.calc-input::placeholder {
    color: #A0AABF;
}

.calc-input.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.calc-input.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.iti.is-invalid {
    border-color: #dc3545;
}

.iti.is-invalid .iti__input {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 6px;
    display: block;
}

/* intl-tel-input fixes */
.iti {
    width: 100%;
    margin-bottom: 0;
    display: flex;
}

.iti.is-invalid .iti__input {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.iti__input {
    background: #F8F9FB;
    border: 1px solid #D0D7E3;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    padding: 12px 14px;
    padding-left: 48px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    transition: var(--transition);
    width: 100%;
}

.iti__input:focus {
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(212, 164, 55, 0.15);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.iti__country-list {
    background-color: #F8F9FB;
    color: var(--text-dark);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-light);
    z-index: 1050;
}

.iti__country {
    padding: 10px 14px;
    font-size: 0.9rem;
}

.iti__selected-dial-code {
    color: var(--text-dark);
}

.iti__flag-container {
    padding: 2px;
}

.calc-note {
    font-size: 0.72rem;
    color: #A0AABF;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ============================================================
   QUICK ACTIONS SECTION
   ============================================================ */

.quick-actions-section {
    background-color: var(--brand-dark);
    padding: 40px 0 50px;
    margin-top: -2px;
    /* seamless join with hero */
}

.quick-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 28px 24px 20px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    cursor: pointer;
}

.quick-card:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 6px 20px rgba(212, 164, 55, 0.3);
    transform: translateY(-4px);
}

.quick-card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.quick-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.quick-card-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin-bottom: 16px;
}

.quick-card-arrow {
    display: block;
    color: var(--brand-gold);
    font-size: 1.3rem;
    font-weight: 700;
    transition: var(--transition);
}

.quick-card:hover .quick-card-arrow {
    transform: translateX(4px);
}

/* ============================================================
   SECTION SHARED STYLES
   ============================================================ */

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

.services-section {
    background-color: var(--brand-dark);
    padding: 60px 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 28px 24px 20px;
    height: 100%;
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 6px 20px rgba(212, 164, 55, 0.3);
    transform: translateY(-4px);
}

.service-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.service-card-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin-bottom: 14px;
}

.service-card-arrow {
    color: var(--brand-gold);
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    transition: var(--transition);
}

.service-card:hover .service-card-arrow {
    transform: translateX(4px);
}

/* ============================================================
   ADVANTAGES SECTION
   ============================================================ */

.advantages-section {
    background-color: var(--brand-blue);
    padding: 60px 0;
}

.adv-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.adv-icon-wrap {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(212, 164, 55, 0.12);
    border: 1px solid rgba(212, 164, 55, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gold);
}

.adv-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.adv-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin-bottom: 0;
}

.adv-photo-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    transition: var(--transition);
}

.adv-photo-card:hover {
    border-color: var(--brand-gold);
    box-shadow: 0 6px 20px rgba(212, 164, 55, 0.3);
    transform: translateY(-4px);
}

.adv-photo-card-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--brand-dark);
}

.adv-photo-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.adv-photo-card:hover .adv-photo-card-img-wrap img {
    transform: scale(1.05);
}

.adv-photo-card-content {
    padding: 24px;
}

.adv-photo-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.adv-photo-card-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin-bottom: 0;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-section {
    background-color: var(--brand-dark);
    padding: 70px 0;
}

.about-img {
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-title {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.about-lead {
    font-size: 1rem;
    color: var(--brand-gold);
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.6;
}

.about-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-stat {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    text-align: center;
}

.about-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1;
    margin-bottom: 4px;
}

.about-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */

.faq-section {
    background-color: var(--brand-blue);
    padding: 60px 0;
}

.faq-accordion {
    border: none;
}

.faq-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-btn {
    background: transparent !important;
    color: var(--white) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 18px 20px;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    transition: var(--transition);
}

.faq-btn:not(.collapsed) {
    color: var(--brand-gold) !important;
    background: rgba(212, 164, 55, 0.06) !important;
}

.faq-btn::after {
    display: none !important;
    /* hide default BS arrow */
}

.faq-arrow {
    color: var(--brand-gold);
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.faq-btn:not(.collapsed) .faq-arrow {
    transform: rotate(90deg);
    color: var(--brand-gold);
}

.faq-body {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.65;
    padding: 4px 20px 20px;
    background: transparent;
}

.faq-body ol {
    padding-left: 1.2rem;
    margin-top: 10px;
    margin-bottom: 10px;
}

.faq-body li {
    margin-bottom: 6px;
}

.faq-body li:last-child {
    margin-bottom: 0;
}

.faq-body strong {
    color: var(--brand-gold);
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
}

.faq-body p:first-child {
    margin-bottom: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--brand-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 0 30px;
}

.footer-brand {
    margin-bottom: 8px;
}

.footer-logo-text {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.footer-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-phone {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-col-title {
    color: var(--brand-gold);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 14px;
}

.footer-col-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-link {
    color: var(--brand-gold);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--brand-gold-hover);
    text-decoration: underline;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0 20px;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* Social icons in footer */
.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(212, 164, 55, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================================
   REVIEWS SECTION
   ============================================================ */

.reviews-section {
    background-color: var(--brand-dark);
    padding: 70px 0;
}

.review-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 10px;
    transition: var(--transition);
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.review-item:hover {
    border-color: var(--brand-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
}

.review-img-wrap {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.review-item:hover .review-img {
    transform: scale(1.05);
}

.review-caption {
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-weight: 500;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        display: block;
        /* Stack items */
    }

    .hero-carousel {
        position: relative;
        /* Change from absolute to stack */
        height: 450px;
    }

    .hero-slide-item {
        height: 450px;
    }

    .hero-container {
        flex-direction: column;
        gap: 30px;
        padding-top: 40px;
        padding-bottom: 40px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-static-layer {
        position: relative;
        /* Change from absolute to stack on mobile */
        padding: 40px 0;
        background: var(--brand-dark);
    }

    .hero-static-layer .hero-container {
        justify-content: center !important;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-form-side {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .adv-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .about-stat-num {
        font-size: 1.5rem;
    }

    /* Mobile touch target sizing (minimum 44x44px) */
    .btn-call,
    button[data-bs-toggle] {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    /* Carousel controls on mobile - HIDE prev/next buttons */
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }

    /* Carousel indicators on mobile */
    .carousel-indicators button {
        width: 10px;
        height: 5px;
    }

    .carousel-indicators button.active {
        width: 20px;
    }

    /* Header full coverage on mobile scroll */
    .site-header {
        z-index: 1050;
        width: 100%;
        padding: 0;
    }

    .site-header .navbar {
        padding: 8px 0 !important;
    }
}

/* ============================================================
   QUICK CARD LINK WRAPPER
   ============================================================ */

.quick-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.quick-card-link:hover .quick-card {
    border-color: var(--brand-gold);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.quick-card-link:hover .quick-card-arrow {
    transform: translateX(4px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-enter {
    animation: fadeInUp 0.5s ease forwards;
}

.result-appear {
    animation: fadeIn 0.4s ease forwards;
}

/* ============================================================
   TOAST УВЕДОМЛЕНИЕ (копирование ТН ВЭД)
   ============================================================ */

#copy-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

#copy-toast .toast-inner {
    background: var(--brand-dark);
    color: var(--brand-gold);
    border: 1px solid var(--brand-gold);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   TNVED — КНОПКА КОПИРОВАНИЯ И ДОСТАВКИ
   ============================================================ */

.tnved-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--brand-gold);
    font-size: inherit;
    font-weight: inherit;
    border-radius: 0;
    transition: color 0.2s, text-decoration 0.2s;
    vertical-align: baseline;
    font-family: inherit;
}

.tnved-copy-btn:hover {
    text-decoration: underline;
    color: var(--brand-gold-hover);
}

.tnved-delivery-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(212, 164, 55, 0.1);
    color: var(--brand-gold);
    border: 1px solid rgba(212, 164, 55, 0.3);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.tnved-delivery-btn:hover {
    background: rgba(212, 164, 55, 0.2);
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

/* ============================================================
   СТРАНИЦА РАСЧЁТА ДОСТАВКИ
   ============================================================ */

.delivery-page {
    background: var(--brand-dark);
    min-height: 100vh;
}

.delivery-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 100%);
    padding: 60px 0 40px;
}

.delivery-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.delivery-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
}

.delivery-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--white);
    padding: 11px 14px;
    font-size: 0.9rem;
    font-family: var(--font-main);
    transition: var(--transition);
}

.delivery-input:focus {
    outline: none;
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 3px rgba(212, 164, 55, 0.15);
    background: rgba(255, 255, 255, 0.07);
}

.delivery-input option {
    background: #1a3a5c;
    color: #fff;
}

.delivery-result {
    display: none;
    background: linear-gradient(135deg, rgba(212, 164, 55, 0.08) 0%, rgba(212, 164, 55, 0.03) 100%);
    border: 1px solid rgba(212, 164, 55, 0.3);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 24px;
}

.delivery-result.visible {
    display: block;
}

.delivery-total-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--brand-gold);
    line-height: 1;
}

.delivery-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.delivery-breakdown-item:last-child {
    border-bottom: none;
}

.delivery-breakdown-label {
    color: rgba(255, 255, 255, 0.6);
}

.delivery-breakdown-value {
    color: var(--white);
    font-weight: 600;
}

.delivery-tariffs-section {
    margin-top: 40px;
}

.delivery-tariffs-table {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    border-collapse: collapse;
}

.delivery-tariffs-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-gold);
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.delivery-tariffs-table td {
    padding: 10px 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.delivery-tariffs-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.delivery-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    margin-bottom: 16px;
}

.delivery-error {
    display: none;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #ff6b7a;
    font-size: 0.9rem;
    margin-top: 12px;
}

.delivery-error.visible {
    display: block;
}

/* ============================================================
   TNVED SEARCH PAGE STYLES (MOVED FROM VIEW)
   ============================================================ */

.tnved-row {
    transition: background-color 0.15s ease;
}

.tnved-row:hover {
    filter: brightness(0.95);
}

.tnved-row--ancestor {
    border-left: 3px solid #b8d4f0;
}

.tnved-row--level-1 {
    font-weight: 600;
}

.tnved-row--level-2 {
    font-weight: 500;
}

.tnved-indent {
    display: inline-block;
    width: 20px;
}

.tnved-code-link {
    text-decoration: none;
    color: inherit;
}

.tnved-code-link:hover {
    text-decoration: underline;
    color: #1a3a5c;
}

.level-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.level-filter {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

.level-filter .btn {
    font-size: 0.85rem;
    border-radius: 20px;
    padding: 4px 14px;
}

.level-filter .btn-active {
    background: #1a3a5c;
    color: #fff;
    border-color: #1a3a5c;
}

.breadcrumb-tnved {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    padding: 10px 16px;
    background: #f5f8fc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.breadcrumb-tnved a {
    color: #2a5f8f;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-tnved a:hover {
    text-decoration: underline;
}

.breadcrumb-tnved .separator {
    color: #aab;
    margin: 0 2px;
}

.duty-rate,
.vat-rate {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================================
   EXTRAS & BUTTONS
   ============================================================ */

.btn-secondary-outline {
    background: transparent;
    border: 2px solid var(--brand-gold);
    color: var(--brand-gold);
}

.btn-secondary-outline:hover {
    background: var(--brand-gold);
    color: var(--brand-dark);
    box-shadow: 0 4px 15px rgba(212, 164, 55, 0.2);
}

.tnved-delivery-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a3a5c;
    background: #eef4fb;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.tnved-delivery-btn:hover {
    background: #1a3a5c;
    color: #fff;
    transform: translateY(-1px);
}

.tnved-copy-btn {
    border: none;
    background: transparent;
    color: var(--brand-gold);
    cursor: pointer;
    font-size: inherit;
    font-weight: inherit;
    padding: 0;
    transition: var(--transition);
    font-family: inherit;
}

.tnved-copy-btn:hover {
    text-decoration: underline;
    color: var(--brand-gold-hover);
}

#copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: none;
}

.toast-inner {
    background: rgba(11, 31, 58, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--brand-gold);
    font-weight: 600;
}

/* ============================================================
   STICKY FOOTER FIX
   ============================================================ */

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

.site-footer {
    margin-top: auto;
}

/* ============================================================
   TNVED THEME CUSTOMIZATIONS (DARK THEME FOR RESULTS)
   ============================================================ */

.breadcrumb-tnved {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.breadcrumb-tnved a {
    color: var(--brand-gold) !important;
}

.breadcrumb-tnved .separator {
    color: rgba(255, 255, 255, 0.3) !important;
}

.breadcrumb-tnved strong {
    color: #fff !important;
}

.tnved-row td {
    padding: 12px 20px;
}

.tnved-code-link {
    color: var(--brand-gold) !important;
}


.text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
}

.table-responsive table {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-responsive table thead {
    background: #0d1b2a !important;
}

.tnved-row:hover {
    filter: brightness(0.95);
}

.tnved-row--ancestor {
    background-color: rgba(255, 255, 255, 0.02) !important;
    border-left: 3px solid var(--brand-gold) !important;
}

/* Pagination Styles */
.pagination {
    gap: 6px;
}

.page-item .page-link {
    background-color: transparent;
    border: 1px solid rgba(212, 164, 55, 0.3);
    color: rgba(212, 164, 55, 0.8);
    border-radius: 6px;
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.page-item .page-link:hover {
    background-color: rgba(212, 164, 55, 0.1);
    color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.page-item.active .page-link {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #0d1b2a;
    font-weight: 600;
}

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

/* ============================================================
   DELIVERY CALCULATION - PACKAGING
   ============================================================ */

.btn-info-modal {
    background: rgba(212, 164, 55, 0.1);
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-info-modal:hover {
    background: var(--brand-gold);
    color: var(--brand-dark);
}

.package-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    height: 100%;
    transition: var(--transition);
}

.package-info-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--brand-gold);
}

.package-info-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #000;
    /* fallback for missing images */
}

/* Modal Close Button override */
.modal-content .btn-close-white {
    opacity: 0.8;
}

.modal-content .btn-close-white:hover {
    opacity: 1;
}

/* ============================================================
   COMPLAINT SECTION — баннер + модальное окно
   ============================================================ */

.complaint-banner-section {
    background-color: var(--brand-blue);
    padding: 60px 0;
}

.complaint-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 52px 48px;
}

.complaint-banner-icon {
    flex-shrink: 0;
}

.complaint-banner-content {
    text-align: center;
    flex: 1;
    max-width: 480px;
}

.complaint-banner-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.complaint-banner-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 28px;
}

.complaint-banner-btn {
    background: var(--brand-gold);
    color: var(--brand-dark);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 36px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-main);
    transition: var(--transition);
    cursor: pointer;
}

.complaint-banner-btn:hover {
    background: var(--brand-gold-hover);
    color: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 164, 55, 0.4);
}

.complaint-banner-btn:active {
    transform: translateY(0);
}

/* Модальное окно */
.complaint-modal-content {
    background: var(--brand-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
}

.complaint-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 28px;
}

.complaint-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.complaint-modal-body {
    padding: 28px;
}

.complaint-modal-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Поля формы (в модале) */
.complaint-form .complaint-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    color: var(--white);
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: border-color 0.2s ease, background 0.2s ease;
    outline: none;
}

.complaint-form .complaint-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.complaint-form .complaint-input:focus {
    border-color: var(--brand-gold);
    background: rgba(255, 255, 255, 0.09);
    outline: 2px solid rgba(212, 164, 55, 0.2);
    outline-offset: 0;
}

.complaint-form .complaint-textarea {
    resize: vertical;
    min-height: 120px;
}

.complaint-error {
    color: #e05a5a;
    font-size: 0.82rem;
    margin-top: 4px;
    display: block;
}

.btn-complaint {
    background: var(--brand-gold);
    color: var(--brand-dark);
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn-complaint:hover {
    background: var(--brand-gold-hover);
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.btn-complaint:active {
    transform: translateY(0);
}

/* Сообщение об успехе в модале */
.complaint-success-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 24px;
    color: var(--brand-gold);
    text-align: center;
    font-size: 1.05rem;
    font-weight: 500;
}

/* ============================================================
   RESPONSIVE DESIGN (MOBILE & TABLET ADAPTATION)
   ============================================================ */

/* Лэптопы и планшеты (до 992px) */
@media (max-width: 991.98px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 30px;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-form-side {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .calc-form-card {
        padding: 24px 20px;
    }

    .hero-slide-item,
    .hero-section {
        min-height: auto;
    }

    .site-header .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }

    .complaint-banner {
        flex-direction: column;
        text-align: center;
        padding: 40px 28px;
        gap: 24px;
    }

    .complaint-banner-icon {
        display: none;
    }

    .about-section,
    .services-section,
    .advantages-section,
    .faq-section {
        padding: 40px 0;
    }

    .about-img {
        margin-bottom: 30px;
    }
}

/* Мобильные телефоны (до 767.98px) */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn-call {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .carousel-control-prev {
        left: 10px;
    }

    .carousel-control-next {
        right: 10px;
    }

    .quick-actions-section {
        padding: 30px 0;
    }

    .quick-card,
    .service-card {
        margin-bottom: 20px;
    }

    .delivery-hero {
        padding: 40px 0 20px;
    }

    .delivery-form-card {
        padding: 20px;
    }

    .delivery-total-price {
        font-size: 2.2rem;
    }

    .delivery-tariffs-table thead {
        display: none;
    }

    .delivery-tariffs-table,
    .delivery-tariffs-table tbody,
    .delivery-tariffs-table tr,
    .delivery-tariffs-table td {
        display: block;
        width: 100%;
    }

    .delivery-tariffs-table tr {
        margin-bottom: 15px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-sm);
        padding: 10px;
    }

    .delivery-tariffs-table td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .delivery-tariffs-table td:last-child {
        border-bottom: none;
    }

    .delivery-tariffs-table td:before {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: 600;
        color: var(--brand-gold);
    }

    .delivery-tariffs-table td:nth-of-type(1):before {
        content: "Тариф / Срок";
    }

    .delivery-tariffs-table td:nth-of-type(2):before {
        content: "Доставка до Москвы";
    }

    .delivery-tariffs-table td:nth-of-type(3):before {
        content: "Страховка";
    }

    .delivery-tariffs-table td:nth-of-type(4):before {
        content: "Оформление КНР";
    }

    .delivery-tariffs-table td:nth-of-type(5):before {
        content: "ИТОГО";
    }

    .tnved-delivery-btn {
        margin-top: 10px;
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    .tnved-row td {
        padding: 8px 10px;
    }

    .level-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}

/* Маленькие телефоны (до 575.98px) */
@media (max-width: 575.98px) {
    .header-logo-text .logo-main {
        font-size: 1rem;
    }

    .header-logo-img {
        width: 56px;
        height: 56px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-form-side {
        width: 100%;
    }

    .calc-form-card {
        padding: 16px;
    }

    .about-stat-num {
        font-size: 1.4rem;
    }

    .delivery-total-price {
        font-size: 1.8rem;
    }

    .complaint-banner {
        padding: 32px 20px;
    }

    .complaint-banner-title {
        font-size: 1.5rem;
    }

    .complaint-banner-btn {
        padding: 10px 20px;
        width: 100%;
    }

    .complaint-modal-body {
        padding: 20px 16px;
    }
}

/* ============================================================
   CUSTOM RADIO BUTTONS (METRONIC STYLE)
   ============================================================ */
.form-check-custom {
    display: flex;
    align-items: center;
    padding-left: 0;
    margin-bottom: 0;
}

.form-check-custom .form-check-input[type="radio"] {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0;
    margin-right: 0.75rem;
    margin-top: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50% !important;
    background-color: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    outline: none !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

.form-check-custom .form-check-input[type="radio"]:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.form-check-custom .form-check-input[type="radio"]:checked {
    background-color: transparent;
    border-color: var(--brand-gold, #ffc107);
}

.form-check-custom .form-check-input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: var(--brand-gold, #ffc107);
}

.form-check-custom .form-check-label {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}