@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: #f4f6fa;
  --surface: #fff;
  --surface-blue: #eef0ff;
  --ink: #181823;
  --muted: #656777;
  --line: #e0e3eb;
  --brand: #3027b9;
  --brand-dark: #211b83;
  --accent: #d7ff3f;
  --accent-dark: #bbec17;
  --danger: #b4232f;
  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 46px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 14px 42px rgb(24 24 35 / 8%);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.drawer-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
}

.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(62px, 8vw, 104px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 3px;
}

.micro-label,
.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgb(24 24 35 / 12%);
}

.button--accent {
  background: var(--accent);
  color: var(--ink);
}

.button--accent:hover {
  background: var(--accent-dark);
}

.button--dark {
  background: var(--brand);
  color: #fff;
}

.button--dark:hover {
  background: var(--brand-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 4px 16px rgb(24 24 35 / 4%);
  backdrop-filter: blur(14px);
}

.header-strip {
  background: var(--brand-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.header-strip__inner {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.header-main {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand,
.brand img {
  width: 138px;
  height: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 0.84rem;
  font-weight: 750;
}

.desktop-nav > a,
.nav-services > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.desktop-nav > a:hover,
.nav-services > a:hover {
  color: var(--brand);
}

.nav-services {
  display: flex;
  align-items: center;
}

.nav-caret {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  display: grid;
  text-align: right;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
}

.header-cta {
  min-height: 44px;
  padding: 10px 16px;
}

.mega-panel {
  position: absolute;
  top: 102px;
  left: 0;
  width: 100%;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.nav-services:hover .mega-panel,
.nav-services:focus-within .mega-panel,
.mega-panel[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-panel__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.mega-intro {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface-blue);
}

.mega-intro p {
  margin-bottom: 22px;
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.3;
}

.mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.service-link {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 13px;
  min-height: 74px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.service-link:hover {
  border-color: var(--brand);
  background: var(--surface-blue);
}

.service-index {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface-blue);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
}

.service-link strong,
.service-link small {
  display: block;
}

.service-link strong {
  font-size: 0.88rem;
}

.service-link small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.category-nav {
  border-top: 1px solid var(--line);
  background: #fff;
}

.category-nav__inner {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.category-nav a {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.69rem;
  line-height: 1.2;
}

.category-nav a:first-child {
  border-left: 1px solid var(--line);
}

.category-nav a:hover {
  background: var(--surface-blue);
  color: var(--brand);
}

.category-nav a span {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-blue);
  color: var(--brand);
  font-size: 0.64rem;
  font-weight: 800;
}

.category-nav a strong {
  font-weight: 750;
}

.mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.mobile-toggle span[aria-hidden] {
  display: block;
  width: 100%;
  height: 2px;
  margin-block: 6px;
  background: var(--ink);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 109;
  background: rgb(24 24 35 / 58%);
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 110;
  width: min(100%, 500px);
  height: 100dvh;
  padding: 20px;
  overflow-y: auto;
  background: var(--page);
}

.drawer-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
}

.drawer-head img {
  width: 132px;
  height: auto;
}

.drawer-close,
.dialog-close {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 1.6rem;
}

.drawer-links {
  display: grid;
  gap: 8px;
}

.drawer-secondary {
  display: grid;
  margin-top: 18px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.drawer-secondary a {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 750;
}

.drawer-contacts {
  display: grid;
  gap: 8px;
  padding-block: 20px 36px;
  font-size: 0.9rem;
}

.drawer-contacts a:first-child {
  font-size: 1.25rem;
  font-weight: 800;
}

.nojs-nav {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-block: 11px;
  font-size: 0.75rem;
  white-space: nowrap;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.76rem;
}

.hero {
  padding-block: 40px 54px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  padding-inline: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
}

.hero-copy h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 5.6vw, 5.15rem);
  font-weight: 800;
}

.hero:not(.hero--home) .hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  line-height: 1.52;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.hero-benefits span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--page);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.hero-commerce {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
  background: var(--surface-blue);
}

.hero-visual {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--brand-dark);
}

.hero-visual img {
  width: 100%;
  max-width: none !important;
  height: 100%;
  min-height: 245px;
  object-fit: cover;
}

.hero-stamp {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-2deg);
}

.hero-stamp strong {
  font-size: 1.8rem;
  line-height: 1;
}

.hero-stamp span {
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-form,
.hero-contact-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.hero-form__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-form__head strong {
  font-size: 1.05rem;
}

.hero-form__head span,
.hero-form label > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.hero-form label {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.hero-form select,
.hero-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

.hero-form .button {
  width: 100%;
  margin-top: 2px;
}

.hero-contact-card > span {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-contact-card strong {
  display: block;
  margin-block: 4px 10px;
  font-size: 1.5rem;
}

.hero-contact-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.number-band {
  padding-bottom: 12px;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.number-grid > div {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.number-grid strong {
  color: var(--brand);
  font-size: 1.75rem;
  line-height: 1;
}

.number-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.section-head {
  margin-bottom: 34px;
}

.section-head > p {
  max-width: 640px;
  color: var(--muted);
}

.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.direction-item {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 6px 18px rgb(24 24 35 / 4%);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.direction-item:hover {
  z-index: 2;
  border-color: #c7c9e8;
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.direction-media {
  position: relative;
  height: 154px;
  overflow: hidden;
  background: var(--surface-blue);
}

.direction-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.direction-item:hover .direction-media img {
  transform: scale(1.035);
}

.direction-index {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 46px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding-inline: 8px;
  border-radius: 9px;
  background: #fff;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgb(24 24 35 / 10%);
}

.direction-body {
  padding: 20px 20px 24px;
}

.direction-body h3 {
  max-width: 240px;
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.direction-body p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.82rem;
}

.direction-body strong {
  color: var(--brand);
  font-size: 0.78rem;
}

.direction-arrow {
  position: absolute;
  right: 18px;
  bottom: 20px;
  font-size: 1.2rem;
}

.story-section {
  padding-top: 24px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.story-copy {
  padding: clamp(32px, 5vw, 64px);
}

.story-copy > p {
  color: var(--muted);
}

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

.line-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding-block: 13px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.line-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.line-list span {
  color: var(--brand);
  font-size: 0.72rem;
}

.story-media {
  position: relative;
  min-height: 420px;
  background: var(--brand);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-media__note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 750;
}

.works-preview {
  background: #fff;
}

.works-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 14px;
}

.works-grid figure {
  position: relative;
  min-height: 350px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--surface-blue);
}

.works-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works-grid figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 11px 13px;
  border-radius: 9px;
  background: rgb(255 255 255 / 94%);
  font-size: 0.76rem;
  font-weight: 800;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.location-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.location-photo {
  min-height: 300px;
  background: var(--surface-blue);
}

.location-photo img {
  width: 100%;
  max-width: none !important;
  height: 100%;
  object-fit: cover;
}

.location-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
}

.location-body h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.location-body p {
  color: var(--muted);
  font-size: 0.8rem;
}

.location-phone {
  margin-bottom: 4px;
  font-size: 1.08rem;
  font-weight: 800;
}

.location-body > a:not(.location-phone) {
  font-size: 0.78rem;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.76rem;
  font-weight: 750;
}

.inquiry {
  color: #fff;
  background: var(--brand-dark);
}

.inquiry .micro-label {
  color: var(--accent);
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(36px, 7vw, 90px);
  align-items: start;
}

.inquiry-grid > div > p {
  max-width: 490px;
  color: #d9d8ed;
}

.inquiry-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.inquiry-direct a {
  font-size: 1.05rem;
  font-weight: 800;
}

.inquiry-direct button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 8px;
  background: transparent;
  color: #fff;
}

.inquiry-form,
.calculator {
  padding: clamp(22px, 4vw, 34px);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.inquiry-form label,
.calculator label {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
  font-size: 0.76rem;
  font-weight: 750;
}

.inquiry-form select,
.inquiry-form textarea,
.calculator input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.inquiry-form textarea {
  resize: vertical;
}

.inquiry-form .button {
  width: 100%;
}

.prepared-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  border-radius: 9px;
  background: var(--surface-blue);
  color: var(--brand);
  font-weight: 800;
}

.form-error {
  min-height: 1.2em;
  margin: 0 0 10px;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 700;
}

.offerings {
  background: #fff;
}

.offering-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.offering-row {
  min-height: 200px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--page);
}

.offering-row > span {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.offering-row h3 {
  margin: 24px 0 10px;
  font-size: 1.22rem;
}

.offering-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.prices {
  background: var(--page);
}

.price-list {
  display: grid;
  gap: 18px;
}

.price-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.price-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.price-block__head h3 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.price-block__head p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.74rem;
  text-align: right;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th,
td {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th:last-child,
td:last-child {
  border-right: 0;
}

thead th {
  background: var(--surface-blue);
  color: var(--brand);
  font-size: 0.72rem;
}

tbody th {
  font-weight: 750;
}

.price-disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.fact-band {
  background: #fff;
}

.fact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
}

.fact-grid ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: facts;
}

.fact-grid li {
  position: relative;
  padding: 18px 18px 18px 58px;
  border-bottom: 1px solid var(--line);
  counter-increment: facts;
}

.fact-grid li::before {
  position: absolute;
  top: 17px;
  left: 12px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  content: "0" counter(facts);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  min-height: 310px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: 255px;
  object-fit: cover;
}

.gallery-item > span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 800;
}

.gallery-dialog {
  width: min(92vw, 960px);
  max-height: 90vh;
  padding: 18px;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 30px 100px rgb(0 0 0 / 30%);
}

.gallery-dialog::backdrop {
  background: rgb(16 16 24 / 78%);
}

.gallery-dialog .dialog-close {
  position: sticky;
  top: 0;
  z-index: 2;
  float: right;
}

.gallery-dialog figure {
  margin: 0;
}

.gallery-dialog img {
  max-height: 72vh;
  margin-inline: auto;
  object-fit: contain;
}

.gallery-dialog figcaption {
  padding-top: 14px;
  text-align: center;
  font-size: 0.8rem;
}

.calculator-section {
  background: #fff;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.calculator-grid > div > p {
  color: var(--muted);
}

.formula {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-blue);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
}

.calculator {
  border: 1px solid var(--line);
  background: var(--page);
}

.calculator-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calculator-result {
  margin-top: 16px;
  padding: 18px;
  border-radius: 10px;
  background: var(--surface-blue);
}

.calculator-result span,
.calculator-result strong {
  display: block;
}

.calculator-result strong {
  margin-block: 4px 10px;
  color: var(--brand);
  font-size: 2rem;
}

.calculator-result p {
  color: var(--muted);
  font-size: 0.76rem;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.requirements-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.requirements-grid article > span {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
}

.requirements-grid h2 {
  margin-block: 18px;
  font-size: 1.55rem;
}

.requirements-grid li {
  margin-bottom: 8px;
  color: var(--muted);
}

.note-section {
  padding-top: 0;
}

.note-card,
.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(26px, 5vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--surface-blue);
}

.note-card h2,
.download-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.note-card p,
.download-panel p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.price-overview__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.price-overview__grid a {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-decoration: none;
}

.price-overview__grid a > span {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
}

.price-overview__grid h2 {
  margin: 28px 0 10px;
  font-size: 1.3rem;
}

.price-overview__grid p {
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-details {
  padding-top: 0;
}

.contact-details__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-details__grid > div {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.contact-email {
  display: block;
  margin: 24px 0;
  color: var(--brand);
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 800;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.requisites dl {
  margin: 0;
}

.requisites dl > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.requisites dt {
  color: var(--muted);
  font-size: 0.75rem;
}

.requisites dd {
  margin: 0;
  font-weight: 700;
}

.site-footer {
  padding-block: 64px 22px;
  background: #171624;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 0.9fr 1fr;
  gap: 44px;
}

.footer-grid > div:not(.footer-brand) {
  display: grid;
  align-content: start;
  gap: 9px;
  font-size: 0.78rem;
}

.footer-brand img {
  width: 150px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 18px;
  color: #aaa9b8;
  font-size: 0.82rem;
}

.footer-title {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 50px;
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: #92919f;
  font-size: 0.68rem;
}

.footer-bottom p {
  margin: 0;
}

.amg-credit {
  display: grid;
  grid-template-columns: auto 28px auto;
  align-items: center;
  gap: 4px 8px;
  color: #fff;
  text-decoration: none;
}

.amg-credit img {
  width: 28px;
  height: 28px;
  grid-row: 1 / 3;
  grid-column: 2;
}

.amg-credit span:first-child {
  grid-column: 1;
}

.amg-credit strong,
.amg-credit span:last-child {
  grid-column: 3;
}

.amg-credit span:last-child {
  color: #92919f;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
  }

  .header-phone {
    display: none;
  }

  .category-nav a strong {
    display: none;
  }

  .category-nav a {
    justify-content: center;
  }

  .category-nav a span {
    min-width: 40px;
  }

  .hero-panel {
    grid-template-columns: 1fr 0.9fr;
  }

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

  .location-card {
    grid-template-columns: 140px 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .header-strip,
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .header-main {
    min-height: 68px;
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    justify-content: flex-end;
  }

  html.js .mobile-toggle {
    display: block;
  }

  .category-nav__inner {
    display: flex;
    padding-inline: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .category-nav__inner::-webkit-scrollbar {
    display: none;
  }

  .category-nav a {
    min-width: 82px;
    min-height: 52px;
    border-bottom: 0;
  }

  .hero {
    padding-block: 22px 40px;
  }

  .hero-panel,
  .story-grid,
  .inquiry-grid,
  .calculator-grid,
  .fact-grid,
  .contact-details__grid {
    grid-template-columns: 1fr;
  }

  .hero-commerce {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 100%;
  }

  .number-grid,
  .offering-list,
  .requirements-grid,
  .price-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-large {
    grid-column: 1 / -1;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-card {
    grid-template-columns: 180px 1fr;
  }

  .fact-grid {
    gap: 20px;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 18px;
  }

  .section {
    padding-block: 58px;
  }

  h2 {
    font-size: 2rem;
  }

  .brand,
  .brand img {
    width: 126px;
  }

  .hero-panel {
    border-radius: 18px;
  }

  .hero-copy {
    padding: 28px 22px;
  }

  .hero-copy h1,
  .hero:not(.hero--home) .hero-copy h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .hero-commerce {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 190px;
    height: 190px;
  }

  .hero-form,
  .hero-contact-card {
    padding: 17px;
  }

  .hero-form__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .number-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .number-grid > div {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
  }

  .section-head--row,
  .price-block__head,
  .note-card,
  .download-panel,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .direction-item {
    min-height: 260px;
  }

  .direction-media {
    height: 108px;
  }

  .direction-body {
    padding: 15px;
  }

  .direction-body h3 {
    font-size: 0.95rem;
  }

  .direction-body p {
    font-size: 0.7rem;
  }

  .direction-body strong {
    display: block;
    max-width: 100px;
    font-size: 0.67rem;
  }

  .direction-arrow {
    right: 12px;
    bottom: 14px;
  }

  .story-grid {
    border-radius: 18px;
  }

  .story-copy {
    padding: 28px 22px;
  }

  .story-media {
    min-height: 260px;
  }

  .works-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .works-grid figure,
  .gallery-item {
    min-height: 280px;
  }

  .gallery-item img {
    height: 230px;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .location-photo {
    min-height: 210px;
  }

  .inquiry-grid {
    gap: 28px;
  }

  .offering-list,
  .requirements-grid,
  .price-overview__grid {
    grid-template-columns: 1fr;
  }

  .offering-row {
    min-height: auto;
  }

  .price-block__head p {
    text-align: left;
  }

  .calculator-fields {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@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;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .inquiry,
  .button,
  .gallery-dialog {
    display: none !important;
  }

  body,
  .section,
  .prices {
    background: #fff;
  }
}
