:root {
  --bg: #f3f3f3;
  --bg-soft: #ffffff;
  --white: #ffffff;
  --text: #111111;
  --text-muted: #6b6b6b;
  --ink: #111111;
  --dark: #111111;
  --accent: #d5232f;
  --line: rgba(17, 17, 17, 0.08);
  --radius: 10px;
  --radius-lg: 20px;
  --shadow: 0 8px 28px rgba(17, 17, 17, 0.08);
  --container: 1240px;
  --font: "Inter Tight", sans-serif;
  --font-display: Oswald, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--ink);
  max-width: 18ch;
}

.section-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 42ch;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  transition: box-shadow 0.3s ease;
}

.header.is-scrolled {
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.08);
}

.header__top {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo img {
  height: 36px;
  width: auto;
  max-width: none;
}

.logo--footer img {
  height: 32px;
  filter: brightness(0) invert(1);
}

.header__tagline {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  max-width: 96px;
}

.header__online {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  justify-self: end;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31b939;
  box-shadow: 0 0 0 4px rgba(49, 185, 57, 0.16);
  animation: live-dot 1.8s ease-out infinite;
}

.wa {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 0.25s ease, background 0.25s ease;
}

.wa:hover {
  transform: scale(1.08);
  background: #ebebeb;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 48px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  padding: 0 max(20px, calc((100% - var(--container)) / 2));
}

.header__nav a {
  position: relative;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s ease;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.header__nav a.is-accent {
  color: var(--accent);
}

.header__nav a:hover {
  color: var(--accent);
}

.header__nav a:hover::after {
  transform: scaleX(1);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -7px;
}

.burger span::after {
  top: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 13px 26px;
  border: 0;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.12);
}

.btn--dark {
  background: var(--dark);
  color: #fff;
  width: 100%;
}

.btn--compact,
.btn--dark.btn--compact,
.header .btn--dark {
  width: auto;
  min-height: 44px;
  padding: 0 18px;
}

.btn--dark:hover {
  background: #000;
}

.btn--light {
  background: var(--white);
  color: var(--ink);
  width: auto;
}

.btn--light:hover {
  background: #f3f3f3;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero {
  padding: 20px 0 8px;
  color: #fff;
}

.hero__banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 460px;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-lg);
}

.hero__media {
  position: relative;
  min-height: 320px;
  min-width: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #111 0%, rgba(17, 17, 17, 0.15) 55%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 48px 40px 40px;
}

.hero__content > * {
  animation: rise-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__content > *:nth-child(1) { animation-delay: 0.05s; }
.hero__content > *:nth-child(2) { animation-delay: 0.14s; }
.hero__content > *:nth-child(3) { animation-delay: 0.22s; }
.hero__content > *:nth-child(4) { animation-delay: 0.3s; }
.hero__content > *:nth-child(5) { animation-delay: 0.4s; }

.hero-badge {
  display: inline-block;
  margin-bottom: 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  max-width: 14ch;
}

.hero p {
  margin: 0 0 24px;
  font-size: 16px;
  font-weight: 400;
  font-family: var(--font);
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.86;
  max-width: 42ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 4px;
}

.hero__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.facts {
  padding: 72px 0 8px;
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.fact {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.fact small {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.fact strong {
  display: block;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.fact p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.offices {
  padding: 72px 0 24px;
}

.offices .section-lead {
  margin-top: 14px;
}

.offices__layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 18px;
  margin-top: 36px;
  align-items: stretch;
}

.office-list {
  display: grid;
  gap: 12px;
}

.office-card {
  text-align: left;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.office-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.office-card small {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.office-card strong {
  display: block;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.office-card p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.office-card.is-active {
  border-color: var(--ink);
  box-shadow: var(--shadow);
}

.map-wrap {
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.contact {
  padding: 72px 0 96px;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.form {
  background: var(--white);
  padding: 32px;
  display: grid;
  gap: 14px;
  border-radius: var(--radius-lg);
  transition: box-shadow 0.35s ease;
}

.form:hover {
  box-shadow: var(--shadow);
}

.form h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 16px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.form textarea {
  min-height: 110px;
  resize: vertical;
}

.form input[type="checkbox"] {
  width: auto;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
}

.consent a {
  text-decoration: underline;
}

.form-success {
  display: none;
  padding: 14px 16px;
  background: #e8f6ea;
  color: #1f7a28;
  border-radius: 10px;
}

.contacts-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contacts-list a,
.contacts-list p {
  margin: 0;
}

.contacts-list a {
  font-weight: 600;
}

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 28px;
  font-size: 13px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.footer .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.55);
  display: grid;
  place-items: center;
  z-index: 80;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__box {
  background: #fff;
  max-width: 640px;
  max-height: 80vh;
  overflow: auto;
  padding: 32px;
  border-radius: 16px;
}

.modal__box h3 {
  margin-top: 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes live-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(49, 185, 57, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(49, 185, 57, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(49, 185, 57, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .facts__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__grid,
  .offices__layout {
    grid-template-columns: 1fr;
  }

  .header__tagline {
    display: none;
  }

  .hero__banner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero__media {
    min-height: 280px;
  }

  .hero__media::after {
    background: linear-gradient(180deg, transparent 30%, #111 100%);
  }
}

@media (max-width: 760px) {
  .header__nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    flex-direction: column;
    background: #fff;
    padding: 12px 0 24px;
    box-shadow: var(--shadow);
  }

  .header__nav.is-open {
    display: flex;
  }

  .burger {
    display: grid;
    place-items: center;
  }

  .header__top {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .logo img {
    height: 28px;
  }

  .header__online {
    justify-self: end;
    gap: 6px;
    font-size: 0;
  }

  .header .btn--compact {
    padding: 0 12px;
    font-size: 13px;
  }

  .facts__grid,
  .footer__grid,
  .offices__layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 12px;
  }

  .hero__content {
    padding: 28px 22px;
  }

  .hero h1 {
    max-width: none;
  }
}
