/* =========================================================
   Base & CSS variables
   ========================================================= */
:root {
  --accent:        #d93633;
  --accent-dark:   #b51a1e;
  --text-main:     #111827;
  --text-muted:    #6b7280;
  --border-subtle: rgba(17, 24, 39, 0.07);
  --radius-xl:     32px;
  --radius-pill:   999px;
  --shadow-soft:   0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-subtle: 0 8px 28px rgba(15, 23, 42, 0.07);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #f7f2f2 0, #f4f4f7 40%, #e5ecf6 100%);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
main { padding-top: 88px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: linear-gradient(90deg, rgba(255,255,255,0.94), rgba(249,250,251,0.92));
  border-bottom: 1px solid rgba(148,163,184,0.2);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; }

.logo__img {
  height: 52px;
  width: auto;
  display: block;
}

.logo--footer .logo__img {
  filter: brightness(0) invert(1);
  height: 40px;
  width: auto;
  max-width: min(280px, 100%);
}

/* ---- Nav ---- */
.nav {
  display: flex;
  align-items: center;
  position: relative;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  padding-bottom: 3px;
  font-weight: 500;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.22s ease;
}

.nav__link--active,
.nav__link:hover { color: var(--text-main); }

.nav__link--active::after,
.nav__link:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
  justify-content: center;
  border: none;
  padding: 4px 2px;
  background: transparent;
  cursor: pointer;
}

.nav__toggle span {
  height: 2px;
  background: #111827;
  border-radius: 2px;
  display: block;
  transition: width 0.2s ease;
}

.nav__toggle span:nth-child(1) { width: 22px; }
.nav__toggle span:nth-child(2) { width: 14px; }

.nav--open .nav__toggle span:nth-child(2) { width: 22px; }

/* ---- Header contacts ---- */
.header-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.header-contacts__phone {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header-contacts__cta { font-size: 12px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 32px rgba(217,54,51,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 18px 44px rgba(185,28,28,0.4);
}

.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--text-main);
  border: 1.5px solid rgba(17,24,39,0.14);
  box-shadow: none;
}

.btn--outline:hover {
  background: rgba(17,24,39,0.04);
  box-shadow: none;
  transform: none;
}

.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(148,163,184,0.5);
  color: var(--text-main);
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.8);
  box-shadow: var(--shadow-subtle);
  transform: none;
}

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 100px 0 72px; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero__content { padding-right: 8px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 11px;
  color: var(--accent-dark);
  font-weight: 700;
  margin: 0 0 14px;
}

.hero__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 46px;
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 700;
}

.hero__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 440px;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.hero-metrics__item dt {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.hero-metrics__item dd {
  margin: 5px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ---- Hero card ---- */
.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-xl);
  padding: 32px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(217,54,51,0.05) 0, transparent 60%);
  pointer-events: none;
}

.hero-card__badge {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.hero-card__photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #e5e7eb;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Портрет целиком — без обрезки лица (cover + фикс. высота ломали кадр на узких ширинах) */
.hero-card__photo img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: min(72vh, 520px);
  display: block;
  vertical-align: bottom;
}

.hero-card__photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-family: "Playfair Display", serif;
  font-size: 20px;
}

.hero-card__name {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}

.hero-card__role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 5px;
  font-weight: 500;
}

.hero-card__quote {
  margin-top: 12px;
  font-size: 12.5px;
  color: #374151;
  line-height: 1.6;
  font-style: italic;
}

/* =========================================================
   Sections — shared
   ========================================================= */
.section { padding: 64px 0; }
.section--about { padding-top: 48px; }

.section--values {
  background: linear-gradient(160deg, #ffffff 0, #f4f5fb 60%, #eaeff9 100%);
}

.section--soft { background: #f5f6fa; }

.section__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 10px;
  line-height: 1.2;
}

.section__title--left { text-align: left; }

.section__subtitle {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin: 0 0 14px;
  font-weight: 600;
}

.section__subtitle-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  text-align: center;
  line-height: 1.6;
}

.section__subtitle-text--left {
  margin-left: 0;
  text-align: left;
}

.section__header { text-align: center; margin-bottom: 40px; }

.lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
}

.list { list-style: none; padding: 0; margin: 0; }

.list--check li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.list--check li::before {
  content: "—";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
}

/* ---- About section ---- */
.about-intro {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}

.about-intro .section__title { margin-bottom: 16px; }

.about-intro p { font-size: 15px; color: var(--text-muted); line-height: 1.65; margin: 0 0 10px; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.section__col--bordered {
  background: rgba(255,255,255,0.95);
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  padding: 26px 24px 28px;
  box-shadow: var(--shadow-subtle);
}

/* ---- CTA section ---- */
.section--cta { background: #111827; color: #fff; }
.section--cta .section__title {
  color: #fff;
  text-align: left;
}
.section--cta .lead { color: rgba(249,250,251,0.75); }

.section__inner--cta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: center;
}

/* =========================================================
   Cards
   ========================================================= */
.cards-grid { display: grid; gap: 20px; }
.cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- Value card (principles) ---- */
.value-card {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 22px 20px 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.value-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(217,54,51,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
  color: var(--accent-dark);
}

.value-card h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 700;
}

.value-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---- Service card ---- */
.service-card {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  padding: 22px 20px 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(217,54,51,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
  color: var(--accent-dark);
}

.service-card h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.3;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   Forms
   ========================================================= */
.form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form--inline { justify-content: flex-end; }
.form--stacked { flex-direction: column; }

.form__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 80px;
}

.form__field label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(148,163,184,0.9);
  font-weight: 600;
}

.form__field input {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148,163,184,0.45);
  padding: 11px 16px;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  background: rgba(255,255,255,0.97);
  outline: none;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.form__field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,54,51,0.12);
}

/* Honeypot (скрыто от людей и скринридеров не трогаем — только боты) */
.form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* CTA: высота полей = кнопка */
.section--cta .form__field input,
.section--cta .form--inline .btn {
  min-height: 48px;
  box-sizing: border-box;
}

.section--cta .form--inline .btn {
  padding-top: 0;
  padding-bottom: 0;
}

/* Команда */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.team-member {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  background: rgba(255,255,255,0.95);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
}

.team-member__photo {
  border-radius: 20px;
  overflow: hidden;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member__photo img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 420px;
  display: block;
}

.team-member__name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 26px;
  margin: 0 0 6px;
  font-weight: 700;
}

.team-member__role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
  font-weight: 600;
  margin: 0 0 16px;
}

.team-member__bio {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.team-member__bio + .team-member__bio {
  margin-top: 1em;
}

.form__status {
  font-size: 13px;
  margin-top: 8px;
  color: rgba(248,250,252,0.85);
}

.form__status--error {
  color: #fca5a5;
}

.form--inline .form__status {
  flex: 1 0 100%;
  order: 10;
  margin-top: 4px;
}

.modal .form__status {
  color: var(--text-muted);
}

.modal .form__status--error {
  color: var(--accent-dark);
}

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero { padding: 100px 0 44px; }

.page-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.page-hero__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
}

.page-hero__subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

.page-404__code {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(3.5rem, 14vw, 6.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 8px;
  color: color-mix(in srgb, var(--accent) 14%, transparent);
  letter-spacing: -0.02em;
  user-select: none;
}

.page-404__actions {
  margin-top: 24px;
}

/* =========================================================
   Contacts page
   ========================================================= */
.section--contacts .section__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-list__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(17,24,39,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
}

.contact-list__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
}

.contact-list__value {
  font-size: 14px;
  margin-top: 2px;
  line-height: 1.5;
}

/* OSM Map */
.osm-map {
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  height: 360px;
}

.osm-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.osm-map__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.14s;
}

.osm-map__link:hover { color: var(--accent); }

/* contacts 2-col inner */
.section--contacts .section__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  margin-top: auto;
  background: #111827;
  color: #e5e7eb;
  padding: 48px 0 28px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(55,65,81,0.8);
}

.site-footer__col-logo { display: flex; flex-direction: column; gap: 16px; }

.site-footer__text {
  font-size: 13px;
  color: rgba(209,213,219,0.8);
  max-width: 360px;
  line-height: 1.65;
}

.site-footer__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 16px;
  margin: 0 0 12px;
  font-weight: 700;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.5;
}

.site-footer__list i {
  width: 16px;
  color: var(--accent);
  margin-right: 6px;
}

.site-footer__list a {
  color: rgba(209,213,219,0.85);
  transition: color 0.14s;
}

.site-footer__list a:hover { color: #fff; }

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  font-size: 12px;
  color: rgba(156,163,175,0.85);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.14s;
}

.site-footer__brand-link:hover { opacity: 0.85; }

/* Make raem SVG white in dark footer */
.site-footer__brand-logo svg {
  width: 70px;
  height: auto;
  display: block;
}

.site-footer__brand-logo svg .cls-1 { fill: #e5e7eb; }

/* =========================================================
   Modal
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}

.modal--open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 28px;
  padding: 28px 28px 30px;
  box-shadow: var(--shadow-soft);
}

.modal__close {
  position: absolute;
  right: 16px; top: 16px;
  border: none;
  background: rgba(17,24,39,0.06);
  color: var(--text-muted);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.modal__title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 24px;
  margin: 0 0 8px;
}

.modal__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Modal forms: более плотные поля */
.modal .form--stacked {
  gap: 6px;
}


/* =========================================================
   Responsive — 1366 px
   ========================================================= */
@media (min-width: 1366px) {
  .container { max-width: 1300px; }
  .hero { padding-top: 120px; }
  .hero__title { font-size: 52px; }
  .hero-card { max-width: 340px; }
}

/* =========================================================
   Responsive — 1920 px
   ========================================================= */
@media (min-width: 1920px) {
  .container { max-width: 1440px; }
  .hero__title { font-size: 58px; }
  .cards-grid--4 { gap: 28px; }
}

/* =========================================================
   Responsive — ≤ 1024 px
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 32px;
  }

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

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

  .section__inner--cta {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   Responsive — ≤ 768 px
   ========================================================= */
@media (max-width: 768px) {
  main { padding-top: 76px; }

  .nav__toggle { display: inline-flex; }

  .nav__list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px;
    background: rgba(248,250,252,0.98);
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.3);
    box-shadow: var(--shadow-soft);
    min-width: 180px;
    transform-origin: top right;
    transform: scale(0.95) translateY(-4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .nav--open .nav__list {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
  }

  .header-contacts { display: none; }

  .hero {
    padding: 76px 0 28px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
  }

  .hero__title { font-size: 34px; }

  .hero__subtitle {
    max-width: none;
  }

  .hero__actions {
    margin-top: 20px;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .hero-metrics__item {
    text-align: center;
    min-width: 0;
  }

  .hero-metrics__item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: min(100%, 300px);
  }

  .hero-metrics__item dt {
    font-size: 24px;
  }

  .hero-metrics__item dd {
    margin-top: 6px;
    line-height: 1.35;
  }

  .hero__visual {
    justify-content: flex-start;
    margin-top: 4px;
  }

  .hero-card { max-width: 100%; }

  .about-cards { grid-template-columns: 1fr; }

  .section__inner--cta { grid-template-columns: 1fr; }

  .section--cta .form--inline {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    justify-content: flex-start;
  }

  .section--cta .form--inline .form__field {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .section--cta .form--inline .btn {
    width: 100%;
  }

  .cards-grid--4,
  .cards-grid--3 { grid-template-columns: 1fr; }

  .site-footer__top { grid-template-columns: 1fr; }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .section--contacts .section__inner--split { grid-template-columns: 1fr; }
}

/* =========================================================
   Responsive — ≤ 480 px (320–480)
   ========================================================= */
@media (max-width: 480px) {
  .site-header__inner { padding-inline: 16px; }

  .hero { padding: 80px 0 40px; }
  .hero__title { font-size: 28px; }
  .hero__subtitle { font-size: 14px; }

  .section { padding: 40px 0; }
  .section__title { font-size: 24px; }
  .page-hero__title { font-size: 26px; }
  .page-hero { padding-top: 90px; }

  .btn { padding: 11px 22px; font-size: 11px; }

  .cards-grid { gap: 14px; }

  .osm-map { height: 260px; }
}

/* Узкие экраны: CTA-форма столбиком, полная ширина */
@media (max-width: 480px) {
  .section--cta .section__inner--cta {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section--cta .form--inline {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    justify-content: flex-start;
  }

  .section--cta .form--inline .form__field {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .section--cta .form--inline .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .team-member {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }
}
