:root {
  --navy: #3c3932;
  --accent: #ab9156;
  --accent-hover: #967d45;
  --white: #ffffff;
  --ink: #3c3932;
  --muted: #6f675c;
  --line: #e7e1d6;
  --paper: #f7f4ee;
  --sand: #efe4cc;
  --sea: #1c4a57;
  --dark: #3c3932;
  --header-h: 88px;
  --container: 1680px;
  --gutter: 48px;
}

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

html { scroll-behavior: auto; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

section, article { scroll-margin-top: var(--header-h); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-title {
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 640px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.kicker {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

.logo__img {
  height: 68px;
  width: auto;
  display: block;
}

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 28px 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s;
}

.nav__link:hover { color: var(--navy); }

.dropdown {
  position: absolute;
  top: 100%;
  left: -24px;
  min-width: 320px;
  padding: 12px 0;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.dropdown a {
  display: block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 500;
}

.dropdown a:hover { background: var(--paper); color: var(--accent); }

.nav__item--dropdown:hover .dropdown,
.nav__item--dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.lang { position: relative; }

.lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}

.lang__btn:hover { border-color: var(--accent); }

.flag {
  display: block;
  width: 100%;
  height: 100%;
  flex: none;
  border-radius: 50%;
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  padding: 8px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}

.lang:hover .lang__menu,
.lang:focus-within .lang__menu,
.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang__menu a {
  display: flex;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
}

.lang__menu a:hover { background: var(--paper); }

.lang__menu [aria-current="page"] {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 50%;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__contacts a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
}

.header__contacts svg { width: 16px; height: 16px; }

.header__contacts a:hover { background: var(--ink); color: var(--white); }

.burger { display: none; width: 28px; height: 20px; position: relative; }
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s, top .25s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }
.burger.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  color: var(--white);
  overflow: hidden;
  background: #243140 url("../assets/hero.jpg") center / cover no-repeat;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .85fr);
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.hero__title {
  margin: 0 0 28px;
  font-size: clamp(34px, 3.4vw, 58px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__services {
  justify-self: start;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 500;
  line-height: 1.55;
}

.hero__services li { opacity: 0; transform: translateY(12px); animation: fadeUp .6s forwards; }
.hero__services li:nth-child(1) { animation-delay: .15s; }
.hero__services li:nth-child(2) { animation-delay: .25s; }
.hero__services li:nth-child(3) { animation-delay: .35s; }
.hero__services li:nth-child(4) { animation-delay: .45s; }
.hero__services li:nth-child(5) { animation-delay: .55s; }

@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  height: 48px;
  padding: 0 28px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}

.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); color: var(--white); }

.btn--dark { background: var(--ink); color: var(--white); min-width: 168px; height: 46px; }
.btn--dark:hover { background: #2a2824; }

.btn--outline {
  min-width: 168px;
  height: 44px;
  border: 1.5px solid var(--white);
  color: var(--white);
  font-size: 13px;
}
.btn--outline:hover { background: var(--white); color: var(--dark); }

/* ===== STATS ===== */
.stats {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, .55);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 24px;
}

.stat__value {
  font-size: clamp(28px, 2.4vw, 40px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.counter { display: inline-flex; vertical-align: top; }

.counter__digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.counter__strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.6s cubic-bezier(.22, .9, .3, 1);
}

.counter__strip span { height: 1em; line-height: 1; }

.stat__label {
  margin-top: 12px;
  max-width: 280px;
  font-size: 15px;
  line-height: 1.45;
  opacity: .88;
}

/* ===== ABOUT ===== */
.about {
  background: #2c2a27;
  color: var(--white);
  padding: 72px 0 64px;
}

.about__kicker { color: #d4bc86; }

.about__lead {
  max-width: 860px;
  margin: -8px 0 40px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .82);
}

.about__lead p + p { margin-top: 14px; }

.about__title {
  max-width: 860px;
  margin: 0 0 28px;
  font-size: clamp(26px, 2.4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--white);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 1.2fr;
  grid-template-rows: auto auto minmax(150px, auto);
  gap: 12px;
}

.mosaic__photo--a { grid-column: 1; grid-row: 1; }
.mosaic__stat--a { grid-column: 2; grid-row: 1; }
.mosaic__stat--b { grid-column: 3; grid-row: 1; }
.mosaic__card--d { grid-column: 1; grid-row: 2; }
.mosaic__card--a { grid-column: 2; grid-row: 2; }
.mosaic__card--b { grid-column: 3; grid-row: 2; }
.mosaic__card--c { grid-column: 1; grid-row: 3; }
.mosaic__cta { grid-column: 2; grid-row: 3; }
.mosaic__photo--b { grid-column: 3; grid-row: 3; }

.mosaic__photo {
  margin: 0;
  min-height: 148px;
  overflow: hidden;
}

.mosaic__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.mosaic__stat {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 8px 8px 4px 4px;
}

.mosaic__num {
  flex: 0 0 auto;
  font-size: clamp(46px, 4vw, 68px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.mosaic__label {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.mosaic__desc {
  max-width: 280px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .72);
}

.mosaic__card {
  padding: 22px 20px;
  background: rgba(255, 255, 255, .06);
}

.mosaic__card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.mosaic__card p {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .72);
}

.mosaic__cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 148px;
  padding: 22px 20px;
  background: var(--accent);
  color: var(--ink);
}

.mosaic__cta p {
  max-width: 280px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.mosaic__btn {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.mosaic__cta:hover .mosaic__btn { background: var(--ink); color: var(--white); }

/* ===== SERVICE CARDS ===== */
.services { padding: 72px 0 64px; background: var(--sand); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 200px;
  padding: 24px 22px;
  border: 2px solid var(--navy);
  background: var(--white);
  transition: background .2s, color .2s, border-color .2s;
}

.cards li:nth-child(2) .card {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.cards li:nth-child(3) .card {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.card:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.cards li:nth-child(2) .card:hover { background: #2a2824; }

.cards li:nth-child(3) .card:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.card__icon svg { width: 36px; height: 36px; }

.card__name {
  max-width: 280px;
  font-size: clamp(18px, 1.2vw, 22px);
  font-weight: 600;
  line-height: 1.25;
}

/* ===== BANDS ===== */
.band {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  min-height: 460px;
  background: var(--paper);
}

.band--flip { background: var(--ink); color: var(--white); }
.band--flip .band__media { order: 2; }
.band--flip .kicker { color: #d4bc86; }
.band--flip .band__body > p,
.band--flip .band__note { color: rgba(255, 255, 255, .78); }
.band--flip .ticks li { border-color: rgba(255, 255, 255, .18); }

.band__media { min-height: 360px; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }

.band__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 6vw 48px 48px;
}

.band--flip .band__body { padding: 48px 48px 48px 6vw; }

.band__body h2 {
  margin-bottom: 16px;
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.band__body > p { max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--muted); }

.ticks { margin-top: 28px; }
.ticks li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
}
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.band__note {
  margin-top: 24px;
  max-width: 560px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--navy);
  font-weight: 500;
}

.band__cta { margin-top: 28px; align-self: flex-start; }

.lead {
  width: min(480px, calc(100vw - 32px));
  padding: 36px 32px 32px;
  border: 0;
  color: var(--ink);
  background: var(--white);
}

.lead::backdrop { background: rgba(0, 0, 0, .55); }

.lead h2 {
  margin-bottom: 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead__service {
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--muted);
}

.lead label {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lead input,
.lead textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: var(--white);
}

.lead textarea { min-height: 110px; resize: vertical; }

.lead__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
}

.lead__done p {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.lead__done[hidden],
.lead__form[hidden] { display: none; }

/* ===== WHY ===== */
.why { padding: 72px 0; background: var(--sea); color: #f4f7f8; }

.why .section-lead { color: rgba(244, 247, 248, .78); }

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.why__grid li { background: var(--white); color: var(--ink); }

.why__grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.why__grid h3 {
  margin: 22px 24px 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.why__grid p {
  margin: 0 24px 26px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* ===== CERTIFICATES ===== */
.certs { padding: 72px 0 80px; background: var(--paper); }

.certs__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.certs__nav {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.certs__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
}

.certs__arrow svg { width: 22px; height: 22px; }

.certs__arrow:hover { background: var(--ink); color: var(--white); }

.certs__arrow:disabled { opacity: .35; }

.certs__grid {
  display: flex;
  gap: 22px;
  margin-top: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.certs__grid::-webkit-scrollbar { display: none; }

.certs__grid li {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
}

.certs__grid a {
  display: block;
  padding: 12px 12px 16px;
  background: var(--white);
}

.certs__grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.certs__grid span {
  display: block;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.certs__grid a:hover span { color: var(--accent); }

/* ===== FAQ ===== */
.faq { padding: 72px 0 64px; background: var(--white); }

.faq__inner {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}

.faq__photo {
  display: block;
  width: 100%;
  height: 284px;
  margin-top: 32px;
  object-fit: cover;
  object-position: center 35%;
}

.faq__list { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
}

.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }

.faq details p {
  max-width: 640px;
  margin: 0 48px 22px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ===== TEAM ===== */
.team { padding: 72px 0; background: var(--sand); }

.team__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 64px;
  align-items: end;
}

.team__facts li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
}
.team__facts li:last-child { border-bottom: 1px solid var(--line); }

/* ===== GEO ===== */
.geo {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

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

.geo__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.geo__content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 820px;
}

.geo__content h2 {
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.geo__content p {
  margin-top: 20px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.55;
}

.geo__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ===== PARTNERS ===== */
.partners { padding: 72px 0; background: #f3e6c4; }

.partners .section-lead { color: #4a4338; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}

.steps__num {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
}

.steps li { padding-top: 22px; border-top: 3px solid var(--accent); }

.steps h3 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
}

.steps p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ===== GUARANTEES ===== */
.guarantees {
  padding: 64px 0 72px;
  background: var(--ink);
  color: #f7f4ee;
}

.guarantees .section-title { color: #f7f4ee; }

.guarantees .guarantee-grid p { color: rgba(247, 244, 238, .72); }

.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.guarantee-grid li {
  padding-top: 24px;
  border-top: 2px solid var(--accent);
}

.guarantee-grid h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.guarantee-grid p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ===== ONFOOTER ===== */
.onfooter {
  position: relative;
  padding: 52px 0 44px;
  background: #f6b000;
  color: var(--white);
  overflow: hidden;
}

.onfooter::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 62px, rgba(255, 255, 255, .28) 63px, transparent 64px),
    radial-gradient(circle, transparent 128px, rgba(255, 255, 255, .22) 129px, transparent 130px),
    radial-gradient(circle, transparent 198px, rgba(255, 255, 255, .16) 199px, transparent 200px);
  pointer-events: none;
}

.onfooter .container {
  position: relative;
  max-width: 1080px;
}

.onfooter h2 {
  margin: 0 0 26px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
}

.onfooter__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 16px;
  align-items: stretch;
}

.onfooter__card {
  background: var(--white);
  color: var(--ink);
  padding: 26px 22px 22px;
}

.onfooter__form {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 4px 18px;
  align-items: center;
}

.onfooter__arrow {
  width: 118px;
  height: 118px;
  color: #f6b000;
}

.onfooter__fields {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  align-self: stretch;
  min-width: 0;
  padding: 4px 0;
}

.onfooter__fields label {
  display: block;
  font-size: 12px;
  color: #9a9388;
}

.onfooter__fields input {
  display: block;
  width: 100%;
  margin-top: 2px;
  padding: 6px 0 7px;
  border: 0;
  border-bottom: 1px solid #e3dcd2;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}

.onfooter__fields input::placeholder { color: #b7b0a6; }

.onfooter__fields input:focus { outline: none; border-bottom-color: #f6b000; }

.onfooter__submit {
  align-self: flex-end;
  margin-top: 4px;
  padding: 8px 12px;
  background: #f6b000;
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.onfooter__submit:hover { background: #e0a400; }

.onfooter__thanks {
  grid-column: 1 / -1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.onfooter__form.is-sent .onfooter__arrow,
.onfooter__form.is-sent .onfooter__fields { display: none; }

.onfooter__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.onfooter__aside p {
  font-size: 14px;
  line-height: 1.45;
}

.onfooter__aside strong {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.onfooter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.onfooter__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #ded8ce;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.onfooter__ghost:hover { border-color: var(--ink); }

/* ===== FOOTER ===== */
.footer {
  background: #2c2b28 url("../assets/img/footerbg.jpg") center / cover no-repeat;
  color: var(--white);
}

.footer__bar { height: 8px; background: #f6b000; }

.footer__top {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 36px;
}

.footer .logo__img { height: 52px; }

.footer__contacts {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.footer__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.footer__note--plain { text-transform: none; letter-spacing: 0; }

.footer__note a { color: rgba(255, 255, 255, .72); }
.footer__note a:hover { color: var(--white); }

.footer__social {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  color: var(--white);
}

.footer__icon svg { width: 20px; height: 20px; }

.footer__icon:hover { background: var(--white); color: #2c2b28; }

.footer__cols {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .9fr .9fr;
  gap: 28px 48px;
  margin-top: 48px;
}

.footer__title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f6b000;
}

.footer__cols a {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

.footer__cols a:hover { color: var(--white); }

.footer__bottom {
  margin-top: 40px;
  padding-top: 18px;
  padding-bottom: 22px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

/* ===== COOKIE ===== */
.cookie {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  background: var(--dark);
  color: var(--white);
}

.cookie[hidden] { display: none; }

.cookie__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.cookie p { margin: 0; max-width: 920px; font-size: 16px; line-height: 1.5; }
.cookie p a { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  :root { --gutter: 32px; }
  .nav__list { gap: 28px; }
  .nav__link { font-size: 12px; }
  .header__actions { margin-left: 12px; }
  .band__body,
  .band--flip .band__body { padding: 56px 40px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 80px; }

  .burger { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    background: var(--white);
    padding: 8px var(--gutter) 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s;
  }
  .nav.is-open { transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 15px; }

  .dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 12px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .dropdown a { padding: 8px 0 8px 8px; }

  .hero__content { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__title { margin-bottom: 32px; }
  .hero__services { display: none; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }

  .band,
  .band--flip,
  .team__inner,
  .faq__inner,
  .onfooter__grid,
  .onfooter__form { grid-template-columns: 1fr; }
  .footer__top { align-items: flex-start; }

  .mosaic { grid-template-columns: 1fr 1fr; }
  .mosaic__photo--a,
  .mosaic__stat--a,
  .mosaic__stat--b,
  .mosaic__card--a,
  .mosaic__card--b,
  .mosaic__card--c,
  .mosaic__card--d,
  .mosaic__cta,
  .mosaic__photo--b { grid-column: auto; grid-row: auto; }
  .mosaic__photo--b { grid-column: 1 / -1; }
  .band--flip .band__media { order: 0; }
  .cards,
  .steps,
  .guarantee-grid,
  .footer__cols { grid-template-columns: 1fr 1fr; }

  .certs__grid li { flex-basis: calc((100% - 22px) / 2); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media { display: none; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  .certs__head { align-items: flex-start; }
  .certs__grid li { flex-basis: 82%; }
  .onfooter { padding: 36px 0 28px; }
  .onfooter h2 { font-size: 26px; }
  .onfooter__arrow { width: 84px; height: 84px; }
  .onfooter__card { padding: 18px 16px; }
  .onfooter__actions { flex-direction: column; align-items: flex-start; }
  .faq__photo { height: 240px; }
  .logo__img { height: 56px; }
  .btn, .btn--dark, .btn--outline { min-width: 0; height: 44px; }
  .hero { min-height: 100svh; }
  .hero__title { font-size: 32px; }
  .about { padding: 48px 0; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic__photo--b { grid-column: auto; }
  .mosaic__cta p { font-size: 16px; }
  .stats__inner { gap: 20px; padding-top: 28px; padding-bottom: 28px; }
  .stat__label { font-size: 13px; }
  .cards,
  .steps,
  .guarantee-grid,
  .why__grid,
  .footer__top,
  .footer__contacts { flex-direction: column; gap: 16px; }
  .footer__social { margin-left: 0; }
  .footer__cols { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .cookie__inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie p { font-size: 14px; }
}

.lang__menu li + li { margin-top: 8px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer__legal a { color: inherit; transition: color .2s; }
.footer__legal a:hover { color: var(--white); }

.legal {
  padding: calc(var(--header-h) + 64px) 0 96px;
  background: var(--paper);
}

.legal__inner { max-width: 880px; }

.legal__back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal__back:hover { color: var(--accent-hover); }

.legal__title {
  margin-bottom: 40px;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.legal__body h2 {
  margin: 44px 0 14px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.legal__body h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.legal__body p { margin: 0 0 16px; }
.legal__body p:first-child { color: var(--muted); font-size: 14px; }

.legal__body ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal__body li { margin-bottom: 6px; }
.legal__body li::marker { color: var(--accent); }

.legal__body a {
  color: var(--sea);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal__table {
  margin: 8px 0 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
}

.legal__table table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.legal__table th,
.legal__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal__table th {
  background: var(--sand);
  font-weight: 600;
}

.legal__table tr:last-child td { border-bottom: 0; }

@media (max-width: 700px) {
  .legal { padding: calc(var(--header-h) + 32px) 0 64px; }
  .legal__title { margin-bottom: 28px; }
  .legal__body { font-size: 15px; }
  .legal__body h2 { margin-top: 32px; font-size: 19px; }
}
