*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--color-text-primary);
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-fill-accent);
  flex: 0 0 8px;
}

.kicker--inverse {
  color: var(--color-text-inverse);
}

.kicker--cta::before {
  background: var(--color-fill-cta);
}

h1,
.h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  font-weight: 800;
  margin: 0;
}

/* Эталон заголовка секции: GeoService/H1, кикер → титул --section-heading-gap */
.section-heading,
.reviews-head {
  display: grid;
  gap: var(--section-heading-gap);
}

.section-head > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--section-heading-gap);
}

.section-head h2,
.reviews-head h2,
.about-copy :is(h1, h2),
.section-heading :is(h1, h2),
.section > .container > h2 {
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  font-weight: 800;
  margin: 0;
}

.section > .container > .kicker + .section-head,
.section > .container > .kicker + h2 {
  margin-top: var(--section-heading-gap);
}

h2,
.h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  font-weight: 800;
  margin: 0;
}

h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  font-weight: 800;
  margin: 0;
}

.lead {
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 20px;
  margin: 0;
}

.section {
  padding: var(--section-pad-y);
}

.section--mint {
  background: var(--color-bg-mint);
}

.section--subtle {
  background: var(--color-bg-subtle);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--section-heading-gap);
}

@media (min-width: 1280px) {
  .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
  }

  .section-head .lead {
    text-align: left;
    max-width: 43.2ch;
  }
}

.site-header {
  background: var(--color-bg-page);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar {
  display: none;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--pad);
  background: var(--color-bg-brand);
  color: var(--gs-topbar);
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.topbar strong {
  color: var(--color-text-inverse);
  font-weight: 800;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px var(--pad);
  background: var(--color-bg-page);
  flex-wrap: wrap;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.logo img {
  height: 42px;
  width: 175px;
}

.menu {
  display: none;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.menu a {
  transition: color 0.15s ease;
}

.menu a[aria-current="page"] {
  color: var(--color-text-brand);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.phone {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  color: var(--color-text-primary);
  transition: color 0.15s ease;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: background-color 0.15s ease, transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.burger span {
  position: relative;
  width: 18px;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.burger span::before {
  top: -7px;
}

.burger span::after {
  top: 7px;
}

.burger[aria-expanded="true"] span {
  background: transparent;
}

.burger[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.burger[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.header-bar .btn-brand {
  transition: background-color 0.15s ease, filter 0.15s ease;
}

@media (hover: hover) {
  .menu a:hover {
    color: var(--color-text-brand);
  }

  .menu a[aria-current="page"]:hover {
    color: var(--color-fill-accent);
  }

  .header-bar .phone:hover {
    color: var(--color-text-brand);
  }

  .header-bar .btn-brand:hover {
    background: var(--gs-forest-600);
    filter: none;
  }

  .burger:hover span,
  .burger:hover span::before,
  .burger:hover span::after {
    background: var(--color-text-brand);
  }

  .burger[aria-expanded="true"]:hover span {
    background: transparent;
  }
}

.nav-actions .phone,
.nav-actions .btn-brand {
  display: none;
}

.menu-actions {
  display: none;
}

@media (max-width: 767px) {
  .header-bar .logo {
    order: 0;
  }

  .nav-actions {
    order: 1;
  }

  .menu {
    display: none;
    order: 2;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--color-border-default);
  }

  .menu.is-open {
    display: flex;
  }

  .menu > a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-bg-subtle);
  }

  .menu-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 0 8px;
  }

  .menu-actions .phone {
    padding: 4px 0;
  }

  .menu-actions .btn-brand {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .nav-actions .phone,
  .nav-actions .btn-brand {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg-page);
    border-bottom: 1px solid var(--color-border-default);
    padding: 8px 32px 16px;
    z-index: 30;
  }

  .menu.is-open {
    display: flex;
  }

  .menu > a {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-bg-subtle);
  }
}

@media (min-width: 1280px) {
  .site-header {
    top: -44px;
  }

  .topbar {
    display: flex;
  }

  .burger {
    display: none;
  }

  .menu {
    display: flex;
  }

  .nav-actions .phone,
  .nav-actions .btn-brand {
    display: inline-flex;
  }

  .nav-actions {
    margin-left: 0;
  }
}

.footer {
  background: var(--color-bg-brand);
  color: var(--color-text-inverse);
  padding: 32px var(--pad);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 291px;
}

.footer-brand .logo img {
  height: 44px;
  width: 183px;
}

.footer-brand p {
  margin: 0;
  font-size: 16px;
  line-height: 21px;
}

.footer-contacts h3 {
  margin: 0;
  font-size: 18px;
  line-height: 23px;
  font-weight: 700;
}

.footer-contacts a:hover {
  color: var(--color-fill-accent);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-offices {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-office {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.footer-city {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
}

.footer-city img {
  width: 14px;
  height: 19px;
}

.footer-office p {
  margin: 0;
  font-size: 16px;
  line-height: 21px;
}

.footer-mail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.footer-mail img {
  width: 16px;
  height: 11px;
}

.footer-rule {
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  margin: 0;
}

.footer-copy {
  font-size: 16px;
  line-height: 21px;
}

.promo {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gs-forest-600);
  border-radius: var(--radius-16);
  padding: 8px 16px 8px 8px;
  min-width: 220px;
  color: var(--color-text-inverse);
  transition: background-color 0.15s ease;
}

.promo:hover {
  background: var(--gs-forest-500);
}

.promo img {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

.promo strong {
  display: block;
  font-size: 19px;
}

.promo span {
  font-size: 16px;
}

@media (min-width: 768px) {
  .footer {
    padding: 32px var(--pad);
    gap: 32px;
  }

  .footer-offices {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }

  .footer-office {
    flex: 1;
    min-width: 0;
  }

  .footer-office .phone-pill {
    margin-top: auto;
  }
}

@media (min-width: 1280px) {
  .footer {
    padding: 48px var(--pad) 32px;
  }

  .footer-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 86px;
    width: min(100%, var(--container));
    margin-inline: auto;
  }

  .footer-brand {
    flex: 0 0 291px;
  }
}
