/* Главная страница: заголовок и плашки девушек */

/* Главная: содержимое по центру страницы */
main.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* Внутренняя страница со списком (например, /girls) */
main.list { text-align: center; }
main.list h1 { margin: 0 0 28px; }

h1 { font-size: clamp(26px, 5vw, 40px); margin: 0 0 10px; }
h2 {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 600;
    margin: 0 0 28px;
    color: rgba(22, 22, 29, .7);
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Общий вид стеклянных плашек */
.card,
.wide-card,
.profile {
    color: #16161D;
    text-decoration: none;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(198, 19, 243, .10), rgba(0, 118, 255, .10)),
        rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 10px 30px rgba(110, 70, 220, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover,
.wide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(110, 70, 220, .22), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.card {
    position: relative;
    flex: 1 1 280px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 24px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #C613F3, #0076FF);
    border: 3px solid rgba(255, 255, 255, .9);
    box-shadow: 0 6px 18px rgba(110, 70, 220, .3);
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.card-name { font-size: 22px; font-weight: 600; line-height: 1.25; }
.card-bot { font-size: 15px; color: rgba(22, 22, 29, .55); }

.card-btn {
    margin-top: 8px;
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #C613F3, #0076FF);
    box-shadow: 0 6px 16px rgba(110, 70, 220, .25);
}

/* Раздел «Создать ИИ девушку» */
h2.section-title {
    font-size: clamp(26px, 5vw, 40px);
    line-height: 1.2;
    color: #16161D;
    margin: 56px 0 28px;
}

.wide-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    text-align: left;
}
.wide-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}
/* Ссылка растягивается на всю плашку, кнопка лежит поверх */
.wide-info::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: 24px;
}
.wide-bot { font-size: 24px; font-weight: 600; line-height: 1.25; }
.wide-text { font-size: 15px; color: rgba(22, 22, 29, .6); }
.wide-card .card-btn { position: relative; z-index: 1; margin-top: 0; white-space: nowrap; }

@media (max-width: 640px) {
    .wide-card { flex-direction: column; align-items: center; text-align: center; padding: 24px 20px; }
}

/* Заголовки-ссылки */
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Вступление под главным заголовком */
.lead {
    max-width: 560px;
    margin: 0 auto 20px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(22, 22, 29, .75);
}

.section-text {
    max-width: 520px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(22, 22, 29, .7);
}
.text-link { color: #6B3DF5; text-decoration: none; white-space: nowrap; }
.text-link:hover { color: #C613F3; text-decoration: underline; text-underline-offset: 3px; }

/* Плашка: ссылка на профиль растягивается на всю плашку, кнопка лежит поверх */
.card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}
.card-link::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: 24px;
}
.card .card-btn { position: relative; z-index: 1; }

/* Кнопка-ссылка */
a.card-btn { display: inline-block; text-decoration: none; }
a.card-btn:hover { filter: brightness(1.08); }

/* Страница девушки */
.profile {
    max-width: 560px;
    margin: 0 auto;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.profile .avatar { width: 140px; height: 140px; font-size: 52px; }
.profile h1 { margin: 0; font-size: clamp(28px, 5vw, 36px); }
.profile-about { margin: 0; font-size: 17px; line-height: 1.65; color: rgba(22, 22, 29, .75); }

.section-text + .wide-card { margin-top: 28px; }

/* Вопросы и ответы */
.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.faq-item {
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(198, 19, 243, .08), rgba(0, 118, 255, .08)),
        rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .85);
    box-shadow: 0 6px 20px rgba(110, 70, 220, .10), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.faq-item summary {
    position: relative;
    padding: 18px 52px 18px 22px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #16161D;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: #6B3DF5;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: #6B3DF5; }
.faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(22, 22, 29, .78);
}
.faq-item p a { color: #6B3DF5; text-decoration: none; }
.faq-item p a:hover { color: #C613F3; text-decoration: underline; text-underline-offset: 3px; }
