/**
 * public.css — дополнительные стили публичных страниц и wizard-записи.
 * Дополняет app.css (дизайн-система SPEC раздел 2). Подключается только
 * в публичных шаблонах после app.css.
 */

/* --------------------------------------------------------------------------
   Hero: логотип в круглой рамке с золотой линией
   -------------------------------------------------------------------------- */
.hero-logo {
    width: min(380px, 78vw);
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 50%;
    padding: 28px;
    background: var(--ivory);
    box-shadow:
        0 24px 60px rgba(122, 30, 46, .14),
        0 0 0 1.5px var(--champagne),
        0 0 0 12px rgba(201, 169, 106, .14);
}

/* --------------------------------------------------------------------------
   Секции
   -------------------------------------------------------------------------- */
.section-alt { background: var(--ivory); }

.link-accent { color: var(--burgundy); font-weight: 700; }
.link-accent:hover { color: var(--rose); }

/* Фото-плейсхолдер (градиент rose/champagne + иконка) */
.photo-placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(122, 30, 46, .55);
    background:
        radial-gradient(ellipse 70% 60% at 30% 20%, rgba(233, 210, 201, .9), transparent 70%),
        linear-gradient(135deg, rgba(166, 77, 94, .28), rgba(201, 169, 106, .34));
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.photo-placeholder svg { width: 44px; height: 44px; }
.photo-placeholder-tall { aspect-ratio: 3 / 4; border-radius: var(--radius); }

/* --------------------------------------------------------------------------
   Бордовая полоса «Почему выбирают Айчүрөк»
   -------------------------------------------------------------------------- */
.stats-band {
    background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy) 55%, #9C2B40);
    color: #F7EFE8;
    padding: 46px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.stat-num {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 700;
    color: var(--champagne);
    line-height: 1.1;
}
.stat-caption { font-size: 13.5px; opacity: .82; margin-top: 6px; }

/* --------------------------------------------------------------------------
   CTA-полоса
   -------------------------------------------------------------------------- */
.cta-band {
    background:
        radial-gradient(ellipse 50% 70% at 85% 30%, rgba(201, 169, 106, .35), transparent 70%),
        linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
    color: #F7EFE8;
    padding: 64px 0;
}
.cta-title { color: #FFFDF9; margin-bottom: 12px; }
.cta-text { color: rgba(247, 239, 232, .8); max-width: 480px; margin: 0 auto 26px; }
.btn-light {
    background: var(--ivory);
    color: var(--burgundy);
    border: 0;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
}
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }

.cta-inline p { color: var(--text-soft); margin-bottom: 14px; }

/* --------------------------------------------------------------------------
   Отзывы
   -------------------------------------------------------------------------- */
.review-card { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 12px; }
.review-stars { color: var(--champagne); font-size: 17px; letter-spacing: 2px; }
.review-text { color: var(--text-soft); line-height: 1.65; margin: 0; font-style: italic; }
.review-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.review-author { font-weight: 800; color: var(--brown); }
.review-service { font-size: 12.5px; color: var(--text-faint); }

.review-spotlight { max-width: 680px; margin: 0 auto; text-align: center; padding: 40px 36px; }
.review-spotlight .review-text { font-size: 18px; }
.review-spotlight .review-author { margin-top: 16px; font-size: 15px; }

.rating-stars { color: var(--champagne); font-weight: 800; }

/* --------------------------------------------------------------------------
   Мастера
   -------------------------------------------------------------------------- */
.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
    color: var(--burgundy);
    background:
        radial-gradient(circle at 30% 25%, rgba(233, 210, 201, .95), rgba(201, 169, 106, .35));
}
.avatar-sm {
    width: 44px;
    height: 44px;
    margin: 0;
    flex: none;
    font-size: 18px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--champagne);
}
.master-services {
    list-style: none;
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--line-soft);
    font-size: 13px;
    color: var(--text-soft);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.master-services li::before { content: '— '; color: var(--champagne); }

/* --------------------------------------------------------------------------
   Галерея (Instagram-сетка)
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.gallery-ph {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(122, 30, 46, .5);
}
.gallery-ph svg { width: 52px; height: 52px; }
.gallery-item-0 .gallery-ph { background: linear-gradient(135deg, rgba(166, 77, 94, .30), rgba(201, 169, 106, .30)); }
.gallery-item-1 .gallery-ph { background: linear-gradient(160deg, rgba(233, 210, 201, .9), rgba(166, 77, 94, .22)); }
.gallery-item-2 .gallery-ph { background: linear-gradient(120deg, rgba(201, 169, 106, .34), rgba(239, 230, 218, .9)); }
.gallery-item-3 .gallery-ph { background: linear-gradient(150deg, rgba(122, 30, 46, .18), rgba(233, 210, 201, .85)); }
.gallery-item figcaption {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brown);
    background: var(--ivory);
}

/* --------------------------------------------------------------------------
   О салоне / Контакты
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 40px;
    align-items: center;
}
.about-text p { color: var(--text-soft); line-height: 1.7; }
.about-list { margin: 18px 0 0; padding: 0; list-style: none; }
.about-list li {
    padding: 8px 0 8px 26px;
    position: relative;
    color: var(--brown);
    font-weight: 600;
}
.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 14px;
    height: 2px;
    background: var(--champagne);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.contact-card { text-align: center; padding: 28px 18px; }
.contact-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--beige);
    color: var(--burgundy);
}
.contact-icon svg { width: 24px; height: 24px; }
.map-wrap { overflow: hidden; padding: 0; }
.map-wrap iframe { display: block; border: 0; }

/* --------------------------------------------------------------------------
   Wizard: списки выбора, сводка, успех
   -------------------------------------------------------------------------- */
.wizard-card { padding: 34px 32px; }
.tabs-left { justify-content: flex-start; margin-bottom: 20px; }

.picker-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}
.picker-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: 'avatar main price' 'avatar sub price';
    align-items: center;
    column-gap: 14px;
    text-align: left;
    padding: 14px 18px;
    border: 1.5px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: var(--ivory);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
    font-family: inherit;
}
.picker-item:hover { border-color: var(--burgundy); transform: translateY(-1px); }
.picker-item.is-selected {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(122, 30, 46, .12);
    background: linear-gradient(135deg, rgba(122, 30, 46, .05), rgba(201, 169, 106, .08));
}
.picker-item .avatar { grid-area: avatar; }
.picker-main { grid-area: main; font-weight: 800; color: var(--brown); font-size: 15.5px; }
.picker-sub { grid-area: sub; font-size: 13px; color: var(--text-faint); }
.picker-price {
    grid-area: price;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--burgundy);
    white-space: nowrap;
}
.picker-any .avatar-placeholder { color: var(--rose); }

.booking-summary {
    background: var(--beige);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 24px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 6px 0;
    font-size: 14.5px;
    color: var(--text-soft);
}
.summary-row strong { color: var(--brown); text-align: right; }

.booking-success .success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(122, 30, 46, .3);
}
.booking-success .success-icon svg { width: 36px; height: 36px; }
.booking-success .booking-summary {
    max-width: 420px;
    margin: 20px auto 24px;
    text-align: left;
}

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .contacts-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .gallery-grid { gap: 10px; }
    .wizard-card { padding: 24px 18px; }
    .picker-item { grid-template-columns: 1fr auto; grid-template-areas: 'main price' 'sub price'; }
    .picker-item .avatar { display: none; }
    .stat-num { font-size: 34px; }
    .hero-logo { width: min(280px, 70vw); }
}
