/* Екатерина Базулина — компактный сайт-визитка */

:root {
    interpolate-size: allow-keywords;
    --bg: #FAF7F2;
    --bg-alt: #F1EBE2;
    --surface: #FFFFFF;
    --surface-soft: #F7F3EC;
    --ink: #24211E;
    --ink-muted: #615951;
    --ink-soft: #6E655D;
    --accent: #4F6855;
    --accent-hover: #3D5242;
    --accent-deep: #344739;
    --accent-soft: #E8EFE9;
    --warm: #AD7E5B;
    --warm-text: #8C5E3C;
    --border: rgba(36, 33, 30, 0.09);
    --border-strong: rgba(36, 33, 30, 0.15);
    --shadow-sm: 0 2px 10px rgba(36, 33, 30, 0.04);
    --shadow-md: 0 14px 36px rgba(36, 33, 30, 0.07);
    --shadow-lg: 0 22px 54px rgba(24, 22, 20, 0.15);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 1120px;
}

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

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

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

/* Тонкая бумажная текстура фона (автономный встроенный SVG, только для десктопа) */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
    color: var(--accent);
    text-underline-offset: 3px;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

a:hover {
    color: var(--accent-hover);
}

button {
    font: inherit;
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hidden {
    display: none !important;
}

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

.container-narrow {
    max-width: 780px;
}

/* Announcement banner */
.announcement-bar {
    background: var(--accent-deep);
    color: #FAF7F2;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    padding: 0.55rem 1rem;
}

/* Sticky Glass Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 247, 242, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 66px;
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.brand:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.91rem;
    font-weight: 500;
    padding: 0.25rem 0;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--ink);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    font-size: 0.87rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-phone:hover {
    background: var(--accent);
    color: #FFFFFF;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.45rem;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(79, 104, 85, 0.22);
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 104, 85, 0.28);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent-deep);
}

.btn-light {
    background: #FAF7F2;
    color: var(--accent-deep);
}

.btn-light:hover {
    background: #FFFFFF;
    color: var(--ink);
    transform: translateY(-1px);
}

.btn-ghost-light {
    background: rgba(250, 247, 242, 0.1);
    color: #FAF7F2;
    border-color: rgba(250, 247, 242, 0.32);
}

.btn-ghost-light:hover {
    background: rgba(250, 247, 242, 0.2);
    border-color: rgba(250, 247, 242, 0.6);
    color: #FFFFFF;
}

.btn-sm {
    padding: 0.52rem 0.95rem;
    font-size: 0.84rem;
}

.icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* Sections & Typography */
.section {
    padding: 3.6rem 0;
    scroll-margin-top: 70px;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.85rem;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--warm-text);
    margin-bottom: 0.5rem;
}

.kicker::before {
    content: '';
    width: 20px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.75;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}

h1 {
    font-size: clamp(2rem, 3.8vw, 2.95rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 em {
    font-style: italic;
    color: var(--accent);
}

h2 {
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.section-note {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-muted);
    max-width: 44ch;
}

.lead {
    margin: 0.85rem auto 0;
    font-size: 1.02rem;
    color: var(--ink-muted);
    max-width: 46ch;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.link-arrow:hover {
    color: var(--accent-hover);
}

/* Block 1: Hero + Clean Editorial Portrait */
.hero {
    padding: 3.4rem 0 3.6rem;
    background:
        radial-gradient(640px 390px at 84% 28%, rgba(173, 126, 91, 0.11), transparent 70%),
        radial-gradient(520px 350px at 14% 80%, rgba(79, 104, 85, 0.08), transparent 70%),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
    gap: 3.25rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.36rem 0.9rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-deep);
    margin-bottom: 1.15rem;
    white-space: nowrap;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.hero-desc {
    margin: 1.15rem 0 0;
    max-width: 55ch;
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.68;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
    align-items: center;
}

.portrait-figure {
    margin: 0 auto;
    max-width: 316px;
    width: 100%;
}

.portrait-frame {
    position: relative;
    isolation: isolate;
}

.portrait-frame::before {
    content: '';
    position: absolute;
    inset: 12px -12px -12px 12px;
    border-radius: 22px;
    background: #EAE1D5;
    border: 1px solid var(--border);
    z-index: -1;
}

.portrait-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
}

.portrait-meta {
    margin-top: 1.15rem;
    text-align: center;
}

.portrait-meta strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.06rem;
    font-weight: 500;
    color: var(--ink);
}

.portrait-meta span {
    display: block;
    font-size: 0.84rem;
    color: var(--ink-muted);
    margin-top: 0.12rem;
}

/* 3-Column Conditions / Trust Strip */
.facts-strip {
    background: rgba(255, 255, 255, 0.58);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1.45rem 1.65rem;
}

.fact-item:first-child {
    padding-left: 0;
}

.fact-item:last-child {
    padding-right: 0;
}

.fact-item + .fact-item {
    border-left: 1px solid var(--border);
}

.fact-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.08rem;
}

.fact-icon svg {
    width: 18px;
    height: 18px;
}

.fact-item strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.fact-item p {
    margin: 0.28rem 0 0;
    font-size: 0.85rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

/* Block 2: Editorial Split Services + 1 Calm Atmospheric Photo */
.services-editorial {
    display: grid;
    grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
    gap: 3.25rem;
    align-items: start;
}

.services-aside {
    position: sticky;
    top: 90px;
}

.services-aside .section-note {
    margin-top: 0.85rem;
    max-width: 38ch;
}

.atmosphere-card {
    margin: 1.75rem 0 0;
}

.atmosphere-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.atmosphere-card figcaption {
    margin-top: 0.75rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

.directions-list {
    border-top: 1px solid var(--border-strong);
}

.direction-row {
    display: grid;
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.35rem 0.75rem;
    border-bottom: 1px solid var(--border-strong);
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.direction-row:hover {
    background: rgba(255, 255, 255, 0.56);
}

.direction-num {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.04rem;
    color: var(--warm-text);
    line-height: 1.38;
    transition: color 0.2s ease, transform 0.2s ease;
}

.direction-row:hover .direction-num {
    color: var(--accent);
    transform: translateX(2px);
}

.direction-body h3 {
    font-size: 1.14rem;
    line-height: 1.3;
    margin-bottom: 0.38rem;
}

.direction-body p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-muted);
    line-height: 1.58;
}

.direction-focus {
    position: relative;
    display: block;
    padding-left: 0.85rem;
    margin-top: 0.58rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-deep);
    line-height: 1.42;
}

.direction-focus::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.54em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--warm);
}

/* Block 3: Education Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.gallery-card {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-trigger {
    position: relative;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: zoom-in;
    display: block;
    width: 100%;
    overflow: hidden;
}

.gallery-trigger::after {
    content: '+';
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(250, 247, 242, 0.9);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(24, 22, 20, 0.16);
    pointer-events: none;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.3s ease;
}

.gallery-trigger:hover .gallery-img {
    transform: scale(1.035);
}

.gallery-caption {
    padding: 0.85rem 1rem 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--ink-muted);
    flex-grow: 1;
}

.gallery-caption strong {
    display: block;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.training-list {
    margin-top: 1.35rem;
    padding: 1.25rem 1.55rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.training-list h3 {
    font-size: 1.06rem;
    margin-bottom: 0.75rem;
}

.training-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 2rem;
}

.training-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

.training-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--warm);
}

/* Block 4: FAQ + Contact side-by-side */
.closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.25rem;
    align-items: start;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease;
    overflow: hidden;
}

.faq-item[open] {
    border-color: rgba(79, 104, 85, 0.28);
}

@supports (interpolate-size: allow-keywords) {
    .faq-item::details-content {
        block-size: 0;
        opacity: 0;
        overflow-y: clip;
        transition: content-visibility 0.26s allow-discrete, block-size 0.26s ease, opacity 0.22s ease;
    }

    .faq-item[open]::details-content {
        block-size: auto;
        opacity: 1;
    }
}

.faq-item summary {
    list-style: none;
    padding: 1rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;
    flex-shrink: 0;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.24s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    background: var(--accent);
    color: #FFFFFF;
}

.faq-body {
    padding: 0 0 1.05rem;
    font-size: 0.91rem;
    color: var(--ink-muted);
    line-height: 1.62;
}

.faq-body p {
    margin: 0;
}

.faq-body ul {
    margin: 0;
    padding-left: 1.15rem;
}

.faq-body li + li {
    margin-top: 0.3rem;
}

/* Deep Botanical Sage Contact Card */
.contact-card {
    background: linear-gradient(145deg, #475E4C 0%, #334538 100%);
    color: #FAF7F2;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 247, 242, 0.1) 0%, transparent 70%);
    right: -70px;
    top: -80px;
    pointer-events: none;
}

.contact-card .kicker {
    color: #D8C1A8;
}

.contact-card h2 {
    color: #FAF7F2;
    font-size: clamp(1.5rem, 2.2vw, 1.85rem);
}

.contact-card p {
    margin: 0.75rem 0 0;
    color: rgba(250, 247, 242, 0.84);
    font-size: 0.94rem;
    line-height: 1.62;
}

.contact-panel {
    margin-top: 1.45rem;
    background: rgba(250, 247, 242, 0.08);
    border: 1px solid rgba(250, 247, 242, 0.16);
    border-radius: var(--radius-md);
    padding: 1.35rem;
    position: relative;
    z-index: 1;
}

.contact-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(250, 247, 242, 0.68);
    margin-bottom: 0.25rem;
}

.phone-link {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: clamp(1.42rem, 2.1vw, 1.75rem);
    font-weight: 500;
    color: #FAF7F2;
    text-decoration: none;
}

.phone-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1.15rem;
}

.contact-actions .btn-light {
    grid-column: 1 / -1;
    width: 100%;
}

.contact-actions .btn-ghost-light {
    width: 100%;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.65rem 0 2rem;
    font-size: 0.84rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 2rem;
    flex-wrap: wrap;
}

/* Lightbox Dialog */
dialog.lightbox {
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    max-width: min(880px, calc(100vw - 24px));
    width: 100%;
    overflow: visible;
}

dialog.lightbox::backdrop {
    background: rgba(24, 22, 20, 0.78);
    backdrop-filter: blur(6px);
}

.lightbox-box {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.25rem 1.25rem;
    box-shadow: var(--shadow-lg);
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.lightbox-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.lightbox-counter {
    flex-shrink: 0;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-deep);
    letter-spacing: 0.04em;
}

.lightbox-caption {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
}

.lightbox-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lightbox-icon-btn:hover {
    background: var(--surface-soft);
    border-color: var(--accent);
    color: var(--accent-deep);
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    padding: 0.5rem 3.25rem;
}

.lightbox-img {
    width: 100%;
    max-height: 74vh;
    object-fit: contain;
    border-radius: 8px;
    margin-inline: auto;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.lightbox-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.lightbox-prev {
    left: 0.65rem;
}

.lightbox-next {
    right: 0.65rem;
}

/* Mobile Floating Call Bar */
.mobile-call-bar {
    display: none;
}

/* 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 0;
}

.error-code {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    line-height: 1;
    color: var(--warm);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-editorial {
        gap: 2.25rem;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .closing-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 880px) {
    .services-editorial {
        grid-template-columns: 1fr;
        gap: 1.85rem;
    }
    .services-aside {
        position: static;
    }
    .atmosphere-card {
        margin-top: 1.25rem;
    }
    .atmosphere-img {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 820px) {
    body::after {
        display: none;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.85rem;
    }
    .hero {
        padding: 2.15rem 0 2.35rem;
    }
    .portrait-figure {
        max-width: 260px;
    }
    .facts-grid {
        grid-template-columns: 1fr;
    }
    .fact-item {
        padding: 0.88rem 0;
        gap: 0.78rem;
    }
    .fact-item + .fact-item {
        border-left: 0;
        border-top: 1px solid var(--border);
    }
    .nav-links {
        gap: 1.1rem;
    }
}

@media (max-width: 680px) {
    .container {
        padding-inline: 16px;
    }
    .section {
        padding: 2.15rem 0;
        scroll-margin-top: 96px;
    }
    .section-head-row {
        margin-bottom: 1.2rem;
    }
    .header-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 0.55rem 0;
        gap: 0.4rem 0.5rem;
    }
    .brand {
        font-size: 1.02rem;
    }
    .header-phone {
        padding: 0.36rem 0.72rem;
        font-size: 0.78rem;
    }
    .site-header nav {
        order: 3;
        width: 100%;
    }
    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0.4rem;
        padding-top: 0.42rem;
        border-top: 1px solid var(--border);
    }
    .nav-links a {
        font-size: 0.8rem;
    }

    /* Компактный мобильный первый экран (карточка мастера + кнопки на 1 экране) */
    .hero {
        padding: 1.45rem 0 1.75rem;
    }
    .hero-grid {
        gap: 1.15rem;
    }
    .hero-badge {
        margin-bottom: 0.75rem;
        font-size: 0.77rem;
        padding: 0.3rem 0.75rem;
    }
    h1 {
        font-size: 1.78rem;
        line-height: 1.16;
    }
    .hero-desc {
        margin-top: 0.75rem;
        font-size: 0.93rem;
        line-height: 1.56;
    }
    .cta-group {
        margin-top: 1.15rem;
        gap: 0.55rem;
    }
    .cta-group .btn {
        width: 100%;
        padding: 0.74rem 1.2rem;
    }
    .portrait-figure {
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 0.9rem;
        padding: 0.65rem 0.8rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }
    .portrait-frame {
        width: 74px;
        height: 74px;
        flex-shrink: 0;
    }
    .portrait-frame::before {
        display: none;
    }
    .portrait-img {
        border-radius: 13px;
        box-shadow: none;
    }
    .portrait-meta {
        margin-top: 0;
        text-align: left;
    }
    .portrait-meta strong {
        font-size: 0.98rem;
    }
    .portrait-meta span {
        font-size: 0.8rem;
        margin-top: 0.08rem;
    }

    /* Полоса условий компактнее на мобильном */
    .fact-item {
        padding: 0.72rem 0;
    }
    .fact-icon {
        width: 34px;
        height: 34px;
        border-radius: 9px;
    }
    .fact-item strong {
        font-size: 0.89rem;
    }
    .fact-item p {
        font-size: 0.8rem;
        margin-top: 0.16rem;
    }

    /* Услуги без лишнего декоративного фото на узком экране */
    .services-editorial {
        gap: 1.1rem;
    }
    .services-aside .section-note {
        margin-top: 0.5rem;
        font-size: 0.86rem;
    }
    .atmosphere-card {
        display: none;
    }
    .direction-row {
        grid-template-columns: 1.75rem minmax(0, 1fr);
        gap: 0.6rem;
        padding: 0.92rem 0.1rem;
    }
    .direction-num {
        font-size: 0.94rem;
    }
    .direction-body h3 {
        font-size: 1.02rem;
        margin-bottom: 0.25rem;
    }
    .direction-body p {
        font-size: 0.86rem;
        line-height: 1.5;
    }
    .direction-focus {
        margin-top: 0.4rem;
        font-size: 0.78rem;
    }

    /* Сертификаты компактной сеткой 2x2 на мобильном */
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
    .gallery-card {
        border-radius: 13px;
    }
    .gallery-caption {
        padding: 0.55rem 0.65rem 0.65rem;
        font-size: 0.76rem;
        line-height: 1.35;
    }
    .gallery-caption strong {
        font-size: 0.81rem;
        margin-bottom: 0.14rem;
    }
    .training-list {
        margin-top: 0.9rem;
        padding: 0.95rem 1.05rem;
    }
    .training-list h3 {
        font-size: 0.96rem;
        margin-bottom: 0.55rem;
    }
    .training-list ul {
        grid-template-columns: 1fr;
        gap: 0.38rem;
    }
    .training-list li {
        font-size: 0.83rem;
    }

    /* FAQ + Запись компактнее */
    .closing-grid {
        gap: 1.5rem;
    }
    .faq-list {
        margin-top: 0.9rem;
        gap: 0.5rem;
    }
    .faq-item {
        padding: 0 1rem;
    }
    .faq-item summary {
        padding: 0.82rem 0;
        font-size: 0.89rem;
    }
    .faq-body {
        font-size: 0.85rem;
        padding-bottom: 0.85rem;
    }
    .contact-card {
        padding: 1.45rem 1.2rem;
        border-radius: 20px;
    }
    .contact-card p {
        font-size: 0.87rem;
    }
    .contact-panel {
        margin-top: 1.1rem;
        padding: 1rem;
    }
    .contact-actions .btn-sm {
        padding: 0.5rem 0.55rem;
        font-size: 0.79rem;
    }

    /* Лайтбокс */
    .lightbox-box {
        padding: 0.85rem;
    }
    .lightbox-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    .lightbox-stage {
        padding: 0.35rem;
    }
    .lightbox-nav {
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.88);
    }
    .lightbox-prev {
        left: 0.45rem;
    }
    .lightbox-next {
        right: 0.45rem;
    }

    /* Двухкнопочная мобильная панель (Позвонить + ВК) */
    .mobile-call-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        padding: 0.55rem 0.9rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
        background: rgba(250, 247, 242, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--border);
        display: block;
        transform: translateY(110%);
        transition: transform 0.24s ease;
    }
    .mobile-call-bar.visible {
        transform: translateY(0);
    }
    .mobile-call-inner {
        display: flex;
        gap: 0.5rem;
    }
    .mobile-call-primary {
        flex: 1.35;
        padding: 0.68rem 0.9rem;
        font-size: 0.88rem;
    }
    .mobile-call-vk {
        flex: 1;
        padding: 0.68rem 0.8rem;
        font-size: 0.86rem;
        background: var(--surface);
    }
    .site-footer {
        padding: 1.35rem 0 4.8rem;
        font-size: 0.79rem;
    }
}

@media (max-width: 370px) {
    .brand {
        font-size: 0.94rem;
    }
    .header-phone {
        padding: 0.3rem 0.55rem;
        font-size: 0.73rem;
    }
    .nav-links a {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
