/* Основные стили сайта */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* Контейнер */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Утилитарные классы */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Хедер */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    opacity: 0.25;
}

.header__left {
    margin-left: 12px;
}

.header__left > a {
    display: block;
}

.header__logo {
    display: block;
    height: auto;
    max-width: 100%;
}

.header__right > a {
    display: flex;
    align-items: center;
}

.image-section a {
    display: block;
}

.comment-card > a {
    flex-shrink: 0;
    display: block;
}

.footer__logo a {
    display: block;
}

.header__nav {
    display: none;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-right: 12px;
}

.header__icon {
    display: block;
    height: auto;
    width: auto;
    max-width: 24px;
    max-height: 24px;
}

/* Основная секция контента */
.main-content {
    max-width: 369px;
    width: 100%;
    margin: 32px auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.main-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 130%;
    color: var(--color-secondary);
    text-align: center;
    margin: 0;
}

.main-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: var(--color-secondary);
    text-align: left;
    margin: 0;
}

/* Первая секция: три первых параграфа — Roboto Light */
.main-content > p:nth-of-type(1),
.main-content > p:nth-of-type(2),
.main-content > p:nth-of-type(3) {
    font-family: 'Roboto Light', 'Roboto', sans-serif;
    font-weight: 300;
}

.main-content p strong {
    font-weight: 700;
}

/* Секция с изображением */
.image-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.main-image {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Заголовок преимуществ с полоской */
.advantages-title {
    font-size: 22px;
    padding-bottom: 12px;
    position: relative;
}

.advantages-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #C798FD, #482422);
}

/* Пункты преимуществ */
.advantage-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.advantage-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
}

.advantage-text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-secondary);
    text-align: left;
    margin: 0;
}

.advantage-text strong {
    font-weight: 700;
}

/* Заголовки секций h2 с полоской */
.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
    padding-bottom: 12px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #C798FD, #482422);
}

.section-title.h2-small {
    font-size: 22px;
}

.section-title.h2-large {
    font-size: 32px;
}

/* KOMMENTARE — 20px, line linear (градиент как у .section-title) */
.comments-title {
    font-size: 20px;
}

/* Секция комментариев */
.comments-section {
    width: 100%;
}

.comments-inner {
    width: 369px;
    margin: 0 auto;
    padding: 0 12px 32px;
}

/* Карточка комментария */
.comment-card {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 32px;
}

.comment-card__image {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 20px;
}

.comment-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--color-secondary);
}

.comment-card__author {
    font-family: 'Roboto Bold', 'Roboto', sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.comment-card__dot {
    width: 4px;
    height: 4px;
    background-color: #868686;
    flex-shrink: 0;
    margin-left: 25px;
    margin-right: 25px;
}

.comment-card__date {
    font-size: 16px;
    font-weight: 400;
    color: #868686;
}

.comment-card__text {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-secondary);
    line-height: 1.4;
}

/* Линия после текста: gap 22px, #ffffff 20% */
.comment-card__line {
    flex-basis: 100%;
    width: 100%;
    height: 1px;
    margin-top: 22px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* CTA после комментариев: Ihr Kommentar + Anmelden */
.comments-cta {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
}

.comments-cta__title {
    margin: 0;
    font-family: 'Roboto Bold', 'Roboto', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
}

.comments-cta__text {
    margin: 0;
    font-family: 'Roboto Bold', 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-secondary);
}

.comments-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 114px;
    height: 35px;
    margin-bottom: 22px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-secondary);
    text-decoration: none;
    background: linear-gradient(to top right, #482422, #C798FD);
    border: none;
    cursor: pointer;
    box-sizing: border-box;
}

.comments-cta__btn:hover {
    opacity: 0.9;
}

/* Линия в конце секции комментариев */
.section-end-line {
    width: 100%;
    height: 3px;
    margin-top: 0;
    background: linear-gradient(to right, #C798FD, #482422);
}

/* Футер */
.footer {
    width: 100%;
}

.footer__line {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #C798FD, #482422);
}

.footer__inner {
    width: 369px;
    margin: 0 auto;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.footer__legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.footer__legal-p {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--color-secondary);
    line-height: 1.4;
    text-align: left;
}

/* Ссылка на оффер (Zeongrow) — в контенте и в футере */
.offer-name-link,
.footer__zeongrow-link {
    font-family: 'Roboto Bold', 'Roboto', sans-serif;
    font-weight: 700;
    color: #C798FD;
    text-decoration: none;
}

.offer-name-link:hover,
.footer__zeongrow-link:hover {
    text-decoration: underline;
}

.footer__copyright {
    margin: 0;
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--color-secondary);
    text-align: center;
}

.footer__logo {
    display: flex;
    justify-content: center;
}

.footer__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
}

.footer__link {
    display: inline-block;
    position: relative;
    font-family: 'Roboto Bold', 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-secondary);
    text-decoration: none;
    margin-right: 22px;
    padding-right: 22px;
}

.footer__link::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 19px;
    max-height: 19px;
    background-color: #ffffff;
}

/* у последней из нескольких ссылок убираем линию и отступ справа */
.footer__links .footer__link:last-child:not(:only-child)::after {
    display: none;
}

.footer__links .footer__link:last-child:not(:only-child) {
    margin-right: 0;
    padding-right: 0;
}

/* Подзаголовок теста */
.test-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-secondary);
    margin: 0;
}

/* Список теста с точками */
.test-list {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    color: var(--color-secondary);
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.test-list li {
    margin-bottom: 0;
    padding-left: 8px;
}

.test-list li:last-child {
    margin-bottom: 0;
}

/* Шаги участия */
.step-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-secondary);
    margin: 0;
}

.step-title strong {
    font-weight: 700;
}

.step-text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--color-secondary);
    text-align: left;
    margin: 0;
}

.step-text strong {
    font-weight: 700;
}

/* Отступы для gap 44px - добавляем margin-top для элементов после gap 44px */
.main-content > p + h2.section-title:not(.h2-large),
.main-content > p + h2.section-title.h2-small {
    margin-top: 22px;
}

/* Убираем лишние отступы, gap работает через flex */
.main-content > .advantage-item:last-of-type {
    margin-bottom: 0;
}
