/* ===== Fonts (self-hosted, from Google Fonts; licenses in assets/fonts/OFL-*.txt) ===== */
/* Inter is a variable font: one file per subset covers 400 and 500.
   The *-rub files hold only the ruble sign (cut from the latin-ext subset, 85 KB -> 1 KB). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../assets/fonts/inter-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../assets/fonts/inter-rub.woff2) format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(../assets/fonts/inter-latin.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: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/manrope-cyrillic.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: 700; font-display: swap; src: url(../assets/fonts/manrope-rub.woff2) format("woff2"); unicode-range: U+20BD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url(../assets/fonts/manrope-latin.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; }

/* ===== Tokens ===== */
:root {
  --green: #2A4535;
  --green-hover: #223a2c;
  --beige: rgba(222, 208, 182, .45);
  --beige-soft: rgba(222, 208, 182, .2);
  --line: #ddd6c8;
  --text: #2F2F2F;
  --muted: #5F5F5F;
  --head: #111;
  --bg: #fff;
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 0.625rem;
  --section: clamp(3.5rem, 8vw, 6rem);
  --gutter: 1rem;
  --header-h: 3.5625rem;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 1.5rem; } }
/* Desktop: gutters grow with the screen (4vw); --h1 drives the hero and header sizes. */
@media (min-width: 1024px) {
  :root { --gutter: clamp(2rem, 4vw, 5rem); --h1: clamp(2.5rem, 4vw, 4.8rem); --header-h: calc(var(--h1) * 1.25 + 1px); }
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Wide monitors: grow the whole layout with the screen from 1920px, capped at 2560px (x1.33). */
@media (min-width: 1920px) { html { font-size: min(100vw / 120, 133.3333%); } }
/* --scrollbar (set in main.js) fills the place of the hidden scrollbar, so the page does not jump sideways. */
html.is-locked { overflow: hidden; padding-right: var(--scrollbar, 0px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Lenis drives the scroll itself; native smooth scroll would fight it. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--font-body); }
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
h1, h2, h3 { margin: 0; font-family: var(--font-head); font-weight: 700; color: var(--head); line-height: 1.15; }
h1 { font-size: clamp(1.875rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 3.4vw, 2.375rem); }
@media (min-width: 1024px) { h2 { font-size: max(min(3.4vw, 2.375rem), var(--h1) * .66); } }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
main section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.on-green :focus-visible { outline-color: #fff; }

.container { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
@media (min-width: 1024px) { .container { width: min(100% - 2 * var(--gutter), 110rem); } }
.section { padding-block: var(--section); }
.section--beige { background: var(--beige-soft); }
.section-head { margin-bottom: 2rem; }
.section-head p { margin-top: 1rem; max-width: 62ch; }
@media (min-width: 1024px) { .section-head { margin-bottom: 3rem; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -6.25rem; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--green); color: #fff;
}
.skip-link:focus { top: 0.5rem; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.5rem; border: 0; border-radius: var(--radius);
  background: var(--green); color: #fff; font: 500 1rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; transition: background-color .2s;
}
.btn:hover { background: var(--green-hover); }
.btn--sm { min-height: 2.75rem; padding: 0.625rem 1rem; font-size: 0.9375rem; }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { background: #F0EADE; }
.btn--block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.site-header__logo { display: flex; align-items: center; min-height: 2.75rem; }
.site-header__logo img { width: auto; height: 2rem; }
.site-nav { display: none; }
@media (min-width: 1024px) {
  .site-header__inner { min-height: calc(var(--h1) * 1.25); }
  .site-header__logo img { height: calc(var(--h1) * .72); }
  .site-header .btn--sm { min-height: max(2.75rem, 2.8em); padding: 0 1.2em; font-size: max(0.9375rem, var(--h1) * .31); }
  .site-nav { display: block; margin-left: auto; }
  .site-nav ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
  .site-nav a {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .75em;
    font-size: max(1rem, var(--h1) * .31); color: var(--head); font-weight: 500; text-decoration: none; transition: color .2s;
  }
  .site-nav a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 0.375rem; }
}

/* ===== Hero ===== */
.hero { padding-block: 1.5rem 3rem; }
.hero__grid { display: grid; gap: 2rem; }
.hero__lead { margin-top: 1rem; font-size: 1.0625rem; max-width: 40ch; }
.audience { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.audience li { padding: 0.375rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: 0.9375rem; }
.hero__cta { width: 100%; margin-top: 1.5rem; }
.companies { margin-top: 2rem; }
.companies__label { font-size: 0.9375rem; color: var(--muted); }
.companies__list {
  display: grid; grid-template-columns: repeat(2, max-content); gap: 0.5rem 2rem;
  margin: 0.5rem 0 0; padding: 0; list-style: none;
  font: 700 1.25rem/1.3 var(--font-head); color: var(--head);
}
.companies__list li { white-space: nowrap; }
.hero__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; border-radius: var(--radius); }
@media (min-width: 768px) {
  .hero__cta { width: auto; }
  .companies__list { grid-template-columns: repeat(4, max-content); }
}
@media (min-width: 1024px) {
  .hero { padding-block: 4rem; }
  /* Text column is as wide as its longest line; the photo takes the rest and matches the text height. */
  .hero__grid { grid-template-columns: max-content minmax(0, 1fr); gap: clamp(3rem, 4vw, 5rem); }
  .hero .line { display: block; white-space: nowrap; }
  .hero h1 { font-size: var(--h1); line-height: 1.12; }
  .hero__lead { max-width: none; margin-top: calc(var(--h1) * .4); font-size: max(1.0625rem, var(--h1) * .38); line-height: 1.45; }
  .audience { margin-top: calc(var(--h1) * .45); gap: calc(var(--h1) * .16); }
  .audience li { padding: .4em .9em; font-size: max(0.9375rem, var(--h1) * .29); }
  .hero__cta { min-height: max(3rem, 3.2em); margin-top: calc(var(--h1) * .5); padding: 0 1.6em; font-size: max(1rem, var(--h1) * .31); }
  .companies { margin-top: calc(var(--h1) * .7); }
  .companies__label { font-size: max(0.9375rem, var(--h1) * .3); }
  .companies__list { gap: .3em 1.4em; font-size: max(1.25rem, var(--h1) * .43); }
  .hero__photo { position: relative; justify-self: end; width: 100%; max-width: 960px; }
  .hero__photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 25%; }
}

/* ===== About ===== */
.about { display: grid; gap: 1rem; }
.about__text { font-size: clamp(1.125rem, 1.6vw, 1.25rem); max-width: 60ch; }
@media (min-width: 1024px) { .about { grid-template-columns: 5fr 7fr; gap: 4rem; } }

/* ===== Why us ===== */
.why { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.why__row { display: grid; gap: 0.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.why__head { display: flex; align-items: center; gap: 0.75rem; }
.why .icon { color: var(--green); }
@media (min-width: 768px) { .why__row { grid-template-columns: 5fr 7fr; gap: 2rem; align-items: center; } }

/* ===== Perks ===== */
.perks { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.perks li { padding: 1.5rem; border-radius: var(--radius); background: var(--bg); }
.perks p { margin-top: 0.5rem; }
@media (min-width: 768px) { .perks { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

/* ===== Vacancies ===== */
.icon--sm { width: 1.125rem; height: 1.125rem; }
.vacancies { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.vacancies > li { display: flex; }
.vacancy {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem; width: 100%;
  padding: 1.5rem; border-radius: var(--radius); background: var(--beige);
}
.vacancy__pay { color: var(--green); font-weight: 500; font-size: 1.0625rem; }
.vacancy__more {
  display: inline-flex; align-items: center; gap: 0.375rem; align-self: flex-start;
  min-height: 2.75rem; margin-top: auto; padding: 0.5rem 0 0; border: 0; background: none;
  color: var(--green); font: 500 1rem/1.2 var(--font-body); cursor: pointer;
}
.vacancy__more::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.vacancy__more svg { transition: transform .2s; }
.vacancy:hover .vacancy__more { text-decoration: underline; text-underline-offset: 0.25rem; }
.vacancy:hover .vacancy__more svg { transform: translateX(3px); }
.vacancy__more:focus-visible { outline: none; }
.vacancy:has(.vacancy__more:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
@media (min-width: 768px) { .vacancies { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .vacancies { grid-template-columns: repeat(3, 1fr); } }

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--bg); color: var(--text); overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(17, 17, 17, .5); }
.modal__head {
  flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); background: var(--bg);
}
.modal__title { font-size: 1.375rem; }
.modal__pay { margin-top: 0.25rem; color: var(--green); font-weight: 500; }
.modal__close {
  flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -0.375rem -0.625rem 0 0;
  border: 0; border-radius: var(--radius); background: none; color: var(--head); cursor: pointer;
  transition: background-color .2s;
}
.modal__close:hover { background: var(--beige); }
.modal__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem var(--gutter); }
.modal__body h3 { margin: 1.5rem 0 0.5rem; font-size: 1.0625rem; }
.modal__body h3:first-child { margin-top: 0; }
.modal__body ul { margin: 0; padding-left: 1.25rem; }
.modal__body li + li { margin-top: 0.375rem; }
.modal__body .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; list-style: none; }
.modal__body .chips li { margin: 0; padding: 0.375rem 0.75rem; border-radius: var(--radius); background: var(--beige); font-size: 0.9375rem; }
.modal__foot { flex: none; padding: 0.75rem var(--gutter) 1rem; border-top: 1px solid var(--line); background: var(--bg); }
@media (min-width: 768px) {
  .modal {
    width: min(38.75rem, 100% - 3rem); height: fit-content; max-height: calc(100dvh - 4rem);
    margin: auto; border-radius: var(--radius);
  }
  .modal[open] { display: block; overflow-y: auto; }
  .modal__head { position: sticky; top: 0; z-index: 1; padding: 1.5rem 2rem 1rem; }
  .modal__body { overflow: visible; padding: 1.5rem 2rem; }
  .modal__foot { padding: 0 2rem 2rem; border-top: 0; }
  .modal__foot .btn { width: auto; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(0.5rem); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(0.5rem); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: modal-in .2s ease-out; }
  .modal[open]::backdrop { animation: fade-in .2s ease-out; }
  .modal.is-closing { animation: modal-out .2s ease-in forwards; }
  .modal.is-closing::backdrop { animation: fade-out .2s ease-in forwards; }
}

/* ===== Reviews ===== */
.reviews { margin: 0; padding: 0; list-style: none; }
.reviews > li { break-inside: avoid; margin-bottom: 1rem; }
.review { margin: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.review blockquote { margin: 0 0 1rem; }
/* Author row under the text: small round photo, name, role. */
.review figcaption { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--head); }
.review__photo { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.review__name { font-weight: 500; }
@media (min-width: 768px) {
  .reviews { column-count: 2; column-gap: 1.5rem; }
  .reviews > li { margin-bottom: 1.5rem; }
}

/* ===== Steps ===== */
.steps { display: grid; margin: 0; padding: 0; list-style: none; }
.step {
  display: grid; grid-template-columns: 3.5rem 1fr; column-gap: 1rem; row-gap: 0.375rem;
  padding-block: 1.5rem; border-top: 1px solid var(--line);
}
.step__num { grid-row: span 2; font: 700 2rem/1 var(--font-head); color: var(--green); }
.step p { grid-column: 2; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .step { display: block; }
  .step__num { display: block; margin-bottom: 1rem; font-size: 2.75rem; }
  .step p { margin-top: 0.5rem; }
}

/* ===== FAQ ===== */
.faq { max-width: 53.75rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem; padding-block: 1rem; cursor: pointer; list-style: none;
  font: 500 1.0625rem/1.4 var(--font-body); color: var(--head); transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green); }
.faq__icon { color: var(--green); }
.faq__v { transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.faq__item[open] .faq__v { transform: rotate(90deg); }
.faq__item p { max-width: 65ch; padding-bottom: 1.25rem; }

/* ===== Apply ===== */
.apply { padding-block: var(--section); background: var(--green); color: #fff; }
.apply__grid { display: grid; gap: 2rem; }
.apply__logo { width: auto; height: 2.25rem; }
.apply h2 { margin-top: 1.5rem; color: #fff; }
.apply__main .btn { width: 100%; margin-top: 1.5rem; }
.apply__consent { max-width: 34rem; margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.apply__consent a { color: #fff; text-underline-offset: 0.2em; }
.apply__contacts { padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .3); }
.contacts { display: grid; gap: 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.contacts a {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 2.75rem;
  color: #fff; font-size: 1.0625rem; font-weight: 500; text-decoration: none;
}
.contacts a:hover { text-decoration: underline; text-underline-offset: 0.25rem; }
@media (min-width: 768px) { .apply__main .btn { width: auto; } }
@media (min-width: 1024px) {
  .apply__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
  /* Same scale as the hero CTA and header logo. */
  .apply__logo { height: calc(var(--h1) * .72); }
  .apply__main .btn { min-height: max(3rem, 3.2em); padding: 0 1.6em; font-size: max(1rem, var(--h1) * .31); }
  .apply__consent { font-size: max(0.875rem, var(--h1) * .22); }
  .apply__contacts { padding: 0 0 0 4rem; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .3); }
}

/* ===== Policy page (privacy.html) ===== */
.policy { max-width: 46rem; padding-block: 2.5rem var(--section); }
.policy h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.policy h2 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.policy p + p, .policy ul { margin-top: 0.75rem; }
.policy ul { padding-left: 1.25rem; }
.policy__date { margin-top: 0.75rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { padding-block: 1rem; color: var(--muted); font-size: 0.9375rem; }
.footer-line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.footer-line li { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; }
/* Dots only where the line fits in one row; on phones a wrapped line must not start with a dot. */
@media (min-width: 768px) {
  .footer-line { column-gap: 0.75rem; }
  .footer-line li + li::before { content: "·"; }
}
.footer-line a { display: inline-flex; align-items: center; min-height: 2.75rem; color: inherit; transition: color .2s; }
.footer-line a:hover { color: var(--green); }
.footer-legal { margin: 0.25rem 0 0; font-size: 0.8125rem; }
