@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/manrope-cyrillic-400-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/manrope-latin-400-700.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("./fonts/space-grotesk-latin-ext-500-700.woff2") format("woff2");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("./fonts/space-grotesk-latin-500-700.woff2") format("woff2");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

:root {
  --bg: #f6f3ed;
  --text: #0f1720;
  --muted: #43505e;
  --primary: #b43d1e;
  --primary-dark: #8f2c13;
  --surface: #ffffff;
  --line: #d8cec0;
  --alt: #ece3d6;
  --shadow: 0 16px 40px rgba(18, 25, 32, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  padding: 6rem 0 4rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(180, 61, 30, 0.23), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(34, 59, 79, 0.2), transparent 40%),
    linear-gradient(130deg, #f2eee8, #f0e1ca 50%, #efe8dc);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(246, 243, 237, 0.75) 80%, var(--bg) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.tag,
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--primary);
  margin: 0 0 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 0.98;
  max-width: 980px;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  max-width: 780px;
  color: var(--muted);
  margin: 1.2rem 0 1.6rem;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
}

.hero__points span {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(143, 44, 19, 0.18);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 1.3rem;
  box-shadow: 0 10px 20px rgba(180, 61, 30, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn--messenger {
  width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(239, 244, 248, 0.92);
  background: transparent;
  font-weight: 600;
  font-size: 0.84rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--messenger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn--telegram {
  border-color: rgba(74, 172, 246, 0.28);
}

.btn--telegram:hover {
  background: rgba(74, 172, 246, 0.14);
  border-color: rgba(74, 172, 246, 0.46);
}

.btn--vk {
  border-color: rgba(0, 119, 255, 0.28);
}

.btn--vk:hover {
  background: rgba(0, 119, 255, 0.14);
  border-color: rgba(0, 119, 255, 0.46);
}

.hero__note {
  margin: 0.7rem 0 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 4.2rem 0;
}

.section--alt {
  background: var(--alt);
}

.section--results {
  background: #111921;
  color: #eff4f8;
}

.section--results .eyebrow,
.section--results h2 {
  color: #fff;
}

.section--results .eyebrow {
  opacity: 0.8;
}

.section--faq {
  background: var(--alt);
}

.section--cta {
  background: linear-gradient(135deg, #142130, #1e344b 55%, #2a4258);
  color: #eff4f8;
}

.section__head {
  max-width: 820px;
  margin-bottom: 1.4rem;
}

.section__head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.1;
}

.section__text {
  max-width: 930px;
  color: var(--muted);
  font-size: 1.06rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.timeline__step {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem;
  background: #fff;
}

.timeline__step span {
  display: inline-flex;
  font-family: "Space Grotesk", sans-serif;
  color: var(--primary);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.timeline__step p {
  margin: 0;
}

.results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.95rem;
  padding: 1rem;
}

.metric span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  display: block;
  margin-bottom: 0.2rem;
}

.metric p {
  margin: 0;
  opacity: 0.9;
}

.faq {
  display: grid;
  gap: 0.6rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.8rem 0.95rem;
  background: #fff;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.cta {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  align-items: start;
}

.cta p {
  color: rgba(239, 244, 248, 0.9);
}

.demo-form {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.demo-form--actions {
  align-content: center;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.contact-links__title {
  margin: 0.05rem 0 0.1rem;
  font-size: 0.82rem;
  color: rgba(239, 244, 248, 0.78);
}

.demo-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.demo-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0.6rem;
  padding: 0.72rem;
  background: rgba(15, 23, 32, 0.2);
  color: #eff4f8;
}

.demo-form input:focus {
  outline: 2px solid rgba(255, 255, 255, 0.45);
  border-color: transparent;
}

.form-note {
  margin: 0;
  font-size: 0.86rem;
  min-height: 1.2em;
  opacity: 0.9;
}

.case__media {
  margin-top: 0.9rem;
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  min-height: 130px;
  width: 100%;
  max-width: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: #f9f6f1;
}

.case__media--image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 0;
  overflow: hidden;
  place-items: stretch;
}

.case__media--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0.75rem;
}

.case {
  min-width: 0;
}

.case__open {
  margin-top: 0.8rem;
}

.footer {
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: #f2ece2;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.scroll-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 32, 0.18);
  background: #ffffff;
  color: #0f1720;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 23, 32, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 18, 0.62);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  width: min(920px, calc(100% - 1.6rem));
  margin: 3.2rem auto;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1rem 0.8rem;
  box-shadow: 0 24px 48px rgba(15, 23, 32, 0.3);
  max-height: calc(100vh - 6.4rem);
  overflow: auto;
  overflow-x: hidden;
}

.modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal__panel h3 {
  margin: 0 0 0.8rem;
  padding-right: 2.2rem;
}

.modal__note {
  margin: 0.7rem 0 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal__gallery {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: start;
}

.modal__gallery.modal__gallery--stack {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(100%, 560px);
  gap: 0.85rem;
}

.modal__frame {
  margin: 0;
  display: grid;
  gap: 0.45rem;
  width: 100%;
  max-width: 100%;
}

.modal__image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8f4ee;
  object-fit: contain;
}

.modal__frame figcaption {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}

.modal__shot {
  min-height: 120px;
  border-radius: 0.75rem;
  border: 1px dashed var(--line);
  background: #f8f4ee;
  color: var(--muted);
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.6rem;
}

.modal__results {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  color: var(--text);
  display: grid;
  gap: 0.35rem;
}

.modal__actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.modal__ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.85rem 1.15rem;
}

.modal__ghost:hover {
  background: #f5f3ef;
}

.body-lock {
  overflow: hidden;
}

@media (max-width: 980px) {
  .grid--3,
  .grid--2,
  .results,
  .timeline,
  .cta {
    grid-template-columns: 1fr 1fr;
  }

  .timeline__step:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .grid--3,
  .grid--2,
  .results,
  .timeline,
  .cta,
  .timeline__step:last-child {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .section {
    padding: 3.2rem 0;
  }

  .modal__panel {
    margin: 1rem auto;
    max-height: calc(100vh - 2rem);
  }

  .modal__gallery {
    grid-template-columns: 1fr;
  }

  .modal__actions .btn {
    width: 100%;
  }
}
