/* «Части Тела» — общие токены, сброс, шапка, футер, базовые компоненты */

:root {
  --cream: #F7F2E9;
  --ivory: #FCFAF4;
  --pine: #0B3231;
  --ink: #10312F;
  --teal: #177470;
  --teal-mist: #E3EEEB;
  --gold: #B9924F;
  --gold-dark: #8A6B36;
  --gold-soft: #F5EFE3;
  --error: #A8552E;

  --ink-60: rgba(16, 49, 47, .6);
  --ink-70: rgba(16, 49, 47, .7);
  --ink-80: rgba(16, 49, 47, .8);
  --line-12: rgba(16, 60, 58, .12);
  --line-18: rgba(16, 60, 58, .18);
  --line-25: rgba(16, 60, 58, .25);
  --cream-60: rgba(247, 242, 233, .6);
  --cream-75: rgba(247, 242, 233, .75);

  --font-display: 'Playfair Display', serif;
  --font-text: 'Golos Text', sans-serif;
  --font-mono: ui-monospace, Menlo, monospace;

  --container: 1300px;
  --container-narrow: 1100px;
  --pad-x: clamp(20px, 4vw, 44px);
  --section-y: clamp(70px, 9vw, 130px);

  --radius-card: 22px;
  --radius-input: 13px;
  --shadow-deep: 0 24px 50px -30px rgba(11, 50, 49, .45);
  --shadow-gold: 0 24px 50px -22px rgba(185, 146, 79, .75);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* -------- контейнер и общие паттерны -------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.container--narrow { max-width: var(--container-narrow); }

/* «айбрау» секции: золотой ромб + uppercase-подпись */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.eyebrow--light { color: var(--cream-75); }

/* золотая CTA-пилюля */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--pine);
  font-weight: 600;
  font-size: 15px;
  padding: 17px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .35s ease, color .35s ease;
}
.btn-gold:hover { background: var(--gold-soft); }

/* тёмная пилюля */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pine);
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .35s ease;
}
.btn-dark:hover { background: var(--gold); }

/* -------- зерно плёнки на всю страницу -------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* -------- оверлей перехода между страницами -------- */

#pt-ov {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: opacity .38s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
#pt-ov img { height: 54px; width: auto; opacity: .9; }

/* -------- шапка -------- */

.nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  padding: 14px clamp(12px, 3vw, 26px) 0;
  pointer-events: none;
}

.nav-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  width: min(1300px, 100%);
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 60, 58, 0);
  background: rgba(252, 250, 244, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  box-shadow: 0 18px 50px -24px rgba(11, 50, 49, 0);
  transition: background .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.nav-bar.is-scrolled {
  background: rgba(252, 250, 244, .8);
  border-color: rgba(16, 60, 58, .12);
  box-shadow: 0 18px 50px -24px rgba(11, 50, 49, .4);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img { height: 42px; width: auto; display: block; }
.nav-brand__text { display: flex; flex-direction: column; gap: 3px; }
.nav-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: .13em;
  color: var(--pine);
  white-space: nowrap;
}
.nav-brand__tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .36em;
  color: var(--teal);
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 25px);
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .25s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.is-active { color: var(--teal); font-weight: 600; }

.nav-cta {
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--pine);
  color: var(--cream);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .35s ease;
}
.nav-cta:hover { background: var(--gold); }
.nav-cta span { font-size: 15px; line-height: 1; }

.nav-burger {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(16, 60, 58, .2);
  background: rgba(252, 250, 244, .72);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  flex: none;
  transition: border-color .35s ease, background .35s ease;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--pine);
  transition: transform .35s ease, background .35s ease;
}

/* -------- полноэкранное мобильное меню -------- */

.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 890;
  background: var(--pine);
  color: var(--cream);
  transform: translateY(-102%);
  transition: transform .65s cubic-bezier(.76, 0, .24, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px clamp(20px, 6vw, 48px) 34px;
  overflow: auto;
  visibility: hidden;
}
.nav-menu__links {
  display: flex;
  flex-direction: column;
  margin-bottom: auto;
  padding-top: 8px;
}
.nav-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(247, 242, 233, .1);
  text-decoration: none;
  color: var(--cream);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease, color .25s ease;
  transition-delay: 0s;
}
.nav-menu__link:hover { color: var(--gold); }
.nav-menu__link.is-active .nav-menu__title { color: var(--gold); }
.nav-menu__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}
.nav-menu__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 7.5vw, 42px);
  line-height: 1.1;
}
.nav-menu__title--italic { font-style: italic; }

.nav-menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
}
.nav-menu__meta {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 242, 233, .65);
}

/* открытое состояние: бургер → крест, ссылки — stagger */
body.menu-open .nav-menu { transform: translateY(0); visibility: visible; }
.nav-menu.is-anim { visibility: visible; }
body.menu-open .nav-menu__link { opacity: 1; transform: translateY(0); }
body.menu-open .nav-menu__link:nth-child(1) { transition-delay: .08s; }
body.menu-open .nav-menu__link:nth-child(2) { transition-delay: .125s; }
body.menu-open .nav-menu__link:nth-child(3) { transition-delay: .17s; }
body.menu-open .nav-menu__link:nth-child(4) { transition-delay: .215s; }
body.menu-open .nav-menu__link:nth-child(5) { transition-delay: .26s; }
body.menu-open .nav-menu__link:nth-child(6) { transition-delay: .305s; }
body.menu-open .nav-menu__link:nth-child(7) { transition-delay: .35s; }
body.menu-open .nav-menu__link:nth-child(8) { transition-delay: .395s; }
body.menu-open .nav-burger { border-color: rgba(247, 242, 233, .35); background: rgba(247, 242, 233, .08); }
body.menu-open .nav-burger span { background: var(--gold-soft); }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
}

/* -------- кастомный курсор -------- */

#cur-ring {
  position: fixed;
  z-index: 4000;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(23, 116, 112, .6);
  pointer-events: none;
  display: none;
  transform: translate(-100px, -100px);
  will-change: transform;
  transition: border-color .25s ease;
}
#cur-dot {
  position: fixed;
  z-index: 4000;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  display: none;
  transform: translate(-100px, -100px);
  will-change: transform;
}

/* -------- футер -------- */

.footer {
  position: relative;
  background: var(--pine);
  color: var(--cream);
  overflow: hidden;
}
.footer__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}
.footer__glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 980px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 150, 143, .3), rgba(59, 150, 143, 0));
  pointer-events: none;
}
.footer__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) var(--pad-x) 26px;
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: clamp(36px, 5vw, 60px);
  border-bottom: 1px solid rgba(247, 242, 233, .14);
}
.footer__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.8vw, 80px);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.footer__title em { font-style: italic; color: var(--gold); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 38px 30px;
  padding: clamp(38px, 5vw, 58px) 0;
}
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col--brand { gap: 16px; align-items: flex-start; }
.footer__col--brand img { height: 76px; width: auto; display: block; }
.footer__slogan {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(247, 242, 233, .72);
  max-width: 24ch;
}
.footer__head {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(247, 242, 233, .45);
  margin-bottom: 6px;
}
.footer__col a:not(.footer__vk):not(.footer__tel) {
  color: rgba(247, 242, 233, .8);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .25s ease;
}
.footer__col a:not(.footer__vk):not(.footer__tel):hover { color: var(--gold); }
.footer__text {
  color: rgba(247, 242, 233, .8);
  font-size: 14.5px;
  line-height: 1.65;
}
.footer__tel {
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: color .25s ease;
}
.footer__tel:hover { color: var(--gold); }
.footer__vk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 4px;
  color: rgba(247, 242, 233, .85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(247, 242, 233, .25);
  padding: 9px 16px;
  border-radius: 999px;
  transition: border-color .25s ease, color .25s ease;
}
.footer__vk:hover { color: var(--gold); border-color: rgba(185, 146, 79, .7); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 242, 233, .12);
  font-size: 12.5px;
  color: rgba(247, 242, 233, .52);
  line-height: 1.6;
}
.footer__bottom-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__bottom a {
  color: rgba(247, 242, 233, .52);
  text-decoration: none;
  transition: color .25s ease;
}
.footer__bottom a:hover { color: var(--gold); }
.footer__disclaimer {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(247, 242, 233, .38);
  max-width: 72ch;
}

/* -------- reduced motion -------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
