/* ВПРАВЕ — общий стиль сайта.
   Цвета — «стена» с портрета; шрифт — Montserrat из брендбука, хостится локально. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/montserrat-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/montserrat-latin-wght-normal.woff2) format("woff2-variations");
  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: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(fonts/montserrat-cyrillic-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
:root {
  /* стена с фотографии — основной тёмный цвет */
  --wall: #253a3b;
  --wall-deep: #1c2f30;
  --wall-line: rgba(220, 232, 230, .16);
  /* тёмно-синий логотипа */
  --ink: #13294b;
  /* голубой пиджака — акцент на тёмном */
  --jacket: #b9d2de;
  --jacket-deep: #8fb9cc;
  --paper: #faf9f6;
  --mist: #edf3f6;
  --white: #ffffff;
  --text: #22323a;
  --muted: #5d6f75;
  --on-wall: #e8efed;
  --on-wall-muted: #b4c6c3;
  --line: #d3dfe3;

  --serif: "Montserrat", "Segoe UI", Arial, sans-serif;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;

  --max: 1200px;
  --gutter: 24px;
  --section: clamp(80px, 9vw, 128px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--jacket); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--jacket-deep); outline-offset: 3px; border-radius: 4px; }
.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -.02em; }
h2 { color: var(--ink); font-size: clamp(28px, 3.1vw, 42px); line-height: 1.18; letter-spacing: -.015em; }
h3 { color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1.35; }
p { margin: 0; }
.lead { max-width: 36em; margin-top: 20px; color: var(--muted); font-size: 20px; line-height: 1.55; text-wrap: pretty; }

.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Кнопки: одна форма на весь сайт */
.btn {
  display: inline-flex;
  min-height: 54px;
  padding: 0 26px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { background: #0c1f3b; }
.btn--light { background: var(--jacket); color: var(--ink); }
.btn--light:hover { background: #d3e4ec; }
.btn--ghost { border-color: rgba(255,255,255,.34); background: transparent; color: #fff; }
.btn--ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn--line { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }

.text-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--jacket-deep); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-color: var(--ink); }

/* ───────── Навигация ───────── */
.nav {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 60px; height: 60px; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a { padding: 8px 12px; border-radius: 999px; color: var(--on-wall); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .2s ease; }
.nav__links a:hover { background: rgba(255,255,255,.08); }
.nav__links .nav__phone { margin-left: 10px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.3); font-weight: 600; font-feature-settings: "tnum"; }
.nav__mobile-actions { display: none; align-items: center; gap: 8px; }
.nav__mobile-actions .nav__phone { padding: 10px 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.menu-button svg { width: 22px; height: 22px; }
.menu-button .menu-close { display: none; }
.menu-button[aria-expanded="true"] .menu-open { display: none; }
.menu-button[aria-expanded="true"] .menu-close { display: block; }

/* ───────── Подвал ───────── */
.site-footer { padding: 56px 0 44px; background: var(--wall-deep); color: var(--on-wall-muted); font-size: 15px; }
.site-footer a { color: var(--on-wall); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 64px; }
.footer__brand { display: flex; gap: 20px; align-items: flex-start; }
.footer__brand img { width: 56px; height: 56px; }
.footer__legal { line-height: 1.55; }
.footer__legal strong { display: block; margin-bottom: 4px; color: var(--on-wall); font-weight: 600; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; align-content: start; }
.footer__bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--wall-line); }

@media (max-width: 1100px) {
  .nav { min-height: 80px; }
  .nav__links {
    position: fixed;
    z-index: 30;
    inset: 84px 14px auto;
    display: none;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border: 1px solid var(--wall-line);
    border-radius: 20px;
    background: var(--wall-deep);
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 16px; border-radius: 12px; font-size: 17px; }
  .nav__links .nav__phone { display: none; }
  .nav__mobile-actions { display: flex; }
  .menu-button { display: grid; }
  body.menu-open { overflow: hidden; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 17px; }
  .lead { font-size: 18px; }
  .brand img { width: 52px; height: 52px; }
  .footer__links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
