/* =====================================================================
   v4 Home — extracted from testgarantae/v4/index.html
   ===================================================================== */

:root {
  --gold: #bf9c33;
  --gold-dark: #a17e15;
  --dark: #252525;
  --gray: #3c3c3c;
  --muted: #87888b;
  --light: #9ea8b2;
  --bg-light: #f5f5f5;
  --white: #fff;
  --shadow: 0 2px 16px rgba(158, 168, 178, 0.25);
  --container: 1712px;
  --pad: 104px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.page-home {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body.page-home img { max-width: 100%; display: block; }
body.page-home a { color: inherit; text-decoration: none; }
body.page-home button { font-family: inherit; cursor: pointer; border: none; background: none; }

body.page-home .container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4,
body.page-home p { margin: 0; }

body.page-home h2.section-title {
  font-size: 50px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 60px;
}

/* ---------- Header (v4) ---------- */
.v4-top-bar {
  background: var(--dark);
  color: var(--white);
  padding-top: 30px;
}
.v4-top-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.v4-top-bar__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.v4-top-bar__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}
.v4-top-bar__contacts { display: flex; gap: 32px; flex-wrap: wrap; }
.v4-top-bar__langs { display: flex; align-items: center; }

/* ── Language switcher ── */
.lang-sw { position: relative; }

.lang-sw__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  color: rgba(255,255,255,0.65);
  padding: 6px 10px 6px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  white-space: nowrap;
}
.lang-sw__btn:hover,
.lang-sw.is-open .lang-sw__btn {
  border-color: rgba(255,255,255,0.38);
  color: #fff;
  background: rgba(255,255,255,0.07);
}
.lang-sw__globe { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.75; }
.lang-sw:hover .lang-sw__globe,
.lang-sw.is-open .lang-sw__globe { opacity: 1; }
.lang-sw__flag { font-size: 15px; line-height: 1; display: inline-block; }
.lang-sw__btn .lang-sw__code { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.lang-sw__caret {
  width: 10px; height: 6px; flex-shrink: 0;
  transition: transform 0.2s ease;
}
.lang-sw.is-open .lang-sw__caret { transform: rotate(180deg); }

/* Dropdown panel */
.lang-sw__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #2e2e2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.lang-sw.is-open .lang-sw__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Each language option */
.lang-sw__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.13s, color 0.13s;
  position: relative;
}
.lang-sw__opt + .lang-sw__opt {
  border-top: 1px solid rgba(255,255,255,0.06);
}
.lang-sw__opt:hover { background: rgba(255,255,255,0.07); color: #fff; }
.lang-sw__opt--active { color: #fff; background: rgba(191,156,51,0.1); }
.lang-sw__opt--active::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 2px;
  background: var(--gold, #bf9c33);
  border-radius: 2px;
}
.lang-sw__opt .lang-sw__flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
.lang-sw__details { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.lang-sw__opt .lang-sw__code { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.3; }
.lang-sw__name { font-size: 11px; color: rgba(255,255,255,0.4); line-height: 1.3; margin-top: 1px; }
.lang-sw__opt--active .lang-sw__name { color: rgba(255,255,255,0.6); }
.lang-sw__check { width: 12px; height: 10px; color: var(--gold, #bf9c33); flex-shrink: 0; }

.v4-header-main {
  background: var(--dark);
  color: var(--white);
  padding: 20px 0 30px;
  border-top: 0.5px solid rgba(255,255,255,0.3);
  margin-top: 20px;
}
.v4-header-main__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
}
.v4-header-main__logo { width: 262px; height: auto; flex-shrink: 0; }
.v4-nav { display: flex; gap: 24px; align-items: center; flex-wrap: nowrap; flex: 1; justify-content: center; }
.v4-nav__item { position: relative; display: flex; align-items: center; }
.v4-nav__item--highlight > a { color: var(--gold); font-weight: 600; }
.v4-nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  transition: color .15s;
  white-space: nowrap;
}
.v4-nav a:hover, .v4-nav a.active { color: var(--gold); }
.v4-nav .caret { width: 11px; height: 11px; transition: transform .15s; }
.v4-nav__item--has-dropdown:hover .caret { transform: rotate(180deg); }

/* bridge the gap between nav item and dropdown so hover state isn't lost */
.v4-nav__item--has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}

/* dropdown panel */
.v4-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: #1c1c1e;
  display: none;
  flex-direction: column;
  min-width: 230px;
  padding: 6px 0;
  border-top: 2px solid var(--gold);
  box-shadow: 0 10px 32px rgba(0,0,0,0.5);
  z-index: 200;
}
.v4-nav__item--has-dropdown:hover .v4-dropdown { display: flex; }
.v4-dropdown a {
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  gap: 0;
}
.v4-dropdown a:hover { color: var(--gold); background: rgba(255,255,255,0.05); }

/* burger button */
.v4-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px 8px;
  border-radius: 8px;
  background: transparent;
}
.v4-burger span {
  display: block;
  width: 28px;
  height: 2px;
  background: #fff;
  transition: transform .2s, opacity .15s;
}
.v4-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.v4-burger.is-open span:nth-child(2) { opacity: 0; }
.v4-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* CTA в хедере — компактный, работает на всех страницах (не зависит от body.page-home) */
.v4-header-main__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  background: var(--white);
  color: var(--dark);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .15s;
}
.v4-header-main__cta:hover { opacity: 0.85; }

/* ---------- Buttons ---------- */
body.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 32px;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 500;
  transition: opacity .15s, transform .15s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
body.page-home .btn:hover { opacity: 0.9; transform: translateY(-1px); }
body.page-home .btn--primary { background: var(--gold); color: var(--white); }
body.page-home .btn--ghost-light { background: var(--white); color: var(--dark); padding: 20px 40px; }
body.page-home .btn--ghost-dark { border-color: rgba(60,60,60,0.3); color: var(--dark); background: transparent; }
body.page-home .btn--ghost-on-dark { border-color: rgba(255,255,255,0.3); color: var(--white); background: transparent; }
body.page-home .btn--sm { padding: 14px 24px; font-size: 16px; }
body.page-home .btn--lg { padding: 24px 36px; min-width: 280px; }

body.page-home .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 500;
  transition: gap .15s;
}
body.page-home .link-arrow:hover { gap: 12px; }
body.page-home .link-arrow svg { flex-shrink: 0; }

/* ---------- Hero ---------- */
.v4-hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}
.v4-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.v4-hero__title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 32px;
}
.v4-hero__title-gold { color: var(--gold); }
.v4-hero__lead {
  font-size: 22px;
  margin-bottom: 40px;
  max-width: 640px;
}
.v4-hero__cta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; }
.v4-hero__map { width: 100%; height: auto; border-radius: 16px; }

/* ---------- About ---------- */
.v4-about { padding: 100px 0; overflow: hidden; }
.v4-about__head {
  display: grid;
  grid-template-columns: 544px 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.v4-about__title {
  font-size: 50px;
  font-weight: 500;
  line-height: 1.1;
}
.v4-about__blocks { display: flex; flex-direction: column; gap: 40px; }
.v4-about__block-title {
  font-size: 28px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 24px;
}
.v4-about__block p { font-size: 22px; line-height: 1.45; }
.v4-about__block ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 22px;
}
.v4-about__block li { margin-bottom: 6px; }
.v4-about__highlight { color: var(--gold); }

.v4-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 60px 0;
  margin-bottom: 60px;
}
.v4-stats__item {
  text-align: center;
  padding: 0 32px;
  border-right: 0.5px solid rgba(60,60,60,0.3);
}
.v4-stats__item:last-child { border-right: none; }
.v4-stats__value {
  font-size: 50px;
  font-weight: 500;
  margin-bottom: 20px;
}
.v4-stats__plus { color: var(--light); }
.v4-stats__label { font-size: 22px; color: var(--dark); }

.v4-about__image {
  width: 100%;
  max-width: 1128px;
  margin: 0 auto;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* ---------- Services ---------- */
.v4-services {
  background: var(--dark);
  color: var(--white);
  padding: 100px 0;
  overflow: hidden;
}
.v4-services__title { color: var(--white); }
.v4-services__tabs {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.v4-services__tab {
  font-size: 22px;
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.v4-services__tab.active,
.v4-services__tab:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.v4-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.v4-services__grid[hidden] { display: none; }
.v4-service-card {
  background: var(--white);
  color: var(--dark);
  border-radius: 16px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 438px;
  transition: transform .2s, box-shadow .2s;
}
.v4-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.v4-service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.v4-service-card__body { display: flex; flex-direction: column; gap: 24px; flex-grow: 1; }
.v4-service-card__title { font-size: 28px; font-weight: 500; }
.v4-service-card__text { font-size: 18px; flex-grow: 1; }

/* ---------- Path ---------- */
.v4-path { padding: 100px 0; overflow: hidden; }
.v4-path__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 40px;
}
.v4-path__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.v4-path__num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 500;
}
.v4-path__card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  text-align: center;
  flex-grow: 1;
  width: 100%;
}
.v4-path__card--accent {
  background: linear-gradient(136deg, var(--gold-dark), var(--gold));
  color: #fff;
}
.v4-path__card-title { font-size: 24px; font-weight: 500; margin-bottom: 16px; }
.v4-path__card-text { font-size: 16px; }
.v4-path__cta { display: flex; justify-content: center; margin-top: 60px; }

/* ---------- Calculator ---------- */
.v4-calc {
  max-width: var(--container);
  margin: 80px auto;
  padding: 60px;
  background: linear-gradient(135deg, var(--gray), var(--dark));
  color: var(--white);
  border-radius: 16px;
}
.v4-calc__head { text-align: center; margin-bottom: 40px; }
.v4-calc__head h2 { font-size: 50px; font-weight: 500; margin-bottom: 16px; }
.v4-calc__head p { font-size: 18px; max-width: 700px; margin: 0 auto; }
.v4-calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.v4-calc__field { display: flex; flex-direction: column; gap: 12px; }
.v4-calc__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}
.v4-calc__input,
.v4-calc__select {
  height: 60px;
  padding: 10px 24px;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--dark);
  font-size: 18px;
  border: none;
  width: 100%;
  font-family: inherit;
}
.v4-calc__select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path d='M4.17 7.08L10 12.92l5.83-5.84' stroke='%23252525' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); background-repeat: no-repeat; background-position: right 24px center; padding-right: 56px; }
.v4-calc__actions { display: flex; gap: 16px; justify-content: center; }
.v4-calc__actions .btn { border-radius: 10px; padding: 18px 40px; }
.v4-calc__note {
  font-size: 14px;
  max-width: 800px;
  margin: 24px auto 0;
  opacity: 0.7;
  text-align: center;
}

/* ---------- Team ---------- */
.v4-team { padding: 100px 0; overflow: hidden; }
.v4-team__lead {
  text-align: center;
  font-size: 22px;
  max-width: 900px;
  margin: 0 auto 60px;
}
.v4-team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.v4-team-card {
  display: flex;
  gap: 24px;
  border: 0.5px solid rgba(60,60,60,0.3);
  border-radius: 16px;
  overflow: hidden;
  align-items: stretch;
}
.v4-team-card__img {
  width: 45%;
  max-width: 252px;
  flex-shrink: 0;
  object-fit: cover;
}
.v4-team-card__body {
  padding: 24px 24px 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  min-width: 0;
}
.v4-team-card__name { font-size: 26px; font-weight: 500; margin-bottom: 12px; word-break: break-word; }
.v4-team-card__role { font-size: 17px; margin-bottom: 12px; word-break: break-word; }
.v4-team-card__email {
  font-size: 16px;
  color: var(--gray);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.v4-team__more { display: flex; justify-content: flex-end; }

/* ---------- Lead form ---------- */
.v4-lead {
  max-width: var(--container);
  margin: 0 auto 100px;
  padding: 0 32px;
}
.v4-lead__inner {
  background: linear-gradient(135deg, var(--gray), var(--dark));
  color: var(--white);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.v4-lead__photo-wrap { position: relative; }
.v4-lead__photo { width: 100%; height: auto; border-radius: 16px; object-fit: cover; }
.v4-lead__quote {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  background: var(--white);
  color: var(--dark);
  padding: 24px;
  border-radius: 10px;
}
.v4-lead__quote-text { color: var(--gold); font-weight: 500; margin-bottom: 8px; }
.v4-lead__quote-author { font-size: 14px; }
.v4-lead__form { display: flex; flex-direction: column; gap: 16px; }
.v4-lead__form h2 { font-size: 44px; font-weight: 500; margin-bottom: 16px; }
.v4-lead__form .v4-lead__sub { font-size: 18px; margin-bottom: 16px; }
.v4-lead__form input {
  height: 60px;
  padding: 10px 24px;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--dark);
  font-size: 18px;
  border: none;
  font-family: inherit;
  width: 100%;
}
.v4-lead__consent {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 14px;
}
.v4-lead__consent input { width: 22px; height: 22px; flex-shrink: 0; margin: 0; }
.v4-lead__consent a { color: var(--gold); text-decoration: underline; }

/* ---------- Partners ---------- */
.v4-partners { padding: 100px 0; overflow: hidden; }
.v4-partners__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}
.v4-partner-logo {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 32px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.v4-partner-logo img,
.v4-partner-logo svg { max-width: 100%; max-height: 100%; }

/* ---------- Reviews ---------- */
.v4-reviews { padding: 100px 0; overflow: hidden; }
.v4-reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.v4-review {
  border: 0.5px solid rgba(60,60,60,0.3);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 290px;
}
.v4-review__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.v4-review__user { display: flex; align-items: center; gap: 16px; }
.v4-review__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  flex-shrink: 0;
}
.v4-review__avatar--blue { background: #4285f4; }
.v4-review__avatar--green { background: #34a853; }
.v4-review__avatar--red { background: #ea4335; }
.v4-review__avatar--yellow { background: #fbbc05; }
.v4-review__name { font-size: 18px; }
.v4-review__stars { color: #ff9800; font-size: 18px; }
.v4-review__date { font-size: 14px; color: var(--muted); }
.v4-review__text { font-size: 16px; flex-grow: 1; line-height: 1.5; }
.v4-review__more { font-size: 14px; color: var(--gray); }

/* ---------- Publications ---------- */
.v4-publications { padding: 100px 0; overflow: hidden; }
.v4-publications__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.v4-publication-featured img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 24px;
}
.v4-publication-featured h3 {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 16px;
}
.v4-publications__list { display: flex; flex-direction: column; gap: 24px; }
.v4-publication-card {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.v4-publication-card img {
  width: 240px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
}
.v4-publication-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.v4-publication-card h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}
.v4-publication-meta {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--muted);
}
.v4-publication-meta span { display: inline-flex; align-items: center; gap: 8px; }
.v4-publications__cta { display: flex; justify-content: flex-end; margin-top: 32px; }

/* ---------- Videos ---------- */
.v4-videos { padding: 100px 0; overflow: hidden; }
.v4-videos__row {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
}
.v4-video-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.v4-video-arrow--prev { background: var(--muted); color: #fff; }
.v4-video-arrow--next { background: var(--gold); color: #fff; }
.v4-videos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  flex-grow: 1;
}
.v4-video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
}
.v4-video-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.3s ease;
}
.v4-video-thumb:hover img,
.v4-video-thumb:focus img { transform: scale(1.04); }
.v4-video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  pointer-events: none;
}
.v4-video-thumb:hover .v4-video-thumb__play,
.v4-video-thumb:focus .v4-video-thumb__play { background: var(--gold); }
.v4-video-thumb__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 12px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
  text-align: left;
  border-radius: 0 0 16px 16px;
}
.v4-videos__actions {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
  flex-wrap: wrap;
}

/* Video modal */
body.page-home .modal--video .modal__panel {
  max-width: 900px;
  width: 100%;
  padding: 48px 24px 24px;
  background: #111;
}
body.page-home .modal--video .modal__close { color: #fff; }
body.page-home .modal--video .modal__close:hover { background: rgba(255,255,255,0.1); }
.v4-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
}
.v4-video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Footer (v4) ---------- */
.v4-footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 32px;
}
.v4-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.v4-footer__logo { width: 320px; height: auto; margin-bottom: 32px; }
.v4-socials { display: flex; gap: 16px; margin-bottom: 32px; }
.v4-socials a {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
}
.v4-socials a:hover { opacity: 0.85; }
.v4-footer h3 { font-size: 24px; font-weight: 500; margin-bottom: 24px; }
.v4-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.v4-footer a:hover { color: var(--gold); }
.v4-footer__cta-text { font-size: 16px; margin-bottom: 24px; max-width: 360px; }
.v4-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}
.v4-footer__bottom span { color: rgba(255,255,255,0.4); }

/* ---------- Modals ---------- */
body.page-home .modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
  animation: v4ModalFade .2s ease-out;
}
body.page-home .modal.is-open { display: flex; }
@keyframes v4ModalFade { from { opacity: 0; } to { opacity: 1; } }
body.page-home .modal__panel {
  background: #fff;
  color: var(--dark);
  border-radius: 16px;
  padding: 60px;
  width: 100%;
  max-width: 583px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 60px rgba(0,0,0,0.3);
  animation: v4ModalSlide .25s ease-out;
}
@keyframes v4ModalSlide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
body.page-home .modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  background: transparent;
  border: none;
  border-radius: 8px;
  transition: background .15s;
}
body.page-home .modal__close:hover { background: rgba(0,0,0,0.05); }
body.page-home .modal__title {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1.2;
}
body.page-home .modal__sub {
  text-align: center;
  font-size: 18px;
  color: var(--dark);
  margin: 0 0 32px;
}
body.page-home .modal__form { display: flex; flex-direction: column; gap: 16px; }
body.page-home .modal__form input {
  height: 60px;
  padding: 10px 24px;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--dark);
  font-size: 18px;
  border: none;
  font-family: inherit;
  width: 100%;
}
body.page-home .modal__form input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
body.page-home .modal__consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--dark);
}
body.page-home .modal__consent input { width: 22px; height: 22px; flex-shrink: 0; margin: 0; }
body.page-home .modal__consent a { color: var(--gold); text-decoration: underline; }
body.page-home .modal__form .btn { border-radius: 10px; padding: 18px 32px; }


body.page-home .modal--info .modal__panel { padding: 48px 40px; }
body.page-home .modal__text { font-size: 16px; line-height: 1.6; color: var(--dark); }
body.page-home .modal__text p { margin: 0 0 16px; }
body.page-home .modal__text p:last-child { margin: 0; }
body.page-home .modal__badge {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--dark);
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 2px;
}

body.page-home.modal-open { overflow: hidden; }

/* tooltip "i" */
body.page-home .tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
body.page-home .tooltip__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-style: italic;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex-shrink: 0;
}
body.page-home .tooltip__bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--dark);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  width: 320px;
  max-width: 80vw;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  visibility: hidden;
  opacity: 0;
  transition: opacity .15s, visibility .15s;
  z-index: 60;
  pointer-events: none;
}
body.page-home .tooltip__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}
body.page-home .tooltip:hover .tooltip__bubble,
body.page-home .tooltip:focus-within .tooltip__bubble,
body.page-home .tooltip.is-open .tooltip__bubble { visibility: visible; opacity: 1; }

body.page-home .v4-calc__disclaimer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  margin-top: 12px;
}

/* ---------- WhatsApp FAB ---------- */

/* ====================================================================
   Responsive
   ==================================================================== */

@media (max-width: 1599px) {
  :root { --container: 1280px; --pad: 64px; }
  .v4-hero { padding: 80px 0 60px; }
  .v4-hero__title { font-size: 56px; }
  body.page-home h2.section-title { font-size: 44px; }
  .v4-service-card { padding: 36px; min-height: 380px; }
  .v4-service-card__title { font-size: 24px; }
  .v4-partners__grid { gap: 24px; }
  .v4-partner-logo { height: 140px; padding: 24px; border-radius: 24px; }
  .v4-footer__logo { width: 220px; }
  .v4-team__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .v4-team-card__img { max-width: 220px; }
  .v4-team-card__name { font-size: 24px; }

  /* компрессия хедера при 1281–1599px */
  .v4-header-main__inner { gap: 20px; }
  .v4-header-main__logo { width: 200px; }
  .v4-nav { gap: 14px; }
  .v4-nav a { font-size: 13px; }
}

/* бургер включается при ≤1280px — 8 длинных пунктов меню не влезают в меньший контейнер */
@media (max-width: 1280px) {
  .v4-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    border-top: 0.5px solid rgba(255,255,255,0.15);
    z-index: 50;
    max-height: 80vh;
    overflow-y: auto;
    flex: none;
    justify-content: flex-start;
  }
  .v4-nav.is-open { display: flex; }
  .v4-nav__item { flex-direction: column; align-items: flex-start; width: 100%; }
  .v4-nav a { padding: 14px 0; border-bottom: 0.5px solid rgba(255,255,255,0.1); font-size: 16px; width: 100%; }
  .v4-nav__item--highlight > a { border-bottom-color: rgba(212,175,55,0.3); }
  .v4-dropdown {
    position: static;
    transform: none;
    display: none;
    background: transparent;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--gold);
    padding: 0 0 8px 16px;
    width: 100%;
    min-width: unset;
  }
  .v4-nav__item--has-dropdown.is-open .v4-dropdown { display: flex; }
  .v4-dropdown a { padding: 10px 0; font-size: 15px; border-bottom: 0.5px solid rgba(255,255,255,0.06); }
  .v4-dropdown a:last-child { border-bottom: none; }
  .v4-header-main { position: relative; }
  .v4-header-main__cta { display: none; }
  .v4-burger { display: flex; }
}

/* адрес не влезает в топ-баре ниже ~1060px — скрываем с запасом от 1100px */
@media (max-width: 1100px) {
  .v4-top-bar__row > .v4-top-bar__contact:first-child { display: none; }
  .v4-top-bar__contacts { gap: 24px; }
  .v4-top-bar__row { justify-content: flex-start; gap: 24px; }
}

@media (max-width: 1024px) {
  .v4-footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .v4-footer ul { gap: 20px; }
  .v4-socials { margin-bottom: 40px; }
  .v4-footer__top > div:first-child .btn { display: block; width: 100%; text-align: center; box-sizing: border-box; }
  .v4-footer__bottom { gap: 10px 28px; }
}

@media (max-width: 990px) {
  :root { --container: 100%; --pad: 32px; }

  body.page-home .container,
  .v4-top-bar__inner,
  .v4-header-main__inner,
  .v4-hero__inner,
  .v4-calc,
  .v4-lead { padding-left: 24px; padding-right: 24px; }

  body.page-home .tooltip__bubble { left: auto; right: 0; transform: none; }
  body.page-home .tooltip__bubble::after { left: auto; right: 14px; transform: none; }

  body.page-home h2.section-title { font-size: 40px; margin-bottom: 48px; }
  .v4-hero__title { font-size: 48px; }
  .v4-hero__lead { font-size: 20px; }
  .v4-about__title { font-size: 40px; }
  .v4-about__head { grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 60px; }
  .v4-about__block-title { font-size: 24px; margin-bottom: 16px; }
  .v4-about__block p,
  .v4-about__block ul { font-size: 18px; }

  .v4-top-bar__row > .v4-top-bar__contact:first-child { display: none; }
  .v4-top-bar__contacts { gap: 24px; }
  .v4-top-bar__row { justify-content: flex-start; gap: 24px; }

  .v4-header-main__inner { gap: 16px; }
  .v4-header-main__logo { width: 200px; }
  .v4-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
    border-top: 0.5px solid rgba(255,255,255,0.15);
    z-index: 50;
    max-height: 80vh;
    overflow-y: auto;
  }
  .v4-nav.is-open { display: flex; }
  .v4-nav__item { flex-direction: column; align-items: flex-start; width: 100%; }
  .v4-nav a { padding: 14px 0; border-bottom: 0.5px solid rgba(255,255,255,0.1); font-size: 16px; width: 100%; }
  .v4-nav__item--highlight > a { border-bottom-color: rgba(212,175,55,0.3); }
  /* mobile dropdown */
  .v4-dropdown {
    position: static;
    transform: none;
    display: none;
    background: transparent;
    box-shadow: none;
    border-top: none;
    border-left: 2px solid var(--gold);
    padding: 0 0 8px 16px;
    width: 100%;
    min-width: unset;
  }
  .v4-nav__item--has-dropdown.is-open .v4-dropdown { display: flex; }
  .v4-dropdown a { padding: 10px 0; font-size: 15px; border-bottom: 0.5px solid rgba(255,255,255,0.06); }
  .v4-dropdown a:last-child { border-bottom: none; }
  .v4-header-main { position: relative; }
  .v4-header-main__cta { display: none; }
  .v4-burger { display: flex; }

  .v4-stats { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .v4-stats__item { border-right: 0.5px solid rgba(60,60,60,0.3); }
  .v4-stats__item:nth-child(3n) { border-right: none; }

  .v4-services__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .v4-service-card { padding: 32px; min-height: 360px; }

  .v4-path__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }

  .v4-team__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .v4-team-card__img { width: 200px; }

  .v4-lead__inner { padding: 40px; gap: 32px; }
  .v4-lead__form h2 { font-size: 36px; }

  .v4-partners__grid { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .v4-partner-logo { height: 130px; padding: 20px; border-radius: 24px; }

  .v4-reviews__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .v4-videos__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .v4-video-thumb img { height: 180px; }

  .v4-publications { padding: 60px 0; }
  .v4-publications__grid { grid-template-columns: 1fr; gap: 40px; }
  .v4-publication-featured img { height: 400px; }
  .v4-publication-featured h3 { font-size: 30px; }
  .v4-publications__list { gap: 28px; }
  .v4-publication-card { display: grid; grid-template-columns: 2fr 3fr; gap: 20px; align-items: start; }
  .v4-publication-card img { width: 100%; height: 140px; border-radius: 12px; }
  .v4-publication-card h3 { font-size: 18px; line-height: 1.5; }
  .v4-publication-meta { gap: 16px; flex-wrap: wrap; }
  .v4-publications__cta { justify-content: center; }

  .v4-footer__top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .v4-footer__logo { width: 180px; }
  .v4-footer h3 { font-size: 20px; margin-bottom: 16px; }
}

@media (max-width: 900px) {
  .v4-team__grid { grid-template-columns: 1fr; gap: 20px; }
  .v4-team-card { align-items: center; }
  .v4-team-card__img { width: 220px; min-width: 220px; height: auto; }
  .v4-team-card__body { padding: 20px 24px 20px 16px; }
  .v4-team-card__name { font-size: 22px; word-break: normal; overflow-wrap: normal; }
  .v4-team-card__role { font-size: 15px; margin-bottom: 20px; }
  .v4-team-card__email { line-height: 1.6; }
  .v4-team__more { justify-content: center; }
}

@media (max-width: 850px) {
  .v4-hero__title { font-size: 42px; }
  .v4-hero__lead { font-size: 18px; }

  .v4-stats { grid-template-columns: repeat(2, 1fr); }
  .v4-stats__item { border-right: 0.5px solid rgba(60,60,60,0.3); }
  .v4-stats__item:nth-child(2n) { border-right: none; }
  .v4-stats__item:last-child { border-right: none; }
}

@media (max-width: 767px) {
  :root { --pad: 24px; }
  body.page-home h2.section-title { font-size: 32px; margin-bottom: 36px; }

  .v4-hero { padding: 32px 0 60px; }
  .v4-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .v4-hero__inner > div { order: 2; }
  .v4-hero__map { order: 1; max-width: 480px; margin: 0 auto; }
  .v4-hero__title { font-size: 36px; }
  .v4-hero__lead { font-size: 17px; }
  .v4-hero__cta { justify-content: center; }
  .v4-hero__cta .btn--lg { min-width: 0; padding: 18px 28px; }

  .v4-about { padding: 60px 0; }
  .v4-about__head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; }
  .v4-about__title { font-size: 32px; }

  .v4-stats { grid-template-columns: 1fr; padding: 40px 0; row-gap: 32px; margin-bottom: 40px; }
  .v4-stats__item { border-right: none; padding: 0; }
  .v4-stats__value { font-size: 48px; margin-bottom: 8px; }
  .v4-stats__label { font-size: 18px; }

  .v4-services { padding: 60px 0; }
  .v4-services__tabs {
    gap: 32px;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .v4-services__tab { font-size: 18px; white-space: nowrap; flex-shrink: 0; }
  .v4-services__grid { grid-template-columns: 1fr; gap: 16px; }
  .v4-service-card { min-height: 0; padding: 28px; }
  .v4-service-card__title { font-size: 22px; }

  .v4-path { padding: 60px 0; }
  .v4-path__grid { grid-template-columns: 1fr; gap: 16px; }
  .v4-path__step { gap: 12px; }
  .v4-path__card { padding: 24px; }

  .v4-calc { margin: 40px 16px; padding: 32px 24px; }
  .v4-calc__head h2 { font-size: 32px; }
  .v4-calc__grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }

  .v4-team { padding: 60px 0; }
  .v4-team__lead { font-size: 18px; margin-bottom: 32px; }
  .v4-team__grid { grid-template-columns: 1fr; gap: 16px; }
  .v4-team-card__img { width: 160px; height: auto; }
  .v4-team-card__body { padding: 20px 20px 20px 0; }
  .v4-team-card__name { font-size: 22px; }
  .v4-team-card__role { font-size: 15px; }

  .v4-lead { padding: 0 16px; margin-bottom: 60px; }
  .v4-lead__inner { grid-template-columns: 1fr; padding: 32px 24px; gap: 28px; }
  .v4-lead__photo-wrap { order: 2; }
  .v4-lead__form { order: 1; }
  .v4-lead__form h2 { font-size: 28px; }
  .v4-lead__form .v4-lead__sub { font-size: 16px; }

  .v4-partners { padding: 60px 0; }
  .v4-partners__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .v4-partner-logo { height: 110px; padding: 16px; border-radius: 20px; }

  .v4-reviews { padding: 60px 0; }
  .v4-reviews__grid { grid-template-columns: 1fr; gap: 16px; }
  .v4-review { min-height: 0; padding: 24px; }

  .v4-publications { padding: 60px 0; }
  .v4-publications__grid { grid-template-columns: 1fr; gap: 32px; }
  .v4-publication-featured img { height: 280px; }
  .v4-publication-featured h3 { font-size: 24px; }
  .v4-publication-card { display: flex; flex-direction: column; gap: 16px; }
  .v4-publication-card img { width: 100%; height: 200px; border-radius: 12px; }
  .v4-publication-card h3 { font-size: 18px; line-height: 1.5; }

  .v4-videos { padding: 60px 0; }
  .v4-videos__row { flex-direction: column; gap: 16px; }
  .v4-videos__grid { grid-template-columns: 1fr; gap: 16px; width: 100%; }
  .v4-video-thumb img { height: 220px; }
  .v4-video-arrow { display: none; }
  body.page-home .modal--video .modal__panel { padding: 40px 16px 16px; }

  .v4-footer { padding: 48px 0 24px; }
  .v4-footer__top { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
  .v4-footer__logo { width: 160px; margin-bottom: 24px; }
  .v4-footer__cta-text { max-width: none; }
}

@media (max-width: 575px) {
  body.page-home .container,
  .v4-top-bar__inner,
  .v4-header-main__inner,
  .v4-hero__inner,
  .v4-calc,
  .v4-lead { padding-left: 16px; padding-right: 16px; }

  .v4-top-bar { padding-top: 16px; }
  .v4-top-bar__row { gap: 12px; row-gap: 8px; }
  .v4-top-bar__contact { font-size: 14px; }
  .v4-top-bar__contacts { gap: 16px; flex: 1 1 auto; }

  .v4-header-main { padding: 16px 0 20px; margin-top: 12px; }
  .v4-header-main__inner { padding-top: 12px; gap: 12px; }
  .v4-header-main__logo { width: 160px; }

  body.page-home h2.section-title { font-size: 26px; margin-bottom: 28px; }
  .v4-hero__title { font-size: 28px; }
  .v4-hero__lead { font-size: 16px; margin-bottom: 28px; }
  .v4-about__title { font-size: 26px; }
  .v4-stats__value { font-size: 40px; }
  .v4-calc__head h2 { font-size: 26px; }
  .v4-lead__form h2 { font-size: 24px; }

  .v4-partners__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .v4-partner-logo { height: 96px; padding: 12px; }

  .v4-team-card { flex-direction: column; }
  .v4-team-card__img { width: 100%; height: 240px; }
  .v4-team-card__body { padding: 20px; }

  .v4-publication-card { flex-direction: column; }
  .v4-publication-card img { width: 100%; height: 200px; }

  .v4-video-thumb img { height: 200px; }

  .v4-calc { padding: 24px 16px; }
  .v4-lead__inner { padding: 24px 16px; }
  .v4-service-card { padding: 24px; }
  .v4-service-card__title { font-size: 20px; }


  .v4-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .v4-footer__bottom { flex-direction: column; align-items: center; gap: 8px; }
}

@media (max-width: 767px) {
  body.page-home .modal__panel { padding: 40px 20px; }
  body.page-home .modal__title { font-size: 24px; }
  body.page-home .modal__sub { font-size: 15px; }
  body.page-home .modal__close { top: 12px; right: 12px; }
  body.page-home .tooltip__bubble {
    width: 260px;
    left: auto;
    right: 0;
    transform: none;
  }
  body.page-home .tooltip__bubble::after {
    left: auto;
    right: 14px;
    transform: none;
  }
}
