:root {
    --bg:        #f8f2e8;
    --bg-soft:   #fcf8f1;
    --card:      #fffdf9;
    --ink:       #2c2117;
    --ink-muted: #6c5d4d;
    --ink-soft:  #756552;
    --gold:      #bf8a4c;
    --gold-deep: #8a6020;
    --blush:     #d9a98a;
    --line:      rgba(176,137,75,0.20);
    --line-soft: rgba(176,137,75,0.11);
    --ease:      cubic-bezier(.23,1,.32,1);
    --shadow-card: 0 30px 60px -42px rgba(120,90,50,0.5);
    --shadow-lift: 0 40px 80px -42px rgba(120,90,50,0.6);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: rgba(191,138,76,0.18); }
html { scroll-behavior: smooth; }
body {
    margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--ink);
    background: var(--bg); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden;
    touch-action: manipulation;
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}
/* Мягкий тёплый солнечный свет — статичный на телефоне (меньше лагов) */
body::before {
    content: ''; position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(58% 50% at 80% 6%, rgba(255,240,214,0.9) 0%, transparent 58%),
        radial-gradient(50% 55% at 8% 92%, rgba(247,228,210,0.6) 0%, transparent 60%),
        var(--bg);
    animation: sun 24s ease-in-out infinite alternate;
}
@keyframes sun { 0%{ background-position:0 0,0 0,0 0; } 100%{ background-position:3% 2%,-2% -1%,0 0; } }
@media (max-width: 959px){
    body::before { animation: sunMob 36s ease-in-out infinite alternate; }
}
@keyframes sunMob { from { opacity: 1; } to { opacity: 0.88; } }
@media (min-width: 960px){ body::before { animation: none; } }
.hero:not(.hero-visible) .hero-bg,
.hero:not(.hero-visible) .hero-photo img,
.hero:not(.hero-visible) .motes i,
.hero:not(.hero-visible) .hero-note .ring,
.hero:not(.hero-visible) .sub-part { animation-play-state: paused; }

.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px){ .container { padding: 0 44px; } }
::selection { background: rgba(191,138,76,0.22); }

/* Skip link & screen-reader only */
.skip-link { position: absolute; left: -9999px; top: auto; z-index: 500; padding: 12px 20px; background: var(--gold-deep); color: #fff; text-decoration: none; border-radius: 0 0 12px 0; font-weight: 500; font-size: 14px; }
.skip-link:focus { left: 0; top: 0; outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Scroll progress */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 400;
    background: linear-gradient(to right, var(--gold-deep), var(--gold), #e8c48a);
    pointer-events: none; box-shadow: 0 0 12px rgba(191,138,76,0.45);
    transition: width .12s linear;
}

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; transition: background .4s, box-shadow .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(252,248,241,0.85); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); border-bottom: 1px solid var(--line-soft); box-shadow: 0 8px 30px -22px rgba(120,90,50,0.5); }
.nav-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand {
    position: relative;
    display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 4px 0 4px 11px; line-height: 1; text-decoration: none; color: var(--ink); cursor: pointer;
}
.brand::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 2.5px; background: var(--ink); border-radius: 1px;
}
.brand:hover::before { background: var(--gold-deep); }
.brand-name {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.1rem, 2.15vw, 1.82rem); font-weight: 400;
    letter-spacing: -0.02em; white-space: nowrap;
    transition: color .3s ease;
}
.brand-role {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(0.56rem, 1vw, 0.68rem); font-weight: 600;
    letter-spacing: 0.13em; text-transform: uppercase;
    color: var(--gold-deep); line-height: 1;
    transition: color .3s ease;
}
.brand:hover .brand-name { color: var(--gold-deep); }
.brand:hover .brand-role { color: var(--gold); }
.nav-links { display: none; gap: 30px; }
@media (min-width: 960px){ .nav-links { display: flex; } }
.nav-link { color: var(--ink-muted); text-decoration: none; font-size: 14.5px; position: relative; padding-bottom: 3px; transition: color .25s; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: width .4s var(--ease); }
.nav-link:hover { color: var(--ink); } .nav-link:hover::after { width: 100%; }
.nav-link.nav-active { color: var(--ink); font-weight: 500; }
.nav-link.nav-active::after { width: 100%; height: 2px; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 28px; font-size: 14.5px; font-weight: 500; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .3s cubic-bezier(.23,1,.32,1), box-shadow .3s, background .3s, color .3s, border-color .3s; }
.btn-primary {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #caa066, #b07e3f); color: #fff;
    box-shadow: 0 12px 30px -12px rgba(176,126,63,0.7), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.28) 50%, transparent 60%);
    transform: translateX(-130%); animation: btnShine 5.5s ease-in-out 2s infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(176,126,63,0.85); }
@keyframes btnShine { 0%, 70%, 100% { transform: translateX(-130%); } 82% { transform: translateX(130%); } }
.btn-ghost { background: rgba(255,255,255,0.6); color: var(--ink); border-color: var(--line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--gold); background: #fff; transform: translateY(-2px); }
.btn-sm { height: 44px; min-height: 44px; padding: 0 20px; font-size: 13.5px; }
.btn-cta-nav { display: inline-flex; }
@media (max-width: 959px){ .btn-cta-nav { height: 44px; min-width: 44px; padding: 0 16px; font-size: 13px; } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; background: none; border: none; color: var(--ink); cursor: pointer; border-radius: 10px; transition: color .2s, background .2s; }
.icon-btn:hover { color: var(--gold-deep); background: rgba(191,138,76,0.08); }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 60px; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: url('images/hero-office.jpg') center center/cover no-repeat;
    transform: scale(1.04) translateZ(0);
    filter: saturate(1.03) brightness(1.05) blur(2px);
    animation: heroZoom 36s ease-in-out infinite alternate;
    will-change: transform;
    contain: strict;
}
@media (min-width: 960px){
    .hero-bg {
        background-image: url('images/hero-office.webp');
        filter: saturate(1.03) brightness(1.05);
        will-change: auto;
        animation-duration: 48s;
    }
    .hero-glow { filter: none; opacity: 0.72; }
    .hero-photo img { filter: none; }
    .hero::after { box-shadow: inset 0 0 120px 28px rgba(120,90,50,0.12); }
    .nav.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(252,248,241,0.97);
    }
    .btn-ghost { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,0.92); }
    .modal { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(60,44,28,0.55); }
    section:not(#hero) { content-visibility: auto; contain-intrinsic-size: auto 560px; }
}
@media (max-width: 959px){
    .hero-bg {
        background-image: url('images/hero-office-mobile.webp');
        filter: saturate(1.04) brightness(1.06);
        contain: layout style paint;
    }
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.11); } }
@keyframes heroZoomMob { from { transform: scale(1.03); } to { transform: scale(1.09); } }
/* Светлая тёплая вуаль: комната читается как мягкая атмосфера, а не спорит с текстом и портретом */
.hero-veil { position: absolute; inset: 0; z-index: 1; background:
    linear-gradient(100deg, rgba(250,244,234,0.92) 0%, rgba(250,244,234,0.74) 32%, rgba(250,244,234,0.46) 58%, rgba(250,244,234,0.5) 100%),
    linear-gradient(to bottom, rgba(250,244,234,0.3) 0%, transparent 30%, transparent 78%, rgba(248,242,232,0.55) 100%); }
@media (max-width: 959px){
    .hero-veil {
        background:
            linear-gradient(180deg, rgba(250,244,234,0.68) 0%, rgba(250,244,234,0.48) 42%, rgba(250,244,234,0.62) 100%),
            linear-gradient(to bottom, transparent 0%, transparent 72%, rgba(248,242,232,0.45) 100%);
    }
}
.hero-grid { display: grid; gap: 40px; align-items: center; }

.hero h1 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1.0; letter-spacing: -0.01em; margin: 0 0 22px; color: var(--ink); }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(18px); animation: rise .8s cubic-bezier(.23,1,.32,1) forwards; }
.hero .sub {
    font-size: clamp(1rem,1.5vw,1.16rem); color: var(--ink-muted); max-width: 500px;
    margin-bottom: 32px; display: grid; gap: 12px; position: relative;
}
.sub-part {
    display: block; opacity: 0; transform: translateY(14px); filter: blur(5px);
    animation: subBlurIn 1.05s cubic-bezier(.23,1,.32,1) forwards;
}
.sub-part-1 { animation-delay: .5s; }
.sub-part-2 {
    animation-delay: .92s; color: var(--ink); font-weight: 500;
    padding-left: 16px; position: relative;
}
.sub-part-2::before {
    content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--gold-deep), rgba(191,138,76,0.15));
    transform: scaleY(0); transform-origin: top;
    animation: subAccentGrow 1.1s cubic-bezier(.23,1,.32,1) 1.05s forwards;
}
@keyframes subBlurIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes subAccentGrow { to { transform: scaleY(1); } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; animation: rise 1s cubic-bezier(.23,1,.32,1) .65s both; }
.hero-note { margin-top: 36px; display: flex; align-items: center; gap: 11px; font-size: 13px; color: var(--ink-soft); animation: rise 1s ease .8s both; }
.hero-note-text { line-height: 1.45; }
.hero-note .ring { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--gold-deep); font-size: 11px; animation: pulse 2.6s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(191,138,76,.3)} 70%{box-shadow:0 0 0 10px rgba(191,138,76,0)} 100%{box-shadow:0 0 0 0 rgba(191,138,76,0)} }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Hero photo */
.hero-photo { position: relative; }
.hero-photo picture {
    display: block; width: 100%; max-width: 480px; line-height: 0;
    border-radius: 24px; overflow: hidden;
    background: #f5efe6;
    box-shadow: 0 24px 48px -32px rgba(120,90,50,0.32);
}
.hero-photo img {
    width: 100%; max-width: 480px; aspect-ratio: 4/5; object-fit: cover; object-position: center 17%;
    border-radius: 24px; border: none;
    box-shadow: none;
    filter: none;
    animation: floaty 14s ease-in-out infinite alternate;
}
@keyframes floaty { from{transform:translateY(0)} to{transform:translateY(-5px)} }
@keyframes floatyMob { from{transform:translateY(0)} to{transform:translateY(-3px)} }
@keyframes qualMarkerIn {
    0% { opacity: 0; transform: scale(0.55) translateY(8px); }
    55% { opacity: 1; transform: scale(1.1) translateY(0); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes qualMarkerFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}
@keyframes qualMarkerFloatMob {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}
@keyframes qualMarkerPulse {
    0% { box-shadow: 0 6px 18px -10px rgba(120,90,50,0.55), 0 0 0 5px rgba(252,248,241,0.95), 0 0 0 0 rgba(191,138,76,0.28); }
    65% { box-shadow: 0 6px 18px -10px rgba(120,90,50,0.55), 0 0 0 5px rgba(252,248,241,0.95), 0 0 0 9px rgba(191,138,76,0); }
    100% { box-shadow: 0 6px 18px -10px rgba(120,90,50,0.55), 0 0 0 5px rgba(252,248,241,0.95), 0 0 0 0 rgba(191,138,76,0); }
}
@keyframes qualMarkerPulseMob {
    0% { box-shadow: 0 6px 18px -10px rgba(120,90,50,0.5), 0 0 0 4px rgba(252,248,241,0.95), 0 0 0 0 rgba(191,138,76,0.22); }
    65% { box-shadow: 0 6px 18px -10px rgba(120,90,50,0.5), 0 0 0 4px rgba(252,248,241,0.95), 0 0 0 7px rgba(191,138,76,0); }
    100% { box-shadow: 0 6px 18px -10px rgba(120,90,50,0.5), 0 0 0 4px rgba(252,248,241,0.95), 0 0 0 0 rgba(191,138,76,0); }
}
@keyframes qualIconCap {
    from { transform: rotate(-7deg) translateY(0); }
    to { transform: rotate(7deg) translateY(-1px); }
}
@keyframes qualIconBook {
    from { transform: rotate(-5deg) scale(1); }
    to { transform: rotate(5deg) scale(1.07); }
}
@keyframes pulseMob { 0%{box-shadow:0 0 0 0 rgba(191,138,76,.2)} 70%{box-shadow:0 0 0 8px rgba(191,138,76,0)} 100%{box-shadow:0 0 0 0 rgba(191,138,76,0)} }
@keyframes glowMob { from{opacity:.38} to{opacity:.58} }
.hero-photo .tag {
    position: absolute; left: -14px; bottom: 26px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 14px 18px; max-width: 252px;
    box-shadow: 0 20px 50px -24px rgba(120,90,50,0.55);
    animation: rise 1s ease 1s both;
}
.hero-photo .tag .n {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400; font-size: 1.28rem; line-height: 1.12;
    letter-spacing: -0.015em; color: var(--ink);
    margin: 0 0 6px;
}
.hero-photo .tag .s {
    font-size: 12px; font-weight: 400; color: var(--ink-muted);
    line-height: 1.52; letter-spacing: 0.012em;
    margin: 0; text-wrap: pretty;
}
.hero-glow { position: absolute; inset: -6% -6% -6% -6%; z-index: -1; background: radial-gradient(circle at 50% 42%, rgba(255,232,205,0.28), transparent 68%); filter: blur(10px); }

/* Sections */
section { position: relative; padding: 92px 0; scroll-margin-top: 90px; }
@media (min-width: 1024px){ section { padding: 124px 0; } }
@media (max-width: 959px){
    section:not(#hero) { content-visibility: auto; contain-intrinsic-size: auto 520px; }
}
.eyebrow {
    font-size: 11px; letter-spacing: 3.2px; text-transform: uppercase; color: var(--gold-deep);
    font-weight: 600; margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
    content: ''; width: 0; height: 1px; background: linear-gradient(90deg, var(--gold-deep), var(--gold));
    transition: width .8s var(--ease);
}
.reveal.visible .eyebrow::before { width: 28px; }
.section-head { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(2.3rem,4.8vw,3.6rem); line-height: 1.03; color: var(--ink); }
.lead { font-size: 17px; color: var(--ink-muted); line-height: 1.7; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.trust-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; background: #fff;
    border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-muted);
    box-shadow: 0 8px 24px -16px rgba(120,90,50,0.35);
    opacity: 0; transform: translateY(10px);
    transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
}
.reveal.visible .trust-badge { animation: trustIn .7s var(--ease) forwards; }
.reveal.visible .trust-badge:nth-child(1) { animation-delay: .2s; }
.reveal.visible .trust-badge:nth-child(2) { animation-delay: .32s; }
.reveal.visible .trust-badge:nth-child(3) { animation-delay: .44s; }
.reveal.visible .trust-badge:nth-child(4) { animation-delay: .56s; }
.reveal.visible .trust-badge:nth-child(5) { animation-delay: .68s; }
.trust-badge:hover { transform: translateY(-2px); border-color: rgba(191,138,76,0.45); box-shadow: 0 12px 28px -14px rgba(120,90,50,0.42); }
.trust-badge i { color: var(--gold-deep); font-size: 13px; width: 16px; text-align: center; transition: transform .4s var(--ease); }
.trust-badge:hover i { transform: scale(1.12) rotate(-6deg); }
@keyframes trustIn { to { opacity: 1; transform: none; } }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--line) 30%, rgba(191,138,76,0.5) 50%, var(--line) 70%, transparent); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-card); transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; }
.card:hover { transform: translateY(-6px); border-color: rgba(191,138,76,0.45); box-shadow: var(--shadow-lift); }

/* Portrait in about */

/* Topics */
.topic-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px){ .topic-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px){ .topic-grid { grid-template-columns: repeat(5,1fr); } }
.topic { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; cursor: pointer; position: relative; overflow: hidden; transition: transform .4s cubic-bezier(.23,1,.32,1), border-color .4s, box-shadow .4s; box-shadow: 0 20px 40px -34px rgba(120,90,50,0.45); }
.topic::before { content:''; position:absolute; inset:0; opacity:0; background: radial-gradient(120% 80% at 50% 0%, rgba(255,224,180,0.5), transparent 70%); transition: opacity .4s; }
.topic:hover { transform: translateY(-6px); border-color: rgba(191,138,76,0.5); box-shadow: 0 30px 55px -34px rgba(120,90,50,0.55); }
.topic:hover::before { opacity: 1; }
.topic.active { border-color: var(--gold); background: #fff; box-shadow: 0 24px 48px -30px rgba(120,90,50,0.5); }
.topic.active .ico { background: rgba(191,138,76,0.2); border-color: rgba(191,138,76,0.45); animation: topicIcoPulse 3s ease-in-out infinite; }
@keyframes topicIcoPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(191,138,76,0.2); }
    50% { box-shadow: 0 0 0 6px rgba(191,138,76,0); }
}
.topic .ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(191,138,76,0.12); border: 1px solid var(--line); color: var(--gold-deep); font-size: 18px; margin-bottom: 16px; position: relative; z-index: 1; }
.topic .t-name { font-size: 16px; font-weight: 600; position: relative; z-index: 1; }
.topic .t-hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; position: relative; z-index: 1; }
.detail-panel {
    margin-top: 22px; padding: 38px; border-radius: 22px; background: var(--card);
    border: 1px solid var(--line); min-height: 200px; box-shadow: 0 30px 60px -44px rgba(120,90,50,0.5);
    scroll-margin-top: 132px; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.detail-panel.panel-swapping { opacity: 0; transform: translateY(8px); }
.detail-panel.panel-swapped { animation: panelIn .5s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
#schema-wrap { display: grid; gap: 26px; }
@media (min-width: 900px){
    #schema-wrap { grid-template-columns: 5fr 7fr; align-items: start; }
    .schema-col-list { grid-column: 1; grid-row: 1; }
    .schema-col-focus { grid-column: 1; grid-row: 2; }
    .schema-col-detail { grid-column: 2; grid-row: 1 / span 2; }
}
#instruments-row { display: grid; gap: 24px; }
@media (min-width: 900px){ #instruments-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 959px){
    #note-card { order: -1; }
    #diag-card.tool-fold:not(.open) .tool-fold-body { display: none; }
    .tool-fold-toggle {
        display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
        background: none; border: none; padding: 0; margin: 0 0 12px; cursor: pointer; text-align: left; color: inherit;
    }
    .tool-fold-toggle .chev { color: var(--gold-deep); font-size: 13px; transition: transform .25s ease; }
    #diag-card.tool-fold.open .tool-fold-toggle .chev { transform: rotate(180deg); }
}
@media (min-width: 960px){
    .tool-fold-toggle { display: none; }
    .tool-fold-body { display: block !important; }
}
.privacy-note {
    padding: 0; margin-top: 0; margin-bottom: 18px;
    font-size: 12px; line-height: 1.55; color: var(--ink-soft); max-width: 720px;
}
.privacy-details { margin-bottom: 18px; max-width: 720px; }
.privacy-details summary {
    list-style: none; cursor: pointer; font-size: 13px; color: var(--ink-muted);
    font-weight: 500; display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 0; min-height: 44px;
}
.privacy-details summary::-webkit-details-marker { display: none; }
.privacy-details summary::after {
    content: 'подробнее'; font-size: 12px; color: var(--gold-deep); font-weight: 500;
}
.privacy-details[open] summary::after { content: 'свернуть'; }
.privacy-details .privacy-note { margin-top: 10px; margin-bottom: 0; }
.messenger-pick {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px;
}
.messenger-opt {
    min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
    font-size: 14px; font-weight: 500; color: var(--ink-muted); cursor: pointer; font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    transition: border-color .2s, background .2s, color .2s;
}
.messenger-opt.active {
    border-color: var(--gold); background: #fffaf2; color: var(--ink); font-weight: 600;
}
.text-link {
    background: none; border: none; padding: 6px 2px; font: inherit;
    color: var(--gold-deep); cursor: pointer; text-decoration: underline;
    text-decoration-color: rgba(158,111,52,0.35); text-underline-offset: 3px;
}
.text-link:hover { color: var(--ink); }
.sticky-cta-hint-btn {
    width: 100%; margin: 0 0 2px; text-align: center;
    font-size: 11px; line-height: 1.35; color: var(--ink-soft); letter-spacing: 0.01em;
    background: none; border: none; padding: 4px 8px; cursor: pointer; font-family: inherit;
    text-decoration: underline; text-decoration-color: rgba(158,111,52,0.28); text-underline-offset: 2px;
}
.sticky-cta-hint-btn:hover { color: var(--gold-deep); }
.note-prompts {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.note-prompt {
    flex: 1 1 auto; min-height: 44px; padding: 10px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-muted);
    font-size: 13px; font-family: inherit; cursor: pointer; text-align: left;
    transition: border-color .2s, background .2s, color .2s;
}
.note-prompt:hover { border-color: var(--gold); background: #fffaf2; color: var(--ink); }
.qual-wrap { max-width: 760px; }
.qual-timeline {
    position: relative; display: grid; gap: 18px;
}
.qual-timeline::before {
    content: ''; position: absolute; left: 18px; top: 32px; bottom: 32px; width: 2px;
    background: linear-gradient(180deg, var(--gold-deep) 0%, rgba(191,138,76,0.22) 88%, transparent 100%);
    border-radius: 2px; pointer-events: none;
}
.qual-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 18px;
    padding: 28px 30px !important;
    border-color: rgba(191,138,76,0.18);
}
.qual-card:hover { border-color: rgba(191,138,76,0.42); }
.qual-marker {
    grid-column: 1; grid-row: 1;
    align-self: start; justify-self: center;
    width: 34px; height: 34px; margin-top: 2px; flex-shrink: 0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #fff9ef, #fff);
    border: 1.5px solid rgba(191,138,76,0.45);
    color: var(--gold-deep); font-size: 13px;
    box-shadow: 0 6px 18px -10px rgba(120,90,50,0.55), 0 0 0 5px rgba(252,248,241,0.95);
    z-index: 2;
    will-change: transform;
}
.qual-marker i {
    display: block; transform-origin: center 72%;
    transition: transform .4s cubic-bezier(.23,1,.32,1);
}
.reveal.visible .qual-card:nth-child(1) .qual-marker {
    animation:
        qualMarkerIn .75s cubic-bezier(.23,1,.32,1) .12s both,
        qualMarkerFloat 5.2s ease-in-out 1s infinite alternate,
        qualMarkerPulse 3.4s ease-out 1s infinite;
}
.reveal.visible .qual-card:nth-child(2) .qual-marker {
    animation:
        qualMarkerIn .75s cubic-bezier(.23,1,.32,1) .32s both,
        qualMarkerFloat 5.8s ease-in-out 1.15s infinite alternate-reverse,
        qualMarkerPulse 3.8s ease-out 1.15s infinite;
}
.reveal.visible .qual-card:nth-child(1) .qual-marker i {
    animation: qualIconCap 4.4s ease-in-out 1.25s infinite alternate;
}
.reveal.visible .qual-card:nth-child(2) .qual-marker i {
    animation: qualIconBook 5s ease-in-out 1.45s infinite alternate;
}
@media (hover: hover){
    .qual-card:hover .qual-marker {
        border-color: rgba(191,138,76,0.62);
        transform: scale(1.08);
        transition: transform .35s cubic-bezier(.23,1,.32,1), border-color .35s;
    }
    .qual-card:hover .qual-marker i { transform: scale(1.14) rotate(-4deg); animation-play-state: paused; }
}
.qual-card-top {
    grid-column: 2; grid-row: 1;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 14px; margin-bottom: 12px;
}
.qual-card .qual-uni { grid-column: 2; grid-row: 2; }
.qual-card .qual-lines { grid-column: 2; grid-row: 3; }
.qual-tag {
    font-size: 10.5px; letter-spacing: 2.4px; text-transform: uppercase;
    color: var(--gold-deep); font-weight: 600; line-height: 1.35;
}
.qual-year-badge {
    display: inline-flex; align-items: center; padding: 5px 11px;
    border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em;
    color: var(--gold-deep); background: rgba(191,138,76,0.1); border: 1px solid rgba(191,138,76,0.28);
    white-space: nowrap;
}
.qual-uni {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.2rem, 2.8vw, 1.48rem); line-height: 1.28;
    color: var(--ink); margin: 0 0 14px; text-wrap: pretty;
}
.qual-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--ink-muted); font-size: 15px; line-height: 1.55; }
.qual-lines li { position: relative; padding-left: 14px; }
.qual-lines li::before {
    content: ''; position: absolute; left: 0; top: 0.62em;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--gold); opacity: 0.85;
}
.qual-lines li strong { color: var(--ink); font-weight: 600; }
.qual-diplomas-wrap { margin-top: 22px; scroll-margin-top: 112px; }
.qual-diploma-card {
    position: relative;
    display: block;
    width: min(100%, 720px);
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.qual-diploma-card::after { display: none; }
.qual-diploma-visual {
    position: relative; z-index: 1;
    align-self: start;
    border-radius: 18px; overflow: hidden;
    padding: 8px;
    border: 1px solid rgba(191,138,76,0.2);
    background: rgba(255,254,251,0.96);
    box-shadow: 0 18px 40px -30px rgba(86,61,32,0.48);
}
.qual-diploma-visual a { display: block; color: inherit; text-decoration: none; }
.qual-diploma-visual img {
    display: block; width: 100%; height: auto;
    border-radius: 12px;
    aspect-ratio: auto;
    object-fit: contain;
    transition: filter .35s cubic-bezier(.23,1,.32,1);
}
.qual-diploma-card:hover .qual-diploma-visual img {
    filter: saturate(1.03) contrast(1.01);
}
.qual-diploma-badge {
    position: absolute; right: 18px; top: 18px; z-index: 2;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 12px; border-radius: 999px;
    background: rgba(255,252,246,0.92); border: 1px solid rgba(191,138,76,0.24);
    color: var(--gold-deep); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
    box-shadow: 0 10px 25px -18px rgba(80,57,29,0.55);
}
.qual-diploma-badge::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: linear-gradient(180deg, #d1ab6f, #b98446);
}

/* Schema map */
.schema-list { display: grid; grid-template-columns: 1fr; gap: 11px; }
@media (min-width: 600px){ .schema-list { grid-template-columns: 1fr 1fr; } }
.schema-item { padding: 18px 20px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: transform .3s cubic-bezier(.23,1,.32,1), border-color .3s, background .3s; }
.schema-item:hover { transform: translateX(4px); border-color: rgba(191,138,76,0.5); }
.schema-item { position: relative; overflow: hidden; }
.schema-item::before {
    content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--gold-deep);
    transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.schema-item.active { border-color: var(--gold); background: #fff; }
.schema-item.active::before { transform: scaleY(1); }
.schema-item-main { flex: 1; min-width: 0; cursor: pointer; }
.schema-item .name { font-weight: 600; font-size: 15px; } .schema-item .sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.focus-add { font-size: 10px; letter-spacing: 1.2px; color: var(--gold-deep); background: none; border: none; cursor: pointer; opacity: .7; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px; }
textarea.tool-input, #booking-modal input, #booking-modal select {
    width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 14px 16px; font-size: 15px; color: var(--ink); font-family: inherit; line-height: 1.6; resize: vertical; transition: border-color .2s, box-shadow .2s;
}
textarea.tool-input:focus, #booking-modal input:focus, #booking-modal select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191,138,76,0.15); }
textarea.tool-input::placeholder { color: var(--ink-soft); }
textarea.tool-input { min-height: 120px; }
.note-hint { font-size: 12px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }
.note-output { background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; padding: 26px; font-size: 15px; line-height: 1.75; color: var(--ink-muted); min-height: 120px; scroll-margin-top: 132px; }
.scroll-hint {
    display: none; align-items: center; gap: 6px;
    font-size: 12px; color: var(--ink-soft); margin: 0 0 10px;
}
.scroll-hint i { color: var(--gold-deep); font-size: 11px; }
.h-scroll-wrap { position: relative; }
.h-scroll-wrap::after {
    content: ''; position: absolute; right: 0; top: 0; bottom: 6px; width: 28px;
    pointer-events: none;
    background: linear-gradient(to right, transparent, var(--bg) 88%);
}
.focus-chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 8px 0; padding: 7px 13px; font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; animation: place .45s cubic-bezier(.23,1,.32,1); }
@keyframes place { from{transform:translateY(-8px) scale(.7);opacity:0} to{transform:none;opacity:1} }

.story { padding: 32px; cursor: pointer; }
.story-cta { color: var(--gold-deep); font-size: 14px; margin-top: 22px; transition: gap .3s var(--ease), transform .3s var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.story:hover .story-cta { gap: 10px; transform: translateX(3px); }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); }
.reveal.visible.reveal-stagger > * { animation: staggerIn .8s var(--ease) forwards; }
.reveal.visible.reveal-stagger > *:nth-child(1) { animation-delay: .08s; }
.reveal.visible.reveal-stagger > *:nth-child(2) { animation-delay: .18s; }
.reveal.visible.reveal-stagger > *:nth-child(3) { animation-delay: .28s; }
.reveal.visible.reveal-stagger > *:nth-child(4) { animation-delay: .38s; }
.reveal.visible.reveal-stagger > *:nth-child(5) { animation-delay: .48s; }
.reveal.visible.reveal-stagger > *:nth-child(6) { animation-delay: .58s; }
@keyframes staggerIn { to { opacity: 1; transform: none; } }
.price-card { padding: 36px; transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; }
.price-card.price-featured {
    border-color: rgba(191,138,76,0.42);
    box-shadow: 0 34px 68px -36px rgba(120,90,50,0.58), 0 0 0 1px rgba(191,138,76,0.12);
}
.price-card.price-featured::after {
    content: 'Популярно'; position: absolute; top: 18px; right: 18px;
    font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600;
    color: var(--gold-deep); background: rgba(191,138,76,0.12); border: 1px solid rgba(191,138,76,0.28);
    padding: 5px 10px; border-radius: 999px; z-index: 2;
}
.price-line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.23,1,.32,1), transform .9s cubic-bezier(.23,1,.32,1); }
.reveal.visible { opacity: 1; transform: none; }

.modal { position: fixed; inset: 0; background: rgba(60,44,28,0.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 300; display: none; align-items: flex-end; }
.modal.show { display: flex; }
@media (min-width: 720px){ .modal { align-items: center; justify-content: center; } }
.modal-panel { width: 100%; max-height: 92vh; overflow: auto; padding: 32px 26px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 26px 26px 0 0; box-shadow: 0 -16px 60px -16px rgba(80,60,35,0.4); animation: rise .45s cubic-bezier(.23,1,.32,1); }
@media (min-width: 720px){ .modal-panel { width: 440px; border-radius: 24px; padding: 34px; } .modal-panel.wide { width: 640px; } }
#booking-modal .submit { width: 100%; height: 52px; border: none; border-radius: 14px; font-weight: 600; font-size: 15px; cursor: pointer; color: #fff; background: linear-gradient(180deg, #caa066, #b07e3f); box-shadow: 0 12px 30px -12px rgba(176,126,63,0.7); transition: transform .2s; }
#booking-modal .submit:hover { transform: translateY(-2px); }

#mobile-menu { display: none; position: fixed; inset: 0; z-index: 250; background: rgba(248,242,232,0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: calc(24px + env(safe-area-inset-top,0px)) calc(24px + env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) calc(24px + env(safe-area-inset-left,0px)); }
#mobile-menu.open { display: flex; align-items: center; justify-content: center; }
#mobile-menu a { display: block; padding: 16px 0; min-height: 44px; font-size: 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); font-family: 'Instrument Serif', serif; }
@media (min-width: 960px){ #mobile-hamburger, .btn-cta-nav, .mobile-sections { display: none; } }
.hide-desktop { display: inline-flex; }
br.hide-desktop { display: inline; }
@media (min-width: 960px){ .hide-desktop, br.hide-desktop { display: none; } .hide-mobile { display: inline-flex; } }
.hide-mobile { display: none; }

/* Мобильная лента разделов — быстрый переход одним пальцем */
.mobile-sections {
    display: none; position: fixed; top: 66px; left: 0; right: 0; z-index: 195;
    background: rgba(252,248,241,0.92); -webkit-backdrop-filter: blur(12px) saturate(1.05); backdrop-filter: blur(12px) saturate(1.05);
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 0;
}
.mobile-sections.visible { display: block; }
.mobile-sections-track {
    display: flex; gap: 8px; overflow-x: auto; padding: 0 16px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mobile-sections-track::-webkit-scrollbar { display: none; }
.mobile-sections a {
    flex: 0 0 auto; scroll-snap-align: start;
    padding: 10px 14px; min-height: 44px;
    display: inline-flex; align-items: center;
    border-radius: 999px; border: 1px solid var(--line);
    background: #fff; color: var(--ink-muted);
    text-decoration: none; font-size: 13px; font-weight: 500;
    white-space: nowrap; transition: border-color .2s, color .2s, background .2s, transform .25s var(--ease), box-shadow .25s;
}
.mobile-sections a.active {
    border-color: var(--gold); color: var(--ink); background: #fffaf2;
    transform: scale(1.02); box-shadow: 0 6px 18px -10px rgba(120,90,50,0.35);
}

/* Sticky mobile CTA */
.sticky-cta {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 190;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(252,248,241,0.94); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
    border-top: 1px solid var(--line-soft); box-shadow: 0 -12px 40px -18px rgba(120,90,50,0.45);
    gap: 10px; align-items: center;
}
.sticky-cta.visible { display: flex; }
.sticky-cta .btn { flex: 1; height: 50px; min-height: 44px; }
.sticky-cta-channel {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff; color: var(--ink-muted);
    text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap;
    transition: border-color .2s, color .2s;
}
.sticky-cta-channel:hover { border-color: var(--gold); color: var(--ink); }
@media (min-width: 960px){ .sticky-cta { display: none !important; } }
@media (max-width: 959px){
    html.has-sticky-cta { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
    body.has-sticky-cta { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
    body.has-sticky-cta #instruments-row { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== Изюминка: дыхательная пауза ===== */
.breath-section { background: linear-gradient(180deg, rgba(255,245,229,0.6), rgba(248,242,232,0)); }
.breath-stage { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.breath-orb {
    position: relative; width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #ffe7c0, #e8b97f 55%, #cf9a5c 100%);
    box-shadow: 0 0 0 0 rgba(207,154,92,0.35), 0 24px 60px -20px rgba(176,126,63,0.5), inset 0 6px 20px rgba(255,255,255,0.5);
    display: flex; align-items: center; justify-content: center;
    transition: transform 4s cubic-bezier(.4,0,.4,1), box-shadow 4s ease;
}
.breath-orb::after {
    content: ''; position: absolute; inset: -22px; border-radius: 50%;
    border: 1px solid rgba(191,138,76,0.3); opacity: .6;
}
.breath-orb.inhale { transform: scale(1.32); box-shadow: 0 0 60px 12px rgba(232,185,127,0.45), 0 24px 60px -20px rgba(176,126,63,0.5), inset 0 6px 20px rgba(255,255,255,0.6); }
.breath-orb.exhale { transform: scale(0.86); }
.breath-phase { color: #5a4631; font-size: 19px; font-weight: 500; letter-spacing: .3px; }
.breath-count { font-family:'Instrument Serif',serif; font-size: 46px; color: var(--gold-deep); line-height: 1; }
/* плавающие тёплые «пылинки» света — лёгкая жизнь в кабинете */
.motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.motes i { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, rgba(255,224,170,0.9), transparent 70%); animation: floatUp linear infinite; }
@keyframes floatUp { 0%{ transform: translateY(0) translateX(0); opacity:0 } 10%{opacity:.8} 90%{opacity:.6} 100%{ transform: translateY(-120vh) translateX(30px); opacity:0 } }

/* ===== Визуальный полишинг ===== */
/* Тёплая виньетка — портрет и текст выходят на первый план */
.hero::after { content:''; position:absolute; inset:0; z-index:1; pointer-events:none; box-shadow: inset 0 0 170px 36px rgba(120,90,50,0.16); }
/* Мягкий верхний блик на карточках — premium-объём */
.card { position: relative; }
.card::before { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background: linear-gradient(180deg, rgba(255,255,255,0.55), transparent 24%); opacity:.6; }
.card > * { position: relative; z-index: 1; }
body::after {
    content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.divider { transition: opacity .6s var(--ease); }
.reveal.visible + .divider, .divider:has(+ section .reveal.visible) { opacity: 1; }
/* Тёплый скроллбар */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(176,137,75,0.35); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(176,137,75,0.55); }
html { scrollbar-color: rgba(176,137,75,0.4) var(--bg); }
/* Доступная фокус-обводка */
a:focus-visible, button:focus-visible, .topic:focus-visible, .schema-item-main:focus-visible, .story:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
/* Инлайн-SVG иконки (замена Font Awesome: без внешней зависимости и веб-шрифта, анимации на <i> сохранены) */
.fa-svg { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
/* Карточки-ссылки на тесты Янга */
.test-links { display: grid; gap: 12px; }
.test-link-card { display: block; text-decoration: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease); }
.test-link-card:hover { border-color: rgba(191,138,76,0.45); box-shadow: 0 14px 30px -20px rgba(120,90,50,0.42); transform: translateY(-2px); }
.test-link-name { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.4; }
.test-link-name span { color: var(--gold-deep); }
.test-link-desc { color: var(--ink-muted); font-size: 13.5px; line-height: 1.6; margin-top: 6px; }
/* Спокойная секция-цитата */
.quote-band { text-align:center; padding: 96px 0; background: linear-gradient(180deg, rgba(255,245,229,0.45), rgba(248,242,232,0)); }
.quote-band .mark {
    font-family:'Instrument Serif',serif; font-size: 70px; line-height: .4; color: var(--gold);
    opacity: 0; display:block; margin-bottom: 8px; transform: scale(.85);
}
.quote-band.visible .mark { animation: quoteMarkIn 1s var(--ease) .1s forwards, quoteMarkFloat 6s ease-in-out 1.2s infinite; }
.quote-band .q {
    font-family:'Instrument Serif',serif; font-weight:400; font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    line-height: 1.22; color: var(--ink); max-width: 860px; margin: 0 auto;
    opacity: 0; transform: translateY(16px);
}
.quote-band.visible .q { animation: quoteTextIn 1s var(--ease) .35s forwards; }
.quote-band .q em {
    font-style: italic; color: var(--gold-deep); position: relative;
    display: inline-block;
}
.quote-band.visible .q em { animation: quoteEmGlow 4s ease-in-out 1.5s infinite alternate; }
@keyframes quoteMarkIn { to { opacity: .5; transform: scale(1); } }
@keyframes quoteMarkFloat { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.02); } }
@keyframes quoteTextIn { to { opacity: 1; transform: none; } }
@keyframes quoteEmGlow { from { text-shadow: 0 0 0 transparent; } to { text-shadow: 0 0 24px rgba(191,138,76,0.25); } }
/* Уважаем «уменьшить движение» (важно для тревожных посетителей) */
@media (prefers-reduced-motion: reduce){
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .motes, .breath-orb, .qual-marker, .qual-marker i, .sub-part, .sub-part-2::before, .btn-primary::after, .trust-badge, .topic.active .ico, .quote-band .mark, .quote-band .q, .quote-band .q em, .reveal-stagger > *, .step .num, .cta-final .btn-primary { animation: none !important; }
    .sub-part, .trust-badge, .reveal-stagger > *, .quote-band .mark, .quote-band .q { opacity: 1 !important; transform: none !important; filter: none !important; }
    .sub-part-2::before, .schema-item.active::before { transform: scaleY(1) !important; }
    body::after { display: none; }
    .breath-orb.inhale, .breath-orb.exhale { transform: none !important; }
}

@keyframes welcomeIcon {
    0% { opacity: 0; transform: scale(.6) rotate(-12deg); }
    50% { transform: scale(1.05) rotate(3deg); }
    100% { transform: scale(1) rotate(0); }
}
@keyframes greetWordIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Во время приветственной загрузки прячем остальной контент hero */
.hero.welcome #hero-h1,
.hero.welcome .sub,
.hero.welcome .hero-cta,
.hero.welcome .hero-note,
.hero.welcome .hero-photo {
    opacity: 0 !important;
    pointer-events: none;
}

/* ============================================================
   ИНТРО «СПОКОЙНЫЙ ВДОХ» — ПОЛНОЭКРАННОЕ, поверх всего (шапка, вкладки
   разделов, нижняя панель). Тёплая кремовая пелена делает один вдох: из
   точки за словами приветствия расцветает мягкое золотисто-blush свечение
   (вдох), задержка, затем выдох — пелена растворяется и открывает всю
   страницу разом. Эхо мотива 4-7-8. Анимируются только opacity/transform/
   filter — GPU-friendly. Закрывает экран с первого кадра (без вспышки
   контента) и сама гаснет через --intro-ms (forwards), даже без JS.
   reduced-motion → не рисуется вовсе.
   ============================================================ */
.breath-intro {
    position: fixed;
    inset: 0;
    z-index: 600;               /* выше nav(200)/вкладок(195)/нижней панели(190)/меню(250)/модалки(300)/skip(500) */
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(135% 130% at 50% 44%,
        var(--bg-soft) 0%, var(--bg) 58%, var(--bg) 100%);
    pointer-events: none;       /* никогда не блокирует ввод/скролл */
    opacity: 1;                 /* закрываем с первого кадра — контент не мелькает */
    visibility: visible;
    animation: introHide var(--intro-ms, 3.3s) cubic-bezier(.37,0,.45,1) forwards;
}
/* Мягкое золотисто-blush свечение — «тёплый воздух вдоха», растёт из точки за словами */
.breath-intro-glow {
    position: absolute;
    left: 50%;
    top: 44%;
    width: 80vmax;
    height: 80vmax;
    margin: -40vmax 0 0 -40vmax;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%,
        rgba(217,169,138,0.30) 0%,    /* --blush */
        rgba(191,138,76,0.16) 34%,    /* --gold  */
        rgba(255,232,205,0.07) 56%,
        transparent 72%);
    filter: blur(8px);                /* радиус статичен — размытие не пересчитывается покадрово */
    opacity: 0;
    transform: scale(0.62) translateZ(0);
    will-change: transform, opacity;
    animation: veilGlow var(--welcome-ms, 2.65s) cubic-bezier(.37,0,.45,1) both;
}
/* Приветствие по центру вдоха — большое, читается поверх свечения */
.breath-intro-greet {
    position: relative;
    z-index: 1;
    max-width: min(86vw, 540px);
    text-align: center;
    color: var(--gold-deep);
    font-size: clamp(16px, 4.4vw, 22px);
    letter-spacing: .3px;
    line-height: 1.5;
    padding: 0 26px;
}
.breath-intro-greet i {
    color: var(--gold);
    margin-right: 7px;
    animation: welcomeIcon 1.6s ease-in-out .1s both;
}
.breath-intro-greet .greet-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(8px);
    animation: greetWordIn .7s var(--ease) both;
}
/* Вдох держит экран закрытым (читаются слова), затем выдох — растворяемся и открываем страницу */
@keyframes introHide {
    0%   { opacity: 1; visibility: visible; }
    80%  { opacity: 1; visibility: visible; }   /* ≈ --welcome-ms: держим, пока проступает приветствие */
    100% { opacity: 0; visibility: hidden; }    /* выдох — открываем всю страницу */
}
@keyframes veilGlow {
    0%   { opacity: 0;    transform: scale(0.62); }  /* росток света из точки */
    45%  { opacity: 1;    transform: scale(1.0); }   /* свечение «вдохнуло» */
    72%  { opacity: 0.92; transform: scale(1.04); }  /* мягкая задержка */
    100% { opacity: 0;    transform: scale(1.12); }  /* выдох — тает наружу */
}
/* «Уменьшить движение»: интро не рисуется вовсе — страница сразу видна */
@media (prefers-reduced-motion: reduce) {
    .breath-intro { display: none !important; }
}
/* Живые иконки тем */
.topic .ico { transition: transform .45s cubic-bezier(.23,1,.32,1), background .4s; }
.topic:hover .ico { transform: scale(1.12) rotate(-5deg); background: rgba(191,138,76,0.18); }
/* Секция «Как проходит встреча» */
.steps-grid { display:grid; gap:18px; position:relative; }
@media (min-width: 900px){
    .steps-grid::before {
        content: ''; position: absolute; top: 52px; left: 8%; right: 8%; height: 1px;
        background: linear-gradient(90deg, transparent, var(--line) 8%, rgba(191,138,76,0.45) 50%, var(--line) 92%, transparent);
        pointer-events: none;
    }
}
.step .num {
    font-family:'Instrument Serif',serif; font-size:44px; line-height:1; color:var(--gold);
    opacity:.55; margin-bottom:12px; transition: opacity .4s, transform .45s var(--ease);
}
.step:hover .num { opacity: .85; transform: translateY(-2px); }
.reveal.visible .step .num { animation: stepNumIn .9s var(--ease) both; }
.reveal.visible .step:nth-child(1) .num { animation-delay: .15s; }
.reveal.visible .step:nth-child(2) .num { animation-delay: .28s; }
.reveal.visible .step:nth-child(3) .num { animation-delay: .41s; }
.reveal.visible .step:nth-child(4) .num { animation-delay: .54s; }
@keyframes stepNumIn { from { opacity: 0; transform: translateY(12px) scale(.92); } to { opacity: .55; transform: none; } }
.step .st { font-weight:600; font-size:17px; margin-bottom:8px; }
.step .sd { font-size:14.5px; color:var(--ink-muted); }
.cta-final {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(255,245,229,0.55) 0%, rgba(248,242,232,0.2) 100%);
}
.cta-final::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(191,138,76,0.14), transparent 70%);
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final .section-head { animation: none; }
.reveal.visible.cta-final .btn-primary { animation: ctaPulse 4s ease-in-out 1.2s infinite; }
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 12px 30px -12px rgba(176,126,63,0.7), inset 0 1px 0 rgba(255,255,255,0.4); }
    50% { box-shadow: 0 16px 38px -10px rgba(176,126,63,0.82), inset 0 1px 0 rgba(255,255,255,0.4); }
}

/* ============ МОБИЛЬНАЯ ВЕРСИЯ (основной поток — телефон) ============ */
@media (max-width: 959px){
    body { font-size: 16px; line-height: 1.65; }
    .container { padding: 0 16px; max-width: 100%; }
    section { padding: 52px 0; scroll-margin-top: 118px; }
    .nav-inner { height: 66px; gap: 10px; min-width: 0; }
    .nav-inner > .brand { min-width: 0; flex: 1 1 auto; }
    .nav-inner > div:last-child { flex: 0 0 auto; gap: 6px !important; min-width: 0; }

    .nav.scrolled { background: rgba(252,248,241,0.94); }

    /* Hero: портрет сверху, компактно, без «пустого» экрана */
    .hero { min-height: auto; padding: 118px 0 44px; text-align: center; }
    .hero-grid { gap: 24px; min-width: 0; }
    .hero-grid > * { min-width: 0; }
    .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.2rem); margin-bottom: 16px; overflow-wrap: break-word; }
    .hero .sub {
        align-self: center; width: 100%; max-width: min(92vw, 340px); min-width: 0;
        text-align: center; gap: 10px; margin-bottom: 20px;
    }
    .sub-part-1 { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
    .sub-part-2 {
        padding: 0; margin-top: 0;
        background: none; border: none; border-radius: 0;
        font-size: 15.5px; line-height: 1.55; text-align: center; color: var(--ink);
    }
    .sub-part-2::before { display: none; }
    .hero-cta { flex-direction: column; gap: 10px; width: 100%; max-width: 100%; min-width: 0; }
    .hero-grid > div:first-child { display: flex; flex-direction: column; align-items: stretch; min-width: 0; max-width: 100%; }
    .hero-note {
        order: 5;
        align-self: center;
        width: 100%;
        max-width: min(92vw, 360px);
        margin-top: 18px;
        margin-bottom: 0;
        padding: 12px 15px 12px 13px;
        justify-content: flex-start;
        font-size: 13.5px;
        line-height: 1.5;
        text-align: left;
        gap: 10px;
        background: rgba(255,252,247,0.9);
        border: 1px solid rgba(191,138,76,0.18);
        border-radius: 16px;
        box-shadow: 0 12px 32px -20px rgba(120,90,50,0.38);
    }
    .hero-note .ring { width: 28px; height: 28px; font-size: 10px; }
    .hero-cta { order: -1; margin-top: 18px; margin-bottom: 34px; }
    /* Тонкий разделитель между кнопками записи и заголовком — чтобы не «сливалось» */
    #hero-h1 { position: relative; }
    #hero-h1::before { content: ''; display: block; width: 40px; height: 2px; margin: 0 auto 22px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .65; }
    .hero-photo {
        order: -1;
        display: flex; flex-direction: column; align-items: center;
        width: 100%; min-width: 0; max-width: 100%; margin: 0 auto 4px;
    }
    .hero-photo picture {
        width: 100%; max-width: min(86vw, 340px); margin: 0 auto;
        border-radius: 24px;
        box-shadow: 0 28px 56px -36px rgba(120,90,50,0.4);
    }
    .hero-photo img {
        width: 100%; max-width: min(86vw, 340px); margin: 0 auto; display: block;
        aspect-ratio: 4/5; object-position: center 17%;
        border-radius: 24px;
        animation: floatyMob 16s ease-in-out infinite alternate;
        filter: none;
        box-shadow: none;
        border-color: rgba(176,137,75,0.14);
    }
    .hero-photo .tag {
        position: relative; left: auto; bottom: auto; transform: none;
        width: min(86vw, 340px); max-width: 100%;
        margin-top: -20px; padding: 14px 18px 16px;
        border-radius: 16px; text-align: center; z-index: 2;
        box-shadow: 0 18px 44px -22px rgba(120,90,50,0.48);
    }
    .hero-photo .tag .n {
        font-size: clamp(1.32rem, 5.4vw, 1.48rem);
        line-height: 1.1; margin-bottom: 7px;
    }
    .hero-photo .tag .s {
        font-size: clamp(13px, 3.5vw, 14px);
        line-height: 1.55; letter-spacing: 0.01em;
        max-width: 30ch; margin: 0 auto;
    }
    .hero-bg {
        opacity: 1;
        animation: heroZoomMob 48s ease-in-out infinite alternate;
        transform: scale(1.04);
        filter: saturate(1.04) brightness(1.06);
        will-change: auto;
    }
    .hero-note .ring { animation: pulseMob 3.4s infinite; }
    .sub-part { animation: subBlurInMob 1s cubic-bezier(.23,1,.32,1) forwards; }
    @keyframes subBlurInMob { to { opacity: 1; transform: none; filter: blur(0); } }
    .hero::after { box-shadow: inset 0 0 100px 22px rgba(120,90,50,0.1); }
    .hero-glow { display: block; opacity: .5; filter: blur(6px); animation: glowMob 9s ease-in-out infinite alternate; }
    .hero { contain: layout style paint; }
    .scroll-progress { display: block; height: 2px; }
    .nav { transition: background .35s ease, box-shadow .35s ease, border-color .35s ease; }
    .card { transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
    .card::before { display: block; opacity: .42; }
    .reveal { transition: opacity .75s cubic-bezier(.23,1,.32,1), transform .75s cubic-bezier(.23,1,.32,1); }
    .motes i { width: 5px; height: 5px; }

    /* Без backdrop-filter на телефоне — меньше лагов при скролле */
    html { scroll-behavior: auto; }
    .nav.scrolled,
    .mobile-sections,
    .sticky-cta,
    #mobile-menu,
    .modal,
    .btn-ghost {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .nav.scrolled { background: rgba(252,248,241,0.98); }
    .mobile-sections { background: rgba(252,248,241,0.98); }
    .sticky-cta { background: rgba(252,248,241,0.98); }
    #mobile-menu { background: rgba(248,242,232,0.99); }
    .modal { background: rgba(60,44,28,0.58); }
    .btn-ghost { background: rgba(255,255,255,0.95); }

    /* Кнопки: палец, во всю ширину где уместно */
    .btn { width: 100%; height: 52px; min-height: 48px; font-size: 15px; }
    .hero-cta .btn {
        width: 100%; max-width: 100%; padding: 0 18px;
        white-space: normal; text-align: center;
    }
    .nav-inner .btn, .sticky-cta .btn, .sticky-cta-channel { width: auto; }
    .scroll-hint { display: flex; }
    .btn-cta-nav { min-width: 96px; padding: 0 12px; font-weight: 600; font-size: 12.5px; }
    .btn-sm { min-height: 48px; height: 48px; padding: 0 18px; }

    textarea.tool-input, #booking-modal input, #booking-modal select { font-size: 16px; min-height: 48px; }
    textarea.tool-input { min-height: 160px; }

    .section-head { font-size: clamp(1.95rem, 8vw, 2.55rem); }
    .lead { font-size: 16px; }
    .eyebrow { font-size: 10px; letter-spacing: 2.6px; }

    .card, .price-card, .story, .detail-panel { padding: 22px !important; border-radius: 18px; }
    .qual-card {
        grid-template-columns: 34px 1fr; column-gap: 14px;
        padding: 22px 20px !important;
    }
    .qual-marker { width: 30px; height: 30px; font-size: 12px; margin-top: 1px; }
    .reveal.visible .qual-card:nth-child(1) .qual-marker {
        animation:
            qualMarkerIn .7s cubic-bezier(.23,1,.32,1) .1s both,
            qualMarkerFloatMob 6.5s ease-in-out 1s infinite alternate,
            qualMarkerPulseMob 3.8s ease-out 1s infinite;
    }
    .reveal.visible .qual-card:nth-child(2) .qual-marker {
        animation:
            qualMarkerIn .7s cubic-bezier(.23,1,.32,1) .28s both,
            qualMarkerFloatMob 7s ease-in-out 1.1s infinite alternate-reverse,
            qualMarkerPulseMob 4.1s ease-out 1.1s infinite;
    }
    .qual-timeline::before { left: 15px; top: 28px; bottom: 28px; }
    .qual-timeline { gap: 14px; }
    .qual-uni { font-size: 1.12rem; line-height: 1.32; }
    .qual-card-top { flex-direction: column; align-items: flex-start; gap: 8px; }
    .qual-lines { font-size: 14.5px; }
    .qual-diploma-card { width: 100%; padding: 0 !important; }
    .qual-diploma-badge { right: 18px; top: 18px; }
    .detail-panel { min-height: 0; margin-top: 14px; }
    section .card[style*="padding:34px"], section .card[style*="padding:32px"], section .card[style*="padding:30px"] { padding: 22px !important; }
    .card:hover, .topic:hover { transform: none; }

    /* Темы: горизонтальная лента — не листать 5 экранов вниз */
    .topic-grid {
        display: flex; overflow-x: auto; gap: 12px; padding-bottom: 6px;
        margin: 0 -16px; padding-left: 16px; padding-right: 16px;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .topic-grid::-webkit-scrollbar { display: none; }
    .topic {
        flex: 0 0 min(76vw, 268px); scroll-snap-align: start;
        padding: 18px 16px; min-height: 132px;
    }
    .topic .ico { width: 42px; height: 42px; margin-bottom: 12px; }

    #stories-grid {
        display: flex; overflow-x: auto; gap: 12px; padding-bottom: 6px;
        margin: 0 -16px; padding-left: 16px; padding-right: 16px;
        scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #stories-grid::-webkit-scrollbar { display: none; }
    #stories-grid .story {
        flex: 0 0 min(82vw, 300px); scroll-snap-align: start;
        padding: 20px !important; min-height: 240px;
    }
    #stories-grid .story .serif { font-size: 24px !important; }

    .steps-grid {
        grid-template-columns: 1fr 1fr !important; gap: 12px;
    }
    .steps-grid .step { padding: 18px !important; }
    .steps-grid .step .num { font-size: 28px; margin-bottom: 8px; }
    .steps-grid .step .st { font-size: 15px; margin-bottom: 6px; }
    .steps-grid .step .sd { font-size: 13px; line-height: 1.5; }

    .trust-strip { gap: 8px; justify-content: center; }
    .trust-badge { font-size: 12.5px; padding: 10px 13px; }

    #schema-wrap { gap: 14px; }
    #instruments-row { display: flex; flex-direction: column; gap: 20px; }
    .schema-item { padding: 16px; min-height: 56px; }
    .schema-item:hover { transform: none; }
    .sticky-cta { flex-wrap: wrap; padding-top: 8px; }

    .breath-orb { width: 160px; height: 160px; }
    .breath-count { font-size: 38px; }
    .breath-phase { font-size: 17px; text-align: center; padding: 0 12px; }

    .quote-band { padding: 52px 0; }
    .quote-band .q { font-size: clamp(1.55rem, 6.2vw, 2rem); }
    .quote-band .mark { font-size: 52px; }

    .modal-panel { padding: 24px 18px calc(28px + env(safe-area-inset-bottom, 0px)); max-height: 92dvh; border-radius: 22px 22px 0 0; }
    #booking-modal .submit { min-height: 52px; }

    .sticky-cta { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
    .sticky-cta .btn { flex: 1.35; font-weight: 600; font-size: 14px; }
    .sticky-cta-channel { padding: 0 12px; font-size: 12px; }

    html.has-sticky-cta { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
    body.has-sticky-cta { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
    body.has-sticky-cta #instruments-row { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

    #mobile-menu a { font-size: 22px; padding: 18px 0; min-height: 52px; }
    #mobile-menu .btn { min-height: 54px; font-size: 16px; }

    .price-card .serif { font-size: 24px !important; }

    section[style*="padding:120px"] { padding: 72px 0 !important; }
    section[style*="padding:120px"] .btn { width: 100%; max-width: 100%; }

    footer { padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
    footer .container { flex-direction: column; align-items: flex-start; gap: 14px; }
    footer a { min-height: 44px; display: inline-flex; align-items: center; }

    .divider { margin: 0 16px; }
}
@media (max-width: 380px){
    .brand { gap: 2px; padding-left: 10px; }
    .brand::before { width: 2px; }
    .brand-name { font-size: 1.02rem; }
    .brand-role { font-size: 0.54rem; letter-spacing: 0.11em; }
    .hero h1 { font-size: 2.15rem; }
    .section-head { font-size: 1.8rem; }
    .hero-photo picture, .hero-photo img { max-width: min(90vw, 300px); }
    .hero-photo .tag {
        width: min(90vw, 300px);
        margin-top: -16px; padding: 12px 14px 14px;
    }
    .hero-photo .tag .n { font-size: 1.26rem; }
    .hero-photo .tag .s { font-size: 12.5px; line-height: 1.5; max-width: 28ch; }
    .breath-orb { width: 140px; height: 140px; }
    .btn-cta-nav { min-width: 96px; padding: 0 12px; font-size: 12px; }
    .steps-grid { grid-template-columns: 1fr 1fr !important; }
    .steps-grid .step .sd { font-size: 12.5px; }
}

/* Тач-устройства: убираем «прилипающий» hover-подъём, чтобы не дёргалось */
@media (hover: none){
    .card:hover, .topic:hover, .schema-item:hover, .btn:hover, .trust-badge:hover { transform: none; }
    .trust-badge:hover i { transform: none; }
}
.note-output:focus-within { border-color: rgba(191,138,76,0.45); box-shadow: 0 0 0 3px rgba(191,138,76,0.1); }
/* Тактильный отклик на нажатие (особенно на тач-экранах, где hover не срабатывает); ставится последним, чтобы перебить hover-сброс */
.btn:active, .messenger-opt:active, .story:active { transform: translateY(1px) scale(.985); transition-duration: .08s; }
/* Подпись разработчика в подвале */
.dev-credit { margin-top: 20px; text-align: center; font-size: 12px; letter-spacing: .2px; color: var(--ink-soft); }
.dev-link { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid rgba(176,137,75,0.4); padding-bottom: 1px; transition: color .3s var(--ease), border-color .3s var(--ease); }
.dev-link:hover { color: var(--gold-deep); border-bottom-color: var(--gold-deep); }
