/* ===== CSS RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-bg-dark: #131314;
    --color-text: rgb(19, 19, 20);
    --color-text-light: #ffffff;
    --color-text-secondary: rgb(168, 173, 180);
    --color-accent: #e23065;
    --color-accent-hover: #c92959;
    --color-card-bg: #f5f5f5;
    --color-border: rgba(0, 16, 36, 0.1);

    /* Typography */
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Layout */
    --container-width: 960px;
    --container-padding: 16px;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
}

/* ===== BASE STYLES ===== */
body {
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* ===== UTILITIES ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== CTA BUTTON ===== */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--transition-base), background-color var(--transition-base);
    border: none;
    text-decoration: none;
}

.cta-button--primary {
    background-color: #ffffff;
    color: var(--color-text);
    border: 1px solid rgba(19, 19, 20, 0.15);
}

.cta-button--primary:hover {
    transform: scale(1.03);
    background-color: #f2f2f2;
}

.cta-button--primary:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

.cta-button--accent {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border: 1px solid transparent;
}

.cta-button--accent:hover {
    background-color: var(--color-accent-hover);
}

.cta-button--accent:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Hero кнопка — на десктопе белая с бордером */
.cta-button--hero {
    background-color: #ffffff;
    color: var(--color-text);
    border: 1px solid rgba(19, 19, 20, 0.15);
    width: 100%;
    max-width: 311px;
}

/* ===== HEADER ===== */
.header {
    background-color: transparent;
    padding: 0 0 4px;
    margin-top: -20px;
}

.header__logo img {
    width: 100px;
    height: auto;
}

/* ===== HERO ===== */
.hero {
    background-color: var(--color-bg-dark);
    background-image: radial-gradient(520px 320px at 78% 6%, rgba(122, 32, 63, 0.75) 0%, rgba(19, 19, 20, 0) 65%);
    padding: 40px 0 60px;
    text-align: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
}

.hero__avatars {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid var(--color-bg-dark);
    object-fit: cover;
    margin-left: -12px;
}

.hero__avatar:first-child {
    margin-left: 0;
}

.hero__count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 58px;
    padding: 0 14px;
    background-color: var(--color-accent);
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-left: -12px;
}

.hero__title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--color-text-light);
    max-width: 600px;
}

.hero__subtitle {
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--color-text-light);
    opacity: 0.7;
}

/* ===== STATS ===== */
.stats {
    padding: 40px 0;
}

.stats__title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.stats__card {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border-radius: var(--radius-xl);
    padding: 20px 16px;
    text-align: center;
}

.stats__number {
    display: block;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: var(--spacing-xs);
}

.stats__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
    opacity: 0.7;
}

/* ===== BENEFITS ===== */
.benefits {
    padding: 40px 0;
    text-align: center;
}

.benefits__title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.benefits__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.benefits__card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    text-align: left;
}

.benefits__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.benefits__icon img {
    width: 100%;
    height: 100%;
}

.benefits__text {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* ===== DIRECTIONS ===== */
.directions {
    padding: 40px 0;
}

.directions__title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.directions__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.directions__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.directions__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: #f5f6f6;
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
}

.directions__icon img {
    width: 32px;
    height: 32px;
}

.directions__name {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* ===== REVIEWS ===== */
.reviews {
    padding: 40px 0;
}

.reviews__title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.reviews__grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.reviews__card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 20px;
}

.reviews__header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.reviews__avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.reviews__info {
    flex: 1;
    min-width: 0;
}

.reviews__name {
    display: block;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.reviews__role {
    display: block;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text-secondary);
}

.reviews__rating {
    flex-shrink: 0;
}

.reviews__rating img {
    width: 108px;
    height: 21px;
}

.reviews__text {
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-md);
}

.reviews__date {
    display: block;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text-secondary);
}

/* ===== STEPS ===== */
.steps {
    padding: 40px 0;
    text-align: center;
}

.steps__title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.steps__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.steps__item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 20px;
}

.steps__number {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--color-accent);
    flex-shrink: 0;
}

.steps__content {
    flex: 1;
}

.steps__item-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-xs);
}

.steps__item-text {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-bg);
    padding: 60px 0 40px;
}

.footer__logo {
    display: block;
    margin-bottom: var(--spacing-lg);
}

.footer__logo img {
    width: 140px;
    height: auto;
}

.footer__disclaimers {
    padding-top: var(--spacing-lg);
    border-top: 1px solid #f1f1f1;
    margin-bottom: var(--spacing-lg);
}

.footer__disclaimer {
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -0.02em;
    color: var(--color-text);
    opacity: 0.6;
    margin-bottom: var(--spacing-md);
}

.footer__disclaimer:last-child {
    margin-bottom: 0;
}

.footer__link--inline {
    text-decoration: underline;
    transition: opacity var(--transition-fast);
}

.footer__link--inline:hover {
    opacity: 0.8;
}

.footer__bottom {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 1px solid #f1f1f1;
}

.footer__copyright {
    font-size: 14px;
    letter-spacing: -0.02em;
    color: var(--color-text);
    opacity: 0.6;
}

.footer__age {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    opacity: 0.6;
    border: 1px solid currentColor;
    border-radius: var(--radius-sm);
}

/* ===== MEDIA QUERIES ===== */

/* Mobile */
@media (max-width: 767px) {
    .stats__title,
    .benefits__title,
    .directions__title,
    .reviews__title,
    .steps__title {
        text-align: left;
    }

    .footer {
        font-size: 12px;
    }

    .footer__disclaimer,
    .footer__copyright {
        font-size: 12px;
    }

    .reviews__header {
        display: grid;
        grid-template-columns: 54px 1fr;
        grid-template-areas:
            "avatar rating"
            "avatar info";
        column-gap: var(--spacing-sm);
        align-items: start;
    }

    .reviews__rating {
        grid-area: rating;
        margin: 0 0 2px 0;
    }

    .reviews__avatar {
        grid-area: avatar;
        margin-top: 4px;
        align-self: start;
    }

    .reviews__info {
        grid-area: info;
    }
}

/* Tablet */
@media (min-width: 768px) {
    :root {
        --container-padding: 24px;
    }

    .header__logo img {
        width: 128px;
    }

    /* Hero */
    .hero {
        padding: 60px 0 80px;
    }

    .hero__content {
        gap: 36px;
    }

    .hero__avatar {
        width: 77px;
        height: 77px;
    }

    .hero__count {
        min-width: 77px;
        height: 77px;
        font-size: 16px;
    }

    .hero__title {
        font-size: 44px;
    }

    .hero__subtitle {
        font-size: 17px;
    }

    /* CTA кнопка в hero на десктопе — белая с бордером */
    .hero .cta-button--primary {
        background-color: #ffffff;
        color: var(--color-text);
        border: 1px solid rgba(19, 19, 20, 0.15);
    }

    .hero .cta-button--primary:hover {
        background-color: #f2f2f2;
    }

    /* Stats */
    .stats {
        padding: 48px 0;
    }

    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
    }

    .stats__card {
        padding: 24px 16px;
    }

    .stats__number {
        font-size: 32px;
    }

    .stats__label {
        font-size: 15px;
    }

    /* Benefits */
    .benefits {
        padding: 48px 0;
    }

    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .benefits__card {
        padding: 24px;
    }

    /* Directions */
    .directions {
        padding: 48px 0;
    }

    .directions__grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--spacing-lg);
    }

    .directions__name {
        font-size: 15px;
    }

    /* Reviews */
    .reviews {
        padding: 48px 0;
    }

    .reviews__card {
        padding: 24px;
    }

    /* Steps */
    .steps {
        padding: 48px 0;
    }

    .steps__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer__logo img {
        width: 160px;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    :root {
        --container-padding: 40px;
        --container-width: 1200px;
    }

    /* Hero */
    .hero {
        padding: 51px 0 68px;
    }

    .hero__title {
        font-size: 52px;
        max-width: 800px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    /* Section titles */
    .stats__title,
    .benefits__title,
    .directions__title,
    .reviews__title,
    .steps__title {
        font-size: 30px;
    }

    /* Benefits: 2 колонки (карточки в 2 колонки по 3 ряда) */
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Directions: 5 колонок, 2 ряда */
    .directions__grid {
        grid-template-columns: repeat(5, 1fr);
        row-gap: var(--spacing-xl);
    }

    /* Reviews: 1 колонка на десктопе (как на оригинале) */
    .reviews__grid {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .reviews__card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: var(--spacing-md);
        align-items: start;
    }

    .reviews__header {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .reviews__text {
        grid-column: 1 / -1;
        margin-bottom: var(--spacing-sm);
    }

    .reviews__date {
        grid-column: 1 / -1;
    }

    /* Steps: 4 колонки */
    .steps__list {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps__item {
        flex-direction: column;
        text-align: left;
    }

    .steps__number {
        font-size: 32px;
    }

    /* Footer */
    .footer__logo img {
        width: 192px;
    }
}
