/* =========================================================================
   RITG — новый сайт. Основная таблица стилей.
   Порядок: токены → база → утилиты → компоненты → секции → адаптив.
   ========================================================================= */

/* ------------------------------- ТОКЕНЫ --------------------------------- */
:root {
  /* фирменный синий взят из логотипа RITG */
  --c-brand: #1e9ce0;
  --c-brand-strong: #0f7cbd;
  --c-brand-deep: #0a5d90;
  --c-brand-soft: #e8f5fd;
  --c-brand-line: #bfe2f7;

  --c-ink: #0c1a28;
  --c-ink-soft: #17324a;
  --c-body: #4d5f70;
  --c-muted: #7d8d9c;

  --c-line: #e3eaf1;
  --c-line-strong: #cfdae4;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f8fc;
  --c-bg-dark: #0c1a28;
  --c-bg-dark-2: #10263a;

  --c-success: #16a34a;
  --c-danger: #e2574c;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 8px rgba(12, 26, 40, .06);
  --shadow-md: 0 14px 34px rgba(12, 26, 40, .10);
  --shadow-lg: 0 30px 70px rgba(12, 26, 40, .16);
  --shadow-brand: 0 18px 38px rgba(30, 156, 224, .28);

  --container: 1240px;
  --gutter: clamp(18px, 4vw, 28px);
  --section-y: clamp(64px, 7.5vw, 112px);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --t-fast: .18s ease;
  --t-base: .3s cubic-bezier(.22, .61, .36, 1);
}

/* -------------------------------- БАЗА ---------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--c-ink);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.015em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-brand-strong);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-brand-deep); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

dl, dd, dt, figure, blockquote { margin: 0; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--c-brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------ УТИЛИТЫ --------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--dark {
  background:
    radial-gradient(1100px 520px at 15% 0%, rgba(30, 156, 224, .22), transparent 62%),
    linear-gradient(160deg, var(--c-bg-dark) 0%, #071320 100%);
  color: rgba(255, 255, 255, .78);
}
.section--dark h2,
.section--dark h3 { color: #fff; }

.section__head { max-width: 780px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-brand-strong);
}
.section__eyebrow::before {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section__title {
  font-size: clamp(28px, 3.4vw, 44px);
  margin-bottom: .45em;
}

.section__subtitle {
  font-size: clamp(16px, 1.3vw, 18px);
  color: var(--c-muted);
}
.section__head--light .section__subtitle { color: rgba(255, 255, 255, .68); }
.section__head--light .section__eyebrow { color: #7fd0f5; }

/* --------------------------------- КНОПКИ -------------------------------- */
.button {
  --btn-bg: var(--c-brand);
  --btn-color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-color);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.button:hover {
  transform: translateY(-2px);
  color: var(--btn-color);
}
.button:active { transform: translateY(0); }
.button:disabled,
.button.is-loading { opacity: .7; cursor: progress; transform: none; }

.button--primary { box-shadow: var(--shadow-brand); }
.button--primary:hover { background: var(--c-brand-strong); }

.button--ghost {
  --btn-bg: rgba(255, 255, 255, .1);
  --btn-color: #fff;
  border-color: rgba(255, 255, 255, .45);
  backdrop-filter: blur(6px);
}
.button--ghost:hover { background: rgba(255, 255, 255, .2); }

.button--ghost-dark {
  --btn-bg: transparent;
  --btn-color: rgba(255, 255, 255, .85);
  border-color: rgba(255, 255, 255, .3);
}
.button--ghost-dark:hover { background: rgba(255, 255, 255, .1); }

.button--outline {
  --btn-bg: transparent;
  --btn-color: var(--c-brand-strong);
  border-color: var(--c-brand-line);
}
.button--outline:hover { background: var(--c-brand-soft); border-color: var(--c-brand); }

.button--ghost-light {
  --btn-bg: transparent;
  --btn-color: rgba(255, 255, 255, .9);
  border-color: rgba(255, 255, 255, .35);
}
.button--ghost-light:hover { background: rgba(255, 255, 255, .12); }

.button--lg { padding: 18px 36px; font-size: 17px; }
.button--sm { padding: 11px 20px; font-size: 14px; }
.button--block { width: 100%; }

/* --------------------------------- ПОЛЯ ---------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }

.field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-soft);
}
.field__req { color: var(--c-brand); }

.field__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-ink);
  font-size: 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field__input::placeholder { color: #9aa9b6; }
.field__input:hover { border-color: #b6c6d4; }
.field__input:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(30, 156, 224, .14);
}
.field__input.is-invalid {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 4px rgba(226, 87, 76, .12);
}

textarea.field__input { resize: vertical; min-height: 96px; }

.field__error {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-danger);
}

.field__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-muted);
}
.field__note a { text-decoration: underline; }

/* ловушка для ботов — вне видимой области, но не display:none */
.field--trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* -------------------------------- АНИМАЦИИ ------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ================================ ШАПКА ================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-base), border-color var(--t-base), padding var(--t-base);
}
.header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 6px 24px rgba(12, 26, 40, .08);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--c-ink);
}
.logo:hover { color: var(--c-ink); }
.logo__img { width: auto; height: 38px; }

.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--c-ink);
}
.logo__tagline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--c-muted);
}
.logo--footer .logo__name { color: #fff; }
.logo--footer .logo__tagline { color: rgba(255, 255, 255, .55); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

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

.nav__link {
  position: relative;
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--c-ink-soft);
  font-size: 15px;
  font-weight: 600;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav__link:hover { color: var(--c-brand-strong); background: var(--c-brand-soft); }
.nav__link.is-active { color: var(--c-brand-strong); }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__contacts { display: flex; flex-direction: column; gap: 2px; }
.nav__cta { display: none; }
.nav__contact { display: flex; flex-direction: column; line-height: 1.25; }
.nav__contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
}
.nav__contact-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
}

.header__actions { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto 4px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform var(--t-base), opacity var(--t-fast);
}
.burger span:last-child { margin-bottom: 0; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ================================= HERO ================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 84vh, 820px);
  padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 84px);
  overflow: hidden;
  background: var(--c-bg-dark);
  color: #fff;
}

.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(7, 19, 32, .95) 0%, rgba(8, 24, 40, .82) 42%, rgba(9, 30, 49, .45) 78%, rgba(9, 30, 49, .3) 100%),
    linear-gradient(0deg, rgba(7, 19, 32, .8) 0%, transparent 42%);
}

.hero__inner { position: relative; z-index: 2; max-width: 880px; }

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid rgba(127, 208, 245, .45);
  border-radius: 999px;
  background: rgba(30, 156, 224, .14);
  color: #9adcf9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero__title {
  margin-bottom: .5em;
  color: #fff;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.hero__lead {
  max-width: 660px;
  margin-bottom: 34px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.68;
  color: rgba(255, 255, 255, .84);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
}
.hero__fact {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
}
.hero__fact b {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.hero__fact span {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .72);
}

/* ============================== О КОМПАНИИ ============================== */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about__content p { font-size: 17px; }
.about__content b { color: var(--c-ink); }

.about__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about__media img { width: 100%; }
.about__media figcaption {
  padding: 16px 22px;
  background: #fff;
  font-size: 14px;
  color: var(--c-muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.stats__item {
  padding: 22px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-bg-soft);
}
.stats__value {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-brand-strong);
  letter-spacing: -.02em;
}
.stats__label {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-body);
}

/* ================================ УСЛУГИ ================================ */
.services {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.service {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 34px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.service:nth-child(4),
.service:nth-child(5) { grid-column: span 3; }

.service:hover {
  transform: translateY(-6px);
  border-color: var(--c-brand-line);
  box-shadow: var(--shadow-md);
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--c-brand-soft), #d6ecfa);
  color: var(--c-brand-strong);
}
.service__icon svg { width: 28px; height: 28px; }

.service__title { font-size: 21px; margin-bottom: .55em; }

.service__text {
  font-size: 15.5px;
  line-height: 1.62;
}

.service__list {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 14.5px;
}
.service__list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.5;
  color: var(--c-ink-soft);
}
.service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-brand);
}

/* ============================== КАЛЬКУЛЯТОР ============================= */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .95fr);
  gap: 24px;
  align-items: start;
}

.calc__form,
.calc__summary {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
}

.calc__form { padding: clamp(22px, 2.6vw, 38px); }

.calc__progress { margin-bottom: 30px; }

.calc__progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  overflow: hidden;
}
.calc__progress-bar {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-brand), #6fd0f7);
  transition: width var(--t-base);
}

.calc__progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}
.calc__progress-meta b { color: #9adcf9; }
.calc__progress-hint { color: rgba(255, 255, 255, .45); }

.calc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.calc__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .62);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}
.calc__chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  font-size: 12px;
}
.calc__chip:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.calc__chip.is-active {
  color: #fff;
  border-color: var(--c-brand);
  background: rgba(30, 156, 224, .18);
}
.calc__chip.is-active span { background: var(--c-brand); color: #fff; }
.calc__chip.is-done span { background: rgba(111, 208, 247, .35); color: #fff; }

.calc__step { border: 0; padding: 0; margin: 0; }

.calc__step-title {
  padding: 0;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 800;
  color: #fff;
}
.calc__step-hint {
  margin: 8px 0 22px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, .58);
}

.calc__options { display: grid; gap: 12px; }
.calc__options--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc__options--cards .calc-option:last-child { grid-column: span 2; }
.calc__options--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* карточка-вариант (radio / checkbox) */
.calc-option {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.calc-option:hover {
  border-color: rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .07);
}
.calc-option input { position: absolute; opacity: 0; width: 0; height: 0; }

.calc-option__box {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 7px;
  transition: all var(--t-fast);
}
input[type='radio'] + .calc-option__box { border-radius: 50%; }
.calc-option__box::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: #fff;
  transform: scale(0);
  transition: transform var(--t-fast);
}
input[type='radio'] + .calc-option__box::after { border-radius: 50%; }

.calc-option input:checked + .calc-option__box {
  border-color: var(--c-brand);
  background: var(--c-brand);
}
.calc-option input:checked + .calc-option__box::after { transform: scale(1); }
.calc-option input:focus-visible + .calc-option__box { outline: 2px solid #9adcf9; outline-offset: 2px; }

.calc-option__body { display: flex; flex-direction: column; gap: 3px; }
.calc-option__title { font-size: 15.5px; font-weight: 700; color: #fff; }
.calc-option__hint { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); }
.calc-option__price {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #9adcf9;
}
.calc-option:has(input:checked) {
  border-color: var(--c-brand);
  background: rgba(30, 156, 224, .14);
}

/* множители (дизайн, масштаб, сроки) */
.calc__factor-group + .calc__factor-group { margin-top: 22px; }
.calc__factor-label {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.calc__factors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.calc-factor { position: relative; cursor: pointer; }
.calc-factor input { position: absolute; opacity: 0; width: 0; height: 0; }
.calc-factor__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .035);
  transition: all var(--t-fast);
}
.calc-factor:hover .calc-factor__body { border-color: rgba(255, 255, 255, .32); }
.calc-factor__title { font-size: 14.5px; font-weight: 700; color: #fff; }
.calc-factor__hint { font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, .52); }
.calc-factor input:checked + .calc-factor__body {
  border-color: var(--c-brand);
  background: rgba(30, 156, 224, .16);
}
.calc-factor input:focus-visible + .calc-factor__body { outline: 2px solid #9adcf9; outline-offset: 2px; }

/* контактные поля калькулятора */
.calc__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.calc__fields .field--wide { grid-column: span 2; }
.calc__fields .field__label { color: rgba(255, 255, 255, .8); }
.calc__fields .field__input {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #fff;
}
.calc__fields .field__input::placeholder { color: rgba(255, 255, 255, .38); }
.calc__fields .field__input:focus {
  border-color: var(--c-brand);
  background: rgba(255, 255, 255, .1);
}
.calc .field__note { margin-top: 14px; color: rgba(255, 255, 255, .45); }
.calc .field__note a { color: #9adcf9; }

.calc__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.calc__nav-spacer { flex: 1; }

/* сводка по стоимости */
.calc__summary {
  position: sticky;
  top: 104px;
  padding: clamp(22px, 2.4vw, 32px);
  background: linear-gradient(165deg, rgba(30, 156, 224, .16), rgba(255, 255, 255, .04));
}

.calc__summary-title {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.calc__summary-total {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -.02em;
}

.calc__summary-range {
  margin: 6px 0 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}
.calc__summary-range b { color: #9adcf9; }

.calc__summary-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.calc__summary-meta div { display: flex; flex-direction: column; gap: 3px; }
.calc__summary-meta dt { font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.calc__summary-meta dd { font-size: 15.5px; font-weight: 700; color: #fff; }

.calc__price-lines {
  display: grid;
  gap: 9px;
  max-height: 260px;
  margin: 18px 0;
  padding-right: 4px;
  overflow-y: auto;
}
.calc__price-lines::-webkit-scrollbar { width: 6px; }
.calc__price-lines::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2);
  border-radius: 999px;
}

.calc-price__line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}
.calc-price__line-title { color: rgba(255, 255, 255, .72); }
.calc-price__line-value { white-space: nowrap; font-weight: 700; color: #fff; }

.calc__summary-status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
}
.calc__summary-status[data-state='draft'] {
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .6);
}
.calc__summary-status[data-state='confirmed'] {
  background: rgba(22, 163, 74, .16);
  color: #8fe3ac;
}

.calc__summary-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .45);
}

/* благодарность после отправки */
.calc__success {
  grid-column: 1 / -1;
  padding: clamp(30px, 4vw, 56px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(30, 156, 224, .18), rgba(255, 255, 255, .04));
  text-align: center;
}
.calc__success-icon,
.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(22, 163, 74, .2);
  color: #6ee7a0;
}
.calc__success-icon svg,
.form-success__icon svg { width: 30px; height: 30px; }
.calc__success h3 { font-size: clamp(21px, 2.4vw, 28px); color: #fff; }
.calc__success p { max-width: 700px; margin: 0 auto 12px; color: rgba(255, 255, 255, .75); }
.calc__success b { color: #fff; }
.calc__success-id { font-size: 14px; color: rgba(255, 255, 255, .55); }
.calc__success .button { margin-top: 18px; }
.calc.is-submitted .calc__form,
.calc.is-submitted .calc__summary { display: none; }

/* ================================ ПРОЕКТЫ =============================== */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.projects__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 34px);
}
.projects__more .button svg { width: 17px; height: 17px; }

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.project:hover .project__media img { transform: scale(1.04); }

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(22px, 2.4vw, 32px);
}

.project__client {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-brand-strong);
}

.project__title { font-size: clamp(19px, 1.7vw, 23px); margin-bottom: .6em; }

.project__task,
.project__result { font-size: 15px; line-height: 1.62; }
.project__task b,
.project__result b { color: var(--c-ink); }

.project__quote {
  margin-top: auto;
  padding: 18px 20px 18px 24px;
  border-left: 3px solid var(--c-brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--c-bg-soft);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  color: var(--c-ink-soft);
}
.project__quote cite {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  font-style: normal;
  font-weight: 700;
  color: var(--c-muted);
}

/* =========================== ПОЧЕМУ ВЫБИРАЮТ НАС ======================== */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.why__content p { font-size: 16.5px; }

.why__list {
  display: grid;
  gap: 10px;
  margin: 26px 0 30px;
}
.why__list li {
  position: relative;
  padding-left: 34px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--c-ink-soft);
}
.why__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f7cbd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6.5 9.5 17 4 11.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.why__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.why__media img { width: 100%; }
.why__media figcaption {
  padding: 16px 22px;
  background: #fff;
  font-size: 14px;
  color: var(--c-muted);
}

/* =============================== КОНТАКТЫ =============================== */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contacts__list { display: grid; gap: 18px; margin-bottom: 26px; }
.contacts__list li {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
}
.contacts__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contacts__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.contacts__list p { font-size: 17px; color: var(--c-ink); margin: 0; }
.contacts__list a { font-weight: 700; color: var(--c-ink); }
.contacts__list a:hover { color: var(--c-brand-strong); }

.contacts__map {
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-bg-soft);
}
.contacts__map iframe { display: block; }
.contacts__map-caption {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--c-line);
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-muted);
}
.contacts__map-caption a { font-weight: 600; }

.contacts__form-wrap {
  padding: clamp(24px, 2.8vw, 40px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-bg-soft);
}
.contacts__form-title { font-size: clamp(21px, 2.2vw, 26px); margin-bottom: .35em; }
.contacts__form-hint { margin-bottom: 22px; font-size: 15px; color: var(--c-muted); }

.lead-form { display: grid; gap: 16px; }

/* благодарственное сообщение вместо формы */
.form-success {
  padding: 28px 26px;
  border: 1px solid #bfe9cd;
  border-radius: var(--radius-md);
  background: #f1fbf4;
  text-align: center;
}
.form-success.is-visible { animation: successIn .45s cubic-bezier(.22, .61, .36, 1); }
@keyframes successIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.form-success__icon {
  background: rgba(22, 163, 74, .14);
  color: var(--c-success);
}
.form-success h3 { font-size: 21px; margin-bottom: .4em; }
.form-success p { font-size: 15px; color: var(--c-body); }
.form-success__id { font-size: 14px; color: var(--c-muted); }
.form-success a { font-weight: 700; }

/* ================================= ПОДВАЛ =============================== */
.footer {
  background: var(--c-bg-dark);
  color: rgba(255, 255, 255, .62);
}
.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.5vw, 52px);
  padding: clamp(48px, 5vw, 76px) var(--gutter) clamp(36px, 4vw, 52px);
}

.footer__about { margin: 18px 0 20px; font-size: 14.5px; line-height: 1.62; }

.footer__heading {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}

.footer__links,
.footer__contacts { display: grid; gap: 10px; font-size: 14.5px; }
.footer__links a,
.footer__contacts a { color: rgba(255, 255, 255, .68); }
.footer__links a:hover,
.footer__contacts a:hover { color: #fff; }
.footer__contacts { margin-bottom: 20px; }

.socials { display: flex; gap: 10px; }
.socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: rgba(255, 255, 255, .72);
  transition: all var(--t-fast);
}
.socials__link:hover {
  border-color: var(--c-brand);
  background: var(--c-brand);
  color: #fff;
  transform: translateY(-2px);
}
.socials__link svg { width: 19px; height: 19px; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 22px var(--gutter);
  font-size: 13.5px;
}
.footer__rights,
.footer__legal { margin: 0; color: rgba(255, 255, 255, .5); }
.footer__legal a { color: rgba(255, 255, 255, .7); text-decoration: underline; }
.footer__requisites {
  flex: 1 0 100%;
  margin: 0;
  color: rgba(255, 255, 255, .5);
}

/* ============================ КНОПКА «НАВЕРХ» =========================== */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--c-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--t-base);
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--c-brand-strong); }
.scroll-top svg { width: 20px; height: 20px; }

/* =========================== МОДАЛЬНОЕ ОКНО ============================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(7, 19, 32, .62);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .22s ease;
  overflow-y: auto;
}
.modal.is-open { opacity: 1; }

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(.98);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1);
}
.modal.is-open .modal__dialog { transform: none; }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--c-line);
  border-radius: 50%;
  background: #fff;
  color: var(--c-ink-soft);
  cursor: pointer;
  transition: all var(--t-fast);
}
.modal__close:hover { border-color: var(--c-brand); color: var(--c-brand); }
.modal__close svg { width: 18px; height: 18px; }

.modal__title { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: .35em; padding-right: 40px; }
.modal__hint { margin-bottom: 22px; font-size: 15px; color: var(--c-muted); }

/* ============================== УВЕДОМЛЕНИЯ ============================= */
.toast-host {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 40px));
  pointer-events: none;
}
.toast {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-ink);
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--c-brand);
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast--success { border-left-color: var(--c-success); }
.toast--error { border-left-color: var(--c-danger); }

/* ============================ СТРАНИЦА ПРОЕКТОВ ========================= */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 5.4vw, 76px) 0 clamp(40px, 4.6vw, 64px);
  background:
    radial-gradient(820px 400px at 12% 0%, rgba(30, 156, 224, .30), transparent 70%),
    radial-gradient(620px 380px at 92% 18%, rgba(30, 156, 224, .16), transparent 72%),
    linear-gradient(155deg, var(--c-bg-dark) 0%, #0a1a2b 58%, #071320 100%);
  color: rgba(255, 255, 255, .78);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .5);
}
.breadcrumbs a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current="page"] { color: rgba(255, 255, 255, .5); }

.page-hero__eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9adcf9;
}
.page-hero__title {
  max-width: 940px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.page-hero__lead {
  max-width: 740px;
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
}
.page-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 780px;
  margin: clamp(30px, 4vw, 44px) 0 0;
  padding: clamp(22px, 2.6vw, 30px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  list-style: none;
}
.page-hero__fact { display: flex; flex-direction: column; gap: 4px; }
.page-hero__fact b {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
}
.page-hero__fact span { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .58); }

.projects-page { padding-top: clamp(40px, 4.6vw, 64px); }

.projects-toolbar { display: grid; gap: 18px; margin-bottom: clamp(26px, 3vw, 36px); }
.projects-toolbar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.projects-toolbar__title { margin: 0; font-size: clamp(24px, 2.6vw, 32px); }
.projects-hint { margin: 0; font-size: 13px; color: var(--c-muted); }

.projects-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink-soft);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.filter-chip:hover { border-color: var(--c-brand-line); background: var(--c-brand-soft); color: var(--c-brand-strong); }
.filter-chip.is-active {
  border-color: var(--c-brand-strong);
  background: var(--c-brand-strong);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 124, 189, .22);
}
.filter-chip:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.filter-chip__count { font-size: 11.5px; font-weight: 800; opacity: .65; }
.filter-chip.is-active .filter-chip__count { opacity: .85; }

.projects-toolbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.projects-search { position: relative; display: block; flex: 1 1 320px; max-width: 440px; }
.projects-search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--c-muted);
  pointer-events: none;
}

/* --------------------------- карточки проектов --------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-brand-line);
  box-shadow: var(--shadow-md);
}
.project-card:focus-within {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(30, 156, 224, .18);
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.project-card:hover .project-card__media img { transform: scale(1.04); }

.project-card__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--c-brand-strong);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.project-card__arrow svg { width: 15px; height: 15px; }
.project-card:hover .project-card__arrow { opacity: 1; transform: none; }

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}
.project-card__cats {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--c-brand-strong);
}
.project-card__title { margin: 0; font-size: 17px; line-height: 1.32; }
.project-card__title a { color: var(--c-ink); text-decoration: none; }
/* ссылка растягивается на всю карточку */
.project-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.project-card__title a:focus-visible { outline: none; }
.project-card__caption { margin: 0; font-size: 14px; line-height: 1.55; color: var(--c-body); }
.project-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-brand-strong);
}
.project-card__more svg { width: 13px; height: 13px; transition: transform var(--t-fast); }
.project-card:hover .project-card__more svg { transform: translate(2px, -2px); }

.projects-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: clamp(36px, 5vw, 56px) 20px;
  border: 1px dashed var(--c-line-strong);
  border-radius: var(--radius-md);
  background: var(--c-bg-soft);
  text-align: center;
}
.projects-empty__title { margin: 0; font-size: 19px; font-weight: 800; color: var(--c-ink); }
.projects-empty__text { margin: 0 0 8px; font-size: 14.5px; color: var(--c-muted); }
.projects-more { display: flex; justify-content: center; margin-top: clamp(26px, 3vw, 36px); }

.projects-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
}
.projects-cta .section__title { max-width: 620px; color: #fff; }
.projects-cta__lead {
  margin: 0;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .66);
}
.projects-cta__actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 12px; }

.projects-search__input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--c-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.projects-search__input::placeholder { color: #9aa9b6; }
.projects-search__input:focus {
  outline: none;
  border-color: var(--c-brand);
  box-shadow: 0 0 0 4px rgba(30, 156, 224, .14);
}
.projects-status { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--c-muted); }
.projects-status b { color: var(--c-ink-soft); }

/* ============================ СТРАНИЦА ВАКАНСИЙ =========================== */
.vacancies { padding-top: clamp(40px, 4.6vw, 64px); }

.vacancies__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.vacancy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: #fff;
  scroll-margin-top: 96px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.vacancy:hover {
  transform: translateY(-3px);
  border-color: var(--c-brand-line);
  box-shadow: var(--shadow-md);
}
.vacancy:target { border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(30, 156, 224, .18); }

.vacancy__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--c-brand-soft);
  color: var(--c-brand-strong);
}
.vacancy__icon svg { width: 22px; height: 22px; }

.vacancy__title { margin: 2px 0 0; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }

.vacancy__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.vacancy__tag {
  padding: 4px 10px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-bg-soft);
  color: var(--c-ink-soft);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
}

.vacancy__label {
  margin: 6px 0 0;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.vacancy__list { display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.vacancy__list li { position: relative; padding-left: 19px; }
.vacancy__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-brand);
  opacity: .6;
}

.vacancy__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 10px;
}
.vacancy__link { font-size: 12.5px; font-weight: 600; color: var(--c-muted); }
.vacancy__link:hover { color: var(--c-brand-strong); }

/* ------------------------------- форма отклика ------------------------------- */
.vacancies-apply { background: var(--c-bg-soft); }
.vacancies-apply__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.vacancies-apply__card {
  padding: clamp(22px, 2.8vw, 34px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.vacancies-apply__title { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 32px); }
.vacancies-apply__lead {
  margin: 0 0 22px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--c-body);
}

.vacancies-apply__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vacancies-apply__grid .field--wide { grid-column: 1 / -1; }

.vacancies-apply__aside {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 28px);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.vacancies-apply__aside-title {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.vacancies-contacts { display: grid; gap: 14px; }
.vacancies-contact { display: grid; gap: 2px; font-size: 15px; }
.vacancies-contact__label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.vacancies-contact a { color: var(--c-ink); font-weight: 700; }
.vacancies-contact a:hover { color: var(--c-brand-strong); }

.vacancies-apply__aside-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--c-muted);
}

/* -------------------------------- CTA вакансий ------------------------------- */
.vacancies-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
}
.vacancies-cta .section__title { max-width: 640px; color: #fff; }
.vacancies-cta__lead {
  margin: 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .66);
}
.vacancies-cta__actions { display: flex; flex-shrink: 0; flex-wrap: wrap; gap: 12px; }

/* ========================= СТРАНИЦА ПРОЕКТА (КЕЙС) ========================= */
.project-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: clamp(26px, 3.4vw, 38px) 0 0;
  padding: clamp(20px, 2.4vw, 26px) 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  list-style: none;
}
.project-facts__item { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.project-facts__item span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.project-facts__item b { font-size: 15.5px; font-weight: 600; line-height: 1.45; color: #fff; }
.project-facts__item a { color: #9adcf9; text-decoration: none; }
.project-facts__item a:hover { color: #fff; text-decoration: underline; }

.project-detail { padding-top: clamp(34px, 4vw, 54px); }
.project-detail__inner { display: grid; gap: clamp(28px, 4vw, 48px); }

.project-detail__main { display: grid; gap: clamp(22px, 3vw, 34px); }

.project-detail__cover {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-bg-soft);
  box-shadow: var(--shadow-md);
}
.project-detail__cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-detail__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.project-detail__aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-bg-soft);
}
.project-detail__aside-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--c-ink); }
.project-detail__aside-text { margin: 0 0 4px; font-size: 14.5px; line-height: 1.6; color: var(--c-body); }

/* типографика описания */
.prose {
  max-width: 78ch;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--c-body);
  overflow-wrap: break-word;
}
.prose > * + * { margin-top: 1em; }
.prose--policy { margin-inline: auto; }
.prose p { margin: 0; }
.prose h2 {
  margin: clamp(28px, 3vw, 40px) 0 0;
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--c-ink);
}
.prose h3 { margin: 26px 0 0; font-size: 18.5px; color: var(--c-ink); }
.prose b, .prose strong { color: var(--c-ink); font-weight: 700; }
.prose ul, .prose ol { margin: 1em 0 0; padding-left: 22px; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .45em 0; }
.prose li::marker { color: var(--c-brand); }
.prose a { color: var(--c-brand-strong); text-decoration: underline; text-decoration-color: var(--c-brand-line); }
.prose a:hover { color: var(--c-brand-deep); }
.prose img {
  width: 100%;
  height: auto;
  margin: 1.4em 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-bg-soft);
}
.prose table { width: 100%; margin: 1.2em 0; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.prose th { background: var(--c-bg-soft); color: var(--c-ink); }
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--c-line); }

.project-related .section__head { margin-bottom: clamp(24px, 3vw, 36px); }

/* ссылка «Подробнее о проекте» в карточках на главной */
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-brand-strong);
  text-decoration: none;
}
.project__link svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.project__link:hover { color: var(--c-brand-deep); }
.project__link:hover svg { transform: translate(2px, -2px); }


/* ================================ АДАПТИВ =============================== */
@media (max-width: 1180px) {
  .logo__tagline { display: none; }
}

@media (max-width: 1024px) {
  .burger { display: block; }

  /* шапка на планшете и телефоне: логотип слева, кнопка меню справа */
  .header__actions { margin-left: auto; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(360px, 88vw);
    height: 100dvh;
    margin: 0;
    padding: 92px 24px 32px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform var(--t-base), visibility var(--t-base);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 17px;
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: var(--c-brand-soft); }

  .nav__contacts {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--c-line);
    gap: 14px;
  }
  .nav__contact-value { font-size: 16px; }
  .nav__cta { display: inline-flex; margin-top: 8px; }

  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__summary { position: static; }

  .about,
  .why,
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .about__media,
  .why__media { order: -1; }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service,
  .service:nth-child(4),
  .service:nth-child(5) { grid-column: span 1; }
  .service:last-child { grid-column: span 2; }

  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-cta__inner { flex-direction: column; align-items: flex-start; }

  .vacancies__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vacancies-apply__inner { grid-template-columns: minmax(0, 1fr); }
  .vacancies-cta__inner { flex-direction: column; align-items: flex-start; }

  .project-detail__content { grid-template-columns: minmax(0, 1fr); }
  .project-detail__aside { position: static; }
}

@media (max-width: 860px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
  .calc__options--grid { grid-template-columns: minmax(0, 1fr); }
  .calc__factors { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .header__inner { min-height: 72px; gap: 14px; }
  .header__actions .button { display: none; }
  .burger { margin-left: auto; }

  .hero { min-height: auto; padding-top: 72px; }
  .hero__actions .button { width: 100%; }
  .hero__facts { grid-template-columns: minmax(0, 1fr); }
  .hero__fact { display: flex; align-items: baseline; gap: 12px; }
  .hero__fact b { margin: 0; min-width: 84px; }

  .stats { grid-template-columns: minmax(0, 1fr); }

  .services { grid-template-columns: minmax(0, 1fr); }
  .service:last-child { grid-column: span 1; }

  .calc__options--cards { grid-template-columns: minmax(0, 1fr); }
  .calc__options--cards .calc-option:last-child { grid-column: span 1; }
  .calc__fields { grid-template-columns: minmax(0, 1fr); }
  .calc__fields .field--wide { grid-column: span 1; }
  .calc__chips { gap: 6px; }
  .calc__chip { padding: 7px 11px; font-size: 12.5px; }
  .calc__chip span { display: none; }
  .calc__nav { flex-wrap: wrap; }
  .calc__nav .button { flex: 1; }

  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom-inner { flex-direction: column; }

  .page-hero { padding-top: 32px; }
  .page-hero__facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .page-hero__fact { flex-direction: row; align-items: baseline; gap: 12px; }
  .page-hero__fact b { min-width: 76px; }

  .projects-toolbar__row { flex-direction: column; align-items: stretch; gap: 12px; }
  .projects-search { flex: 0 0 auto; max-width: none; }
  .projects-grid { grid-template-columns: minmax(0, 1fr); }
  .projects-cta__actions { width: 100%; }
  .projects-cta__actions .button { width: 100%; }

  .vacancies__grid { grid-template-columns: minmax(0, 1fr); }
  .vacancies-apply__grid { grid-template-columns: minmax(0, 1fr); }
  .vacancies-apply__card { padding: 20px 18px; }
  .vacancies-cta__actions { width: 100%; }
  .vacancies-cta__actions .button { width: 100%; }

  .project-facts { gap: 14px 24px; }
  .project-facts__item { max-width: none; }
  .project-detail__cover { border-radius: var(--radius-md); }
  .project-detail__cover img { aspect-ratio: 16 / 10; }
  .prose { font-size: 16px; }
  .project-detail__aside { padding: 20px; }

  .toast-host { right: 14px; left: 14px; bottom: 78px; max-width: none; }
}

@media print {
  .header, .footer, .scroll-top, .modal, .toast-host, .calc__summary { display: none !important; }
}
