:root{
  --bg: #FBF8F2;
  --bg-soft: #F3EEE3;
  --bg-card: #FFFCF6;
  --ink: #1F1A14;
  --ink-soft: #4A4239;
  --muted: #8A8073;
  --line: #E6DECF;
  --line-soft: #EFE9DC;
  --accent: oklch(0.62 0.078 40);
  --accent-ink: oklch(0.42 0.07 40);
  --accent-soft: oklch(0.92 0.025 60);
  --tg-blue: #2AABEE;
  --tg-bg: #E7EBEE;
  --tg-out: #EFFDDE;
  --tg-in: #FFFFFF;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow-card: 0 1px 2px rgba(31,26,20,0.04), 0 12px 36px -16px rgba(31,26,20,0.10);
  --shadow-soft: 0 1px 1px rgba(31,26,20,0.03), 0 6px 24px -12px rgba(31,26,20,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- typography ---------- */
.eyebrow{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.display{
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.02;
  color: var(--ink);
  margin: 0;
}
.h-xl{ font-size: clamp(54px, 7vw, 104px); }
.h-lg{ font-size: clamp(40px, 5vw, 72px); }
.h-md{ font-size: clamp(30px, 3.4vw, 48px); }
.h-sm{ font-size: clamp(22px, 2vw, 28px); }
.lede{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.5;
  color: var(--ink-soft);
}
.body{ color: var(--ink-soft); }
.body p{ margin: 0 0 1em; }

/* ---------- shell ---------- */
.shell{
  width: min(1240px, 92vw);
  margin: 0 auto;
}
.shell--narrow{ width: min(880px, 92vw); }
.section{ padding: clamp(80px, 11vh, 140px) 0; position: relative; }
.section + .section{ border-top: 1px solid var(--line-soft); }

/* ---------- nav ---------- */
.nav{
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled{ border-bottom-color: var(--line-soft); }
.nav__inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand{
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand__dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  transform: translateY(-3px);
}
.brand__sub{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.nav__links{
  display: flex; gap: 36px;
  font-size: 14px; color: var(--ink-soft);
}
.nav__links a{ position: relative; transition: color .2s ease; }
.nav__links a:hover{ color: var(--ink); }
.nav__links a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after{ transform: scaleX(1); }
.nav__cta{
  font-family: var(--sans); font-size: 14px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  transition: background .2s ease, color .2s ease;
}
.nav__cta:hover{ background: transparent; color: var(--ink); }
@media (max-width: 760px){
  .nav__links{ display:none; }
}

/* ---------- hero ---------- */
.hero{ padding: clamp(40px, 6vh, 80px) 0 clamp(80px, 11vh, 140px); }
.hero__grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.hero__name{
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}
.hero__h{
  font-size: clamp(46px, 6.2vw, 96px);
  font-weight: 300;
  line-height: 0.98;
  margin: 22px 0 28px;
}
.hero__h em{
  font-style: italic;
  color: var(--accent-ink);
  font-weight: 300;
}
@media (max-width: 1200px) {
  .hero__lede {
    max-width: 38ch;
  }
}
.hero__stats{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.hero__stat{
  padding: 24px 0 4px;
  border-right: 1px solid var(--line);
}
/*.hero__stat:first-child{ padding-left: 24px; }*/
.hero__stat:last-child{ border-right: 0; padding-left: 24px; }
.hero__stat-num{
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__stat-num small{
  font-size: 0.42em;
  color: var(--muted);
  margin-left: 4px;
  letter-spacing: 0;
}
.hero__stat-lbl{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.hero__cta-row{
  display: flex; gap: 14px; align-items: center;
  margin-top: 40px;
}

@media (max-width: 760px){
  .hero__cta-row {
    flex-direction: column;

  }

  .hero__cta-row a, .hero__cta-row button {
    width: 100%;
  }
}

/* portrait */
.portrait{
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  border-radius: 25px;
  overflow: hidden;
}
.portrait--right{ justify-self: end; width: 100%; max-width: 480px; }
.portrait__placeholder{
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      rgba(31,26,20,0.035) 14px 15px);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px;
}
.portrait__placeholder span{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
.portrait__corner{
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--ink);
  opacity: 0.4;
}
.portrait__corner.tl{ top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.portrait__corner.tr{ top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.portrait__corner.bl{ bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.portrait__corner.br{ bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.portrait__caption{
  margin-top: 14px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between;
}

@media (max-width: 880px){
  .hero__grid{ grid-template-columns: 1fr; }
  .portrait--right{ max-width: 360px; justify-self: start; order: -1; }


  .hero__grid div.hero_desc { order: 2; -webkit-order: 2; }
  .hero__grid div.hero_img { order: 1; -webkit-order: 1; }
}

@media (max-width: 564px)
{
  .portrait--right{ max-width: 100%; justify-self: start; order: -1; }
}

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--ink{ background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--ink:hover{ background: transparent; color: var(--ink); }
.btn--ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover{ border-color: var(--ink); }
.btn--link{
  background: transparent; border: 0; padding: 0;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding-bottom: 2px;
}
.btn--link:hover{ color: var(--accent-ink); border-color: var(--accent-ink); }
.btn__arrow{ transition: transform .2s ease; }
.btn:hover .btn__arrow{ transform: translateX(3px); }

/* ---------- section header ---------- */
.s-head{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(20px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.s-head__num{
  font-family: var(--mono); font-size: 16px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.s-head__num span{ color: var(--accent-ink); }
.s-head__title{ margin-top: 14px; }
.s-head__lede{ max-width: 52ch; }
@media (max-width: 760px){
  .s-head{ grid-template-columns: 1fr; align-items: start; }
}

/* ---------- game section ---------- */
.game{ background: var(--bg-soft); }
.game__hero{
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.game__h{ font-size: clamp(40px, 5.6vw, 84px); line-height: 0.98; }
.game__h em{ font-style: italic; color: var(--accent-ink); }
.game__lede{ margin-top: 28px; max-width: 44ch; }

.game__steps{
  margin-top: clamp(64px, 9vh, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.game__step{
  padding: 32px 28px 36px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 240px;
}
.game__step:last-child{ border-right: 0; }
.game__step-n{
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--muted);
  /*margin-bottom: auto;*/
}
.game__step-h{
  font-family: var(--serif); font-weight: 400;
  font-size: 28px; line-height: 1.1; letter-spacing: -0.01em;
  margin: 32px 0 10px;
}
.game__step-p{ font-size: 14px; color: var(--ink-soft); margin: 0; }
@media (max-width: 880px){
  .game__hero{ grid-template-columns: 1fr; }
  .game__steps{ grid-template-columns: 1fr; }
  .game__step:nth-child(1){ border-right: 0; }
  .game__step:nth-child(2){ border-right: 0; }
  .game__step:nth-child(1), .game__step:nth-child(2){ border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px){
  .game__steps{ grid-template-columns: 1fr; }
  .game__step{ border-right: 0; border-bottom: 1px solid var(--line); }
  .game__step:last-child{ border-bottom: 0; }
}

.game__formats{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(48px, 6vh, 64px);
}
.format-card{
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
}
.format-card__eyebrow{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.format-card__h{
  font-family: var(--serif); font-weight: 400;
  font-size: 32px; line-height: 1.1;
  margin: 14px 0 10px;
}
.format-card__row{
  display: flex; justify-content: space-between; align-items: end;
  margin-top: 24px;
  padding-top: 20px; border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink-soft);
}
.format-card__price{
  font-family: var(--serif); font-weight: 400;
  font-size: 24px; color: var(--ink);
  letter-spacing: -0.01em;
}
@media (max-width: 760px){
  .game__formats{ grid-template-columns: 1fr; }
}

/* ---------- services grid ---------- */
.svc-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.svc{
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px;
  background: transparent;
  display: flex; flex-direction: column;
  min-height: 340px;
  position: relative;
  transition: background .25s ease;
}
.svc p {
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 66px;
}

.svc:hover{ background: var(--bg-card); }
.svc__top{
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.svc__num{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; color: var(--muted);
}
.svc__price{
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; letter-spacing: -0.01em;
}
.svc__price small{
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); margin-left: 4px;
  letter-spacing: 0.1em;
}
.svc__h{
  font-family: var(--serif); font-weight: 400;
  font-size: 30px; line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 18px;
  min-height: 63px;
}
.svc__list{
  list-style: none; padding: 0; margin: 0 0 24px;
  font-size: 14px; color: var(--ink-soft);
}
.svc__list li{
  position: relative;
  padding: 8px 0 8px 16px;
  border-top: 1px dashed var(--line);
}
.svc__list li:first-child{ border-top: 0; }
.svc__list li::before{
  content: "—";
  position: absolute; left: 0; top: 8px;
  color: var(--accent);
}
.svc__book{
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--sans); font-size: 13px;
  color: var(--ink);
  background: transparent; border: 0; padding: 0;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}
.svc__book:hover{ color: var(--accent-ink); border-color: var(--accent-ink); }
.svc__book .arr{ transition: transform .2s ease; }
.svc__book:hover .arr{ transform: translateX(3px); }
@media (max-width: 960px){ .svc-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .svc-grid{ grid-template-columns: 1fr; } }

/* ---------- testimonials (telegram-styled) ---------- */
.tg-rail{
  display: flex;
  /*grid-template-columns: repeat(3, minmax(0, 1fr));*/
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px){ .tg-rail{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .tg-rail{ grid-template-columns: 1fr; } }

.tg{
  max-width: 100%;
  background: var(--tg-bg);
  border-radius: 22px;
  overflow: hidden;
  /*border: 1px solid var(--line);*/
  /*box-shadow: var(--shadow-card);*/
  display: flex; flex-direction: column;
  transform: translateY(0);
  transition: transform .3s ease, box-shadow .3s ease;
}
/*.tg:hover{ transform: translateY(-4px); box-shadow: 0 1px 2px rgba(31,26,20,.04), 0 22px 50px -18px rgba(31,26,20,.15); }*/
.tg__bar{
  background: #FFFFFF;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #E2E6E9;
}
.tg__back{
  font-size: 22px; color: var(--tg-blue); line-height: 1;
  font-weight: 300;
}
.tg__avatar{
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 14px;
  font-family: var(--sans);
}
.tg__who{
  display: flex; flex-direction: column;
  font-family: var(--sans);
}
.tg__name{ font-size: 14px; font-weight: 600; color: #222; line-height: 1.2; }
.tg__status{ font-size: 11px; color: #8A99A8; line-height: 1.3; margin-top: 2px; }
.tg__chat{
  padding: 16px 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
  /*background:
    radial-gradient(circle at 20% 10%, #DBE3E8 0 1px, transparent 1.5px) 0 0/22px 22px,
    #f4eee3;*/
  background: #f4eee3;
  min-height: 280px;
}
.tg__bubble{
  max-width: 82%;
  padding: 8px 11px 11px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.36;
  color: #1F2A33;
  font-family: var(--sans);
  position: relative;
  box-shadow: 0 1px 1px rgba(16,35,47,.08);
  white-space: pre-wrap;
}
.tg__bubble--in{
  background: var(--tg-in);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.tg__bubble--out{
  background: var(--tg-out);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.tg__time{
  position: absolute;
  right: 8px; bottom: 4px;
  font-size: 10px; color: #6E7C8A;
}
.tg__bubble--out .tg__time{ color: #5DAB66; }
.tg__check{ margin-left: 2px; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq{ border-top: 1px solid var(--line); }
.faq__item{
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq__btn{
  width: 100%; text-align: left;
  background: transparent; border: 0;
  padding: 28px 0;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  color: var(--ink);
}
.faq__q{
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15; letter-spacing: -0.01em;
}
.faq__icon{
  width: 28px; height: 28px;
  border: 1px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: border-color .2s ease, background .2s ease;
}
.faq__icon::before, .faq__icon::after{
  content: ""; position: absolute;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.faq__icon::before{ width: 10px; height: 1px; }
.faq__icon::after{ width: 1px; height: 10px; }
.faq__item.open .faq__icon{ background: var(--ink); }
.faq__item.open .faq__icon::before,
.faq__item.open .faq__icon::after{ background: var(--bg); }
.faq__item.open .faq__icon::after{ transform: scaleY(0); }
.faq__a{
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease;
}
.faq__a-inner{
  padding: 0 0 28px;
  max-width: 60ch;
  color: var(--ink-soft);
  font-size: 16px;
}
.faq__item.open .faq__a{ max-height: 300px; }

/* ---------- contact form ---------- */
.contact{ background: var(--bg-soft); }
.contact__grid{
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.contact__side .display{ margin-bottom: 24px; }
.contact__meta{
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 22px;
  font-size: 14px;
}
.contact__meta-row .lbl{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact__meta-row .val{ font-size: 16px; color: var(--ink); }

.form{
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 44px);
}
.form__notice{
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex; justify-content: space-between;
}
.form__notice .pre{ color: var(--accent-ink); }
.form__service-pill{
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--accent-ink);
}
.form__service-pill button{
  background: transparent; border: 0;
  color: var(--accent-ink);
  font-size: 16px; line-height: 1;
  padding: 0 0 0 4px;
  opacity: 0.6;
}
.form__service-pill button:hover{ opacity: 1; }

.field{ position: relative; margin-bottom: 22px; }
.field input,
.field textarea{
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 22px 0 10px;
  font: 400 17px/1.4 var(--sans);
  color: var(--ink);
  outline: none;
  transition: border-color .2s ease;
}
.field textarea{ resize: vertical; min-height: 90px; }
.field label{
  position: absolute;
  left: 0; top: 22px;
  font-size: 17px;
  color: var(--muted);
  pointer-events: none;
  transition: top .2s ease, font-size .2s ease, color .2s ease;
}
.field input:focus,
.field textarea:focus{ border-bottom-color: var(--ink); }
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label{
  top: 4px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--mono);
  color: var(--muted);
}

.check{
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 13px; color: var(--ink-soft);
  margin: 24px 0 28px;
  cursor: pointer;
  line-height: 1.5;
}
.check input{ display: none; }
.check__box{
  width: 18px; height: 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: background .15s ease;
}
.check input:checked + .check__box{ background: var(--ink); }
.check input:checked + .check__box::after{
  content: "";
  position: absolute;
  left: 4px; top: 1px;
  width: 6px; height: 11px;
  border: solid var(--bg);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.check a{ border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.form__submit{ width: 100%; justify-content: center; }
.form__success{
  padding: 22px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent);
  border-radius: 4px;
  color: var(--accent-ink);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 880px){
  .contact__grid{ grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer{
  border-top: 1px solid var(--line);
  padding: 36px 0 42px;
  font-size: 13px; color: var(--muted);
}
.footer__inner{
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer a{ border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.footer a:hover{ border-bottom-color: var(--muted); }

/* ---------- reveal animation ---------- */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-in{ opacity: 1; transform: translateY(0); }
.reveal--d1{ transition-delay: .05s; }
.reveal--d2{ transition-delay: .12s; }
.reveal--d3{ transition-delay: .2s; }
.reveal--d4{ transition-delay: .28s; }

/* hero side flip via body[data-hero-side] */
body[data-hero-side="left"] .hero__grid{
  grid-template-columns: 0.95fr 1.05fr;
}
body[data-hero-side="left"] .hero__grid > div:first-child{ order: 2; }
body[data-hero-side="left"] .hero__grid > div:last-child{ order: 1; }
body[data-hero-side="left"] .portrait--right{ justify-self: start; }
@media (max-width: 880px){
  body[data-hero-side="left"] .hero__grid{ grid-template-columns: 1fr; }
  body[data-hero-side="left"] .hero__grid > div:first-child{ order: 2; }
  body[data-hero-side="left"] .hero__grid > div:last-child{ order: 1; }
}
body[data-corner-marks="0"] .portrait__corner{ display: none; }

/* small visual: tiny celestial ornament */
.ornament{
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent);
  font-size: 16px;
}
.ornament::before{
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
}


.modalBack {
  position: fixed;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  top: 0;
  max-height: -webkit-fill-available;
}

.overlay {
  position: fixed;
  height: 100vh;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.322);
  top: 0;
  left: 0;
  z-index: 99;
  -webkit-user-select: all; /* Chrome/Safari */
  -moz-user-select: all; /* Firefox */
  -ms-user-select: all; /* IE/Edge */
  user-select: all; /* Стандартный синтаксис */
}

.modal-close {
  position: absolute;
  height: 100vh;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent;
}

.modalContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  /*height: 30%;*/
  max-width: 60%;
  background-color: var(--bg);
  padding: 3rem;
  border-radius: 5px;
  max-height: 80vh;
  max-height: -webkit-fill-available;
  z-index: 999;
}

@media (max-width: 760px){
  .modalContainer {
    padding: 2rem;
    max-width: 80%;
  }
}

.modalContainer .modalContainer__wrap {
  overflow-y: scroll;
  overflow-x: hidden;
  width: 100%;
}

.modalContainer .modalContainer__wrap::-webkit-scrollbar {
  display: none;
}

.modalContainer h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.modalContainer p {
  font-family: var(--sans);
}

.modalContainer p.price {
  font-family: var(--serif);
  font-size: 30px !important;
  margin: 0;
}

.d-none {
  display: none;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  font-size: 18px;
  background: #444;
  display: flex;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination {
  position: relative !important;
  margin-top: 40px;
}

.reply {
  background: rgb(242 225 212 / .5);
  border-left: 2px solid saddlebrown;
  padding: 5px;
  border-radius: 5px;
  margin-bottom: 5px;
  font-size: 13px;
}

.reply .me {
  color: saddlebrown;
  font-weight: bold;
}

.like {
  margin-top: 5px;
  display: flex;
  background: gray;
  width: 64px;
  border-radius: 15px;
  justify-content: space-between;
  align-items: center;
  padding: 3px 10px;
  gap: 5px;
}

.like img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.pointer {
  cursor: pointer;
}

.swiper-pagination-bullet-active {
  background: #794f40 !important;
}

.no-select {
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
  user-select: none; /* Стандартный синтаксис */
}

.game-img {
  width: 100%;
  border-radius: 25px;
}

@media (max-width: 880px) {
  .gap-unset {
    gap: unset;
  }
}

.overflow-hidden {
  overflow: hidden !important;
}