:root {
    --color-bg: #09090b;
    --color-surface: #18181b;
    --color-surface-hover: #27272a;
    --color-accent: #d9f950;
    --color-accent-hover: #bde038;
    --color-text-main: #ffffff;
    --color-text-muted: #a1a1aa;
    --color-border: #333333;
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    
    --transition: all 0.3s ease;
    
    /* Responsive typography base */
    --fz-base: 16px;
}

html {
    font-size: var(--fz-base);
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= REUSABLE COMPONENTS ================= */
.container {
    width: 90%;
    max-width: 75rem;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn--primary {
    background-color: var(--color-accent);
    color: #000;
}

.btn--primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(217, 249, 80, 0.2);
}

.btn--outline {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn--outline:hover {
    border-color: var(--color-text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background-color: rgba(217, 249, 80, 0.1);
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 40rem;
    margin: 0 auto;
}

/* ================= HEADER ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(9, 9, 11, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

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

.header__logo {
    display: block;
    width: 235px;
    font-weight: 700;
    gap: 0.5rem;
}

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

.header__nav-list {
    display: flex;
    gap: 2rem;
}

.header__nav-link {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.header__nav-link:hover {
    color: var(--color-text-main);
}

/* ================= HERO ================= */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    text-align: center;
    position: relative;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 45rem;
    margin: 0 auto 2.5rem;
}

.pt-5 {
    padding: 5rem 0 0 0;
}

/* ================= BENEFITS ================= */

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-surface);
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 1rem 2rem rgba(0,0,0,0.5);
}

.card__icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(217, 249, 80, 0.1);
    color: var(--color-accent);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-weight: bold;
    font-size: 1.5rem;
}

.card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card__desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ================= HOW ================= */

.step {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step__content {
    flex: 1;
}

.step__visual {
    flex: 1;
    background-color: var(--color-surface);
    aspect-ratio: 1;
    border-radius: 2rem;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step__img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 2rem;
}

.step__number {
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.step__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step__desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ================= CASES (PORTFOLIO) ================= */
.cases {
    padding: 5rem 0;
}

.cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.case-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.4);
}

.case-card__visual {
    aspect-ratio: 16 / 9;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Если захотите вставить реальную картинку вместо смайлика, добавьте img с классом .case-card__img */
.case-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card__placeholder {
    font-size: 3rem;
    opacity: 0.6;
}

.case-card__content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.case-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.case-card__tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(217, 249, 80, 0.1);
    color: var(--color-accent);
    border-radius: 2rem;
    font-weight: 600;
}

.case-card__title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.case-card__desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.case-card__metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.metric__label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

.cases__action {
    text-align: center;
    margin-top: 4rem;
}

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

.faq__list {
    max-width: 45rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq__item {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.faq__question {
    padding: 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question:hover {
    background-color: var(--color-surface-hover);
}

.faq__icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: rgba(217, 249, 80, 0.1);
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.faq__item[open] .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* ================= CTA BOTTOM ================= */
.cta-bottom {
    padding: 5rem 0;
}

.cta-bottom__inner {
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
    border: 1px solid var(--color-border);
    border-radius: 2rem;
    padding: 5rem 2rem;
    text-align: center;
}

/* ================= FOOTER ================= */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__col-title {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.footer__link {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .header__nav-list, .header__actions {
        display: none; /* In a real project, add a hamburger menu here */
    }

    .step, .step:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}