/* ===== Tochka Opory — landing styles =====
   Style: Accessible & Ethical (WCAG-minded). Fonts: Playfair Display / Inter.
   Brand: Olive #4e574e + Beige #ece3dd. */

:root {
  --olive: #4e574e;
  --olive-dark: #3a423a;
  --olive-light: #6a746a;
  --beige: #ece3dd;
  --beige-soft: #f6f1ec;
  --ink: #2a2e2a;
  --muted-ink: #5c625c;
  --white: #ffffff;
  --border: #d9cfc6;
  --focus: #b8842f;
  --accent: #c0703b;
  --accent-soft: #e6a06a;

  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(58, 66, 58, 0.12);
  --space: clamp(3rem, 7vw, 6rem);
  --t: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.2px;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}
.narrow {
  max-width: 760px;
}

/* Focus visibility (Accessible & Ethical) */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  background: var(--olive);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: top var(--t);
}
.skip-link:focus {
  top: 1rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background var(--t),
    color var(--t),
    transform var(--t),
    box-shadow var(--t);
}
.btn--accent {
  background: var(--olive);
  color: var(--white);
}
.btn--accent:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--light {
  background: var(--beige);
  color: var(--olive-dark);
}
.btn--light:hover {
  background: var(--white);
  transform: translateY(-1px);
}
.btn--lg {
  min-height: 56px;
  padding: 1rem 2.2rem;
  font-size: 1.075rem;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.nav__brand img {
  height: 40px;
  width: auto;
}
.nav__menu {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.nav__menu a {
  text-decoration: none;
  font-weight: 500;
  color: var(--olive-dark);
  padding: 0.4rem 0;
  position: relative;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--olive);
  transition: width var(--t);
}
.nav__menu a:hover::after {
  width: 100%;
}
.nav__cta {
  flex: none;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.6rem;
  cursor: pointer;
  margin-left: auto;
}
.nav__burger span {
  width: 26px;
  height: 2px;
  background: var(--olive-dark);
  display: block;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem clamp(1.1rem, 4vw, 2.5rem) 1.5rem;
  background: var(--beige-soft);
  border-bottom: 1px solid var(--border);
}
.nav__mobile a {
  text-decoration: none;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--olive-dark);
  border-bottom: 1px solid var(--border);
}
.nav__mobile .btn {
  margin-top: 0.75rem;
}

@media (max-width: 880px) {
  .nav__menu,
  .nav__cta {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .nav__mobile[data-open="true"] {
    display: flex;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  min-height: 88dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero__slides,
.hero__overlay {
  position: absolute;
  inset: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__slide.is-active {
  opacity: 1;
}
.hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(42, 46, 42, 0.45),
    rgba(42, 46, 42, 0.65)
  );
}
.hero__content {
  position: relative;
  text-align: center;
  padding-block: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero__logo {
  height: 64px;
  width: auto;
}
.hero__title {
  font-size: clamp(2.75rem, 9vw, 6rem);
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero__lead {
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  max-width: 640px;
  margin: 0;
}
.hero__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  z-index: 2;
}
.hero__dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero__dots button[aria-selected="true"] {
  background: var(--white);
}

/* ===== Sections ===== */
.section {
  padding-block: var(--space);
}
.section--muted {
  background: var(--beige-soft);
}
.section--intro {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.lede {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.45;
  text-align: center;
  color: var(--olive-dark);
  margin: 0;
}
.section__head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.section__head h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 0 0 0.75rem;
}
.section h2 {
  color: var(--olive-dark);
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.split__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.split__text h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  margin: 0 0 1rem;
}
.split__text p {
  font-size: 1.1rem;
  color: var(--muted-ink);
  margin: 0;
}
@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: -1;
  }
}

/* Big call */
.section--call {
  background: var(--olive);
  color: var(--white);
  text-align: center;
}
/* Compact final CTA band with photo background */
.section--final {
  position: relative;
  isolation: isolate;
  background: url("assets/hero-3.jpg") center / cover no-repeat fixed;
  padding-block: clamp(3rem, 6vw, 4.5rem);
  color: var(--white);
  text-align: center;
}
.section--final__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(58, 66, 58, 0.82),
    rgba(42, 46, 42, 0.9)
  );
}
.final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 640px;
}
.eyebrow--light {
  color: var(--accent-soft);
}
.eyebrow--light::before {
  background: var(--accent-soft);
}
.final__title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin: 0;
}
.final__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}
.final__inner .btn {
  margin-top: 0.6rem;
}
@media (max-width: 760px) {
  .section--final {
    background-attachment: scroll;
  }
}
.call__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
.section--call .call__title {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  margin: 0;
  color: var(--beige);
}

/* Features */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  background: var(--beige-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature__icon {
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--olive);
}
.feature p {
  margin: 0;
  font-weight: 500;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Videos */
.videos {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
}
.video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--olive-dark);
}
.video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: 0;
}
.video--ext {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  color: var(--white);
  text-decoration: none;
  min-height: 76px;
  isolation: isolate;
  background: linear-gradient(135deg, var(--olive-dark), var(--olive));
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.video--ext::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(135deg, var(--olive), var(--accent));
  transition: opacity var(--t);
}
.video--ext:hover,
.video--ext:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(78, 87, 78, 0.4);
}
.video--ext:hover::before,
.video--ext:focus-visible::before {
  opacity: 1;
}
.video__play {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--beige);
  color: var(--olive-dark);
  flex: none;
}
.video__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}
.video__play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--beige);
  animation: video-pulse 2.4s ease-out infinite;
}
@keyframes video-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.video__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.video__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--beige);
  opacity: 0.85;
}
.video__kicker svg {
  width: 15px;
  height: 15px;
}
.video__name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}
.video__arrow {
  margin-left: auto;
  font-size: 1.2rem;
  flex: none;
  transition: transform var(--t);
}
.video--ext:hover .video__arrow,
.video--ext:focus-visible .video__arrow {
  transform: translate(3px, -3px);
}
@media (prefers-reduced-motion: reduce) {
  .video__play::after {
    animation: none;
  }
  .video--ext,
  .video__arrow {
    transition: none;
  }
}
.videos > .video:first-child {
  grid-row: span 3;
}
@media (max-width: 760px) {
  .videos {
    grid-template-columns: 1fr;
  }
  .videos > .video:first-child {
    grid-row: auto;
  }
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery__item {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform var(--t);
}
.gallery__item:hover img {
  transform: scale(1.05);
}
@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
.footer {
  background: var(--olive);
  color: var(--white);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 2rem;
  align-items: start;
}
.footer__brand img {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
}
.footer__brand p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
  margin: 0;
}
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__social a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
}
.footer__social a:hover {
  text-decoration: underline;
}
.footer__copy {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.footer__copy p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}
@media (max-width: 760px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(42, 46, 42, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.lightbox[hidden] {
  display: none;
}
.lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--beige);
  color: var(--olive-dark);
  font-size: 1.2rem;
  cursor: pointer;
}

/* =========================================================
   VISUAL UPGRADE LAYER
   ========================================================= */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  z-index: 200;
  transition: width 80ms linear;
}

/* Nav scrolled state */
.nav {
  transition:
    background var(--t),
    box-shadow var(--t),
    min-height var(--t);
}
.nav.is-scrolled {
  box-shadow: 0 6px 22px rgba(58, 66, 58, 0.1);
  background: rgba(246, 241, 236, 0.97);
}
.nav.is-scrolled .nav__inner {
  min-height: 60px;
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}
.section__head .eyebrow {
  justify-content: center;
}

/* Hero polish: Ken Burns + eyebrow + scroll cue + word reveal */
.hero__slide.is-active {
  animation: kenburns 7s ease-out forwards;
}
@keyframes kenburns {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}
.hero__overlay {
  background:
    radial-gradient(
      120% 120% at 50% 0%,
      rgba(42, 46, 42, 0.25),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(42, 46, 42, 0.35), rgba(42, 46, 42, 0.72));
}
.hero__eyebrow {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}
.hero__title span {
  display: inline-block;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 2px;
  height: 46px;
  background: linear-gradient(var(--white), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-soft);
  animation: scrolldrop 1.8s ease-in-out infinite;
}
@keyframes scrolldrop {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* Stats strip */
.stats {
  background: var(--olive-dark);
  color: var(--white);
  padding-block: clamp(2rem, 5vw, 3.25rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: clamp(2rem, 7vw, 5.5rem);
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(1rem, 3.5vw, 2.75rem));
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
}
.stat__num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--accent-soft);
}
.stat__label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}
@media (max-width: 640px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }
  .stat + .stat::before {
    display: none;
  }
}

/* Big call: textured background */
.section--call {
  position: relative;
  overflow: hidden;
}
.section--call::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.07) 1.5px,
    transparent 1.5px
  );
  background-size: 26px 26px;
  opacity: 0.7;
}
.call__inner {
  position: relative;
}
.call__title {
  position: relative;
}

/* Feature cards: numbered + accent top border */
.features {
  counter-reset: feat;
}
.feature {
  position: relative;
  counter-increment: feat;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 2.4rem;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 320ms ease;
}
.feature:hover::before {
  transform: scaleX(1);
}
.feature::after {
  content: counter(feat, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  color: var(--border);
  transition: color var(--t);
}
.feature:hover::after {
  color: var(--accent-soft);
}
.feature__icon {
  padding: 0.65rem;
  background: var(--beige);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  transition:
    background var(--t),
    transform var(--t);
}
.feature:hover .feature__icon {
  background: var(--olive);
  color: var(--white);
  transform: translateY(-2px);
}

/* Split media: layered frame */
.split__media {
  position: relative;
}
.split__media::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.55;
}
.split--reverse .split__media::before {
  inset: 14px 14px -14px -14px;
}

/* Bento gallery */
.gallery {
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}
.gallery__item {
  width: 100%;
  height: 100%;
}
.gallery__item img {
  height: 100%;
  aspect-ratio: auto;
}
.gallery__item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery__item:nth-child(1) img {
  object-position: center top;
}
.gallery__item:nth-child(4) {
  grid-row: span 2;
}
@media (max-width: 760px) {
  .gallery {
    grid-auto-rows: 150px;
  }
  .gallery__item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery__item:nth-child(4) {
    grid-row: span 1;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__slide.is-active {
    animation: none;
  }
  .hero__scroll-line::after {
    animation: none;
  }
}
