@font-face {
  font-family: Manrope;
  src: url('../assets/fonts/manrope-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url('../assets/fonts/manrope-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url('../assets/fonts/manrope-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111317;
  --ink-soft: #3f4650;
  --paper: #f6f4ef;
  --white: #ffffff;
  --line: #d9d8d4;
  --wine: #8d1732;
  --wine-dark: #641025;
  --blue: #1769aa;
  --green: #166943;
  --yellow: #f0c84b;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--white);
  padding: 10px 14px;
  border: 2px solid var(--ink);
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 10px max(20px, calc((100% - 1180px) / 2));
  background: rgba(246, 244, 239, 0.96);
  border-bottom: 1px solid rgba(17, 19, 23, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--wine);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.header-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.header-nav a:hover,
.header-nav a:focus-visible { color: var(--wine); }

.header-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d0e10;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 38%;
}

.hero-shade {
  background: rgba(8, 9, 11, 0.24);
}

.hero-shade::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  background: rgba(8, 9, 11, 0.76);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 112px;
}

.hero-content > * { max-width: 690px; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow.dark { color: var(--wine); }

h1, h2, h3, p { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  font-size: 64px;
  line-height: 1.02;
  font-weight: 600;
}

.hero-copy {
  margin: 26px 0 0;
  color: #e7e7e4;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  text-align: center;
}

.button-primary { background: var(--wine); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: var(--wine-dark); }
.button-secondary { border-color: rgba(255,255,255,.6); color: var(--white); }
.button-secondary:hover, .button-secondary:focus-visible { background: rgba(255,255,255,.12); }
.button-vk { background: var(--blue); color: var(--white); }

.hero-note {
  margin: 18px 0 0;
  color: #bfc1c5;
  font-size: 14px;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.fact-strip div {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
}

.fact-strip div:last-child { border-right: 0; }
.fact-strip strong { font-size: 28px; line-height: 1.1; }
.fact-strip span { color: var(--ink-soft); font-size: 14px; }

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading { max-width: 760px; }
.section-heading.compact { max-width: 560px; }

h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 600;
}

.section-heading > p:last-child,
.result-copy > p,
.training-copy > p,
.expert-inner > p,
.final-cta > div > p:last-child {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.service-card {
  min-height: 285px;
  padding: 30px;
  border: 1px solid var(--line);
  border-top-width: 5px;
  border-radius: var(--radius);
  background: var(--white);
}

.service-documents { border-top-color: var(--blue); }
.service-portrait { border-top-color: var(--wine); }
.service-restore { border-top-color: var(--yellow); }
.service-quality { border-top-color: var(--green); }

.service-number { color: #737a84; font-size: 13px; font-weight: 700; }
.service-card h3 { margin: 34px 0 12px; font-size: 26px; line-height: 1.2; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: 17px; }
.service-rule { display: block; margin-top: 20px; color: #5e646d; font-size: 13px; }

.result-section {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: 72px;
}

.check-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 25px;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58em;
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}

.compare { min-width: 0; }
.compare-frame {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 515 / 665;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid #bbb9b4;
  border-radius: var(--radius);
  background: #d7d2c9;
}

.compare-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-after-wrap {
  position: absolute;
  inset: 0;
  width: 52%;
  overflow: hidden;
}

.compare-after {
  max-width: none;
  width: var(--compare-width, 560px) !important;
}

.compare-label {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(17,19,23,.83);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.compare-label-before { left: 14px; }
.compare-label-after { right: 14px; }
.compare-line {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 2px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(17,19,23,.4);
}

.compare-control {
  display: grid;
  gap: 10px;
  width: min(100%, 560px);
  margin: 16px 0 0 auto;
  color: var(--ink-soft);
  font-size: 13px;
}

.compare-control input { width: 100%; accent-color: var(--wine); }

.workflow-band {
  padding: 104px max(20px, calc((100% - 1180px) / 2));
  background: var(--ink);
  color: var(--white);
}

.section-heading.on-dark > * { color: var(--white); }
.section-heading.on-dark .eyebrow { color: var(--yellow); }

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 52px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #3b3e44;
  border-bottom: 1px solid #3b3e44;
}

.workflow-list li {
  min-height: 220px;
  padding: 28px 24px;
  border-right: 1px solid #3b3e44;
}

.workflow-list li:last-child { border-right: 0; }
.workflow-list li > span { color: var(--yellow); font-weight: 700; }
.workflow-list strong { display: block; margin-top: 48px; font-size: 20px; }
.workflow-list p { margin: 10px 0 0; color: #bcc0c7; font-size: 14px; }

.training-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 72px;
}

.training-video {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050505;
}

.training-video video { width: 100%; aspect-ratio: 16 / 9; }
.text-link { display: inline-flex; gap: 8px; margin-top: 24px; color: var(--wine); font-weight: 700; text-decoration: none; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.expert-band {
  padding: 92px max(20px, calc((100% - 1180px) / 2));
  background: #102f29;
  color: var(--white);
}

.expert-inner { max-width: 940px; }
.expert-inner > p { color: #d3e4df; }
.expert-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.expert-points span { padding: 8px 10px; border: 1px solid #4d756d; border-radius: 4px; color: #e4f1ed; font-size: 13px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.price-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.price-card.featured { border-color: var(--wine); }
.price-card > span { color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.price-card strong { display: block; margin-top: 32px; font-size: 46px; line-height: 1; }
.price-card p { margin: 24px 0 0; color: var(--ink-soft); }

.personal-offer {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-top: 16px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  background: var(--white);
}

.personal-offer p { margin: 0; color: var(--ink-soft); }

.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 24px 44px 24px 0; cursor: pointer; font-size: 18px; font-weight: 600; }
.faq-list p { max-width: 820px; margin: 0 0 24px; color: var(--ink-soft); }

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: 92px max(20px, calc((100% - 1180px) / 2));
  background: #17191d;
  color: var(--white);
}

.final-cta > div:first-child { max-width: 720px; }
.final-cta > div > p:last-child { color: #c3c6cc; }
.final-actions { margin: 0; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 50px max(20px, calc((100% - 1180px) / 2));
  border-top: 1px solid #303339;
  background: #0e0f11;
  color: #d1d3d7;
  font-size: 13px;
}

.site-footer p { margin: 6px 0 0; color: #8f949c; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.site-footer nav a { color: #d1d3d7; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; border-top: 1px solid #303339; color: #8f949c; }

@media (max-width: 900px) {
  .header-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { min-height: 640px; }
  .hero-media img { object-position: 62% 35%; }
  .hero-shade { background: rgba(8,9,11,.34); }
  .hero-shade::before { width: 76%; background: rgba(8,9,11,.68); }
  h1 { font-size: 48px; }
  h2 { font-size: 38px; }
  .result-section, .training-section { grid-template-columns: 1fr; gap: 42px; }
  .compare-frame, .compare-control { margin-left: 0; }
  .workflow-list { grid-template-columns: repeat(2, 1fr); }
  .workflow-list li:nth-child(2) { border-right: 0; }
  .workflow-list li:nth-child(-n+2) { border-bottom: 1px solid #3b3e44; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 220px; }
  .final-cta { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 640px) {
  .site-header { min-height: 60px; padding: 8px 14px; gap: 10px; }
  .brand { font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-action { min-height: 40px; padding: 8px 10px; font-size: 12px; }
  .hero { min-height: 620px; align-items: flex-end; }
  .hero-media img { object-position: 61% 24%; }
  .hero-shade { background: rgba(8,9,11,.54); }
  .hero-shade::before { inset: 42% 0 0; width: 100%; background: rgba(8,9,11,.78); }
  .hero-content { width: calc(100% - 28px); padding: 48px 0 24px; }
  .hero-content .eyebrow { margin-bottom: 10px; }
  h1 { font-size: 36px; line-height: 1.04; }
  .hero-copy { margin-top: 16px; font-size: 15px; line-height: 1.45; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .hero-note { margin-top: 12px; font-size: 12px; line-height: 1.4; }
  .button { width: 100%; min-height: 46px; padding: 11px 16px; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact-strip div { min-height: 92px; padding: 16px; }
  .fact-strip div:nth-child(2) { border-right: 0; }
  .fact-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .fact-strip strong { font-size: 23px; }
  .section { width: calc(100% - 28px); padding: 72px 0; }
  h2 { font-size: 33px; }
  .section-heading > p:last-child, .result-copy > p, .training-copy > p, .expert-inner > p, .final-cta > div > p:last-child { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 24px; }
  .service-card h3 { margin-top: 24px; font-size: 23px; }
  .result-section { grid-template-columns: minmax(0, 1fr); }
  .compare-frame { width: 100%; }
  .workflow-band, .expert-band, .final-cta { padding: 72px 14px; }
  .workflow-list { grid-template-columns: 1fr; }
  .workflow-list li { min-height: 150px; border-right: 0; border-bottom: 1px solid #3b3e44; }
  .workflow-list li:last-child { border-bottom: 0; }
  .workflow-list strong { margin-top: 28px; }
  .price-card { min-height: 0; padding: 24px; }
  .price-card strong { font-size: 40px; }
  .personal-offer { grid-template-columns: 1fr; gap: 10px; padding: 22px; }
  .final-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; padding: 42px 14px; }
  .site-footer nav { justify-content: flex-start; }
  .footer-legal { grid-column: 1; flex-direction: column; }
}

@media (max-width: 340px) {
  .hero { min-height: 590px; }
  .hero-content { padding-bottom: 14px; }
  h1 { font-size: 34px; line-height: 1.02; }
  .hero-copy { margin-top: 12px; }
  .hero-actions { margin-top: 14px; }
  .hero-note { margin-top: 8px; }
}

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