:root {
  --brand: #0e6b5e;
  --brand-deep: #0a4f45;
  --brand-soft: #e2efec;
  --text: #15252a;
  --text-secondary: #46555b;
  --line: #e5e7e2;
  --page: #f5f6f3;
  --white: #ffffff;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: "Inter", Arial, sans-serif;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 40, 40, 0.06);
  backdrop-filter: blur(12px);
}

.header-container {
  width: 100%;
  max-width: 1320px;
  height: 100%;
  margin-inline: auto;
  padding-inline: 32px;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  min-width: 198px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  box-shadow: 0 7px 16px rgba(14, 107, 94, 0.13);
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand-tagline {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.nav-link,
.nav-dropdown > summary {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.nav-dropdown > summary {
  gap: 8px;
}

.nav-dropdown > summary::-webkit-details-marker {
  display: none;
}

.nav-link::after,
.nav-dropdown > summary::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-dropdown[open] > summary::after,
.nav-dropdown > summary:hover::after,
.nav-dropdown > summary:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-chevron {
  width: 13px;
  height: 8px;
  transition: transform 160ms ease;
}

.nav-dropdown[open] .nav-chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: -18px;
  z-index: 5;
  display: grid;
  min-width: 218px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(21, 37, 42, 0.12);
  list-style: none;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 18px;
}

.header-phone {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: var(--brand);
}

.header-cta,
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 10px;
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 8px 18px rgba(14, 107, 94, 0.13);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.header-cta {
  padding: 0 22px;
}

.header-cta:hover,
.header-cta:focus-visible,
.mobile-cta:hover,
.mobile-cta:focus-visible {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.icon-button {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand);
  background: var(--white);
  cursor: pointer;
}

.icon-button img {
  display: block;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  background: rgba(21, 37, 42, 0.65);
  opacity: 0;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.menu-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  width: min(390px, 100%);
  flex-direction: column;
  padding: 22px 20px 20px;
  background: var(--white);
  box-shadow: -22px 0 60px rgba(21, 37, 42, 0.18);
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 220ms ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 17px;
}

.brand-mobile {
  min-width: 0;
  gap: 10px;
}

.brand-mark-small {
  width: 38px;
  height: 38px;
}

.brand-name-small {
  font-size: 17px;
}

.brand-tagline-small {
  margin-top: 3px;
  font-size: 9px;
}

.menu-close {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-nav {
  display: grid;
}

.mobile-nav-group,
.mobile-nav-main {
  display: grid;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.mobile-nav-title {
  margin: 0 0 4px;
  color: var(--brand);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--brand);
}

.mobile-nav-main {
  padding-block: 4px;
}

.mobile-nav-main a + a {
  border-top: 1px solid var(--line);
}

.mobile-menu-footer {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mobile-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-family: "Manrope", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-phone-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.mobile-cta {
  width: 100%;
}

.preview-surface {
  position: relative;
  min-height: 1500px;
  background: var(--page);
}

.preview-anchor {
  position: absolute;
  left: 0;
}

.preview-anchor-packages {
  top: 360px;
}

.preview-anchor-cases {
  top: 760px;
}

.preview-anchor-contacts {
  top: 1160px;
}

:focus-visible {
  outline: 3px solid rgba(14, 107, 94, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1310px) and (min-width: 1180px) {
  .header-container {
    padding-inline: 24px;
  }

  .header-row {
    gap: 20px;
  }

  .brand {
    min-width: 198px;
  }

  .main-nav {
    gap: 20px;
  }

  .header-actions {
    gap: 14px;
  }

  .header-cta {
    padding-inline: 18px;
  }
}

@media (max-width: 1179.98px) {
  :root {
    --header-height: 76px;
  }

  .header-container {
    padding-inline: 22px;
  }

  .header-row {
    justify-content: space-between;
  }

  .main-nav,
  .header-phone,
  .header-cta {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .compact-control {
    display: inline-flex;
  }

  .brand {
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  :root {
    --header-height: 72px;
  }

  .site-header.is-scrolled {
    backdrop-filter: none;
  }

  .header-container {
    padding-inline: 16px;
  }

  .header-row {
    gap: 16px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 18px;
  }

  .site-header .brand-tagline {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 374.98px) {
  .header-container {
    padding-inline: 12px;
  }

  .brand {
    gap: 9px;
  }

  .brand-name {
    font-size: 17px;
  }

  .header-actions {
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
