/* ==========================================================================
   Мальчики.онлайн — стили
   Тёмный минимализм, адаптивная вёрстка
   ========================================================================== */

:root {
    --bg: #0e1013;
    --bg-soft: #12151a;
    --surface: #171a20;
    --surface-2: #1d2129;
    --border: #262b34;
    --border-soft: #1f242c;
    --text: #f2f4f7;
    --text-dim: #a7b0bd;
    --muted: #6b7482;
    --accent: #e0a458;
    --accent-strong: #d18f3f;
    --accent-ink: #1a1207;
    --danger: #d4575a;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.7);
    --container: 1240px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14, 16, 19, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }

.logo-mark {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--accent-ink);
    font-weight: 800; font-size: 18px;
}

.logo-text em { font-style: normal; color: var(--accent); }

.main-nav { display: flex; gap: 4px; margin-left: 8px; }

.nav-link {
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 15px;
    transition: color .18s ease, background .18s ease;
}

.nav-link:hover { color: var(--text); background: var(--surface); }

.header-contacts { display: flex; flex-direction: column; gap: 2px; margin-left: auto; align-items: flex-end; }

.header-phone {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 16px; color: var(--text);
}
.header-phone .ic { color: var(--accent); }
.header-phone:hover { color: var(--accent); }

.header-address {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--muted); font-size: 13px;
}

.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: 0;
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    border-radius: 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    padding: 84px 0 76px;
    overflow: hidden;
    background:
        radial-gradient(1000px 520px at 85% -8%, rgba(224, 164, 88, 0.22), transparent 58%),
        radial-gradient(760px 440px at 6% 2%, rgba(224, 164, 88, 0.10), transparent 55%),
        radial-gradient(920px 660px at 50% 120%, rgba(209, 143, 63, 0.12), transparent 62%),
        linear-gradient(180deg, #131720 0%, #0e1013 68%);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 0%, transparent 72%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(224, 164, 88, 0.55), transparent);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(224, 164, 88, 0.12);
    border: 1px solid rgba(224, 164, 88, 0.28);
    color: var(--accent);
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 13px; font-weight: 600;
    margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.hero h1 {
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero h1 .accent { color: var(--accent); }

.hero p.lead {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 640px;
    margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 600; font-size: 16px;
    border: 1px solid transparent;
    transition: transform .15s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-strong)); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-stats {
    display: flex; flex-wrap: wrap; gap: 34px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
}
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--text); }
.stat span { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   Секции и заголовки
   ========================================================================== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { margin-bottom: 34px; }
.section-head h2 {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 800; letter-spacing: -0.02em;
    line-height: 1.15;
}
.section-head p { color: var(--text-dim); margin-top: 10px; max-width: 720px; }

/* ==========================================================================
   Сетка анкет
   ========================================================================== */
.filterbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    margin-bottom: 26px;
}
.filterbar .label { color: var(--muted); font-size: 14px; }
.chip {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px; font-weight: 500;
    transition: all .16s ease;
}
.chip:hover { color: var(--text); border-color: #39414e; }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: #333b48; box-shadow: var(--shadow); }

.card-media { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.05); }

.card-tag {
    position: absolute; top: 12px; left: 12px;
    background: rgba(14, 16, 19, 0.72);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 12px; font-weight: 600;
    padding: 5px 11px;
    border-radius: 100px;
}

.card-body { padding: 16px 16px 18px; }

.card-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.card-meta { color: var(--text-dim); font-size: 14px; margin-top: 4px; }

.card-stats {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 14px;
}
.card-stats .pill {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    color: var(--text-dim);
    font-size: 12.5px;
    padding: 5px 10px;
    border-radius: 8px;
}
.card-stats .pill b { color: var(--text); font-weight: 600; }

.card-footer {
    display: flex; gap: 10px;
    margin-top: 16px;
    align-items: center;
}
.card-phone {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--accent-ink);
    font-weight: 700; font-size: 14.5px;
    padding: 11px 12px;
    border-radius: 10px;
    transition: filter .16s ease;
}
.card-phone:hover { filter: brightness(1.06); }
.card-link {
    flex: none;
    display: grid; place-items: center;
    width: 42px; height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all .16s ease;
}
.card-link:hover { border-color: var(--accent); color: var(--accent); }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* ==========================================================================
   SEO-текст
   ========================================================================== */
.seo-text { color: var(--text-dim); font-size: 16.5px; max-width: 860px; }
.seo-text h2 { color: var(--text); font-size: 26px; font-weight: 800; margin: 40px 0 16px; letter-spacing: -0.02em; }
.seo-text h3 { color: var(--text); font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.seo-text p { margin-bottom: 16px; }
.seo-text ul { margin: 0 0 16px 4px; padding-left: 20px; }
.seo-text li { margin-bottom: 8px; }
.seo-text strong { color: var(--text); font-weight: 600; }
.seo-text a:not(.btn) { color: var(--accent); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 820px; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: none; border: 0; color: var(--text);
    text-align: left;
    font-size: 16px; font-weight: 600;
    padding: 18px 20px;
}
.faq-q .chev { flex: none; width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a-inner { padding: 0 20px 20px; color: var(--text-dim); }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer { background: #0a0c0f; border-top: 1px solid var(--border-soft); padding: 56px 0 28px; margin-top: 0; }

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }

.footer-logo { margin-bottom: 16px; }
.footer-tagline { color: var(--text-dim); font-size: 15px; max-width: 300px; }

.footer-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.footer-phone { display: block; font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.footer-phone:hover { color: var(--text); }
.footer-address, .footer-hours { color: var(--text-dim); font-size: 14px; margin-bottom: 6px; }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--text-dim); font-size: 14.5px; transition: color .16s ease; }
.footer-nav a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border-soft);
    padding-top: 24px;
    display: flex; flex-direction: column; gap: 6px;
}
.footer-bottom p { color: var(--muted); font-size: 13.5px; }
.footer-note { opacity: .75; }

/* ==========================================================================
   Страница анкеты
   ========================================================================== */
.breadcrumbs { padding: 22px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 8px; color: var(--muted); }

.profile-page { padding: 28px 0 64px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; }

.gallery { position: relative; }
.gallery-main {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    aspect-ratio: 3 / 4;
    cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumb {
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--surface);
    padding: 0;
    transition: border-color .16s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--accent); }

.profile-side { position: sticky; top: 96px; }

.profile-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 28px; }

.profile-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.profile-sub { color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 6px; }

.profile-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.spec {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px;
}
.spec .k { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
.spec .v { font-size: 18px; font-weight: 700; margin-top: 3px; }

.profile-desc { color: var(--text-dim); font-size: 15.5px; margin-bottom: 24px; }

.profile-cta { display: flex; flex-direction: column; gap: 12px; }
.profile-phone {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: var(--accent-ink);
    font-size: 20px; font-weight: 800;
    padding: 18px;
    border-radius: 12px;
    transition: filter .16s ease;
}
.profile-phone:hover { filter: brightness(1.05); }
.profile-phone-note { text-align: center; color: var(--muted); font-size: 13px; }

.related { padding: 0 0 64px; }

/* ==========================================================================
   Лайтбокс
   ========================================================================== */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(5, 6, 8, 0.94);
    display: none;
    align-items: center; justify-content: center;
    flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 8px; }
.lightbox-close {
    position: absolute; top: 22px; right: 24px;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 0; color: #fff;
    font-size: 22px; line-height: 1;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 0; color: #fff; font-size: 22px;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-count { margin-top: 14px; color: rgba(255,255,255,0.7); font-size: 14px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1080px) {
    .profile-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .profile-layout { grid-template-columns: 1fr; gap: 28px; }
    .profile-side { position: static; }
    .main-nav {
        position: fixed; top: 72px; left: 0; right: 0;
        flex-direction: column;
        background: var(--bg-soft);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px 20px;
        display: none;
    }
    .main-nav.open { display: flex; }
    .nav-link { padding: 13px 12px; font-size: 16px; }
    .nav-toggle { display: flex; margin-left: auto; }
    .header-address { display: none; }
}

@media (max-width: 680px) {
    .profile-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .hero { padding: 44px 0 48px; }
    .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
    .hero-stats { gap: 22px; }
    .header-inner { height: 64px; }
    .header-phone span { font-size: 14px; }
    .logo-text { font-size: 17px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .profile-card { padding: 20px; }
}

@media (max-width: 400px) {
    .profile-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .card-name { font-size: 16px; }
    .card-body { padding: 12px; }
    .card-stats .pill { font-size: 11.5px; padding: 4px 8px; }
}
