:root {
  /* Палитра Купера: голубоватый фон, ярко-зелёные кнопки, тёмный текст и тёмные секции */
  --paper: #ebf5fd;
  --paper-2: #dcecf9;
  --card: #ffffff;
  --ink: #1d1d1d;
  --muted: #5d6773;
  --line: #cfdeed;
  --accent: #00fa68;
  --accent-dark: #00d95c;
  --error: #d8392b;
  --ok: #0a7d3a;
  --r-btn: 999px;
  --r-field: 18px;
  --r-card: 24px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.terms :focus-visible, .foot :focus-visible { outline-color: var(--accent); }

/* --- кнопки ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  color: var(--ink); background: var(--accent);
  border: 0; border-radius: var(--r-btn); cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--small { min-height: 44px; padding: 0 22px; font-size: 0.93rem; white-space: nowrap; }
.btn--wide { width: 100%; }

/* --- шапка ------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(235, 245, 253, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; flex: none; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.top__nav { display: flex; gap: 26px; }
.top__nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--muted); }
.top__nav a:hover { color: var(--ink); }
.top__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* --- первый экран ------------------------------------------------------ */
.hero { padding: 48px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-block; margin-bottom: 20px; padding: 7px 14px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); border-radius: var(--r-btn);
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -0.025em; }
.lead { margin-top: 22px; font-size: 1.18rem; max-width: 34em; color: #353b43; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.link-phone { font-weight: 600; }
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 64%; border-radius: 32px; }

/* --- цифры ------------------------------------------------------------- */
.facts { padding: 0 0 72px; }
.facts__row { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-radius: var(--r-card); }
.facts p { padding: 26px 30px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.facts p:first-child { border-left: 0; }
.facts b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 0.95rem; }

/* --- секции ------------------------------------------------------------ */
.block { padding: 72px 0 88px; }
.block--tinted { background: var(--paper-2); }
.block h2, .terms h2, .faq h2, .apply h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
.block__intro { margin-top: 14px; max-width: 38em; color: var(--muted); font-size: 1.05rem; }

.jobs { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.job { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.job img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.job img.job__img--top { object-position: 50% 58%; }
.job h3 { margin: 22px 24px 0; font-size: 1.4rem; font-weight: 800; }
.job p { margin: 8px 24px 0; color: #353b43; }
.job__link {
  align-self: flex-start; margin: auto 24px 26px; padding-top: 16px; font-weight: 700; text-decoration: none;
}
.job__link span { border-bottom: 3px solid var(--accent); padding-bottom: 1px; }
.job__link:hover span { background: var(--accent); }

/* --- условия ----------------------------------------------------------- */
.terms { background: var(--ink); color: var(--paper); padding: 88px 0; }
.terms__grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.terms__grid > div { padding: 0 36px; border-left: 1px solid #3c3f44; }
.terms__grid > div:first-child { padding-left: 0; border-left: 0; }
.terms__num { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--accent); }
.terms h3 { margin-top: 20px; font-size: 1.3rem; font-weight: 700; }
.terms__grid p:last-child { margin-top: 10px; color: #b8c0ca; }

/* --- шаги -------------------------------------------------------------- */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--card); border-radius: var(--r-card); padding: 28px; }
.steps__n {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  font-size: 1.5rem; font-weight: 800; background: var(--accent); border-radius: 50%;
}
.steps h3 { margin-top: 20px; font-size: 1.25rem; font-weight: 700; }
.steps p { margin-top: 6px; color: #353b43; }

/* --- города ------------------------------------------------------------ */
.cities { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.cities li { padding: 8px 16px; font-size: 0.95rem; background: var(--card); border-radius: var(--r-btn); }
.cities.is-collapsed { max-height: 156px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.cities__more {
  margin-top: 20px; min-height: 48px; padding: 0 26px; font: inherit; font-weight: 700; color: var(--ink);
  background: var(--card); border: 0; border-radius: var(--r-btn); cursor: pointer; transition: background 0.15s;
}
.cities__more:hover { background: var(--accent); }
.cities__more:focus:not(:focus-visible) { outline: none; }
.cities__more[hidden] { display: none; }
.cities__note { margin-top: 28px; max-width: 40em; color: var(--muted); }

/* --- вопросы ----------------------------------------------------------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative;
  font-size: 1.12rem; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  font-size: 1.4rem; font-weight: 400; line-height: 1; background: var(--paper); border-radius: 50%;
}
.faq details[open] summary::after { content: "–"; background: var(--accent); }
.faq details p { padding: 0 26px 24px; color: #353b43; }

/* --- заявка ------------------------------------------------------------ */
.apply { background: var(--paper-2); padding: 88px 0; }
.apply__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.apply__text p { margin-top: 16px; max-width: 28em; color: #353b43; font-size: 1.08rem; }
.contacts { margin: 36px 0 0; }
.contacts dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 18px; }
.contacts dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 700; }
.contacts a { text-decoration: none; }

.form { background: var(--card); padding: 36px; border-radius: 32px; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 8px; padding: 0; font-weight: 700; font-size: 0.95rem; }
.field input[type=text], .field input[type=tel], .field select {
  width: 100%; height: 58px; padding: 0 20px; font: inherit; color: var(--ink);
  background: var(--paper); border: 2px solid transparent; border-radius: var(--r-field);
}
.field select {
  appearance: none; padding-right: 48px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 24px) 26px, calc(100% - 18px) 26px; background-size: 6px 6px; background-repeat: no-repeat;
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--ink); background-color: var(--card); }
#f-city-other { margin-top: 10px; }
#f-city-other[hidden] { display: none; }
.field.invalid input[type=text], .field.invalid input[type=tel], .field.invalid select { border-color: var(--error); }

.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice legend { width: 100%; }
.choice label { position: relative; margin: 0; font-weight: 600; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 13px 22px; border: 2px solid transparent; border-radius: var(--r-btn); background: var(--paper); }
.choice input:checked + span { background: var(--accent); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.field.invalid.choice span { border-color: var(--error); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 24px; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); }
.consent.invalid { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin-top: 14px; min-height: 1.4em; font-weight: 600; }
.form__status.is-error { color: var(--error); }
.form__status.is-ok { color: var(--ok); }

/* --- подвал ------------------------------------------------------------ */
.foot { background: var(--ink); color: #b8c0ca; padding: 36px 0 44px; font-size: 0.95rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot__name { color: var(--paper); font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; }
.foot a { color: var(--paper); text-decoration: none; }

/* --- планшет и телефон ------------------------------------------------- */
@media (max-width: 980px) {
  .top__nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__photo img { aspect-ratio: 4 / 3.2; object-position: 50% 66%; }
  .jobs { grid-template-columns: 1fr 1fr; }
  .terms__grid { grid-template-columns: 1fr; }
  .terms__grid > div { padding: 28px 0; border-left: 0; border-top: 1px solid #3c3f44; }
  .terms__grid > div:first-child { border-top: 0; padding-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .faq, .apply__grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top__row { gap: 10px; min-height: 60px; }
  .brand img { height: 34px; }
  .btn--small { padding: 0 16px; font-size: 0.88rem; white-space: nowrap; }
  .top__phone { display: none; }
  .hero { padding: 24px 0 28px; }
  .lead { font-size: 1.05rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .link-phone { text-align: center; }
  .hero__photo img { border-radius: 24px; }
  .facts { padding-bottom: 48px; }
  .facts__row { grid-template-columns: 1fr; }
  .facts p { border-left: 0; border-top: 1px solid var(--line); padding: 18px 22px; }
  .facts p:first-child { border-top: 0; }
  .block { padding: 48px 0 56px; }
  .terms, .apply { padding: 56px 0; }
  .jobs { grid-template-columns: 1fr; gap: 20px; }
  .form { padding: 24px 18px; border-radius: 28px; }
  .choice span { padding: 12px 18px; }
  .faq summary { padding: 20px 60px 20px 20px; }
  .faq details p { padding: 0 20px 22px; }
  .foot__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
