/* =========================================================
   LE BOUTIQUE — vintage / old-money jewellery boutique theme
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=EB+Garamond:ital@0;1&display=swap');

:root{
  --bg:            #0d0c09;
  --bg-alt:        #14120c;
  --surface:       #1a170f;
  --surface-2:     #201c12;
  --line:          rgba(212,175,55,.22);
  --line-strong:   rgba(212,175,55,.45);

  --gold:          #d4af37;
  --gold-light:    #f1dfa0;
  --gold-pale:     #fbf1cf;
  --gold-deep:     #9c7a2c;

  --cream:         #f4ecd8;
  --muted:         #b7ac90;
  --muted-2:       #8c8168;

  --danger:        #c96a4f;
  --success:       #7fae7a;

  --serif-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --serif-caps:    'Cinzel', 'Times New Roman', serif;
  --serif-body:    'EB Garamond', 'Georgia', serif;

  --container:     1240px;
  --radius:        2px;

  --ease-out:      cubic-bezier(.16,.84,.44,1);
  --ease-in-out:   cubic-bezier(.65,0,.35,1);
}

/* ---------- reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--cream);
  font-family:var(--serif-body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; }
h1,h2,h3,h4{ font-family:var(--serif-display); font-weight:600; margin:0; letter-spacing:.01em; }
p{ margin:0; }

::selection{ background:var(--gold); color:#161208; }

/* thin gold scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background:var(--bg); }
::-webkit-scrollbar-thumb{ background:linear-gradient(var(--gold-deep),var(--gold)); border-radius:10px; border:2px solid var(--bg); }

.container{ max-width:var(--container); margin:0 auto; padding:0 32px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:12px;
  font-family:var(--serif-caps); font-size:12px; letter-spacing:.32em; text-transform:uppercase;
  color:var(--gold);
}
.eyebrow::before,.eyebrow::after{ content:""; width:26px; height:1px; background:linear-gradient(90deg,transparent,var(--gold)); }
.eyebrow::after{ background:linear-gradient(90deg,var(--gold),transparent); }

.section{ position:relative; padding:120px 0; }
.section--tight{ padding:80px 0; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(32px,4.4vw,54px); margin-top:14px; }
.section-head p{ color:var(--muted); margin-top:16px; font-size:19px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

.divider-orn{ display:flex; align-items:center; justify-content:center; gap:14px; color:var(--gold); margin:0 auto; }
.divider-orn::before,.divider-orn::after{ content:""; width:60px; height:1px; background:linear-gradient(90deg,transparent,var(--line-strong)); }
.divider-orn::after{ transform:scaleX(-1); }

/* subtle vignette + noise-free warm glow backdrop everywhere */
body::before{
  content:"";
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(212,175,55,.07), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 30%, rgba(212,175,55,.05), transparent 55%);
}

/* ---------- custom cursor ---------- */
.cursor-dot,.cursor-ring{
  position:fixed; top:0; left:0; pointer-events:none; z-index:9999;
  border-radius:50%; transform:translate(-50%,-50%);
  will-change:transform;
}
.cursor-dot{ width:5px; height:5px; background:var(--gold-light); }
.cursor-ring{
  width:34px; height:34px; border:1px solid var(--gold);
  transition:width .25s var(--ease-out),height .25s var(--ease-out),opacity .25s,border-color .25s,background .25s;
  opacity:.8;
}
.cursor-ring.is-hover{ width:58px; height:58px; background:rgba(212,175,55,.08); border-color:var(--gold-light); }
.cursor-ring.is-down{ width:26px; height:26px; }
@media (hover:none), (pointer:coarse){
  .cursor-dot,.cursor-ring{ display:none; }
}

/* ---------- reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }
.reveal-stagger > *{ opacity:0; transform:translateY(24px); transition:opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-stagger.is-visible > *{ opacity:1; transform:translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay:.05s; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay:.14s; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay:.23s; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay:.32s; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay:.41s; }
.reveal-stagger.is-visible > *:nth-child(6){ transition-delay:.5s; }

/* ---------- buttons ---------- */
.btn{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:16px 34px; font-family:var(--serif-caps); font-size:12.5px; letter-spacing:.22em; text-transform:uppercase;
  /* размер кнопки в шапке задан отдельно ниже */
  border:1px solid var(--gold); background:transparent; color:var(--gold-light);
  overflow:hidden; isolation:isolate; border-radius:var(--radius);
  transition:color .4s var(--ease-out), border-color .4s var(--ease-out), transform .3s var(--ease-out);
}
.btn::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(90deg,var(--gold-deep),var(--gold),var(--gold-light));
  transform:translateX(-101%); transition:transform .45s var(--ease-in-out);
}
.btn:hover{ color:#171208; }
.btn:hover::before{ transform:translateX(0); }
.btn:active{ transform:scale(.97); }
.btn--solid{ background:linear-gradient(90deg,var(--gold-deep),var(--gold)); color:#171208; }
.btn--solid::before{ background:linear-gradient(90deg,var(--gold-light),var(--gold-pale)); }
.btn--ghost{ border-color:var(--line-strong); color:var(--cream); }
.btn--ghost::before{ background:var(--surface-2); }
.btn--ghost:hover{ color:var(--gold-light); }
.btn--block{ width:100%; }
.btn[disabled]{ opacity:.55; pointer-events:none; }
.btn .btn-spin{ width:14px; height:14px; border-radius:50%; border:2px solid rgba(23,18,8,.35); border-top-color:#171208; animation:spin .7s linear infinite; display:none; }
.btn.is-loading .btn-spin{ display:inline-block; }
.btn.is-loading .btn-label{ opacity:.7; }
@keyframes spin{ to{ transform:rotate(360deg); } }

.link-underline{
  position:relative; padding-bottom:2px;
}
.link-underline::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px; background:var(--gold);
  transform:scaleX(0); transform-origin:right; transition:transform .4s var(--ease-out);
}
.link-underline:hover::after{ transform:scaleX(1); transform-origin:left; }

/* ---------- header ---------- */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:500;
  padding:26px 0;
  transition:padding .4s var(--ease-out), background .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom:1px solid transparent;
}
.site-header.is-scrolled{
  padding:14px 0; background:rgba(13,12,9,.86); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-bottom-color:var(--line);
}
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ width:36px; height:36px; }
.brand-word{ font-family:var(--serif-caps); font-size:20px; letter-spacing:.28em; }
.brand-word span{ color:var(--gold); }

.main-nav{ display:flex; align-items:center; gap:34px; }
.main-nav a{
  font-family:var(--serif-caps); font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted);
  transition:color .3s;
}
.main-nav a:hover, .main-nav a.is-active{ color:var(--gold-light); }

.header-actions{ display:flex; align-items:center; gap:18px; }
.lang-switch{ display:flex; border:1px solid var(--line); border-radius:20px; overflow:hidden; }
.lang-switch button{
  background:none; border:none; color:var(--muted); font-family:var(--serif-caps); font-size:11px; letter-spacing:.1em;
  padding:7px 13px; transition:.3s;
}
.lang-switch button.is-active{ background:var(--gold); color:#171208; }

.burger{ display:none; width:26px; height:18px; position:relative; background:none; border:none; }
.burger span{ position:absolute; left:0; right:0; height:1px; background:var(--gold-light); transition:.35s var(--ease-out); }
.burger span:nth-child(1){ top:0; }
.burger span:nth-child(2){ top:8px; }
.burger span:nth-child(3){ top:16px; }
.burger.is-open span:nth-child(1){ top:8px; transform:rotate(45deg); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ top:8px; transform:rotate(-45deg); }

.mobile-nav{
  position:fixed; inset:0; z-index:480; background:rgba(13,12,9,.98);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:30px;
  transform:translateY(-100%);
  /* Меню уводится ровно на свою высоту и упирается в верх экрана. Во встроенном
     браузере Telegram высота окна меняется на ходу (панель сворачивается), и его
     нижний край с кнопкой выглядывал над шапкой. Прячем ещё и видимостью. */
  visibility:hidden; opacity:0;
  transition:transform .5s var(--ease-in-out), opacity .3s var(--ease-out), visibility .5s;
}
.mobile-nav.is-open{ transform:translateY(0); visibility:visible; opacity:1; }
.mobile-nav a{ font-family:var(--serif-display); font-size:30px; color:var(--cream); }
.mobile-nav a:hover{ color:var(--gold-light); }

/* ---------- hero ---------- */
.hero{
  position:relative; min-height:100svh; display:flex; align-items:center; justify-content:center;
  overflow:hidden; text-align:center; padding-top:80px;
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg canvas{ position:absolute; inset:0; width:100%; height:100%; }
.hero-bg::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(ellipse 900px 620px at 50% 30%, rgba(212,175,55,.12), transparent 65%),
             radial-gradient(ellipse 1400px 900px at 50% 100%, rgba(212,175,55,.06), transparent 70%);
}
.hero-frame{
  position:absolute; inset:18px; border:1px solid var(--line); pointer-events:none;
}
.hero-content{ position:relative; z-index:2; max-width:820px; padding:0 24px; }
.hero-eyebrow{ opacity:0; animation:fadeUp 1s var(--ease-out) .2s forwards; }
.hero h1{
  font-size:clamp(46px,8.6vw,108px); line-height:1.02; margin:22px 0 0; color:var(--gold-pale);
  font-weight:500;
}
.hero h1 .word{ display:inline-block; overflow:hidden; }
.hero h1 .word span{ display:inline-block; transform:translateY(110%); animation:wordUp 1s var(--ease-out) forwards; }
.hero p.sub{
  margin:2px auto 0; max-width:640px; color:var(--muted); font-size:20px; font-style:italic;
  opacity:0; animation:fadeUp 1s var(--ease-out) .9s forwards;
  text-wrap:balance;
}
.hero-cta{ display:flex; gap:18px; justify-content:center; margin-top:44px; flex-wrap:wrap; opacity:0; animation:fadeUp 1s var(--ease-out) 1.1s forwards; }
.hero-scroll{
  /* центрируем растяжкой, а не transform: анимация fadeUp затирает transform
     своим translateY и подсказка уезжает вбок */
  position:absolute; bottom:34px; left:0; right:0; z-index:2;
  display:flex; flex-direction:column; align-items:center; gap:10px; color:var(--muted);
  font-family:var(--serif-caps); font-size:10px; letter-spacing:.3em;
  opacity:0; animation:fadeUp 1s var(--ease-out) 1.4s forwards;
}
.hero-scroll .line{ width:1px; height:40px; background:linear-gradient(var(--gold),transparent); position:relative; overflow:hidden; }
.hero-scroll .line::after{ content:""; position:absolute; left:0; top:-100%; width:100%; height:100%; background:var(--gold-light); animation:scrollDrip 2.2s ease-in-out infinite; }

@keyframes fadeUp{ from{ opacity:0; transform:translateY(18px); } to{ opacity:1; transform:translateY(0); } }
@keyframes wordUp{ to{ transform:translateY(0); } }
@keyframes scrollDrip{ 0%{ top:-100%; } 60%{ top:100%; } 100%{ top:100%; } }

/* ---------- marquee ---------- */
.marquee{
  position:relative; border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background:var(--surface); overflow:hidden; padding:18px 0;
}
.marquee-track{ display:flex; width:max-content; animation:marquee 32s linear infinite; }
.marquee-track span{
  font-family:var(--serif-caps); font-size:13px; letter-spacing:.25em; text-transform:uppercase;
  color:var(--muted); padding:0 28px; white-space:nowrap; display:flex; align-items:center; gap:28px;
}
.marquee-track span::after{ content:"✦"; color:var(--gold); }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------- about / production ---------- */
.about{ display:grid; grid-template-columns:1fr 1fr; gap:72px; align-items:center; }
.about-media{ position:relative; }
.about-media .frame{
  position:relative; border:1px solid var(--line-strong); padding:18px;
}
.about-media img{ width:100%; aspect-ratio:4/5; object-fit:cover; }
.about-media .badge{
  position:absolute; right:-24px; bottom:-24px; width:150px; height:150px; border-radius:50%;
  background:var(--surface); border:1px solid var(--line-strong); display:flex; align-items:center; justify-content:center;
  text-align:center; font-family:var(--serif-caps); font-size:11px; letter-spacing:.14em; color:var(--gold-light);
  box-shadow:0 0 40px rgba(212,175,55,.15);
  animation:spinSlow 22s linear infinite;
}
.about-media .badge-static{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  animation:none;
}
@keyframes spinSlow{ to{ transform:rotate(360deg); } }

.about-text p{ color:var(--muted); font-size:18px; margin-top:18px; }
.perks{ margin-top:36px; display:grid; gap:22px; }
.perk{ display:flex; gap:16px; align-items:flex-start; }
.perk i{
  flex:none; width:44px; height:44px; border:1px solid var(--line-strong); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--gold);
}
.perk h4{ font-size:19px; color:var(--gold-pale); }
.perk p{ color:var(--muted); font-size:15.5px; margin-top:4px; }

/* ---------- category nav ---------- */
.cat-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:20px; }

/* категория — золотой кружок с иконкой, под ним подпись */
.cat-card{
  position:relative; cursor:pointer; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:16px;
  background:none; border:none; padding:8px 4px;
}
.cat-card img{
  /* без flex:none картинка растягивалась по ячейке и круг превращался в овал */
  flex:none; aspect-ratio:1 / 1; object-fit:contain;
  width:116px; height:116px; padding:24px; border-radius:50%;
  border:1px solid rgba(212,175,55,.55);
  background:radial-gradient(circle at 50% 34%, rgba(212,175,55,.10), rgba(212,175,55,.02) 70%);
  box-shadow:0 0 0 6px rgba(212,175,55,.05);
  transition:transform .5s var(--ease-out), border-color .4s, box-shadow .4s, background .4s;
}
.cat-card:hover img{
  transform:translateY(-4px) scale(1.04);
  border-color:var(--gold);
  box-shadow:0 0 0 8px rgba(212,175,55,.10), 0 14px 30px rgba(0,0,0,.4);
  background:radial-gradient(circle at 50% 34%, rgba(212,175,55,.20), rgba(212,175,55,.05) 70%);
}
.cat-card .cat-name{
  position:static; padding:0; text-align:center; border:none;
  font-family:var(--serif-caps); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--cream);
  line-height:1.35;
}
.cat-card:hover .cat-name{ color:var(--gold-pale); }
.cat-card .cat-count{ display:block; color:var(--muted-2); font-size:11px; margin-top:5px; letter-spacing:.06em; }

/* ---------- catalog ---------- */
.catalog-toolbar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; margin-bottom:44px; }
.filter-tabs{ display:flex; flex-wrap:wrap; gap:10px; }
.filter-tabs button{
  background:none; border:1px solid var(--line); color:var(--muted); padding:10px 20px;
  font-family:var(--serif-caps); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; border-radius:20px;
  transition:.3s;
}
.filter-tabs button:hover{ border-color:var(--gold); color:var(--gold-light); }
.filter-tabs button.is-active{ background:var(--gold); border-color:var(--gold); color:#171208; }

.stock-toggle{ display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; font-family:var(--serif-caps); letter-spacing:.08em; text-transform:uppercase; }
.switch{ position:relative; width:40px; height:22px; border:1px solid var(--line-strong); border-radius:20px; }
.switch input{ position:absolute; inset:0; opacity:0; margin:0; cursor:pointer; }
.switch .knob{ position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:var(--gold); transition:.3s var(--ease-out); }
.switch input:checked ~ .knob{ transform:translateX(18px); }

.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:34px; }
.product-card{
  position:relative; background:var(--surface); border:1px solid var(--line);
  transition:transform .5s var(--ease-out), border-color .4s, box-shadow .5s;
}
.product-card:hover{ transform:translateY(-8px); border-color:var(--line-strong); box-shadow:0 24px 50px -20px rgba(0,0,0,.6), 0 0 40px -10px rgba(212,175,55,.18); }
.product-media{ position:relative; aspect-ratio:1/1; overflow:hidden; background:#100e09; }
.product-media img{ width:100%; height:100%; object-fit:cover; transition:transform .8s var(--ease-out); }
.product-card:hover .product-media img{ transform:scale(1.08); }
.product-tag{
  position:absolute; top:14px; left:14px; font-family:var(--serif-caps); font-size:10px; letter-spacing:.14em;
  text-transform:uppercase; padding:6px 12px; background:rgba(13,12,9,.75); border:1px solid var(--line-strong); color:var(--gold-light);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
}
.product-tag.order{ color:var(--gold-pale); border-color:var(--gold); }
.product-quick{
  position:absolute; inset:auto 14px 14px 14px; display:flex; gap:10px;
  opacity:0; transform:translateY(10px); transition:.4s var(--ease-out);
}
.product-card:hover .product-quick{ opacity:1; transform:translateY(0); }
.product-quick button{
  flex:1; background:rgba(13,12,9,.82); border:1px solid var(--line-strong); color:var(--cream);
  padding:10px; font-family:var(--serif-caps); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  transition:.3s;
}
.product-quick button:hover{ background:var(--gold); color:#171208; border-color:var(--gold); }
.product-info{ padding:22px 22px 26px; }
.product-info .p-cat{ font-family:var(--serif-caps); font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted-2); }
.product-info h3{ font-size:23px; margin-top:8px; color:var(--gold-pale); }
.product-info .p-desc{
  color:var(--muted); font-size:14.5px; margin-top:8px; min-height:44px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.product-info .p-bottom{ display:flex; align-items:center; justify-content:space-between; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.p-price{ font-family:var(--serif-caps); font-size:18px; color:var(--gold); letter-spacing:.02em; }
.p-price .old{ color:var(--muted-2); text-decoration:line-through; font-size:13px; margin-right:8px; }
.p-more{ font-family:var(--serif-caps); font-size:11px; letter-spacing:.12em; color:var(--muted); }

.load-more-wrap{ text-align:center; margin-top:56px; }
.empty-state{ text-align:center; padding:80px 20px; color:var(--muted); }
.empty-state .glyph{ font-size:40px; color:var(--gold); margin-bottom:18px; }

/* ---------- product modal ---------- */
.modal-overlay{
  position:fixed; inset:0; z-index:900; background:rgba(8,7,5,.82); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  display:flex; align-items:center; justify-content:center; padding:24px;
  opacity:0; pointer-events:none; transition:opacity .4s var(--ease-out);
}
.modal-overlay.is-open{ opacity:1; pointer-events:auto; }
.modal{
  width:min(980px,100%); max-height:88vh; overflow:auto; background:var(--bg-alt); border:1px solid var(--line-strong);
  display:grid; grid-template-columns:1fr 1fr; position:relative;
  transform:translateY(30px) scale(.98); transition:transform .45s var(--ease-out);
}
.modal-overlay.is-open .modal{ transform:translateY(0) scale(1); }
.modal-close{
  position:absolute; top:16px; right:16px; z-index:2; width:38px; height:38px; border-radius:50%;
  background:rgba(13,12,9,.7); border:1px solid var(--line-strong); color:var(--cream); font-size:18px;
  display:flex; align-items:center; justify-content:center; transition:.3s;
}
.modal-close:hover{ background:var(--gold); color:#171208; }
.modal-media{ position:relative; background:#100e09; }
.modal-media img{ width:100%; height:100%; object-fit:cover; min-height:340px; }
.modal-body{ padding:44px; display:flex; flex-direction:column; }
.modal-body .p-cat{ font-family:var(--serif-caps); font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); }
.modal-body h3{ font-size:36px; margin-top:12px; color:var(--gold-pale); }
.modal-body .m-desc{ color:var(--muted); margin-top:18px; font-size:16.5px; }
.modal-meta{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:26px; }
.modal-meta div{ border-top:1px solid var(--line); padding-top:10px; }
.modal-meta span{ display:block; font-family:var(--serif-caps); font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted-2); }
.modal-meta strong{ font-weight:500; color:var(--cream); font-size:15px; }
.modal-price{ margin-top:28px; font-family:var(--serif-caps); font-size:28px; color:var(--gold); }
.modal-actions{ margin-top:auto; padding-top:30px; display:flex; gap:14px; flex-wrap:wrap; }

/* ---------- custom order (bespoke) ---------- */
/* без рамок: блоки разделяются отступами, а линия проходила прямо под кнопкой */
.bespoke{ position:relative; background:var(--surface); border-top:none; border-bottom:none; }
.bespoke-inner{ display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }
.steps{ counter-reset:step; display:grid; gap:0; }
.step{ position:relative; padding:26px 0 26px 66px; border-top:1px solid var(--line); counter-increment:step; }
.step:first-child{ border-top:none; }
.step::before{
  content:counter(step,decimal-leading-zero); position:absolute; left:0; top:26px; font-family:var(--serif-display); font-size:28px; color:var(--gold);
}
.step h4{ font-size:21px; color:var(--gold-pale); }
.step p{ color:var(--muted); margin-top:6px; font-size:15px; }
.bespoke-badges{ display:flex; gap:16px; margin-top:36px; flex-wrap:wrap; }
.b-badge{ display:flex; align-items:center; gap:10px; border:1px solid var(--line-strong); padding:10px 16px; font-family:var(--serif-caps); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--gold-light); }

/* ---------- trust strip ---------- */
.trust-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
/* содержимое по центру плашки: подписи бывают в одну и в две строки,
   при выравнивании по верху отступ снизу получался разным */
.trust-item{
  background:var(--bg); padding:34px 22px; text-align:center;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.trust-item .num{ font-family:var(--serif-display); font-size:38px; color:var(--gold); }
.trust-item .lbl{ margin-top:8px; color:var(--muted); font-size:13px; font-family:var(--serif-caps); letter-spacing:.1em; text-transform:uppercase; }

/* ---------- contact ---------- */
.contact{ display:grid; grid-template-columns:.85fr 1.15fr; gap:70px; }
.contact-info h2{ font-size:clamp(30px,4vw,46px); }
.contact-info p.lead{ color:var(--muted); margin-top:18px; font-size:18px; }
.contact-channels{ margin-top:36px; display:grid; gap:16px; }
.contact-channels a{
  display:flex; align-items:center; gap:14px; border:1px solid var(--line); padding:16px 18px; transition:.3s;
}
.contact-channels a:hover{ border-color:var(--gold); background:var(--surface); }
.contact-channels .ico{ width:38px; height:38px; border-radius:50%; border:1px solid var(--line-strong); display:flex; align-items:center; justify-content:center; color:var(--gold); flex:none; }
.contact-channels .txt small{ display:block; color:var(--muted-2); font-size:12px; letter-spacing:.06em; text-transform:uppercase; }
.contact-channels .txt strong{ font-weight:500; font-size:16px; }

.form-card{ background:var(--surface); border:1px solid var(--line-strong); padding:44px; position:relative; }
.form-card::before{ content:""; position:absolute; inset:8px; border:1px solid var(--line); pointer-events:none; }
.field{ margin-bottom:22px; position:relative; }
.field label{ display:block; font-family:var(--serif-caps); font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; }
.field input, .field textarea, .field select{
  width:100%; background:transparent; border:none; border-bottom:1px solid var(--line-strong); color:var(--cream);
  padding:10px 2px; font-size:16px; font-family:var(--serif-body); transition:border-color .3s;
}
.field select option{ background:var(--surface); color:var(--cream); }
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color:var(--gold); }
.field textarea{ resize:vertical; min-height:100px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.field-hint{ font-size:12px; color:var(--muted-2); margin-top:14px; padding-top: 6px;}
.consent{ display:flex; align-items:flex-start; gap:10px; margin-bottom:24px; }
.consent input{ margin-top:4px; accent-color:var(--gold); }
.consent label{ color:var(--muted); font-size:13px; line-height:1.5; }
.form-msg{ margin-top:16px; font-size:14px; padding:12px 14px; border:1px solid; display:none; }
.form-msg.show{ display:block; }
.form-msg.ok{ border-color:var(--success); color:var(--success); }
.form-msg.err{ border-color:var(--danger); color:var(--danger); }
.selected-item{
  display:none; align-items:center; gap:12px; border:1px solid var(--line-strong); padding:10px 14px; margin-bottom:22px; background:var(--surface-2);
}
.selected-item.show{ display:flex; }
.selected-item img{ width:44px; height:44px; object-fit:cover; }
.selected-item .rm{ margin-left:auto; color:var(--muted); background:none; border:none; font-size:18px; }

/* ---------- footer ---------- */
.site-footer{ padding:80px 0 30px; border-top:1px solid var(--line); background:var(--bg-alt); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:50px; }
.footer-brand .brand-word{ font-size:22px; }
.footer-brand p{ color:var(--muted); margin-top:16px; font-size:14.5px; max-width:280px; }
.footer-social{ display:flex; gap:12px; margin-top:22px; }
.footer-social a{ width:38px; height:38px; border:1px solid var(--line-strong); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--gold); transition:.3s; }
.footer-social a:hover{ background:var(--gold); color:#171208; }
.footer-col h5{ font-family:var(--serif-caps); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold-light); margin-bottom:20px; }
.footer-col ul{ display:grid; gap:12px; }
.footer-col a{ color:var(--muted); font-size:14.5px; transition:.3s; }
.footer-col a:hover{ color:var(--gold-light); }
.footer-bottom{ margin-top:70px; padding-top:24px; border-top:1px solid var(--line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color:var(--muted-2); font-size:12.5px; }

/* ---------- toast ---------- */
.toast{
  position:fixed; bottom:28px; right:28px; z-index:1000; background:var(--surface); border:1px solid var(--gold);
  padding:16px 22px; max-width:320px; font-size:14px;
  /* прячем не сдвигом: пустой тост низкий, и translateY(140%) не убирал его
     за край — в углу торчал золотой квадратик */
  opacity:0; visibility:hidden; pointer-events:none;
  transform:translateY(16px);
  transition:opacity .35s var(--ease-out), transform .5s var(--ease-out), visibility .35s;
}
.toast.show{ opacity:1; visibility:visible; transform:translateY(0); }

/* ---------- preloader ---------- */
.preloader{
  position:fixed; inset:0; z-index:2000; background:var(--bg); display:flex; align-items:center; justify-content:center;
  transition:opacity .7s var(--ease-out), visibility .7s;
}
.preloader img{ width:64px; height:64px; animation:pulse 1.6s ease-in-out infinite; }
.preloader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }
@keyframes pulse{ 0%,100%{ opacity:.5; transform:scale(.94); } 50%{ opacity:1; transform:scale(1.03); } }

/* ---------- responsive ---------- */
@media (max-width:1080px){
  .cat-grid{ grid-template-columns:repeat(3,1fr); }
  .grid{ grid-template-columns:repeat(2,1fr); }
  .about, .bespoke-inner, .contact{ grid-template-columns:1fr; }
  .about-media{ order:2; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .main-nav{ display:none; }
  .lang-switch{ display:none; }
  .burger{ display:block; }
  .modal{ grid-template-columns:1fr; }
  .modal-media img{ min-height:260px; }
  .trust-strip{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .container{ padding:0 20px; }
  .section{ padding:80px 0; }
  .cat-grid{ grid-template-columns:repeat(2,1fr); }
  .grid{ grid-template-columns:1fr; }
  .field-row{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .catalog-toolbar{ flex-direction:column; align-items:flex-start; }
  .form-card{ padding:28px; }

  /* header: CTA moves into the mobile menu, keep top bar to logo + burger only */
  .header-actions > a.btn{ display:none; }
  .header-actions{ gap:14px; }
  .brand-word{ font-size:14px; letter-spacing:.16em; white-space:nowrap; }
  .brand img{ width:30px; height:30px; }
}

/* ================= БЫСТРАЯ СВЯЗЬ: липкая панель на телефоне ================= */
.sticky-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:70;
  display:none; gap:10px; padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:linear-gradient(to top, rgba(10,9,7,.98) 60%, rgba(10,9,7,0));
  transform:translateY(120%); transition:transform .45s var(--ease-out);
}
.sticky-bar.is-visible{ transform:translateY(0); }
.sb-btn{
  flex:1; text-align:center; padding:15px 10px;
  font-family:var(--serif-caps); font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  border:1px solid var(--gold); transition:.3s;
}
.sb-btn--solid{ background:var(--gold); color:#171208; }
.sb-btn--ghost{ background:rgba(13,12,9,.9); color:var(--gold-pale); }

@media (max-width:860px){
  .sticky-bar{ display:flex; }
  /* модалка: фото не съедает экран — цена и кнопка видны без прокрутки */
  .modal-media img{ min-height:0; max-height:38vh; object-fit:cover; }
  .modal-body{ padding-bottom:26px; }
}

/* ================= форма: необязательные поля под раскрытием ================= */
.form-extra{ margin-bottom:22px; }
.form-extra > summary{
  list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:8px;
  font-family:var(--serif-caps); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--muted); padding:6px 0; transition:.3s;
}
.form-extra > summary::-webkit-details-marker{ display:none; }
.form-extra > summary::after{ content:"+"; font-size:14px; color:var(--gold); }
.form-extra[open] > summary::after{ content:"–"; }
.form-extra > summary:hover{ color:var(--gold-pale); }
.form-extra[open]{ margin-bottom:8px; }

/* ================= мобильный пас: ничего не торчит за край ================= */
/* страховка от бокового скролла (clip, а не hidden — не ломает липкие блоки) */
html{ overflow-x:clip; }
body{ overflow-x:clip; }

@media (max-width:1080px){
  /* Печать крутится, поэтому её габарит по диагонали шире самого круга
     (150px круг занимает ~212px) — отодвигаем с запасом, иначе цепляет край экрана */
  .about-media .badge{ right:34px; bottom:-4px; }
}
@media (max-width:640px){
  .about-media .badge{ width:110px; height:110px; right:26px; bottom:0; font-size:9.5px; }
  /* svg внутри печати имеет жёсткие 150px — тянем по размеру самой печати */
  .about-media .badge svg{ width:100%; height:100%; inset:0; }
}

/* ---------- палец должен попадать: зоны нажатия ---------- */
@media (max-width:860px){
  /* бургер рисуется 26×18, а нажимать надо по 44×44.
     Через padding нельзя — полоски позиционируются от padding-бокса и уезжают вверх.
     Поэтому зона нажатия — невидимый псевдоэлемент поверх. */
  .burger{ padding:0; margin:0; }
  .burger::after{ content:""; position:absolute; inset:-13px -9px; }

  /* в модалке кнопка заявки не должна уезжать за экран — держим её внизу */
  .modal-body{ padding:26px 22px 0; }
  .modal-media img{ max-height:32vh; }
  .modal-actions{
    position:sticky; bottom:0; margin-top:24px; padding:18px 0;
    flex-direction:column; gap:10px;
    background:var(--bg-alt);
  }
  /* мягкий переход, чтобы текст не обрывался резко под панелью */
  .modal-actions::before{
    content:""; position:absolute; left:0; right:0; top:-26px; height:26px;
    background:linear-gradient(to top, var(--bg-alt), rgba(0,0,0,0)); pointer-events:none;
  }
  .modal-actions .btn{ width:100%; }
}

@media (max-width:640px){
  /* чекбокс согласия был 13×13 — мелко для пальца */
  .consent input{ width:20px; height:20px; flex:none; margin-top:1px; }
  .consent label{ font-size:13.5px; }
  /* ссылки подвала: зона нажатия по всей строке, чтобы не промахиваться */
  .footer-col ul li{ padding:0; }
  .footer-col ul li a{ display:block; padding:9px 0; }
}

/* ---------- телефон в шапке рядом с кнопкой заявки ---------- */
.header-phone{
  display:flex; align-items:center; gap:8px; white-space:nowrap;
  font-family:var(--serif-caps); font-size:13px; letter-spacing:.04em; color:var(--gold-pale);
  padding:8px 4px; transition:.3s;
}
.header-phone .ico{ color:var(--gold); font-size:15px; }
.header-phone:hover{ color:var(--gold); }
.mobile-phone{
  display:flex; align-items:center; gap:10px; margin-top:6px;
  font-family:var(--serif-caps); font-size:17px; letter-spacing:.04em; color:var(--gold-pale);
  padding:12px 0;
}
.mobile-phone .ico{ color:var(--gold); }
@media (max-width:1180px){ .header-phone{ display:none; } }

/* =========================================================
   МОБИЛЬНАЯ ЛЕНТА: категории, товары и шаги листаются вправо
   ========================================================= */
@media (max-width:860px){
  .cat-grid,
  .grid,
  .steps{
    display:flex; flex-wrap:nowrap; gap:14px;
    overflow-x:auto; overflow-y:hidden;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    /* лента идёт от края до края экрана, а не внутри отступов контейнера */
    margin-left:-20px; margin-right:-20px;
    padding:4px 20px 18px;
  }
  .cat-grid::-webkit-scrollbar,
  .grid::-webkit-scrollbar,
  .steps::-webkit-scrollbar{ display:none; }

  /* карточка товара: видно следующую — сразу понятно, что листается */
  .grid > *{ flex:0 0 78%; scroll-snap-align:center; }
  .cat-grid > *{ flex:0 0 42%; scroll-snap-align:center; }
  .steps > *{ flex:0 0 72%; scroll-snap-align:center; border-top:1px solid var(--line); }

  /* в ленте карточки одной высоты */
  .grid > .product-card{ display:flex; flex-direction:column; }
  .grid > .product-card .product-info{ flex:1; display:flex; flex-direction:column; }
  .grid > .product-card .p-bottom{ margin-top:auto; }

  .steps > .step{ padding:22px 0 22px 56px; }

  /* «показать ещё» в ленте не нужна — все изделия уже в прокрутке */
  .load-more-wrap{ display:none !important; }
}

/* подсказка «листайте вправо» — только на телефоне */
.swipe-hint{ display:none; }
@media (max-width:860px){
  .swipe-hint{
    display:flex; align-items:center; gap:8px; margin-top:14px;
    font-family:var(--serif-caps); font-size:10.5px; letter-spacing:.16em;
    text-transform:uppercase; color:var(--muted-2);
  }
  .swipe-hint::after{
    content:"→"; font-size:14px; color:var(--gold);
    animation:swipeNudge 1.8s var(--ease-in-out) infinite;
  }
}
@keyframes swipeNudge{ 0%,100%{ transform:translateX(0); } 50%{ transform:translateX(6px); } }

/* выбор категории на телефоне — одна строка с прокруткой вбок */
@media (max-width:860px){
  .catalog-toolbar{ gap:14px; }
  .filter-tabs{
    flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none;
    margin-left:-20px; margin-right:-20px; padding:2px 20px;
    scroll-snap-type:x proximity;
    width:calc(100% + 40px);
  }
  .filter-tabs::-webkit-scrollbar{ display:none; }
  .filter-tabs button{ flex:none; scroll-snap-align:start; padding:12px 20px; }
}

/* иконки категорий */
.cat-card img{ opacity:.92; }
.cat-card:hover img{ opacity:1; }

/* на телефоне у карточки нет наведения — кнопки видны всегда */
@media (max-width:860px){
  .product-quick{ opacity:1; transform:none; }
  .product-quick button{ padding:12px 8px; font-size:11px; }
}

/* оживлённое фото изделия в блоке «О бренде» */
.about-media .about-video{
  width:100%; aspect-ratio:3/4; object-fit:cover; display:block; background:#100e09;
}

/* ---------- шапка: телефон рядом с кнопкой не должен ломать строку ---------- */
.site-header .brand-word,
.main-nav a,
.header-phone,
.header-actions .btn .btn-label{ white-space:nowrap; }
.site-header .container{ gap:18px; flex-wrap:nowrap; }
.brand{ flex:none; }
.main-nav{ gap:26px; }

/* на средних экранах поджимаем, чтобы всё осталось в одну строку */
@media (max-width:1400px){
  .main-nav{ gap:20px; }
  .header-actions{ gap:14px; }
  .header-phone{ font-size:12.5px; }
  .brand-word{ font-size:18px; letter-spacing:.22em; }
}
@media (max-width:1280px){
  .header-phone{ display:none; }
}

/* =========================================================
   МОБИЛЬНЫЙ ПАС 2: плотнее, ровнее, без прокрутки вбок
   ========================================================= */
@media (max-width:860px){

  /* --- строки не разъезжаются --- */
  body{ line-height:1.45; }
  .hero p.sub,
  .about-text p,
  .perk p,
  .step p,
  .contact .lead,
  .catalog-toolbar + *,
  #catalog .section-head p,
  .bespoke p{ line-height:1.42; }
  h1,h2,h3,h4{ line-height:1.14; }

  /* --- первый экран --- */
  /* строка про производство — в две строки, «с 2020 года» отдельной строкой */
  .hero-eyebrow{
    font-size:9.5px; letter-spacing:.16em; gap:0;
    display:block; white-space:normal; line-height:1.8; max-width:none; margin:0 auto;
  }
  .hero-eyebrow::before, .hero-eyebrow::after{ display:none; }
  .hero h1{ margin-top:16px; }
  .hero p.sub{ font-size:17px; margin-top:8px; line-height:1.35; }
  .hero-cta{ margin-top:30px; gap:12px; }
  /* «Листайте» — ровно по центру экрана и с воздухом от кнопок */
  .hero-scroll{
    bottom:22px; left:0; right:0;
    gap:8px; font-size:9px; letter-spacing:.28em; text-indent:.28em;
  }
  .hero-scroll .line{ height:24px; }

  /* --- меньше воздуха между блоками --- */
  /* Один и тот же шаг между блоками. Отступ задаём ТОЛЬКО сверху —
     иначе нижний одной секции складывается с верхним следующей и зазор двоится. */
  .section, .section--tight{ padding:34px 0 0; }
  .hero{ padding-top:80px; }
  /* конец блока «Как мы работаем»: было 18px снизу против 70px сверху
     у следующей полосы — уравниваем по обе стороны границы */
  #bespoke{ padding-bottom:26px; }
  .trust-strip{ margin-top:8px; }
  .site-footer{ padding-top:34px; padding-bottom:22px; margin-top:0; }
  /* последние элементы внутри блоков не добавляют своего отступа */
  .section > .container > *:last-child{ margin-bottom:0; }
  /* единый ритм: между шапкой блока и содержимым — всегда 26px,
     между блоками — padding секции 56px. Никаких разнобойных отступов. */
  .section-head{ margin-bottom:20px; }
  .catalog-toolbar{ margin-bottom:18px; margin-top:0; }
  .section-head p{ margin-top:8px; }
  .section-head h2{ margin-top:6px; }
  .swipe-hint{ margin-top:0; margin-bottom:8px; }
  #catalog .grid{ margin-top:0; }
  .perks{ margin-top:20px; gap:14px; }
  .bespoke-badges{ margin-top:16px; }
  .contact-channels{ margin-top:20px; }
  .about-text{ margin-top:20px; }
  .steps-wrap{ margin-top:8px; }
  .trust-strip .trust-item{ padding:26px 12px; }
  .contact-channels a{ padding:14px 16px; }
  .contact-channels{ gap:10px; }
  .form-card{ padding:22px 18px; }
  .field{ margin-bottom:16px; }

  /* --- заголовки секций --- */
  .eyebrow{ font-size:10px; letter-spacing:.24em; }
  .section-head h2{ margin-top:10px; }
  .section-head p{ margin-top:12px; }
}

@media (max-width:860px){
  /* --- категории: две в ряд, листаем вниз --- */
  .cat-grid{
    display:grid; grid-template-columns:repeat(3,1fr); gap:22px 10px;
    overflow:visible; margin:0; padding:0;
  }
  .cat-grid > *{ flex:none; }
  .cat-card{ aspect-ratio:auto; gap:11px; padding:0; }
  .cat-card img{ width:84px; height:84px; padding:17px; box-shadow:0 0 0 5px rgba(212,175,55,.05); }
  .cat-card .cat-name{ font-size:9.5px; letter-spacing:.05em; }
  .cat-card .cat-count{ font-size:9.5px; margin-top:3px; }
  /* подсказку «листайте» у категорий убираем — там больше нечего листать */
  #catGrid ~ .swipe-hint, .cat-grid + .swipe-hint{ display:none; }

  /* --- фильтры: все видны сразу, без прокрутки вбок --- */
  .filter-tabs{
    display:flex; flex-wrap:wrap; overflow:visible;
    margin:0; padding:0; width:auto; gap:8px;
  }
  .filter-tabs button{ flex:none; padding:9px 14px; font-size:10.5px; letter-spacing:.1em; }

  /* --- «только в наличии» слева, в общей колонке --- */
  .catalog-toolbar{ flex-direction:column; align-items:stretch; gap:16px; }
  .stock-toggle{ justify-content:flex-start; }
}

/* кнопки товара живут под ценой — и на телефоне, и на компьютере */
.product-quick{ display:none !important; }
.p-actions{ display:flex; gap:10px; margin-top:16px; }
.p-actions button{
  flex:1; background:none; border:1px solid var(--line-strong); color:var(--cream);
  padding:12px 8px; font-family:var(--serif-caps); font-size:10.5px; letter-spacing:.12em; text-transform:uppercase;
  transition:.3s;
}
.p-actions button[data-action="order"]{ background:var(--gold); border-color:var(--gold); color:#171208; }
.p-actions button[data-action="open"]:hover{ border-color:var(--gold); color:var(--gold-light); }
.p-actions button[data-action="order"]:hover{ background:var(--gold-light); }
@media (max-width:860px){

  /* плашка «в наличии» — тоньше */
  .product-tag{ top:10px; left:10px; padding:4px 9px; font-size:8.5px; letter-spacing:.1em; }

  .product-info{ padding:16px 16px 18px; }
  .product-info h3{ font-size:19px; margin-top:6px; }
  .product-info .p-desc{ font-size:13.5px; margin-top:6px; min-height:0; }
  .product-info .p-bottom{ margin-top:12px; padding-top:12px; }
  .p-price{ font-size:16px; }

  .p-actions{ display:flex; gap:8px; margin-top:14px; }
  .p-actions button{
    flex:1; background:none; border:1px solid var(--line-strong); color:var(--cream);
    padding:11px 6px; font-family:var(--serif-caps); font-size:10px; letter-spacing:.1em; text-transform:uppercase;
    transition:.3s;
  }
  .p-actions button[data-action="order"]{ background:var(--gold); border-color:var(--gold); color:#171208; }
}

/* заголовок над шагами */
.steps-title{
  font-size:clamp(22px,3vw,28px); color:var(--gold-pale); margin-bottom:20px;
}
@media (max-width:860px){
  /* шаги листаем вниз, а не вбок */
  .steps{
    display:grid; grid-template-columns:1fr; gap:0;
    overflow:visible; margin:0; padding:0;
  }
  .steps > *{ flex:none; }
  .steps > .step{ padding:18px 0 18px 52px; }
  /* размер задан ниже общим правилом */
}

/* =========================================================
   ШАПКА И МЕНЮ НА ТЕЛЕФОНЕ
   ========================================================= */
@media (max-width:860px){
  /* бургер по одной оси с логотипом */
  .site-header .container{ align-items:center; }
  .header-actions{ align-items:center; }
  .burger{ display:block; align-self:center; }
  .brand{ align-items:center; }
}

/* меню: пункты столбиком сверху, действия прижаты к низу экрана */
.mobile-nav{
  background:var(--bg);
  align-items:stretch; justify-content:flex-start;
  gap:0; padding:92px 24px calc(26px + env(safe-area-inset-bottom));
  overflow-y:auto;
}
.mobile-nav .nav-links{
  display:flex; flex-direction:column; gap:0; width:100%;
}
.mobile-nav .nav-links a{
  display:flex; align-items:center;
  font-size:23px; padding:17px 0; width:100%; text-align:left;
  border-bottom:1px solid var(--line);
}
/* верхняя линия над первым пунктом не нужна — под шапкой уже есть граница */

/* низ меню: телефон, язык и главная кнопка */
.mobile-nav .nav-foot{
  margin-top:auto; padding-top:28px;
  /* телефон и переключатель языка — в одну строку, кнопка под ними на всю ширину */
  display:grid; grid-template-columns:1fr auto; align-items:center; gap:18px 14px;
}
.mobile-nav .mobile-phone{ font-size:19px; margin:0; padding:6px 0; justify-self:start; }
.mobile-nav .lang-switch{ margin:0 !important; justify-self:end; }
.mobile-nav .nav-foot .btn{
  grid-column:1 / -1; width:100%; margin:0 !important; padding:17px 20px;
}
.mobile-nav .nav-foot .btn .btn-label{ font-size:12px; letter-spacing:.18em; white-space:nowrap; }

/* перенос строки только на телефоне */
br.mb{ display:none; }
@media (max-width:860px){ br.mb{ display:inline; } }

/* меню: кнопка перебивалась общим цветом ссылок — возвращаем тёмный текст на золоте */
.mobile-nav a.btn{ color:#171208; width:auto; }
.mobile-nav a.btn:hover{ color:#171208; }

/* переключатель языка прятался вместе с шапочным — в меню он нужен */
@media (max-width:860px){
  .mobile-nav .lang-switch{ display:flex; }
  .mobile-nav .lang-switch button{ padding:9px 16px; font-size:11px; }
}

/* кнопка в меню: ровная золотая заливка, текст читается лучше градиента */
.mobile-nav a.btn--solid{ background:var(--gold); }

/* якоря не прячутся под липкой шапкой */
section[id], .steps-title{ scroll-margin-top:84px; }

/* Шапка сплошная СРАЗУ, а не только после прокрутки — иначе при открытии
   сайта логотип висит на голом фоне. Полупрозрачность даже в 96% давала
   заметное просвечивание текста, поэтому фон плотный. */
.site-header{ background:var(--bg); border-bottom:1px solid var(--line); }
.site-header.is-scrolled{ background:var(--bg); }
.modal-overlay{ background:rgba(8,7,5,.94); }
@supports (-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px)){
  .modal-overlay{ background:rgba(8,7,5,.82); }
}

/* =========================================================
   ФОН ПЕРВОГО ЭКРАНА: фотография изделия под плотным фильтром
   ========================================================= */
.hero-bg{
  background-image:url("../images/video/hero-bg.jpg");
  background-size:cover; background-position:50% 42%;
}
/* поверх фото — фирменный тёмный цвет, почти непрозрачный:
   фотография только угадывается, текст читается как на однотоне */
.hero-bg::before{
  content:""; position:absolute; inset:0; z-index:1;
  background:var(--bg); opacity:.93;
}
.hero-bg canvas{ z-index:2; }
.hero-bg::after{ z-index:3; }

/* ---------- настоящие иконки вместо типографских символов ---------- */
.contact-channels .ico svg,
.footer-social svg,
.header-phone .ico svg,
.mobile-phone .ico svg{ width:19px; height:19px; display:block; }
.contact-channels .ico{ color:var(--gold); }
.footer-social a svg{ width:17px; height:17px; }
.header-phone .ico svg{ width:15px; height:15px; }
.mobile-phone .ico svg{ width:20px; height:20px; }

/* иконки в блоках преимуществ и бейджах */
.perk i svg{ width:20px; height:20px; display:block; }
/* фиксированный бокс под иконку — тогда текст во всех плашках
   начинается с одной вертикали, а рисунки читаются одного размера */
.b-badge{ display:inline-flex; align-items:center; gap:0; }
.b-badge svg{ width:17px; height:17px; flex:none; margin-right:10px; }

/* «Как мы работаем» — заголовок весомее и ближе к списку */
.steps-title{
  font-size:clamp(26px,3.4vw,34px); color:var(--gold-pale); margin-bottom:18px;
  font-family:var(--serif-display);
}
@media (max-width:860px){
  /* к списку шагов не должно быть большого провала от кнопки:
     сетка блока давала свои 80px, плюс отступы заголовка */
  .bespoke-inner{ gap:56px; }
  .steps-wrap{ margin-top:0; }
  .steps-title{ font-size:26px; margin-bottom:14px; margin-top:0; }
}

/* ---------- форма заявки: солиднее ---------- */
.form-head{
  display:flex; align-items:center; gap:16px;
  padding-bottom:22px; margin-bottom:26px; border-bottom:1px solid var(--line);
}
.form-mark{
  flex:none; width:46px; height:46px; border:1px solid var(--line-strong); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--gold);
}
.form-mark svg{ width:22px; height:22px; }
.form-head h3{ font-size:23px; color:var(--gold-pale); line-height:1.2; }
.form-sub{ color:var(--muted-2); font-size:13.5px; margin-top:5px; }

/* иконки у подписей полей — рядом с label, а не внутри:
   внутри их затирал переключатель языка */
.field-top{ display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.field-top label{ margin-bottom:0; }
.field-top .fi{ color:var(--gold); display:flex; }
.field-top .fi svg{ width:15px; height:15px; display:block; }

/* ---------- подвал: авторство ---------- */
.footer-made a{ color:var(--gold-light); border-bottom:1px solid var(--line); }
.footer-made a:hover{ color:var(--gold); }

@media (max-width:860px){
  .form-head{ padding-bottom:18px; margin-bottom:22px; gap:13px; }
  .form-mark{ width:40px; height:40px; }
  .form-head h3{ font-size:20px; }
  .footer-made{ display:block; line-height:1.7; }
}

/* ---------- меню: пункты компактнее, в два столбца ---------- */
@media (max-width:860px){
  /* размеры пунктов заданы выше единым правилом */
}

/* ---------- подвал на телефоне: колонки в два ряда, пункты плотнее ---------- */
@media (max-width:640px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:28px 20px; }
  .footer-brand{ grid-column:1 / -1; }
  .footer-col h5{ margin-bottom:12px; font-size:11px; }
  .footer-col ul{ gap:0; }
  .footer-col ul li a{ padding:6px 0; font-size:14px; }
  .footer-col ul li span{ display:block; padding:5px 0; }
  .footer-col:last-child{ grid-column:1 / -1; }
}


/* разделитель виден только там, где строка идёт в один ряд */
@media (max-width:860px){ .hero-eyebrow .sep{ display:none; } }

/* при открытом меню плавающая кнопка и нижняя панель не мешают */
body:has(.mobile-nav.is-open) .sticky-bar,
body.menu-open .sticky-bar{ opacity:0; pointer-events:none; }

/* на телефоне под видео не нужна разделительная линия блока */
@media (max-width:860px){
  .bespoke{ border-top:none; border-bottom:none; }
}


/* иконка телеграма в нижней кнопке «Написать» */
.sb-btn{ display:inline-flex; align-items:center; justify-content:center; gap:9px; }
.sb-btn svg{ width:18px; height:18px; flex:none; }

@media (max-width:860px){
  /* видео ближе к тексту: сетка блока давала 72px разрыва */
  .about{ gap:26px; }
  /* форма ближе к плашкам контактов: там сетка давала 70px */
  .contact{ gap:26px; }
  /* круглая печать вылезала за низ блока и налезала на следующий */
  /* отступы печати от правого края и от низа рамки — одинаковые */
  .about-media .badge{ bottom:22px; right:22px; }
  /* под видео должно быть ровно столько же, сколько от границы блоков
     до текста «Индивидуальный заказ» — там 34px отступа плюс верхний
     свес строки, итого 45px */
  #about{ padding-bottom:45px; }
}

/* =========================================================
   ЕДИНАЯ МЕЖСТРОЧКА (десктоп и планшет)
   было: всё подряд 1.6, включая заголовки в 54px — они разъезжались
   ========================================================= */
body{ line-height:1.5; }
h1, h2, h3, h4, h5{ line-height:1.15; }
.hero h1{ line-height:1.02; }
.section-head p,
.about-text p,
.perk p,
.step p,
.contact-info p.lead,
#bespoke p,
.product-info .p-desc,
.footer-brand p{ line-height:1.5; }
.perk h4, .step h4, .product-info h3, .form-head h3, .steps-title{ line-height:1.2; }
/* мелкие подписи капсом */
.trust-item .lbl, .b-badge span, .cat-name, .footer-col ul li a,
.eyebrow, .filter-tabs button, .p-cat{ line-height:1.35; }

/* в плашках капс центрируется по боксу строки, а он выше самих букв —
   прижимаем бокс к глифам, чтобы текст встал ровно по центру рамки */
.b-badge span{ line-height:1; display:block; }
.b-badge{ padding-top:10.5px; padding-bottom:12.5px; }

/* принудительный перенос — только на широком экране, на телефоне текст ложится сам */
br.dt{ display:none; }
@media (min-width:1100px){ br.dt{ display:inline; } }

/* карточки в сетке одной высоты, а цена с кнопками прижаты к низу —
   иначе при заголовке в две строки кнопки уезжают ниже соседних */
.grid{ align-items:stretch; }
.product-card{ display:flex; flex-direction:column; }
.product-card .product-info{ flex:1; display:flex; flex-direction:column; }
.product-card .p-bottom{ margin-top:auto; }


/* кнопка в шапке — компактнее общей */
.header-actions .btn{ padding:13px 24px; font-size:11px; letter-spacing:.16em; }

/* блок категорий не должен зиять пустотой до каталога */
.section--tight{ padding:56px 0 40px; }

/* рисунок в кружке крупнее — мелкий «висел» в пустоте */
.cat-card img{ padding:20px; }

/* На широком экране каждая секция имела отступ и сверху, и снизу —
   они складывались, и между блоками зияло по 200–290px.
   Оставляем отступ ТОЛЬКО сверху, одинаковый для всех. */
@media (min-width:861px){
  .section, .section--tight{ padding:108px 0 0; }
  /* колонки центрировались по вертикали и текст уезжал вниз на 38px —
     из-за этого зазоры между блоками читались как разные */
  .about, .contact, .bespoke-inner{ align-items:start; }
  /* буквы «ПРО БРЕНД» начинались на 14px ниже верхней линии рамки —
     виноват свес строки над капсом; подтягиваем колонку */
  .about-text{ margin-top:-14px; }
  /* круглая печать свисает за угол кадра — блоку нужен нижний отступ,
     иначе она уезжает под следующий блок */
  #about{ padding-bottom:132px; }
  /* У блоков, что начинаются капсом, строка даёт свес ~10px над буквами.
     Секциям с текстовым заголовком отступ уменьшаем на этот свес, чтобы
     ВИДИМЫЙ шаг был одинаковым с блоками, что начинаются рамкой или лого. */
  .section--tight, #catalog, #contact, #bespoke{ padding-top:98px; }
  /* отступ под кнопкой должен быть В ЦВЕТЕ блока, а не тёмной полосой:
     даём его самому блоку, а не отступом сверху у полосы с цифрами */
  /* тот же шаг, что и у блока «Про бренд» */
  #bespoke{ padding-bottom:108px; }
  .trust-strip{ margin-top:0; }
  .site-footer{ padding-top:107px; }
  .load-more-wrap{ margin-top:44px; }
  .section-head{ margin-bottom:40px; }
}

/* ПЛАШКИ: иконка и текст стоят единой группой, поля от рамки одинаковые
   с обеих сторон. Правое поле на 2px меньше — компенсация засечек шрифта,
   иначе справа оптически зияет. */
.b-badge{
  position:static; justify-content:flex-start;
  padding-left:15.7px; padding-right:16px;
}
.b-badge svg{ position:static; transform:none; margin-right:11px; }
@media (max-width:860px){
  .b-badge{ padding-left:12.7px; padding-right:13px; padding-top:11.5px; padding-bottom:11.5px; }
  .b-badge svg{ margin-right:10px; }
}

/* цифры в полосе: бокс строки у крупных цифр выше самих знаков,
   из-за этого текст сидел на 11px ниже центра плашки */
.trust-item{ padding-top:32px; padding-bottom:35px; }
.trust-item .num{ line-height:1; }

/* подвал: колонки начинаются на одной высоте с «LE BOUTIQUE» */
.footer-grid{ align-items:start; }
.footer-col h5{ margin-top:6px; }


/* ---------- выпадающий список: свой вид вместо системного ---------- */
.field select{
  -webkit-appearance:none; appearance:none;
  background-color:transparent;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8" fill="none" stroke="%23d4af37" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M1 1.5 6 6.5 11 1.5"/></svg>");
  background-repeat:no-repeat;
  background-position:right 4px center;
  background-size:12px 8px;
  border:none; border-bottom:1px solid var(--line-strong); border-radius:0;
  color:var(--cream); font-family:var(--serif-body); font-size:16px;
  padding:10px 26px 10px 2px; width:100%;
  cursor:pointer; transition:border-color .3s;
}
.field select:hover{ border-bottom-color:var(--gold); }
.field select:focus{ outline:none; border-bottom-color:var(--gold); }
/* список вариантов — в тон сайту */
.field select option{ background:var(--surface); color:var(--cream); }


/* печать поверх соседних блоков, чтобы её не срезало границей секции */
.about-media .badge{ z-index:4; }
.about-media{ z-index:2; }

/* переключатель языка стал ссылками */
.lang-switch a{
  display:flex; align-items:center; justify-content:center;
  background:none; border:none; color:var(--muted);
  font-family:var(--serif-caps); font-size:11px; letter-spacing:.1em;
  padding:7px 13px; transition:.3s;
}
.lang-switch a.is-active{ background:var(--gold); color:#171208; }
.lang-switch a:not(.is-active):hover{ color:var(--gold-light); }

/* ---------- первый экран: SINCE 2020 · Le Boutique · производство · подзаголовок ---------- */
.hero-eyebrow{
  font-family:var(--serif-caps); letter-spacing:.42em; text-indent:.42em;
  font-size:11px; color:var(--gold);
}
.hero-line{
  margin-top:16px;
  font-family:var(--serif-caps); font-size:12.5px; letter-spacing:.34em; text-indent:.34em;
  text-transform:uppercase; color:var(--gold-light);
  opacity:0; animation:fadeUp 1s var(--ease-out) .75s forwards;
}
/* тонкие линии по бокам — как у фирменной печати */
.hero-line::before, .hero-line::after{
  content:""; display:inline-block; width:34px; height:1px; vertical-align:middle;
  background:linear-gradient(90deg, transparent, var(--line-strong));
  margin-right:16px; text-indent:0;
}
.hero-line::after{ background:linear-gradient(90deg, var(--line-strong), transparent); margin:0 0 0 16px; }
.hero p.sub{ margin-top:14px; }

@media (max-width:860px){
  .hero-eyebrow{ font-size:9px; letter-spacing:.34em; text-indent:.34em; }
  .hero-line{ margin-top:12px; font-size:10px; letter-spacing:.24em; text-indent:.24em; }
  .hero-line::before, .hero-line::after{ width:20px; margin-right:10px; }
  .hero-line::after{ margin:0 0 0 10px; }
  .hero p.sub{ margin-top:10px; }
}
@media (max-width:420px){
  /* на узких экранах линии по бокам съедают место — убираем */
  .hero-line::before, .hero-line::after{ display:none; }
}

/* ================= галерея в карточке товара ================= */
.modal-media{ display:flex; flex-direction:column; min-width:0; }
.mg-stage{ position:relative; flex:1; min-height:340px; overflow:hidden; touch-action:pan-y; }
.mg-stage img{ position:absolute; inset:0; width:100%; height:100%; min-height:0; object-fit:cover; }
.mg-nav, .mg-count, .mg-dots, .mg-thumbs{ display:none; }
.has-many .mg-nav, .has-many .mg-count{ display:flex; }
.has-many .mg-thumbs{ display:flex; }
.mg-nav{
  position:absolute; top:50%; z-index:2; width:44px; height:44px; margin-top:-22px; border-radius:50%;
  align-items:center; justify-content:center; padding:0;
  background:rgba(13,12,9,.7); border:1px solid var(--line-strong); color:var(--cream);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); transition:.3s;
}
.mg-nav:hover{ background:var(--gold); color:#171208; }
.mg-nav svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.mg-prev{ left:14px; }
.mg-next{ right:14px; }
.mg-count{
  position:absolute; left:14px; top:16px; z-index:2; padding:5px 11px;
  font-family:var(--serif-caps); font-size:11px; letter-spacing:.14em; color:var(--gold-light);
  background:rgba(13,12,9,.75); border:1px solid var(--line-strong);
}
.mg-thumbs{ gap:8px; padding:10px; overflow-x:auto; scrollbar-width:none; background:#100e09; }
.mg-thumbs::-webkit-scrollbar{ display:none; }
.mg-thumbs button{
  flex:none; width:64px; height:64px; padding:0; border:1px solid var(--line); opacity:.55;
  background:none; overflow:hidden; transition:.3s; cursor:pointer;
}
.mg-thumbs button img{ width:100%; height:100%; object-fit:cover; display:block; }
.mg-thumbs button:hover{ opacity:.85; }
.mg-thumbs button.is-active{ opacity:1; border-color:var(--gold); }

/* значок «несколько фото» на карточке каталога */
.product-photos{
  position:absolute; top:14px; right:14px; z-index:1; display:flex; align-items:center; gap:5px;
  padding:5px 9px; font-family:var(--serif-caps); font-size:11px; letter-spacing:.08em; color:var(--gold-light);
  background:rgba(13,12,9,.75); border:1px solid var(--line-strong);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
}
.product-photos svg{ width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.7; }

@media (max-width:860px){
  .mg-stage{ min-height:0; flex:none; height:32vh; }
  .modal-media img{ max-height:none; }
  /* на телефоне вместо миниатюр — точки поверх фото, листается свайпом */
  .has-many .mg-thumbs{ display:none; }
  .has-many .mg-dots{
    display:flex; position:absolute; left:0; right:0; bottom:12px; z-index:2; justify-content:center; gap:7px;
  }
  .mg-dots span{ width:6px; height:6px; border-radius:50%; background:rgba(244,236,216,.45); transition:.3s; }
  .mg-dots span.is-active{ background:var(--gold); width:18px; border-radius:3px; }
  .mg-nav{ width:40px; height:40px; margin-top:-20px; }
  .mg-prev{ left:10px; } .mg-next{ right:10px; }
  .mg-count{ display:none !important; }
  .product-photos{ top:10px; right:10px; padding:3px 7px; font-size:9.5px; }
  .product-photos svg{ width:11px; height:11px; }
}
/* Safari на узком экране давал сдвиг на 1px вбок и полосу прокрутки внизу модалки */
.modal{ overflow-x:hidden; }
