/* === Tishina Club — shared tokens & primitives === */
:root {
  /* Palette — from brand platform */
  --tc-0:   #0A0A0C;   /* deepest */
  --tc-05:  #0E0E10;
  --tc-1:   #111214;
  --tc-15:  #14151A;
  --tc-2:   #171B1E;
  --tc-3:   #232428;
  --tc-4:   #2E3033;
  --tc-5:   #3C3F43;
  --tc-6:   #5A5C60;
  --tc-7:   #A7A9AC;
  --tc-8:   #C9C7C2;
  --tc-9:   #E8E6E0;   /* warm off-white */

  /* Accents — zone palettes */
  --acc-gold:    #A07A4F;
  --acc-gold-2:  #8B6638;
  --acc-lavender:#3C2E47;
  --acc-red:     #4A1F22;
  --acc-marble:  #DBDDD8;

  /* Hairlines */
  --hair: rgba(232, 230, 224, 0.08);
  --hair-2: rgba(232, 230, 224, 0.14);
  --hair-strong: rgba(232, 230, 224, 0.22);

  /* Type */
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans:  'Manrope', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Spacing */
  --pad-x: clamp(20px, 5vw, 96px);
  --gutter: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--tc-0);
  color: var(--tc-9);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* === Typography === */
.serif { font-family: var(--serif); font-weight: 300; letter-spacing: 0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--tc-7);
}
.eyebrow--gold { color: var(--acc-gold); }
.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  color: var(--tc-9);
  letter-spacing: 0.005em;
}

h1, h2, h3, h4 { margin: 0; font-weight: 300; }
.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}
.h-card {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
}

p { margin: 0; }
.body { color: var(--tc-8); }
.body--mute { color: var(--tc-7); }
.small { font-size: 13px; line-height: 1.6; }

/* === Layout === */
.shell {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.row { display: flex; gap: var(--gutter); }
.col { display: flex; flex-direction: column; }

/* Section frame */
.sec {
  border-top: 1px solid var(--hair);
  padding: clamp(72px, 10vw, 144px) 0;
  position: relative;
}
.sec--solid { background: var(--tc-05); }
.sec--first { border-top: 0; }
.sec-head {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 4fr;
  gap: var(--gutter);
  align-items: baseline;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sec-head .label { padding-top: 8px; }
@media (max-width: 720px) {
  .sec-head { grid-template-columns: 1fr; gap: 24px; }
}

/* Hairline */
.hr { height: 1px; background: var(--hair); border: 0; margin: 0; }
.hr--strong { background: var(--hair-2); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid var(--hair-strong);
  color: var(--tc-9);
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
  cursor: pointer;
  background: transparent;
}
.btn:hover { background: rgba(232,230,224,0.04); border-color: rgba(232,230,224,0.4); }
.btn--gold {
  border-color: var(--acc-gold);
  color: var(--acc-gold);
}
.btn--gold:hover {
  background: var(--acc-gold);
  color: var(--tc-0);
}
.btn .arrow { width: 18px; height: 1px; background: currentColor; position: relative; }
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

/* Link with underline animation */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tc-9);
  border-bottom: 1px solid var(--hair-2);
  padding-bottom: 6px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.tlink:hover { color: var(--acc-gold); border-color: var(--acc-gold); }
.tlink .arr { transition: transform .3s var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }

/* Header */
.hdr {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(to bottom, rgba(10,10,12,0.85), rgba(10,10,12,0.0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.hdr.is-scrolled {
  background: rgba(10,10,12,0.92);
  border-bottom: 1px solid var(--hair);
}
.hdr-logo { display: flex; align-items: center; gap: 14px; }
.hdr-logo .mono {
  width: 36px; height: 36px;
  border: 1px solid var(--hair-strong);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--acc-gold);
}
.hdr-logo .word { display: flex; flex-direction: column; line-height: 1; }
.hdr-logo .word b {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--tc-9);
}
.hdr-logo .word span {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--tc-6);
  margin-top: 4px;
}
.hdr-nav {
  display: flex; gap: clamp(18px, 2vw, 36px);
  min-width: 0;
}
.hdr-nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tc-7);
  transition: color .3s var(--ease);
  position: relative;
}
.hdr-nav a:hover { color: var(--tc-9); }
.hdr-nav a.is-active { color: var(--tc-9); }
.hdr-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--acc-gold);
}
.hdr-cta { display: flex; gap: 14px; align-items: center; }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--hair-strong);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.menu-btn span {
  width: 18px; height: 1px; background: var(--tc-9);
  transition: transform .3s var(--ease);
}

@media (max-width: 1280px) {
  .hdr { padding-left: 32px; padding-right: 32px; }
  .hdr-nav { gap: 18px; }
  .hdr-nav a { letter-spacing: 0.18em; }
  .hdr-cta .btn { padding: 16px 22px; letter-spacing: 0.22em; }
}

@media (max-width: 1120px) {
  .hdr-cta .btn { display: none; }
}

@media (max-width: 820px) {
  .hdr-nav, .hdr-cta .btn { display: none; }
  .menu-btn { display: flex; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--tc-0);
  min-height: 100dvh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-24px);
  transition:
    opacity .35s var(--ease),
    transform .5s var(--ease),
    visibility 0s linear .5s;
  padding: 80px var(--pad-x) 40px;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity .35s var(--ease),
    transform .5s var(--ease),
    visibility 0s;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  color: var(--tc-9);
}
.mobile-menu .close {
  position: absolute; top: 24px; right: var(--pad-x);
  width: 44px; height: 44px;
  border: 1px solid var(--hair-strong);
  display: grid; place-items: center;
}
.mobile-menu .close::before, .mobile-menu .close::after {
  content: ""; position: absolute; width: 18px; height: 1px; background: var(--tc-9);
}
.mobile-menu .close::before { transform: rotate(45deg); }
.mobile-menu .close::after { transform: rotate(-45deg); }

/* Footer */
.ftr {
  border-top: 1px solid var(--hair);
  padding: 80px var(--pad-x) 40px;
  background: var(--tc-05);
}
.ftr-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 80px;
}
.ftr h5 {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--tc-6);
  margin: 0 0 22px;
}
.ftr ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ftr ul a { color: var(--tc-8); font-size: 14px; transition: color .3s var(--ease); }
.ftr ul a:hover { color: var(--acc-gold); }
.ftr ul a.disabled { color: var(--tc-5); pointer-events: none; cursor: default; }
.ftr ul a.disabled::after {
  content: "скоро"; margin-left: 10px; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--tc-5);
  border: 1px solid var(--tc-5); padding: 2px 6px;
}
.ftr-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
  font-size: 12px; color: var(--tc-6);
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .ftr-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* Image frames */
.ph {
  position: relative;
  background: var(--tc-1);
  border: 1px solid var(--hair);
  overflow: hidden;
}
.ph img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04) brightness(0.72);
  transform: scale(1.01);
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10, 10, 12, 0.72), rgba(10, 10, 12, 0.12) 48%, rgba(10, 10, 12, 0.36)),
    radial-gradient(ellipse at 70% 30%, rgba(160, 122, 79, 0.12) 0%, transparent 60%);
  pointer-events: none;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.74), rgba(10, 10, 12, 0.08) 48%, rgba(10, 10, 12, 0.32));
  pointer-events: none;
}
.ph-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tc-6);
  z-index: 2;
}
.ph-label::before {
  content: ""; display: inline-block;
  width: 18px; height: 1px; background: var(--tc-6);
  margin-right: 10px; vertical-align: middle;
}
.ph-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--tc-6);
  border: 1px solid var(--hair-2);
  padding: 4px 8px;
  z-index: 2;
}
.ph[data-zone="lavender"] { background-color: #1a1422; }
.ph[data-zone="lavender"]::before { background: radial-gradient(ellipse at 50% 60%, rgba(120,90,150,0.12), transparent 60%); }
.ph[data-zone="gold"] { background-color: #1c150c; }
.ph[data-zone="gold"]::before { background: radial-gradient(ellipse at 50% 60%, rgba(160,122,79,0.18), transparent 60%); }
.ph[data-zone="red"] { background-color: #1c0e0f; }
.ph[data-zone="red"]::before { background: radial-gradient(ellipse at 50% 60%, rgba(120,40,45,0.18), transparent 60%); }
.ph[data-zone="marble"] { background-color: #1a1c1a; }
.ph[data-zone="marble"]::before { background: radial-gradient(ellipse at 50% 60%, rgba(180,200,180,0.06), transparent 60%); }
.ph[data-zone="black"] { background-color: #0d0d0e; }

/* Fade-in animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }
.reveal[data-d="6"] { transition-delay: 0.48s; }

/* Form */
.field {
  position: relative;
  display: flex; flex-direction: column;
}
.field label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tc-7);
  margin-bottom: 12px;
}
.field input,
.field select,
.field textarea {
  background: rgba(232, 230, 224, 0.018);
  color: var(--tc-9);
  border: 0;
  border-bottom: 1px solid rgba(232, 230, 224, 0.22);
  padding: 12px 0 14px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  outline: 0;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  appearance: none;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(201, 199, 194, 0.46); opacity: 1; }
.field select { color: var(--tc-9); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: rgba(232, 230, 224, 0.035);
  border-bottom-color: var(--acc-gold);
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--tc-7) 50%),
                    linear-gradient(135deg, var(--tc-7) 50%, transparent 50%);
  background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 24px;
}
.field select option { background: var(--tc-1); color: var(--tc-9); }

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gutter);
  align-items: start;
  background: var(--tc-05);
  border: 1px solid var(--hair);
  padding: clamp(32px, 5vw, 64px);
  position: relative;
}
.form-side h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  color: var(--tc-9);
  margin-bottom: 24px;
  font-weight: 300;
}
.form-side p { color: var(--tc-7); font-size: 14px; line-height: 1.7; max-width: 380px; }
.form-side .meta {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--tc-6);
  text-transform: uppercase;
}
.form-side .meta-row {
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.form-side .meta-row span { color: var(--tc-9); }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}
.form-grid .field-full { grid-column: 1 / -1; }
.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
}
.form-actions .note {
  font-size: 11px;
  color: var(--tc-6);
  max-width: 320px;
  line-height: 1.6;
}
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  grid-column: 1 / -1;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.form-success.is-in { opacity: 1; }
.form-success .seal {
  width: 72px;
  height: 72px;
  border: 1px solid var(--acc-gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--acc-gold);
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 32px;
}
.form-success h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--tc-9);
  font-weight: 300;
  margin-bottom: 16px;
}
.form-success p { color: var(--tc-7); max-width: 420px; }

/* Honeypot — скрыто от людей, доступно ботам (намеренно). */
.tc-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Сообщение об ошибке отправки. */
.form-error {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #E8B9A0;
  background: rgba(120, 50, 40, 0.18);
  border: 1px solid rgba(180, 90, 70, 0.35);
}

/* Кнопка в состоянии отправки. */
.btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
  cursor: progress;
}

@media (max-width: 980px) {
  .form-wrap { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Tiny iconography (line, monoweight) */
.icn {
  width: 28px; height: 28px;
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--acc-gold);
}

/* Page intro (subpages) */
.page-hero {
  padding: 200px var(--pad-x) 80px;
  border-bottom: 1px solid var(--hair);
}
.page-hero .crumb {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--tc-6);
  margin-bottom: 32px;
  display: flex; gap: 14px; align-items: center;
}
.page-hero .crumb a { color: var(--tc-7); }
.page-hero .crumb a:hover { color: var(--acc-gold); }
.page-hero .crumb .sep { color: var(--tc-5); }
