:root {
    --font-heading: 'Manrope', sans-serif;
    --font-main: 'Inter', sans-serif;

    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-dark-block: #21262a;
    --bg-black: #000000;

    --text-main: #1a1a1a;
    --text-muted: #333333;
    --text-white: #ffffff;

    --color-accent: #f55024;
    --color-accent-light: #f77350;

    --header-glass: rgba(255, 255, 255, 0.85);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 24px;
    display: inline-block;
    vertical-align: middle;
    user-select: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bg-secondary);
    transition: background-color 0.3s ease;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto; 
    align-items: center;
    gap: 20px;
}

.header__logo-img {
    height: 45px;
    display: block;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 32px;
    justify-content: center;
}

.nav__link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--color-accent);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header__phone {
    font-family: var(--font-heading);
    text-decoration: none;
    padding: 10px 24px;
    border: 2px solid var(--text-main);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.header__phone:hover {
    background-color: var(--bg-black);
    color: var(--text-white);
    border-color: var(--bg-black);
}

.header__menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 8px;
    line-height: 0;
}

.header--menu-open .header__menu-btn .material-symbols-outlined {
    transform: rotate(90deg);
    color: var(--color-accent);
}

.header__mobile-menu {
    display: block;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    background-color: var(--bg-primary);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s;
    border-top: 0px solid var(--bg-secondary);
}

.header--menu-open .header__mobile-menu {
    max-height: 100vh;
    opacity: 1;
    visibility: visible;
    padding-bottom: 60px;
    border-top-width: 1px;
}

.mobile-nav__list {
    list-style: none;
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.mobile-nav__link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 24px;
    font-family: var(--font-heading);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu__phone {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.header--menu-open .mobile-nav__link,
.header--menu-open .mobile-menu__phone {
    opacity: 1;
    transform: translateY(0);
}

.header--menu-open li:nth-child(1) .mobile-nav__link { transition-delay: 0.1s; }
.header--menu-open li:nth-child(2) .mobile-nav__link { transition-delay: 0.2s; }
.header--menu-open li:nth-child(3) .mobile-nav__link { transition-delay: 0.3s; }
.header--menu-open li:nth-child(4) .mobile-nav__link { transition-delay: 0.4s; }
.header--menu-open .mobile-menu__phone { transition-delay: 0.5s; }

@media (max-width: 992px) {
    .header__nav, 
    .header__actions .header__phone {
        display: none;
    }

    .header__menu-btn {
        display: flex;
    }

    .header__container {
        grid-template-columns: 1fr auto;
        padding: 10px 20px;
    }
    
    .header__logo-img {
        height: 38px;
    }
}

/* --- Hero --- */
.hero {
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.hero__title {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 40px;
}

.hero__btns {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn--primary {
    background-color: var(--color-accent);
    color: var(--text-white);
}

.btn--primary:hover {
    background-color: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 80, 36, 0.2);
}

.btn--secondary {
    background-color: transparent;
    border: 1px solid #d1d1d1;
    color: var(--text-main);
}

.btn--secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-main);
    transform: translateY(-3px);
}

.hero__visual {
    perspective: 1000px;
}

.hero__image-wrapper {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    animation: floating 6s ease-in-out infinite;
}

.hero__visual:hover .hero__image-wrapper {
    transform: rotateX(5deg) rotateY(-10deg);
}

.hero__main-img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.hero__badge {
    position: absolute;
    top: -20px;
    right: -20px;
    background: var(--bg-black);
    color: var(--text-white);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transform: rotate(15deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.hero__glass-card {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    bottom: 40px;
    left: -40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 24px;
    border-radius: 24px;
    max-width: 280px;
    min-height: 80px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.hero__slogan {
    font-size: 18px;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.4;
}

.hero__slogan strong {
    color: var(--color-accent);
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 992px) {
    .hero {
        padding: 120px 20px 60px;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero__title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero__subtitle {
        font-size: 16px;
        margin: 0 auto 32px;
    }

    .hero__btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .hero__visual {
        max-width: 85%;
        margin: 0 auto;
    }

    .hero__main-img {
        border-radius: 24px;
    }

    .hero__glass-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        padding: 16px;
        width: 90%;
        max-width: 240px;
    }

    .hero__badge {
        width: 90px;
        height: 90px;
        font-size: 11px;
        top: -10px;
        right: -10px;
    }
}

.hero__content > * {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero__title { animation-delay: 0.2s; }
.hero__subtitle { animation-delay: 0.4s; }
.hero__btns { animation-delay: 0.6s; }

.hero__visual {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: heroRevealVisual 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroRevealVisual {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Common Sections --- */
.section-secondary {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.section-primary {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.section-dark {
    padding: 100px 0;
    background-color: var(--bg-dark-block);
}

.section-header {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
    color: var(--text-main);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 460px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
}

/* --- Features --- */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 24px;
    border: 2px dashed #d1d1d1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-style: solid;
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(245, 80, 36, 0.12);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-card__icon {
    background-color: var(--color-accent);
    color: var(--bg-primary);
    transform: scale(1.1) rotate(-5deg);
}

.feature-card__title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-card__text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .features__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .features__grid { grid-template-columns: 1fr; }
}

/* --- Workflow --- */
.workflow__grid {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.workflow__grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 60px;
    right: 60px;
    height: 1px;
    background: #e0e0e0;
}

.work-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
    cursor: pointer;
}

.work-step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.work-step__circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--text-main);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.work-step__circle .material-symbols-outlined {
    font-size: 44px;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.work-step__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.work-step.is-highlight .work-step__circle {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.work-step.is-highlight .material-symbols-outlined {
    color: var(--bg-primary);
    font-variation-settings: 'FILL' 1;
}

.work-step:hover .work-step__circle {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(245, 80, 36, 0.2);
}

.work-step:hover .material-symbols-outlined {
    color: var(--bg-primary);
    font-variation-settings: 'FILL' 1;
}

.work-step:hover .work-step__title {
    color: var(--color-accent);
}

@media (max-width: 992px) {
    .workflow__grid { flex-direction: column; gap: 50px; }
    .workflow__grid::before { display: none; }
}

/* --- Services --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-primary);
    border-radius: 24px;
    border: 1px solid #eee;
    position: relative;
    display: flex;
    flex-direction: column;
    grid-column: span 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.4s ease;
    overflow: hidden;
}

.service-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 992px) {
    .service-card:nth-child(4),
    .service-card:nth-child(5) {
        grid-column: span 3;
    }
}

@media (max-width: 990px) {
    .services__grid { display: flex; flex-direction: column; }
    .service-card { width: 100%; }
}

.service-card__image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--bg-black);
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card__bookmark {
    position: absolute;
    top: 0;
    right: 25px;
    width: 26px;
    height: 36px;
    background-color: var(--color-accent);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    z-index: 15;
    transition: height 0.3s ease;
}

.service-card__extra {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
}

.service-card__extra p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.service-card__content {
    padding: 24px;
    background: var(--bg-primary);
    flex-grow: 1;
}

.service-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.service-card__description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.service-card:hover .service-card__extra {
    transform: translateY(0);
}

.service-card:hover .service-card__image img {
    transform: scale(1.1);
}

.service-card:hover .service-card__bookmark {
    height: 48px;
}

.service-card:hover .service-card__title {
    color: var(--color-accent);
}

/* --- Order Steps --- */
.order-steps__content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.step-item__icon {
    width: 64px;
    height: 64px;
    background-color: #fff5f2;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-item__icon span { color: var(--color-accent); font-size: 30px; }
.step-item__text h4 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.step-item__text p { font-size: 14px; color: #666; }

.order-steps__visual {
    background: #f8f8f8;
    border-radius: 40px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

/* Truck Animation */
.truck-scene {
    position: relative;
    width: 100%;
    height: 100%;
}

.truck {
    position: absolute;
    bottom: 120px;
    left: -450px;
    width: 275px;
    display: flex;
    align-items: flex-end;
    z-index: 10;
    animation: truckCycle 8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.truck__body {
    width: 210px;
    height: 110px;
    background: var(--color-accent);
    border-radius: 12px 12px 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.truck__logo-wrap {
    background: var(--bg-dark-block);
    padding: 10px;
    border-radius: 8px;
    width: 70%;
    display: flex;
    justify-content: center;
}

.truck__img {
    width: 100%;
    height: auto;
    display: block;
}

.truck__cabin {
    width: 65px;
    height: 70px;
    background: var(--bg-dark-block);
    border-radius: 0 15px 8px 0;
    position: relative;
    z-index: 10;
}

.truck__window {
    position: absolute;
    top: 10px; left: 12px;
    width: 35px; height: 28px;
    background: #a5d8ff;
    border-radius: 4px;
}

.wheel {
    position: absolute;
    bottom: -18px;
    width: 38px;
    height: 38px;
    background: var(--bg-black);
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 11;
    animation: wheelRotate 8s infinite linear;
}

.wheel--back { left: 40px; } 
.wheel--front { right: 13px; }

.road-line {
    position: absolute;
    bottom: 102px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.order-box {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #e3c4a8;
    border: 2px solid #c9a68a;
    bottom: 155px;
    left: -50px;
    z-index: 5;
    opacity: 0;
}

@keyframes truckCycle {
    0% { left: -450px; }
    20%, 75% { left: 50%; transform: translateX(-50%); }
    90%, 100% { left: 130%; }
}

@keyframes wheelRotate {
    0% { transform: rotate(0); }
    20% { transform: rotate(720deg); }
    75% { transform: rotate(720deg); }
    90%, 100% { transform: rotate(1440deg); }
}

.b1 { animation: boxLoad 8s infinite 2.2s; }
.b2 { animation: boxLoad 8s infinite 3.0s; }
.b3 { animation: boxLoad 8s infinite 3.8s; }

@keyframes boxLoad {
    0% { 
        opacity: 0; 
        left: 10%; 
        transform: scale(0.6);
    }
    5% { 
        opacity: 1; 
    }
    25% { 
        opacity: 1;
        left: 50%; 
        transform: scale(1) translateX(-110px); 
    }
    30%, 100% { 
        opacity: 0;
        left: 50%;
        transform: scale(0.5) translateX(-40px) translateY(100px);
    }
}

@media (max-width: 992px) {
    .order-steps__content { grid-template-columns: 1fr; }
    .order-steps__visual { height: 350px; }
}

/* Scroll Animations */
.js-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-scroll.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.order-steps__list .step-item:nth-child(1) { transition-delay: 0.1s; }
.order-steps__list .step-item:nth-child(2) { transition-delay: 0.2s; }
.order-steps__list .step-item:nth-child(3) { transition-delay: 0.3s; }
.order-steps__list .step-item:nth-child(4) { transition-delay: 0.4s; }
.order-steps__list .step-item:nth-child(5) { transition-delay: 0.5s; }

.order-steps__visual.scrolled {
    transition-delay: 0.6s;
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 20px;
}

.bento-item {
    background: var(--bg-primary);
    border-radius: 32px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #eee;
    transition: var(--transition);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.bento-item--main {
    grid-column: span 2; 
    grid-row: span 2;
    background: var(--bg-dark-block);
    color: var(--bg-primary);
    justify-content: center;
    align-items: center;
}

.bento-item--w2 {
    grid-column: span 2;
}

.bento-big-text {
    font-size: 120px;
    font-family: var(--font-main);
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
    margin: 16px 0 32px;
}

.bento-accent-text {
    font-size: 32px;
    font-family: var(--text-main);
    font-weight: 800;
    color: var(--color-accent);
}

.bento-item h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.bento-item p {
    font-size: 15px;
    color: inherit;
    opacity: 0.8;
}

.bento-item span.material-symbols-outlined {
    font-size: 44px;
    color: var(--color-accent);
    margin-bottom: auto;
}

.bento-item.js-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item.js-scroll.scrolled {
    opacity: 1;
    transform: translateY(0);
}

.bento-item:nth-child(n) { transition-delay: calc(0.1s * var(--n)); }

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-item--main, .bento-item--w2 {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-big-text { font-size: 70px; }
}

/* --- Reviews --- */
.white-title {
    color: var(--bg-primary);
}

.reviews__list {
    width: 100%;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-card {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 20px 30px;
    cursor: pointer;
    border: 1px solid #eee;
    transition: var(--transition);
    overflow: hidden;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-card__user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-card__avatar {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #eee;
}

.review-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-card__info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.review-card__info span {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.7;
}

.review-card__trigger span {
    transition: transform 0.4s ease;
    color: var(--color-accent);
    font-size: 30px;
}

.review-card__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.review-card__content {
    overflow: hidden;
    padding-top: 0;
    transition: padding 0.4s ease;
}

.review-card__content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    padding-top: 20px;
}

.review-card.active {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.review-card.active .review-card__body {
    grid-template-rows: 1fr;
}

.review-card.active .review-card__trigger span {
    transform: rotate(180deg);
}

/* --- Partners --- */
.partners {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.partners__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.partner-card {
    background: var(--bg-primary);
    width: 282px;
    height: 178px;
    border: 1px solid #eee;
    border-radius: 24px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    transition: var(--transition);
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border-color: var(--color-accent);
}

.partner-card__logo {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card__logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.partner-card:hover .partner-card__logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.partners__grid .partner-card:nth-child(n) { transition-delay: calc(0.1s * var(--n)); }

@media (max-width: 992px) {
    .partners__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .partners__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.logos-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
    padding: 20px 0;
}

.logos-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
}

.logos-content {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
}

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.track-direct {
    animation: scrollRight 80s linear infinite;
}

.track-reverse {
    animation: scrollLeft 80s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

/* --- CTA Section --- */
.cta-container {
    background: var(--bg-dark-block);
    border-radius: 48px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.4;
    animation: float 10s infinite alternate ease-in-out;
}

.cta-decor--1 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    top: -100px;
    right: -50px;
}

.cta-decor--2 {
    width: 200px;
    height: 200px;
    background: var(--color-accent-light);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    color: var(--bg-primary);
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.cta-subtitle {
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 18px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    flex: 1;
    max-width: 300px;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--bg-primary);
}

.btn--primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 80, 36, 0.3);
}

.btn--outline {
    border: 2px solid rgba(255,255,255,0.2);
    color: #fff;
}

.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--bg-primary);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .cta-title { font-size: 32px; }
    .cta-buttons { flex-direction: column; }
}

.cta-icons {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    color: var(--bg-primary);
    opacity: 0.2;
    font-size: 48px;
    animation: floatingIcons 6s infinite ease-in-out;
}

.i-1 { top: 20%; left: 10%; animation-delay: 0s; }
.i-2 { bottom: 20%; left: 15%; animation-delay: 1.5s; }
.i-3 { top: 15%; right: 12%; animation-delay: 3s; }
.i-4 { bottom: 25%; right: 8%; animation-delay: 4.5s; }

@keyframes floatingIcons {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 100%;
    }
    .cta-title { font-size: 32px; }
    .floating-icon { display: none; }
}

/* --- Footer --- */
.footer {
    color: var(--bg-primary);
    padding: 80px 0 30px;
    border-radius: 48px 48px 0 0;
}

.footer__top {
    display: grid;
    justify-content: space-between;
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
    height: 40px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer__description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--bg-primary);
}

.footer__contacts .contact-item {
    display: block;
    color: var(--bg-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: var(--color-accent);
}

.address-item {
    display: block;
    color: var(--bg-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.phone__link {
    display: flex;
    gap: 8px;
}

.contact-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.footer__svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer__legal a {
    color: inherit;
    text-decoration: none;
}

@media (max-width: 992px) {
    .footer__top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer__top {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer__socials {
        justify-content: center;
    }
    .footer__bottom {
        flex-direction: column;
        gap: 15px;
    }
    .footer__contacts .phone__link {
        justify-content: center;
    }
}

/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 420px) {
    .modal {
        padding: 40px 28px;
    }
}

.modal-overlay.is-open .modal {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.modal__close:hover {
    color: var(--color-accent);
}

.modal__title {
    font-size: 28px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group:has([required])::after {
    content: "*";
    position: absolute;
    top: 16px; 
    left: 70px;
    color: var(--color-accent);
    font-size: 18px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.form-group:has(input[placeholder="Имя"])::after { left: 58px; }
.form-group:has(input[placeholder="Эл. почта"])::after { left: 100px; }
.form-group:has(input[placeholder="Телефон"])::after { left: 92px; }

.form-group:has(.form-input:focus)::after,
.form-group:has(.form-input:not(:placeholder-shown))::after,
.form-group:has(.form-textarea:focus)::after,
.form-group:has(.form-textarea:not(:placeholder-shown))::after {
    opacity: 0;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--color-accent);
}

.form-textarea {
    resize: none;
    min-height: 120px;
    overflow-y: auto;
}

.input-wrapper {
    position: relative;
}

.input-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 20px;
    display: none;
    z-index: 5;
    background: #fff;
    padding-left: 5px;
}

.input-clear:hover {
    color: var(--color-accent);
}

.modal__btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    background-color: var(--color-accent);
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal__btn:hover {
    background-color: var(--color-accent-light);
}

.modal__btn:disabled {
    background-color: var(--color-accent);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.modal__btn:not(:disabled) {
    background-color: var(--color-accent);
    cursor: pointer;
}

@media (max-width: 600px) {
    .footer__contacts .phone__link {
        justify-content: center;
    }
}




/* Контейнер для рядов */
.logos-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
    padding: 20px 0;
}

.logos-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
}

.logos-content {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px;
}

.logos-content img {
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.logos-content img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.track-direct {
    animation: scrollRight 80s linear infinite;
}

.track-reverse {
    animation: scrollLeft 80s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}