/* =========================================================
   Savransky Media 2.0 — анимации, галерея, видео, корзина, дата съёмки
   ========================================================= */

/* ---------- ссылки вместо кнопок в меню и на главной ---------- */
a.tab, a.btn{ text-decoration:none; }
a.tab{ display:inline-flex; align-items:center; -webkit-tap-highlight-color:transparent; }
a.btn{ display:inline-flex; align-items:center; justify-content:center; }
.tab:focus-visible, .btn:focus-visible{ outline:2px solid var(--emerald-2); outline-offset:3px; }
@media (max-width:420px){
  .tab{ padding:10px 11px; font-size:12px; letter-spacing:.1px; }
  header.nav{ padding:0 10px; }
  nav.tabs{ max-width:calc(100vw - 20px); }
}

/* ---------- смена разделов: световая шторка + каскад заголовков ---------- */
.sm-wipe{
  position:fixed; inset:0; z-index:70; pointer-events:none; opacity:0;
  background:
    linear-gradient(100deg, transparent 0%, rgba(63,232,166,0) 30%, rgba(63,232,166,.16) 46%, rgba(238,240,242,.22) 50%, rgba(63,232,166,.16) 54%, rgba(63,232,166,0) 70%, transparent 100%);
  background-size:260% 100%; mix-blend-mode:screen;
}
.sm-wipe.go-r{ animation:smWipeR .78s var(--ease) both; }
.sm-wipe.go-l{ animation:smWipeL .78s var(--ease) both; }
@keyframes smWipeR{ 0%{ opacity:0; background-position:100% 0; } 18%{ opacity:1; } 82%{ opacity:1; } 100%{ opacity:0; background-position:0% 0; } }
@keyframes smWipeL{ 0%{ opacity:0; background-position:0% 0; } 18%{ opacity:1; } 82%{ opacity:1; } 100%{ opacity:0; background-position:100% 0; } }
body.is-turning header.nav nav.tabs{ box-shadow:0 24px 60px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(63,232,166,.25), 0 0 34px -6px var(--glow); transition:box-shadow .3s; }

.panel.revealed .section-head > *, .panel.revealed .home-inner > .eyebrow, .panel.revealed .home-inner > h1, .panel.revealed .home-inner > .lead, .panel.revealed .home-inner > .cta-row, .panel.revealed .home-inner > .chip-row{
  animation:smRise .8s var(--ease) both;
}
.panel.revealed .section-head > *:nth-child(1), .panel.revealed .home-inner > .eyebrow{ animation-delay:.12s; }
.panel.revealed .section-head > *:nth-child(2), .panel.revealed .home-inner > h1{ animation-delay:.2s; }
.panel.revealed .section-head > *:nth-child(3), .panel.revealed .home-inner > .lead{ animation-delay:.28s; }
.panel.revealed .home-inner > .cta-row{ animation-delay:.36s; }
.panel.revealed .home-inner > .chip-row{ animation-delay:.44s; }
.panel.revealed .cat-filters, .panel.revealed .steps-track, .panel.revealed .master-vol{ animation:smRise .8s var(--ease) .34s both; }
.panel.revealed .gallery, .panel.revealed .player-wrap, .panel.revealed .playlist, .panel.revealed .calc-grid{ animation:smRise 1s var(--ease) .4s both; }
@keyframes smRise{ from{ opacity:0; transform:translateY(22px); filter:blur(6px); } to{ opacity:1; transform:none; filter:none; } }

/* плавное появление блоков при прокрутке */
.sr{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease) var(--sr,0ms), transform .7s var(--ease) var(--sr,0ms); }
.sr.in{ opacity:1; transform:none; }

/* ---------- ФОТО: колонки, кружок загрузки, проявление ---------- */
.gallery{ column-count:auto !important; display:flex; gap:20px; align-items:flex-start; transition:opacity .22s ease, transform .22s ease, filter .22s ease; }
.gallery > .empty-note{ flex:1; }
.gallery .gcol{ flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:20px; }
.gallery .gcol figure{ margin:0 !important; }
@media (max-width:640px){ .gallery, .gallery .gcol{ gap:16px; } }
.gallery.is-switching{ opacity:0; transform:translateY(10px) scale(.99); filter:blur(4px); }
.gallery.is-entering figure{ animation:smFigIn .7s var(--ease) both; animation-delay:var(--d,0ms); }
@keyframes smFigIn{ from{ opacity:0; transform:translateY(16px) scale(.98); } to{ opacity:1; transform:none; } }
.gallery figure{ transform-origin:center; }
.gallery figure img{ height:auto; }
.gallery figure.loading img{ opacity:0; transform:scale(1.04); filter:blur(10px); }
.gallery figure.loaded img{ animation:smImgIn .75s var(--ease) both; }
@keyframes smImgIn{ from{ opacity:0; transform:scale(1.05); filter:blur(12px); } to{ opacity:1; transform:scale(1); filter:blur(0); } }
.gallery figure.loaded:hover img{ animation:none; transform:scale(1.06); }
.ph-skeleton{ display:none; align-items:center; justify-content:center; z-index:1; }
.gallery figure.loading .ph-skeleton{ display:flex; }
.ph-spin{
  width:34px; height:34px; border-radius:50%; flex-shrink:0;
  border:2.5px solid rgba(255,255,255,.12); border-top-color:var(--emerald-2); border-right-color:rgba(63,232,166,.45);
  animation:smSpin .8s linear infinite; box-shadow:0 0 18px -4px var(--glow);
}
@keyframes smSpin{ to{ transform:rotate(360deg); } }
.grid-sentinel{ height:1px; position:relative; }
.grid-sentinel.has-more::after{
  content:''; position:absolute; left:50%; top:18px; width:26px; height:26px; margin-left:-13px; border-radius:50%;
  border:2px solid rgba(255,255,255,.1); border-top-color:var(--emerald-2); animation:smSpin .8s linear infinite; opacity:.8;
}
.cat-pill{ display:inline-flex; align-items:center; gap:6px; }
.cat-pill i{ font-style:normal; font-size:10.5px; opacity:.6; font-variant-numeric:tabular-nums; }
.cat-pill.active i{ opacity:.75; }
.cat-pill:active{ transform:scale(.96); }

/* просмотрщик фото: кружок, пока грузится крупная версия */
.lb-media.lb-loading::after{
  content:''; position:absolute; left:50%; top:50%; width:44px; height:44px; margin:-22px 0 0 -22px; border-radius:50%;
  border:3px solid rgba(255,255,255,.15); border-top-color:var(--emerald-2); animation:smSpin .8s linear infinite; z-index:3;
}
.lb-media.lb-loading img{ opacity:.35; filter:blur(6px); }
.lb-media img{ transition:opacity .35s, filter .35s; }

/* ---------- ВИДЕО ---------- */
.player-wrap{ max-width:960px; }
.video-shell{ --ar:16/9; margin:0 auto; transition:max-width .45s var(--ease), box-shadow .4s; }
.video-shell video{ aspect-ratio:var(--ar); max-height:78vh; object-fit:contain; }
.video-shell.is-portrait{ max-width:min(100%, calc(78vh * 9 / 16 + 2px)); }
.video-shell.is-switching video{ animation:smVidIn .5s var(--ease); }
@keyframes smVidIn{ from{ opacity:.25; filter:blur(8px); } to{ opacity:1; filter:none; } }
.video-shell:not(.is-portrait) video{ max-height:none; }

/* панель управления: сверху полоса перемотки во всю ширину, снизу кнопки */
.video-controls{ flex-wrap:wrap; row-gap:10px; padding:44px 18px 14px; background:linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 55%, transparent 100%); }
.video-controls .seek{ order:-1; flex:1 1 100%; height:5px; cursor:pointer; touch-action:none; }
.video-controls .seek::-webkit-slider-thumb{ width:16px; height:16px; transition:transform .15s; }
.video-controls .seek:active::-webkit-slider-thumb{ transform:scale(1.25); }
.video-controls .seek::-moz-range-thumb{ width:16px; height:16px; border-radius:50%; background:var(--emerald-2); border:none; }
.video-controls .time{ text-align:left; min-width:0; margin-right:auto; }
.video-controls .play-btn{ width:42px; height:42px; }
.video-controls .fs-btn{ width:36px; height:36px; }
.lb-media .video-controls{ padding-top:40px; }
@media (max-width:640px){
  .video-shell{ border-radius:16px; }
  .video-controls{ padding:34px 12px 10px; gap:8px; row-gap:6px; }
  .video-controls .play-btn{ display:none; }
  .video-controls .fs-btn{ width:32px; height:32px; }
  .video-controls .quality-btn{ padding:5px 8px; font-size:10.5px; }
  .video-controls .time{ font-size:11.5px; }
  .video-center-play{ width:58px; height:58px; }
  .video-shell.controls-active:not(.paused) .video-center-play{ opacity:0; pointer-events:none; }
  .video-shell:hover:not(.paused):not(.controls-active) .video-center-play{ opacity:0; pointer-events:none; }
}
.video-center-play{ transition:opacity .25s, transform .3s var(--ease), background .25s; }
.video-center-play:active{ transform:translate(-50%,-50%) scale(.92) !important; }

/* лента роликов: кадр 16:9 без чёрных полос, подпись на градиенте */
.reel-row{ scrollbar-width:none; padding:10px 4px 12px; }
.quality-wrap:has(.quality-btn.single){ display:none; }
.reel-row::-webkit-scrollbar{ display:none; }
.reel-card{ flex:0 0 230px; aspect-ratio:16/10; transition:transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.reel-card img{ object-fit:cover !important; opacity:.78; transition:opacity .3s, transform .6s var(--ease); }
.reel-card:hover{ transform:translateY(-3px); box-shadow:0 18px 40px -20px rgba(0,0,0,.8); }
.reel-card:hover img{ transform:scale(1.06); opacity:1; }
.reel-card.active{ box-shadow:0 0 0 1px var(--emerald), 0 16px 40px -18px var(--glow); }
.reel-card.active img{ opacity:1; }
.reel-card::after{ content:''; position:absolute; inset:auto 0 0 0; height:62%; background:linear-gradient(0deg, rgba(5,7,9,.9), transparent); pointer-events:none; }
.reel-card .reel-label{ z-index:2; bottom:9px; left:11px; max-width:calc(100% - 52px); font-size:12px; line-height:1.3; text-shadow:0 1px 6px rgba(0,0,0,.6); }
.reel-card .video-info-btn{ z-index:3; }
.reel-card .dot{ display:none; }
.reel-card.active .dot{ display:block; z-index:3; }
.reel-card .reel-play{
  position:absolute; left:50%; top:44%; transform:translate(-50%,-50%) scale(.8); z-index:2; width:40px; height:40px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; background:rgba(6,10,9,.55); backdrop-filter:blur(4px); color:#fff;
  border:1px solid rgba(255,255,255,.25); opacity:0; transition:opacity .3s, transform .35s var(--ease);
}
.reel-card:hover .reel-play{ opacity:1; transform:translate(-50%,-50%) scale(1); }
.reel-card.active .reel-play{ opacity:0; }
.reel-card.add-card::after{ display:none; }
@media (max-width:640px){
  .reel-card{ flex-basis:68vw; max-width:260px; }
  .reel-card .reel-play{ opacity:.85; transform:translate(-50%,-50%) scale(.85); }
}

/* ---------- АУДИО: кружок, пока трек грузится ---------- */
.track .tplay{ position:relative; }
.track.is-loading .tplay::after{
  content:''; position:absolute; inset:-4px; border-radius:50%; border:2px solid transparent; border-top-color:var(--emerald-2); animation:smSpin .8s linear infinite;
}

/* ---------- УСЛУГИ: список для поисковиков (до загрузки скрипта) ---------- */
.seo-svc{ list-style:none; display:flex; flex-direction:column; gap:12px; }
.seo-svc li{ border:1px solid var(--border); background:var(--surface); border-radius:16px; padding:16px 20px; }
.seo-svc h3{ font-size:16px; }
.seo-svc p{ font-size:13px; color:var(--platinum-dim); margin-top:4px; }
.seo-svc b{ display:block; margin-top:6px; color:var(--emerald-2); font-family:var(--serif); }

/* шаги заявки */
#step1.step-in, #step2.step-in{ animation:smRise .6s var(--ease) both; }

/* карточка заказа на компьютере — короткая вспышка, когда что-то добавили */
.order-card{ transition:box-shadow .4s, border-color .4s; }
.order-card.pulse{ animation:smPulse .8s var(--ease); }
@keyframes smPulse{ 0%{ box-shadow:0 0 0 0 rgba(63,232,166,.5); border-color:var(--emerald-2); } 100%{ box-shadow:0 0 0 18px rgba(63,232,166,0); } }
.order-item{ animation:smItemIn .45s var(--ease) both; }
@keyframes smItemIn{ from{ opacity:0; transform:translateX(-10px); } to{ opacity:1; transform:none; } }
.oi-rm{ border-radius:50%; width:26px; height:26px; transition:background .2s, color .2s; }
.oi-rm:hover{ background:rgba(255,255,255,.08); color:var(--platinum) !important; }

.fly-dot{
  position:fixed; z-index:400; width:16px; height:16px; border-radius:50%; pointer-events:none;
  background:radial-gradient(circle at 35% 30%, #b9ffe1, var(--emerald-2) 45%, var(--emerald)); box-shadow:0 0 18px var(--glow);
  transform:translate(-50%,-50%);
}

/* ---------- корзина-шторка (телефон) ---------- */
.cart-fab{
  position:fixed; left:50%; bottom:calc(16px + env(safe-area-inset-bottom)); z-index:140;
  display:flex; align-items:center; gap:12px; min-width:min(330px, calc(100vw - 32px)); padding:10px 16px 10px 10px;
  border-radius:999px; border:1px solid rgba(63,232,166,.35); color:var(--platinum);
  background:rgba(18,21,26,.86); backdrop-filter:blur(18px) saturate(1.3); -webkit-backdrop-filter:blur(18px) saturate(1.3);
  box-shadow:0 22px 50px -16px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.04) inset;
  transform:translate(-50%, 140%); opacity:0; pointer-events:none;
  transition:transform .55s cubic-bezier(.2,1.25,.3,1), opacity .3s;
}
.cart-fab.show{ transform:translate(-50%,0); opacity:1; pointer-events:auto; }
.cart-fab.bump{ animation:smBump .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes smBump{ 0%{ transform:translate(-50%,0) scale(1); } 35%{ transform:translate(-50%,-6px) scale(1.05); } 100%{ transform:translate(-50%,0) scale(1); } }
.cart-fab-ic{ position:relative; width:44px; height:44px; border-radius:50%; display:grid; place-items:center; color:#06130D; background:linear-gradient(120deg,var(--emerald-2),var(--emerald)); box-shadow:0 8px 20px -8px var(--glow); flex-shrink:0; }
.cart-fab-n{ position:absolute; top:-4px; right:-4px; min-width:20px; height:20px; padding:0 5px; border-radius:10px; background:var(--platinum); color:#06130D; font-style:normal; font-size:11px; font-weight:700; display:grid; place-items:center; box-shadow:0 0 0 2px var(--bg-1); }
.cart-fab-txt{ display:flex; flex-direction:column; text-align:left; line-height:1.15; flex:1; min-width:0; }
.cart-fab-total{ font-family:var(--serif); font-size:18px; color:var(--emerald-2); }
.cart-fab-label{ font-size:11.5px; color:var(--platinum-dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cart-fab-go{ font-size:24px; color:var(--platinum-dim); transform:rotate(-90deg); transition:transform .3s; }
.cart-scrim{ position:fixed; inset:0; z-index:150; background:rgba(5,7,9,.55); backdrop-filter:blur(3px); opacity:0; pointer-events:none; transition:opacity .35s; }
.cart-scrim.open{ opacity:1; pointer-events:auto; }
.cart-sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:160; max-height:min(84vh, 720px); display:flex; flex-direction:column;
  background:linear-gradient(180deg, #1c2128, #14181d); border-top:1px solid rgba(63,232,166,.25);
  border-radius:26px 26px 0 0; box-shadow:0 -30px 80px -20px rgba(0,0,0,.85);
  transform:translateY(calc(100% + 60px)); visibility:hidden; padding-bottom:env(safe-area-inset-bottom);
  transition:transform .55s cubic-bezier(.2,.95,.25,1.04), visibility 0s linear .55s;
}
.cart-sheet.open{ transform:none; visibility:visible; transition:transform .55s cubic-bezier(.2,.95,.25,1.04), visibility 0s; }
html.cart-open .toast{ bottom:auto; top:96px; }
.cart-sheet-grab{ padding:10px 0 4px; display:flex; justify-content:center; cursor:grab; touch-action:none; }
.cart-sheet-grab span{ width:44px; height:5px; border-radius:3px; background:rgba(255,255,255,.22); }
.cart-sheet-x{ position:absolute; top:12px; right:14px; width:34px; height:34px; border-radius:50%; border:1px solid var(--border-2); background:rgba(255,255,255,.05); color:var(--platinum); font-size:20px; line-height:1; }
.cart-sheet-body{ overflow-y:auto; overscroll-behavior:contain; padding:0 16px 18px; }
.cart-sheet .order-card{ position:static !important; border:0; background:none; padding:6px 4px 4px; box-shadow:none; }
.cart-sheet .order-card h3{ font-size:20px; }
.cart-sheet.open .order-item{ animation:smItemIn .5s var(--ease) both; animation-delay:calc(var(--k,0) * 60ms + 120ms); }
html.cart-open, html.cart-open body{ overflow:hidden; }
@media (min-width:901px){ .cart-fab, .cart-sheet, .cart-scrim{ display:none !important; } }
@media (max-width:900px){
  .calc-grid{ grid-template-columns:1fr !important; }
  .panel[data-panel="services"] .panel-inner{ padding-bottom:140px; }
}

/* ---------- выбор даты и времени ---------- */
.booking-pick{
  border:1px solid rgba(63,232,166,.28); border-radius:20px; padding:20px; margin:0 0 28px;
  background:radial-gradient(120% 140% at 0% 0%, rgba(63,232,166,.08), transparent 55%), var(--surface);
  animation:smRise .6s var(--ease) both;
}
.booking-pick.shake{ animation:smShake .5s; border-color:#f0a83a; }
@keyframes smShake{ 0%,100%{ transform:none; } 20%{ transform:translateX(-8px); } 40%{ transform:translateX(7px); } 60%{ transform:translateX(-5px); } 80%{ transform:translateX(3px); } }
.bp-head{ display:flex; gap:12px; align-items:flex-start; margin-bottom:16px; }
.bp-ic{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; background:rgba(63,232,166,.12); font-size:19px; flex-shrink:0; }
.bp-head h4{ font-family:var(--serif); font-size:19px; color:var(--platinum); font-weight:600; }
.bp-head p{ font-size:13px; color:var(--platinum-dim); margin-top:2px; line-height:1.45; }
.bp-loading{ display:flex; align-items:center; gap:12px; color:var(--platinum-dim); font-size:13px; padding:20px 0; }
.bp-loading .ph-spin{ width:24px; height:24px; }
.bp-body{ display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:18px; transition:opacity .3s, filter .3s; }
.bp-body.is-off{ opacity:.35; filter:grayscale(1); pointer-events:none; }
@media (max-width:640px){ .bp-body{ grid-template-columns:1fr; } .booking-pick{ padding:16px 14px; } }
.bp-cal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.bp-cal-head b{ font-family:var(--serif); font-size:16px; color:var(--platinum); font-weight:600; }
.bp-nav{ width:34px; height:34px; border-radius:50%; border:1px solid var(--border-2); background:rgba(255,255,255,.03); color:var(--platinum); font-size:18px; transition:background .2s, opacity .2s; }
.bp-nav:hover:not([disabled]){ background:rgba(63,232,166,.15); }
.bp-nav[disabled]{ opacity:.25; cursor:default; }
.bp-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.bp-grid.slide-l{ animation:bpSlideL .35s var(--ease); }
.bp-grid.slide-r{ animation:bpSlideR .35s var(--ease); }
@keyframes bpSlideL{ from{ opacity:0; transform:translateX(18px); } to{ opacity:1; transform:none; } }
@keyframes bpSlideR{ from{ opacity:0; transform:translateX(-18px); } to{ opacity:1; transform:none; } }
.bp-wd{ text-align:center; font-size:10.5px; text-transform:uppercase; letter-spacing:.8px; color:var(--muted); padding:2px 0 4px; }
.bp-day{
  position:relative; aspect-ratio:1; min-height:34px; border-radius:10px; border:1px solid transparent; background:rgba(255,255,255,.035);
  color:var(--platinum); font-size:13.5px; font-weight:500; font-variant-numeric:tabular-nums; transition:background .2s, border-color .2s, transform .15s, color .2s;
}
.bp-day::after{ content:''; position:absolute; left:50%; bottom:5px; width:4px; height:4px; margin-left:-2px; border-radius:50%; background:transparent; }
.bp-day.st-free::after{ background:var(--emerald-2); }
.bp-day.st-few::after{ background:#f0c664; }
.bp-day:hover:not([disabled]){ border-color:rgba(63,232,166,.55); background:rgba(63,232,166,.08); }
.bp-day:active:not([disabled]){ transform:scale(.93); }
.bp-day[disabled]{ color:rgba(238,240,242,.22); background:transparent; cursor:default; }
.bp-day.st-busy[disabled]{ text-decoration:line-through; }
.bp-day.st-off[disabled]{ background:repeating-linear-gradient(135deg, transparent 0 5px, rgba(255,255,255,.03) 5px 10px); }
.bp-day.is-out{ opacity:.45; }
.bp-day.is-today{ border-color:var(--border-2); }
.bp-day.is-sel{ background:linear-gradient(120deg,var(--emerald-2),var(--emerald)) !important; color:#06130D !important; font-weight:700; border-color:transparent !important; box-shadow:0 8px 20px -8px var(--glow); }
.bp-day.is-sel::after{ background:#06130D; }
.bp-legend{ display:flex; gap:14px; margin-top:10px; font-size:11px; color:var(--muted); flex-wrap:wrap; }
.bp-legend span::before{ content:''; display:inline-block; width:6px; height:6px; border-radius:50%; margin-right:5px; vertical-align:middle; }
.bp-legend .st-free::before{ background:var(--emerald-2); }
.bp-legend .st-few::before{ background:#f0c664; }
.bp-legend .st-busy::before{ background:rgba(238,240,242,.25); }
.bp-times{ min-width:0; }
.bp-hint{ font-size:13px; color:var(--muted); padding:30px 10px; text-align:center; border:1px dashed var(--border-2); border-radius:14px; }
.bp-date{ font-family:var(--serif); font-size:16px; color:var(--platinum); margin:4px 0 10px; }
.bp-date::first-letter{ text-transform:uppercase; }
.bp-tg{ margin-bottom:10px; }
.bp-tg small{ display:block; font-size:10.5px; letter-spacing:.8px; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.bp-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.bp-chip{
  border:1px solid var(--border-2); background:rgba(255,255,255,.03); color:var(--platinum); border-radius:10px; padding:8px 11px; font-size:13px;
  font-variant-numeric:tabular-nums; transition:background .2s, border-color .2s, transform .15s, color .2s; animation:smChipIn .4s var(--ease) both; animation-delay:calc(var(--k,0) * 25ms);
}
@keyframes smChipIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
.bp-chip:hover:not([disabled]){ border-color:var(--emerald-2); }
.bp-chip:active:not([disabled]){ transform:scale(.94); }
.bp-chip[disabled]{ opacity:.3; text-decoration:line-through; cursor:default; }
.bp-chip.is-sel{ background:var(--emerald-2); color:#06130D; border-color:var(--emerald-2); font-weight:600; }
.bp-any{ margin-top:4px; }
.bp-unknown{ display:flex; align-items:center; gap:10px; margin-top:16px; font-size:13px; color:var(--platinum-dim); cursor:pointer; }
.bp-unknown input{ width:18px; height:18px; accent-color:var(--emerald); }
.bp-chosen{ margin-top:14px; padding:12px 14px; border-radius:12px; background:rgba(63,232,166,.1); font-size:13.5px; color:var(--platinum-dim); animation:smRise .4s var(--ease) both; }
.bp-chosen b{ color:var(--emerald-2); font-weight:600; }
.success-when{ display:inline-block; margin-top:16px; padding:10px 16px; border-radius:12px; background:rgba(63,232,166,.1); color:var(--emerald-2); font-size:14px; }
.success-when::before{ content:'📅 '; }

/* форма */
.hp-field{ position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }
.field.is-bad input, .field.is-bad textarea{ border-color:#e5736b !important; animation:smShake .45s; }
#submitBtn.is-sending{ opacity:.8; pointer-events:none; }
#submitBtn.is-sending::before{ content:''; width:16px; height:16px; margin-right:8px; border-radius:50%; border:2px solid rgba(6,19,13,.25); border-top-color:#06130D; animation:smSpin .7s linear infinite; }
.success-card.show{ animation:smRise .7s var(--ease) both; }
.success-card.show .check{ animation:smPop .7s cubic-bezier(.2,1.6,.4,1) .15s both; }
@keyframes smPop{ from{ transform:scale(.3); opacity:0; } to{ transform:scale(1); opacity:1; } }

/* ---------- ЧАСТЫЕ ВОПРОСЫ ---------- */
.faq{ max-width:860px; margin:90px auto 0; }
.faq-title{ text-align:center; font-size:clamp(26px, 4vw, 36px); margin-bottom:26px; }
.faq-list{ display:flex; flex-direction:column; gap:10px; }
.faq-item{ border:1px solid var(--border); border-radius:16px; background:var(--surface); overflow:hidden; transition:border-color .3s, background .3s; }
.faq-item[open]{ border-color:rgba(63,232,166,.3); background:var(--surface-2); }
.faq-item summary{ list-style:none; cursor:pointer; display:flex; align-items:center; gap:14px; padding:18px 20px; font-size:15px; font-weight:500; color:var(--platinum); }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary span{ flex:1; }
.faq-item summary i{ position:relative; width:22px; height:22px; flex-shrink:0; border-radius:50%; border:1px solid var(--border-2); transition:transform .35s var(--ease), background .3s; }
.faq-item summary i::before, .faq-item summary i::after{ content:''; position:absolute; left:50%; top:50%; width:10px; height:1.6px; margin:-.8px 0 0 -5px; background:var(--platinum-dim); border-radius:2px; transition:transform .35s var(--ease); }
.faq-item summary i::after{ transform:rotate(90deg); }
.faq-item[open] summary i{ transform:rotate(180deg); background:rgba(63,232,166,.15); }
.faq-item[open] summary i::after{ transform:rotate(0); }
.faq-a{ padding:0 20px 18px; color:var(--platinum-dim); font-size:14px; line-height:1.65; animation:smRise .45s var(--ease) both; }
@media (max-width:640px){ .faq{ margin-top:60px; } .faq-item summary{ padding:16px; font-size:14px; } .faq-a{ padding:0 16px 16px; } }

@media (prefers-reduced-motion:reduce){
  .sm-wipe, .gallery figure, .gallery figure img, .sr, .panel.revealed *{ animation:none !important; transition:none !important; opacity:1 !important; transform:none !important; filter:none !important; }
}


/* ---------- 2.0.2: новая смена разделов ----------
   Вместо 3D-поворота и световой вспышки: старый раздел мягко уходит вглубь,
   новый раскрывается кругом из нажатой вкладки меню. */
.sm-wipe{ display:none !important; }
main.stage{ perspective:none; overflow:clip; }
.panel.leaving-r, .panel.leaving-l{ animation:smPanelOut .5s cubic-bezier(.4,0,.2,1) forwards !important; transform-origin:50% 0; }
.panel.entering-r, .panel.entering-l{ animation:smPanelIn .85s cubic-bezier(.65,0,.15,1) forwards !important; z-index:3; }
@keyframes smPanelOut{ from{ opacity:1; transform:scale(1); filter:none; } to{ opacity:0; transform:scale(.96); filter:blur(6px) brightness(.7); } }
@keyframes smPanelIn{
  from{ clip-path:circle(0px at var(--cx,50%) var(--cy,40px)); }
  to{ clip-path:circle(150vmax at var(--cx,50%) var(--cy,40px)); }
}
/* тонкое светящееся кольцо по краю раскрытия */
.panel.entering-r::before, .panel.entering-l::before{
  content:''; position:absolute; z-index:5; pointer-events:none; left:var(--cx,50%); top:var(--cy,40px);
  width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%;
  box-shadow:0 0 0 1.5px rgba(63,232,166,.55), 0 0 40px 6px rgba(63,232,166,.25);
  animation:smRing .85s cubic-bezier(.65,0,.15,1) forwards;
}
@keyframes smRing{ from{ transform:scale(0); opacity:1; } 70%{ opacity:.8; } to{ transform:scale(300); opacity:0; } }
@media (max-width:640px){
  @keyframes smPanelOut{ from{ opacity:1; transform:none; } to{ opacity:0; transform:scale(.97); } }
}

/* ---------- 2.0.2: корзина на компьютере едет вместе с прокруткой ---------- */
@media (min-width:901px){
  .calc-grid{ align-items:start; }
  .calc-grid .order-card{ position:sticky !important; top:110px; max-height:calc(100vh - 130px); overflow-y:auto; }
  body.admin-bar .calc-grid .order-card{ top:142px; }
}

/* ---------- 2.0.2: «добавлено» прямо в кнопке корзины (телефон) ---------- */
.cart-fab-label{ transition:color .3s; }
.cart-fab.just-added .cart-fab-label{ color:var(--emerald-2); }
.cart-fab.just-added .cart-fab-ic{ animation:smIcPop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes smIcPop{ 0%{ transform:scale(1); } 40%{ transform:scale(1.18) rotate(-8deg); } 100%{ transform:scale(1); } }
@media (max-width:900px){ .toast{ bottom:auto; top:96px; } }

/* ---------- 2.1: переключатель языка RU / EN в шапке ---------- */
.lang-switch{
  display:flex; align-items:center; gap:2px; padding:4px; border-radius:999px; flex-shrink:0;
  background:rgba(18,21,26,.72); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border:1px solid var(--border); box-shadow:0 24px 60px -24px rgba(0,0,0,.7);
}
.lang-b{
  display:grid; place-items:center; min-width:34px; height:34px; padding:0 8px; border-radius:999px;
  font-size:11.5px; font-weight:700; letter-spacing:.8px; color:var(--platinum-dim); text-decoration:none;
  transition:background .25s, color .25s;
}
.lang-b:hover{ color:var(--platinum); background:rgba(255,255,255,.05); }
.lang-b.is-on{ background:rgba(63,232,166,.14); color:var(--emerald-2); box-shadow:inset 0 0 0 1px rgba(63,232,166,.35); }
@media (max-width:640px){
  header.nav{ gap:6px; padding:0 8px; }
  nav.tabs{ max-width:calc(100vw - 66px); padding:4px; }
  .tab{ padding:9px 9px; font-size:11.5px; letter-spacing:0; }
  /* на телефоне — одна круглая кнопка с другим языком */
  .lang-switch{ padding:3px; }
  .lang-b.is-on{ display:none; }
  .lang-b{ min-width:38px; height:38px; padding:0; font-size:11px; color:var(--platinum); }
  .pill{ top:4px; left:4px; height:calc(100% - 8px); }
}
