@font-face {
  font-family: 'PT Sans';
  src: url('/fonts/ptsans-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PT Sans';
  src: url('/fonts/ptsans-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'PT Sans Narrow';
  src: url('/fonts/ptsansnarrow-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #FBFAF6;
  --ink: #14201A;
  --muted: #55615A;
  --line: #D8D5C8;
  --green: #33CC66;
  --green-hover: #2BBE5E;
  --green-deep: #167A3C;
  --green-deep-hover: #106631;
  --green-overlay: rgba(20, 32, 26, .84);
  --err: #B3261E;
  --gutter: 16px;
  --narrow: 'PT Sans Narrow', 'Arial Narrow', 'PT Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }

.lang-switch { color: var(--green-deep); font-weight: 700; text-decoration: none; border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; white-space: nowrap; }

.lang-menu { position: relative; flex: none; }
.lang-menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--green-deep); border: 1px solid var(--line); border-radius: 5px; cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.lang-menu__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang-menu__list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; min-width: 142px; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 10px 24px rgba(20, 32, 26, .14); }
.lang-menu__list a { display: block; padding: 9px 10px; color: var(--ink); text-decoration: none; border-radius: 3px; white-space: nowrap; }
.lang-menu__list a:hover, .lang-menu__list a[aria-current="page"] { color: var(--green-deep); background: #f0efe7; }

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.5 'PT Sans', system-ui, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body > main { flex: 1 0 auto; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Зелёное выделение под словом, как маркером */
mark {
  background: linear-gradient(transparent 60%, var(--green) 60%, var(--green) 94%, transparent 94%);
  color: inherit;
  padding: 0 .06em;
  margin: 0 -.06em;
}

/* ---------- шапка ---------- */
.top {
  border-top: 6px solid var(--green);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; min-height: 48px; }
.brand img { height: 40px; width: auto; }
.top__wa {
  display: inline-flex;
  align-items: center;
  height: 44px;
  min-height: 44px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 5px;
  padding: 0 14px;
  text-decoration: none;
  text-underline-offset: 3px;
}
.top__wa-long { display: none; }
.wa-ico { flex: none; width: 24px; height: 24px; }
.top__wa { gap: 8px; }
.top__wa .wa-ico { color: #fff; background: #fff; -webkit-mask: url('/img/whatsapp-white.svg') center / contain no-repeat; mask: url('/img/whatsapp-white.svg') center / contain no-repeat; }
.top__wa .wa-ico path { display: none; }
.top__wa:hover { background: var(--green-hover); border-color: var(--green-hover); }

/* ---------- первый экран ---------- */
.intro { padding: 20px 0 8px; }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

h1 {
  font: 700 clamp(2.4rem, 10.8vw, 4.6rem)/1.02 var(--narrow);
  letter-spacing: -.005em;
}
.lead {
  margin-top: 10px;
  font-size: 17px;
  max-width: 34em;
}

/* ---------- форма ---------- */
.ticket {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 16px 16px 18px;
}
.ticket__title {
  font: 700 26px/1.1 var(--narrow);
}
.ticket__sub {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.field { margin-bottom: 10px; }
.field label {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 14px;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #8A958E;
  border-radius: 4px;
  font: 400 18px/1.3 'PT Sans', system-ui, Arial, sans-serif;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #8A958E; opacity: 1; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(51, 204, 102, .55);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--err); }
.field__err {
  margin-top: 4px;
  color: var(--err);
  font-size: 14px;
  line-height: 1.35;
}
.field__err:empty { display: none; }

.more { margin: 0 0 12px; }
.more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  cursor: pointer;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 16px;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before {
  content: '+';
  display: inline-block;
  width: 1ch;
  font-size: 22px;
  line-height: 1;
  text-align: center;
}
.more[open] summary::before { content: '\2212'; }
.more summary:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.more[open] summary { margin-bottom: 6px; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 24px;
  background: var(--green);
  color: var(--ink);
  border: 0;
  border-radius: 6px;
  font: 700 19px/1 'PT Sans', system-ui, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn--line {
  gap: 10px;
  margin-top: 18px;
  background: transparent;
  border: 2px solid var(--ink);
  min-height: 52px;
}
@media (hover: hover) {
  .btn:hover:not(:disabled) { background: var(--green-hover); }
  .btn--line:hover { background: var(--ink); color: #fff; }
}

.form__status {
  margin-top: 12px;
  color: var(--err);
  font-size: 15px;
}
.form__status:empty { display: none; }
.form__status a { color: inherit; font-weight: 700; }
.form__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.done { padding: 4px 0 2px; }
.done:focus { outline: none; }
.done p { margin-top: 14px; }

/* ---------- разделы ---------- */
.sec {
  margin-top: 40px;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
}
.sec h2 {
  font: 700 clamp(2rem, 8vw, 3rem)/1.05 var(--narrow);
  margin-bottom: 24px;
}
h3 { font: 700 20px/1.2 'PT Sans', system-ui, Arial, sans-serif; }

/* что входит: две колонки с чёрной линией сверху, без цифр и иконок */
.offer { display: grid; gap: 28px; }
.offer__item { border-top: 2px solid var(--ink); padding-top: 12px; }
.offer h3 { font: 700 26px/1.1 var(--narrow); }
.offer p { margin-top: 8px; }

/* как пройдёт: обычный абзац крупным шрифтом */
.flow {
  max-width: 34em;
  font-size: 21px;
  line-height: 1.45;
}
.flow b { font-weight: 700; }

.about p + p { margin-top: 10px; }
.about__sub { margin-top: 16px; color: var(--muted); }
.plain { margin-top: 8px; }
.plain li {
  position: relative;
  padding: 5px 0 5px 20px;
}
.plain li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  background: var(--green);
}

/* фото сотрудников: на телефоне первое на всю ширину, два других рядом */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}
.team img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}
.team img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; object-position: 50% 62%; }

/* низ страницы: запас под нижнюю кнопку */
main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- нижняя кнопка на телефоне ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  gap: 8px;
  padding: 10px max(var(--gutter), env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.sticky-cta .btn { flex: 1; min-width: 0; padding: 0 12px; }
.sticky-cta__wa {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  min-height: 54px;
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
}
.sticky-cta__wa .wa-ico { width: 30px; height: 30px; }
.sticky-cta__wa:active { transform: translateY(1px); }
.sticky-cta__wa:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sticky-cta[hidden] { display: none; }

/* ---------- широкие экраны ---------- */
@media (min-width: 700px) {
  :root { --gutter: 28px; }
  body { font-size: 18px; }
  .intro { padding-top: 44px; }
  .offer { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
  .team img:first-child { grid-column: auto; aspect-ratio: 1 / 1; object-position: 50% 50%; }
  .plain { columns: 2; column-gap: 24px; }
  .plain li { break-inside: avoid; }
  .top__wa-long { display: inline; }
  .sticky-cta { display: none; }
  main { padding-bottom: 64px; }
}

@media (min-width: 900px) {
  .intro { padding-top: 56px; }
  .intro__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 1fr);
    column-gap: 56px;
    align-items: start;
  }
  .ticket { padding: 26px 26px 28px; }
  .ticket__title { font-size: 30px; }
  .ticket__sub { margin-bottom: 18px; }
  .field { margin-bottom: 14px; }
  .field label { font-size: 15px; }
  .field input, .field textarea { min-height: 52px; padding: 11px 12px; }
  .lead { font-size: 19px; margin-top: 14px; }
  .sec { margin-top: 72px; padding-top: 56px; }
  .sec h2 { margin-bottom: 32px; }
  main { padding-bottom: 80px; }
}
