/* Berlin Sans Font */
@font-face {
    font-family: 'Berlin Sans FB';
    src: url('../fonts/BerlinSansFBCyrillic-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Base Styles - V5 White & Red Premium */
:root {
    --bg-white: #ffffff;
    --bg-alt: #f9fafb;
    --text-primary: #111827;
    --text-dim: #4b5563;
    --accent: #D40000;
    /* Premium Red */
    --accent-hover: #b00000;
    --header-bg: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 0, 0, 0.08);
    --font-main: 'Manrope', Arial, sans-serif;
    --font-headline: 'Unbounded', 'Manrope', sans-serif;
    --font-card: 'Unbounded', 'Manrope', sans-serif;
    --font-desc: 'Manrope', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-white);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    width: 100%;
    font-size: 19px;
    line-height: 1.6;
    font-weight: 400;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    transition: all 0.2s ease;
    text-decoration: none;
}

.text-red {
    color: var(--accent);
}

/* Header */
.header {
    background: var(--header-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    min-height: 72px;
}

.header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.logo {
    font-family: var(--font-headline);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
    text-transform: uppercase;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-direction: column;
    cursor: pointer;
    transition: none;
    position: relative;
    z-index: 2;
}

.mobile-toggle:active,
.mobile-toggle:hover {
    transform: none;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: none;
}

.mobile-toggle.is-open span:nth-child(1) {
    transform: none;
}

.mobile-toggle.is-open span:nth-child(2) {
    opacity: 1;
}

.mobile-toggle.is-open span:nth-child(3) {
    transform: none;
}

.mobile-menu {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.2);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-menu-inner {
    display: grid;
    gap: 12px;
}

.mobile-link {
    font-family: var(--font-desc);
    font-size: 16px;
    color: var(--text-primary);
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8f9fb;
}

.mobile-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827 0%, #E53935 100%);
    color: white;
    font-weight: 700;
}

.nav-menu a {
    color: var(--text-primary);
    font-size: 19px;
    font-weight: 600;
    opacity: 0.8;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.btn-tg {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    padding: 16px 32px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.25);
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
    transform: translateZ(0);
}

.btn-tg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-tg:hover::before {
    left: 100%;
}

.btn-tg:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.35);
}

.btn-tg:active {
    transform: translateY(-1px) scale(1.01);
}

/* Hero */
.hero {
    padding-top: 160px;
    padding-bottom: 120px;
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(212, 0, 0, 0.03) 0%, transparent 50%);
}

/* Offset anchor jump for fixed header */
section {
    scroll-margin-top: 110px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(212, 0, 0, 0.05);
    color: var(--accent);
    border: 1px solid rgba(212, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 700;
}

.hero-content {
    position: relative;
    max-width: 700px;
    /* Ограничил ширину, чтобы не выталкивать коня */
}

.hero-title {
    font-family: var(--font-headline);
    font-size: 68px;
    /* Чуть уменьшил, чтобы всё влезло */
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -1px;
    color: #111;
    text-transform: uppercase;
}

/* --- Loop Animation: Burn & Extinguish --- */
.burning-report {
    display: inline-block;
    position: relative;
    color: #111;
    /* Normal state */
    animation: report-burn-loop 6s infinite;
}

/* Spark/Fire effect overlay */
.burning-report::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.4) 0%, transparent 70%);
    filter: blur(5px);
    opacity: 0;
    z-index: -1;
    animation: fire-glow-loop 6s infinite;
}

@keyframes report-burn-loop {

    0%,
    45% {
        color: #111;
        /* Normal */
        text-shadow: none;
    }

    50%,
    65% {
        color: #E53935;
        /* Burning */
        text-shadow: 0 0 10px #FF5722, 0 -5px 20px #E64A19;
    }

    70%,
    100% {
        color: #111;
        /* Extinguished/Normal */
        text-shadow: none;
    }
}

@keyframes fire-glow-loop {

    0%,
    45% {
        opacity: 0;
    }

    50%,
    65% {
        opacity: 1;
        transform: scale(1.1);
    }

    70%,
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* --- Loop Animation: Rebirth --- */
.rebirth-text {
    display: inline-block;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;

    /* Gradient Red Text */
    background: linear-gradient(135deg, #E53935 0%, #FF8A65 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: rebirth-loop 6s infinite;
}

/* Steam/Extinguisher Fog Effect */
.rebirth-text::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    pointer-events: none;
    animation: extinguisher-fog-loop 6s infinite;
}

@keyframes rebirth-loop {

    0%,
    60% {
        /* Ash/Dimmed State before rebirth */
        filter: grayscale(1) brightness(0.5) blur(2px);
        opacity: 0.8;
        transform: scale(0.98);
    }

    68% {
        /* Fog hits - hidden */
        filter: blur(5px);
        opacity: 0.5;
    }

    75%,
    95% {
        /* Rebirth - Clean & Shiny */
        filter: none;
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 30px rgba(229, 57, 53, 0.4);
    }

    100% {
        /* Back to Ash cycle start */
        filter: grayscale(1) brightness(0.5) blur(2px);
        opacity: 0.8;
        transform: scale(0.98);
    }
}

@keyframes extinguisher-fog-loop {

    0%,
    60% {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    }

    65% {
        opacity: 0.8;
        transform: translateX(0) scale(1.2);
    }

    /* PSHHH! */
    75% {
        opacity: 0;
        transform: translateX(20%) scale(1.5);
    }

    /* Dissipate */
    100% {
        opacity: 0;
    }
}

@keyframes fire-glow {
    0% {
        filter: drop-shadow(0 0 2px rgba(229, 57, 53, 0.6)) drop-shadow(0 -3px 6px rgba(255, 138, 101, 0.4));
    }

    100% {
        filter: drop-shadow(0 0 8px rgba(229, 57, 53, 0.8)) drop-shadow(0 -6px 15px rgba(255, 138, 101, 0.6)) drop-shadow(0 -10px 25px rgba(255, 213, 79, 0.4));
    }
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-dim);
    max-width: 650px;
    margin-bottom: 56px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    position: relative;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    color: white;
    padding: 24px 56px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 14px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.25);
    overflow: hidden;
    animation: btnPulse 3.6s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.32);
    filter: brightness(1.05);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -40%;
    width: 180%;
    height: 180%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.6s ease;
}

.btn-primary:hover::after {
    opacity: 1;
    transform: translateY(30%);
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 12px 28px rgba(17, 24, 39, 0.22);
    }

    50% {
        box-shadow: 0 16px 36px rgba(229, 57, 53, 0.28);
    }

    100% {
        box-shadow: 0 12px 28px rgba(17, 24, 39, 0.22);
    }
}

.btn-secondary {
    position: relative;
    background: #ffffff;
    border: 2px solid #111827;
    color: var(--text-primary);
    padding: 24px 56px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 14px;
    letter-spacing: 0.02em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.12);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: #111827;
    color: #ffffff;
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.22);
}

.hero-visual {
    position: relative;
    border-radius: 20px;
}

.hero-img {
    width: 100%;
    border-radius: 20px;
}

/* Ticker */
.ticker {
    background: var(--accent);
    padding: 16px 0;
    overflow: hidden;
    color: white;
}

.ticker-wrap {
    display: flex;
    white-space: nowrap;
    animation: tickerLoop 40s linear infinite;
    gap: 80px;
}

.ticker-item {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@keyframes tickerLoop {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Sections General */
section {
    padding: 100px 0;
}

/* About Section */
.about {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.about-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827 0%, #E53935 100%);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.2);
    margin-bottom: 16px;
}

.about-icon svg {
    width: 28px;
    height: 28px;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.12);
}

.about-number {
    font-family: var(--font-headline);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #111827;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.about-card h3 {
    font-family: var(--font-card);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.about-card p {
    font-family: var(--font-desc);
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
}

.section-head {
    margin-bottom: 64px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: var(--font-card);
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    /* Increased spacing to prevent letters from sticking */
    color: var(--text-primary);
    text-transform: uppercase;
}

.section-desc {
    font-family: var(--font-desc);
    color: var(--text-dim);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0.75;
    letter-spacing: -0.01em;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-alt);
    padding: 50px;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.service-card:hover {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.card-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    display: block;
    opacity: 0.8;
}

.service-card h3 {
    font-size: 26px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-dim);
    font-size: 17px;
}

/* Modern Services Grid with Chaotic Typography */
.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
    /* Increased row gap to 50px to fix overlap feel */
    max-width: 1240px;
    margin: 0 auto;
}

.service-card-modern {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(229, 57, 53, 0.12);
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(229, 57, 53, 0.18);
}

.card-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: var(--font-headline);
    font-size: 70px;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.15);
    z-index: 1;
    line-height: 0.9;
}

.card-header-modern {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    padding: 40px 40px 60px 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.card-header-modern::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 50px;
    background: white;
    border-radius: 50% 50% 0 0;
    transform: scaleX(1.1);
}

.header-content-modern {
    position: relative;
    z-index: 2;
}

.header-content-modern h3 {
    font-family: var(--font-card);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.03em;
    /* Убрал тесноту в карточках */
    line-height: 1.05;
}

.header-content-modern p {
    font-family: var(--font-desc);
    font-size: 15px;
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.icon-badge-modern {
    position: absolute;
    bottom: -25px;
    right: 40px;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    color: #E53935;
    z-index: 3;
}

.icon-badge-modern .material-icons {
    font-size: 36px;
}

.card-body-modern {
    padding: 50px 40px 40px 40px;
    position: relative;
}

.feature-list-modern {
    list-style: none;
}

.feature-item-modern {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
}

.feature-item-modern:last-child {
    border-bottom: none;
}

.feature-item-modern:hover {
    transform: translateX(5px);
}

.feature-icon-modern {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #E53935;
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item-modern:hover .feature-icon-modern {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    color: white;
}

.feature-icon-modern .material-icons {
    font-size: 22px;
}

.feature-text-modern {
    display: flex;
    flex-direction: column;
}

.feature-title-modern {
    font-family: var(--font-desc);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.feature-desc-modern {
    font-family: var(--font-desc);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    opacity: 0.8;
}

.chaotic-bg-text {
    position: absolute;
    bottom: 15px;
    right: -10px;
    font-family: var(--font-headline);
    font-size: 60px;
    font-weight: 400;
    font-style: italic;
    color: #E53935;
    opacity: 0.04;
    pointer-events: none;
    transform: rotate(8deg);
}

/* Order Box - Premium Redesign */
.order-box {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    background: white;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    overflow: hidden;
    border: none;
    max-width: 1200px;
    margin: 0 auto;
}

.order-image {
    position: relative;
    overflow: hidden;
}

.order-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.order-form-side {
    padding: 70px 80px;
    background: white;
    position: relative;
    overflow: hidden;
}

.order-form-side::after {
    content: '';
    position: absolute;
    top: -60%;
    right: -40%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.06), transparent 65%);
    pointer-events: none;
}

.form-title {
    font-family: var(--font-card);
    font-size: 42px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    /* Increased spacing */
    text-transform: uppercase;
}

.form-desc {
    font-family: var(--font-desc);
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 48px;
    opacity: 0.7;
}

.v5-form {
    display: grid;
    gap: 24px;
}

.form-group {
    margin-bottom: 0;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.form-group:focus-within {
    transform: translateY(-2px);
}

.form-group label {
    font-family: var(--font-desc);
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: #f8f9fb;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: var(--font-desc);
    font-size: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

/* Custom Select */
.custom-select {
    position: relative;
}

.native-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    height: 0;
    width: 0;
}

.select-display {
    width: 100%;
    background: #f8f9fb;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px 52px 16px 20px;
    color: var(--text-primary);
    font-family: var(--font-desc);
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.04);
}

.select-display::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #111827;
    border-bottom: 2px solid #111827;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.custom-select:hover .select-display {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(17, 24, 39, 0.08);
}

.custom-select.open .select-display {
    background: #ffffff;
    border-color: #E53935;
    box-shadow: 0 16px 36px rgba(229, 57, 53, 0.12);
}

.select-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
    box-shadow: 0 24px 50px rgba(17, 24, 39, 0.18);
    padding: 8px;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.custom-select.open .select-list {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.select-option {
    width: 100%;
    background: transparent;
    border: none;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    font-family: var(--font-desc);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.select-option:hover {
    background: rgba(17, 24, 39, 0.06);
    transform: translateX(2px);
}

.select-option.is-selected {
    background: rgba(229, 57, 53, 0.08);
    color: #111827;
    font-weight: 600;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: white;
    border-color: #E53935;
    box-shadow: 0 16px 36px rgba(229, 57, 53, 0.12);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #111827 0%, #E53935 100%);
    color: white;
    border: none;
    padding: 20px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.25);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.3);
    filter: brightness(1.05);
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.6s ease;
}

.btn-submit:hover::after {
    opacity: 1;
    transform: translateY(30%);
}

.form-note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.4;
    opacity: 0.7;
}

.form-hidden {
    opacity: 0;
    pointer-events: none;
}

/* FAQ Section - Card Based Design */
.faq-section {
    background: #fdfdfd;
    padding: 100px 0;
}

.faq-title-block {
    text-align: center;
    margin-bottom: 50px;
}

.faq-title-block h2 {
    font-family: var(--font-headline);
    font-size: 48px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.faq-title-block h2::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 60px;
    height: 3px;
    background: #E53935;
    bottom: -20px;
    margin-left: -30px;
    border-radius: 2px;
}

.faq-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.faq-cards {
    background: white;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.faq-card {
    border-bottom: 1px dashed #e0e8f5;
}

.faq-card:last-child {
    border-bottom: none;
}

.faq-card-header {
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-card-header:hover {
    background: rgba(229, 57, 53, 0.05);
    padding-left: 12px;
}

.faq-question {
    margin: 0;
    padding: 22px 30px;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #3B566E;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.faq-card-body {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-out;
    opacity: 0;
}

.faq-card-body p {
    padding: 0 30px 24px 72px;
    font-size: 15px;
    color: #6F8BA4;
    line-height: 1.7;
    letter-spacing: 0.3px;
    margin: 0;
}

.faq-card.active .faq-card-body {
    max-height: 300px;
    opacity: 1;
    border-top: 1px solid #F3F8FF;
    padding-top: 20px;
}

.faq-card.active .faq-card-header {
    background: rgba(229, 57, 53, 0.03);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Success State */
.success-msg {
    display: none;
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: white;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 24px;
}

.success-msg h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.success-msg p {
    color: var(--text-dim);
}

/* Mobile */
@media (max-width: 991px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 12px 0 !important;
    }

    .logo {
        font-size: 24px;
        position: relative;
        z-index: 1002;
    }

    .nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        padding-right: 0 !important;
    }

    .mobile-nav {
        display: flex !important;
        position: relative;
        min-height: auto;
    }

    .mobile-nav .logo {
        line-height: normal;
    }

    .mobile-toggle {
        display: inline-flex !important;
        position: relative !important;
        right: auto !important;
        top: auto !important;
        z-index: 1001;
        margin-left: auto;
    }

    .btn-tg {
        padding: 12px 18px;
        font-size: 14px;
        border-radius: 999px;
    }

    .btn-tg i {
        font-size: 20px;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        padding: 18px 40px;
        font-size: 18px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .order-box {
        grid-template-columns: 1fr;
    }

    .order-image {
        height: 250px;
    }

    .order-form-side {
        padding: 40px;
    }

    .nav-menu {
        display: none;
    }

    .nav-right {
        display: none !important;
    }

    /* Duplicate rules removed and cleaned up above */

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Fix Modern Services Grid on Mobile */
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 10px;
    }

    .service-card-modern {
        max-width: 400px;
        /* Center cards nicely if single column */
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Order Form Mobile Styles */
    .order-box {
        grid-template-columns: 1fr;
        border-radius: 20px;
        margin: 0 10px;
    }


    .order-image {
        height: 200px;
        border-radius: 20px 20px 0 0;
    }

    .order-image img {
        border-radius: 20px 20px 0 0;
    }

    .order-form-side {
        padding: 30px 24px;
    }

    .form-title {
        font-size: 28px;
        letter-spacing: 0.02em;
        margin-bottom: 8px;
    }

    .form-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 15px;
        border-radius: 10px;
    }

    .form-group select {
        padding-right: 46px;
        background-position:
            calc(100% - 20px) 50%,
            calc(100% - 14px) 50%,
            calc(100% - 40px) 50%;
    }

    .btn-submit {
        padding: 16px;
        font-size: 16px;
        border-radius: 10px;
    }

    .section-title {
        font-size: 36px;
        letter-spacing: 0.03em;
    }

    .section-desc {
        font-size: 16px;
    }
}