/* ==========================================================================
   Тигрёнок — redesign 2026
   Warm "tiger" design system. No frameworks. Cyrillic-first.
   ========================================================================== */

:root {
    --ink: #221C18;
    --ink-soft: #5C534C;
    --paper: #FFF9F3;
    --cream: #FBEEE2;
    --brand: #F26A1B;
    --brand-deep: #D4530B;
    --brand-tint: #FFE6D2;
    --night: #241D18;
    --night-soft: #362C24;
    --white: #ffffff;
    --line: #EEE0D2;

    --radius: 22px;
    --radius-lg: 34px;
    --shadow-sm: 0 8px 22px -12px rgba(90, 50, 20, 0.30);
    --shadow: 0 22px 50px -24px rgba(210, 90, 20, 0.40);
    --shadow-brand: 0 16px 34px -14px rgba(242, 106, 27, 0.55);

    --maxw: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Unbounded", "Nunito", sans-serif;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin: 0;
    color: var(--ink);
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.eyebrow {
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 13px;
    color: var(--brand-deep);
    margin-bottom: 14px;
    display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 16px;
    padding: 16px 28px;
    border-radius: 100px;
    border: 0; cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    will-change: transform;
    line-height: 1;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 42px -12px rgba(242,106,27,.62); background: var(--brand-deep); }
.btn-primary:active { transform: translateY(-1px) scale(.985); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-ghost:active { transform: translateY(-1px) scale(.985); }
.btn svg { width: 19px; height: 19px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(160%) blur(12px);
    background: rgba(255, 249, 243, 0.82);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(90,50,20,.5); }
.nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand .paw {
    width: 40px; height: 40px; border-radius: 13px;
    background: var(--brand); color: #fff;
    display: grid; place-items: center; box-shadow: var(--shadow-brand);
    flex: none;
}
.brand .paw svg { width: 23px; height: 23px; }
.brand b { color: var(--brand-deep); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
    font-weight: 700; font-size: 15.5px; padding: 9px 16px; border-radius: 100px;
    color: var(--ink-soft);
    transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn).active { color: var(--brand-deep); background: var(--brand-tint); }
.nav-links a.nav-cta { color: #fff; }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 90px; position: relative; }
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(60% 70% at 88% 8%, rgba(242,106,27,.14), transparent 60%),
        radial-gradient(50% 60% at 6% 90%, rgba(242,106,27,.08), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.hero h1 .swap { color: var(--brand-deep); display: inline-block; }
.hero .lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 34ch; margin-top: 22px; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-phones { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; }
.hero-phones a { display: inline-flex; align-items: center; gap: 9px; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 1.06rem; color: var(--ink); transition: color .2s var(--ease); }
.hero-phones a:hover { color: var(--brand-deep); }
.hero-phones small { display: block; font-family: "Nunito"; font-weight: 700; font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }
.hero-phones .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--cream); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.hero-phones .ic svg { width: 18px; height: 18px; }

.hero-art { position: relative; }
.hero-art .photo {
    border-radius: 40px 40px 40px 80px;
    overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow);
    border: 8px solid #fff;
    transform: rotate(1.4deg);
}
.hero-art .photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
    position: absolute; left: -22px; bottom: 34px;
    background: #fff; border-radius: 20px; padding: 16px 20px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px;
    transform: rotate(-3deg);
}
.hero-badge .big { font-family: "Unbounded"; font-weight: 800; font-size: 1.7rem; color: var(--brand-deep); line-height: 1; }
.hero-badge .lbl { font-weight: 700; font-size: 13px; color: var(--ink-soft); max-width: 12ch; }
.hero-free {
    position: absolute; right: -10px; top: 26px;
    background: var(--brand); color: #fff; font-weight: 800;
    padding: 12px 18px; border-radius: 100px; box-shadow: var(--shadow-brand);
    transform: rotate(5deg); font-size: 15px;
}

/* ---------- Stats strip ---------- */
.stats { background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: 36px clamp(24px,4vw,56px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; box-shadow: var(--shadow); }
.stats .stat .n { font-family: "Unbounded"; font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.7rem); color: #fff; line-height: 1; }
.stats .stat .n span { color: var(--brand); }
.stats .stat p { color: #D9CCC0; font-weight: 600; font-size: 15px; margin: 8px 0 0; }

/* ---------- Section heading ---------- */
.s-head { max-width: 640px; margin-bottom: 52px; }
.s-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.s-head p { color: var(--ink-soft); font-size: 1.12rem; font-weight: 600; margin-top: 16px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand-tint); }
.feature .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center; margin-bottom: 20px; }
.feature .ic svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.24rem; margin-bottom: 10px; line-height: 1.2; }
.feature p { color: var(--ink-soft); font-weight: 600; font-size: 15.5px; margin: 0; }
.feature:nth-child(2) .ic, .feature:nth-child(3) .ic { background: var(--night); color: var(--brand); }

/* ---------- Gallery teaser ---------- */
.tease-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 16px; }
.tease-grid a { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.tease-grid a img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tease-grid a:hover img { transform: scale(1.07); }
.tease-grid a:nth-child(1) { grid-row: span 2; }
.tease-grid a:nth-child(6) { grid-column: span 2; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px,6vw,72px); text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.10); top: -160px; right: -80px; }
.cta-band::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: rgba(0,0,0,.06); bottom: -120px; left: -60px; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); position: relative; }
.cta-band p { color: rgba(255,255,255,.92); font-weight: 600; font-size: 1.14rem; max-width: 48ch; margin: 18px auto 30px; position: relative; }
.cta-band .btn-ghost { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #CDBFB4; padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer p { font-weight: 600; font-size: 15px; max-width: 36ch; }
.foot-col h4 { color: #fff; font-family: "Nunito"; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.foot-col a { display: block; color: #CDBFB4; font-weight: 600; padding: 5px 0; transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--brand); }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a { width: 44px; height: 44px; border-radius: 13px; background: var(--night-soft); display: grid; place-items: center; color: #fff; transition: transform .25s var(--ease), background .25s var(--ease); }
.social-row a:hover { background: var(--brand); transform: translateY(-3px); }
.social-row a svg { width: 20px; height: 20px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding-top: 24px; font-size: 13.5px; color: #9C8E83; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 56px 0 0; }
.page-head .crumbs { font-weight: 700; font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.page-head .crumbs a { color: var(--brand-deep); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.card-soft { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px,4vw,42px); box-shadow: var(--shadow-sm); }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-weight: 800; font-size: 14px; color: var(--ink); }
.form-field input, .form-field textarea {
    font-family: "Nunito"; font-size: 16px; font-weight: 600;
    padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
    background: var(--paper); color: var(--ink); width: 100%;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-tint); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 14px; font-weight: 700; min-height: 20px; margin: -6px 0 14px; }
.form-note.err { color: #C2410C; }
.form-note.ok { color: #15803D; }
.btn-send.is-ok { background: #16A34A; box-shadow: 0 16px 34px -14px rgba(22,163,74,.55); }

.contact-info .info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-item:last-child { border-bottom: 0; }
.contact-info .ic { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.contact-info .ic svg { width: 21px; height: 21px; }
.contact-info b { display: block; font-family: "Unbounded"; font-weight: 600; font-size: 1.02rem; }
.contact-info span { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 6px solid #fff; margin-top: 30px; }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }
#hallsMap { height: 440px; width: 100%; background: var(--cream); }
#hallsMap .leaflet-popup-content { font-family: "Nunito", sans-serif; font-weight: 700; }

/* ---------- Schedule ---------- */
.halls { display: grid; gap: 22px; }
.hall { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px,3vw,34px); box-shadow: var(--shadow-sm); transition: box-shadow .3s var(--ease); }
.hall:hover { box-shadow: var(--shadow); }
.hall-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.hall-top .pin { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center; flex: none; }
.hall-top .pin svg { width: 23px; height: 23px; }
.hall h3 { font-size: 1.2rem; line-height: 1.25; }
.hall .meta { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; margin-top: 10px; }
.hall .meta b { color: var(--ink); }
.timetable { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 8px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); }
.timetable th { background: var(--night); color: #fff; font-family: "Nunito"; font-weight: 800; font-size: 13.5px; text-transform: lowercase; padding: 12px 14px; text-align: left; }
.timetable td { padding: 11px 14px; font-weight: 700; font-variant-numeric: tabular-nums; border-top: 1px solid var(--line); color: var(--ink); }
.timetable tr:nth-child(even) td { background: var(--cream); }

.hall-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.hall-facts { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 12px; }
.hall-facts li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; }
.hall-facts .lbl { font-family: "Nunito"; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-deep); padding-top: 2px; }
.hall-facts li span:last-child { color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.hall-sched { margin: 4px 0 22px; }
.sched-title { display: block; font-family: "Nunito"; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-deep); margin-bottom: 12px; }
.sched-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.sched-row:first-of-type { border-top: 0; }
.day-badge { flex: none; width: 40px; height: 30px; border-radius: 9px; background: var(--night); color: #fff; display: grid; place-items: center; font-family: "Unbounded"; font-weight: 600; font-size: 12px; }
.time-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.time-chip { background: var(--brand-tint); color: var(--brand-deep); font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; padding: 5px 11px; border-radius: 8px; white-space: nowrap; }
.sched-tba { color: var(--ink-soft); font-weight: 700; font-size: 14.5px; margin: 0 0 22px; }
.hall-maplink { padding: 12px 22px; font-size: 15px; background: var(--brand-tint); color: var(--brand-deep); box-shadow: none; }
.hall-maplink:hover { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); transform: translateY(-3px); }
.hall-map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); border: 5px solid #fff; height: 300px; background: var(--cream); }
@media (max-width: 760px) {
    .hall-grid { grid-template-columns: 1fr; gap: 20px; }
    .hall-facts li { grid-template-columns: 1fr; gap: 2px; }
    .hall-map { min-height: 200px; }
}

/* ---------- Gallery page ---------- */
.masonry { columns: 3; column-gap: 18px; }
.masonry a { display: block; margin-bottom: 18px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); break-inside: avoid; }
.masonry a img { width: 100%; transition: transform .6s var(--ease); }
.masonry a:hover img { transform: scale(1.06); }

/* ---------- Optional field hint ---------- */
.form-field label .opt { color: var(--ink-soft); font-weight: 600; font-size: 12px; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 680px) {
    .mobile-cta {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 249, 243, 0.94);
        backdrop-filter: saturate(160%) blur(12px);
        border-top: 1px solid var(--line);
    }
    .mobile-cta a {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        font-family: "Nunito", sans-serif; font-weight: 800; font-size: 15.5px;
        padding: 14px; border-radius: 100px; line-height: 1;
    }
    .mobile-cta a:active { transform: scale(.98); }
    .mcta-call { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
    .mcta-call svg { width: 18px; height: 18px; }
    .mcta-book { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
    body { padding-bottom: 78px; }
    body.no-mcta { padding-bottom: 0; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .8s var(--ease) forwards; }
.reveal[style*="--d"] { animation-delay: var(--d); }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-art { max-width: 420px; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
    .features { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .tease-grid { grid-auto-rows: 150px; }
    .masonry { columns: 2; }
}
@media (max-width: 680px) {
    .section { padding: 64px 0; }
    .hero { padding: 44px 0 60px; }
    .hero h1 { font-size: 1.95rem; line-height: 1.1; overflow-wrap: break-word; word-break: break-word; }
    .hero .lead { font-size: 1.06rem; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: stretch;
        position: absolute; top: 76px; left: 0; right: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: 14px 20px 22px; gap: 4px; box-shadow: var(--shadow);
    }
    .nav-links.open .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
    .nav-toggle { display: inline-flex; }
    .tease-grid { grid-template-columns: repeat(2, 1fr); }
    .tease-grid a:nth-child(6) { grid-column: span 2; }
    .foot-grid { grid-template-columns: 1fr; }
    .masonry { columns: 1; }
    .hero-badge { left: 0; }
}
