@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-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: "Onest";
  src: url("../fonts/onest-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: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --text: #17191c;
  --muted: #62666c;
  --line: #e2e5e8;
  --line-strong: #cdd1d5;
  --accent: #ffcb2f;
  --accent-hover: #eab829;
  --dark: #202226;
  --dark-soft: #2b2e33;
  --focus: #2563eb;
  --success: #167c42;
  --danger: #c42b1c;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(23, 25, 28, 0.08);
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Onest", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

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

::selection {
  background: var(--accent);
  color: var(--text);
}

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

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(-140%);
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 48px 0;
}

.section--white {
  background: var(--surface);
}

.section--dark {
  background: var(--dark);
  color: var(--surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading__text {
  max-width: 760px;
}

.section-heading h2,
.section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.section--dark .section-heading p {
  color: #b7bbc1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #4d5157;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.hero .eyebrow::before {
  display: none;
}

.topbar {
  background: var(--dark);
  color: #eef0f2;
  font-size: 13px;
}

.topbar__inner {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar a:hover {
  color: var(--accent);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #65d486;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  min-height: 76px;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 166px;
  height: auto;
}

.header-search,
.catalog-search {
  position: relative;
}

.header-search input,
.catalog-search input {
  width: 100%;
  height: 46px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
}

.header-search input:hover,
.catalog-search input:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #aeb3b8;
}

.header-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
}

.header-search svg {
  width: 19px;
}

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

.header-phone {
  display: grid;
  gap: 1px;
  text-align: right;
}

.header-phone strong {
  font-size: 16px;
  line-height: 1.2;
}

.header-phone span {
  color: var(--muted);
  font-size: 12px;
}

.header-nav {
  border-top: 1px solid var(--line);
}

.header-nav__inner {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.header-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 160ms ease;
}

.header-nav a:hover::after,
.header-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-nav__spacer {
  flex: 1;
}

.header-nav__messenger {
  color: #167c42;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.menu-toggle svg {
  width: 23px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.button--dark {
  background: var(--dark);
  color: var(--surface);
}

.button--dark:hover {
  background: #08090a;
}

.button--outline {
  border-color: var(--line-strong);
  background: transparent;
}

.button--outline:hover {
  border-color: var(--text);
  background: var(--surface);
}

.button--white {
  background: var(--surface);
}

.button--white:hover {
  background: #f1f2f3;
}

.button--whatsapp {
  background: var(--success);
  color: var(--surface);
}

.button--whatsapp:hover {
  background: #188b49;
}

.button--small {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
}

.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.text-link:hover {
  text-decoration-color: var(--text);
}

.hero {
  padding: 44px 0 64px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: stretch;
  gap: 24px;
}

.hero__content,
.hero__visual {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 64px);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero__lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #484c52;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__facts a {
  text-decoration: none;
}

.hero__facts li::before {
  display: block;
  width: 9px;
  height: 9px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.hero__visual {
  position: relative;
  overflow: hidden;
  background: var(--dark);
}

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

.hero__visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.74));
  content: "";
}

.hero__visual-caption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  left: 24px;
  color: var(--surface);
}

.hero__visual-caption strong {
  display: block;
  font-size: 20px;
}

.hero__visual-caption span {
  color: #d8dadd;
  font-size: 14px;
}

.hero__badge {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 20px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.quick-categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.quick-category {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.quick-category:hover {
  border-color: #b7bcc1;
  box-shadow: 0 8px 22px rgba(23, 25, 28, 0.06);
  transform: translateY(-2px);
}

.quick-category__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: #fff4ca;
}

.quick-category__icon svg {
  width: 22px;
}

.quick-category strong {
  font-size: 15px;
  line-height: 1.3;
}

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

.service-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-card:hover {
  border-color: #b7bcc1;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card[hidden] {
  display: none;
}

.service-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eceeef;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.service-card:hover .service-card__image img {
  transform: scale(1.025);
}

.service-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 11px;
  font-weight: 800;
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.service-card h2,
.service-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.service-card h2 a::after,
.service-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.service-card p {
  display: -webkit-box;
  margin: 9px 0 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.service-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.service-card__action {
  font-size: 14px;
}

.service-card__arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  font-size: 20px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.filter-chip {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--text);
  background: var(--text);
  color: var(--surface);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}

.catalog-count {
  color: var(--muted);
  font-size: 14px;
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border-radius: 16px;
  background: var(--dark);
  color: var(--surface);
}

.calculator__intro {
  padding: clamp(30px, 5vw, 58px);
  background: var(--accent);
  color: var(--text);
}

.calculator__intro h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.calculator__intro p {
  margin: 18px 0 0;
}

.calculator__points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.calculator__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.calculator__points li::before {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--text);
  color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffcb2f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
  content: "";
}

.calculator__form {
  padding: clamp(30px, 5vw, 58px);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #4a4e54;
  border-radius: 9px;
  background: var(--dark-soft);
  color: var(--surface);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aeb2b8;
}

.form-note {
  margin: 13px 0 0;
  color: #b7bbc1;
  font-size: 12px;
}

.form-note a {
  text-decoration: underline;
}

.form-error {
  min-height: 20px;
  margin: 8px 0 0;
  color: #ffb7af;
  font-size: 13px;
}

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

.trust-card {
  min-height: 190px;
  padding: 24px;
  border-top: 4px solid var(--accent);
  background: var(--surface);
}

.trust-card__number {
  display: block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trust-card h3 {
  margin: 0;
  font-size: 19px;
}

.trust-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  counter-reset: steps;
}

.step {
  position: relative;
  padding: 28px 24px 0 0;
  border-top: 2px solid var(--line-strong);
  counter-increment: steps;
}

.step::before {
  position: absolute;
  top: -18px;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 6px solid var(--page);
  border-radius: 50%;
  background: var(--accent);
  content: counter(steps);
  font-size: 12px;
  font-weight: 800;
}

.step h3 {
  margin: 0;
  font-size: 18px;
}

.step p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.portfolio-card {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  min-height: 290px;
  border-radius: var(--radius);
  background: var(--dark);
}

.portfolio-card:first-child {
  grid-column: span 7;
}

.portfolio-card:nth-child(2) {
  grid-column: span 5;
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card__label {
  position: absolute;
  inset: auto 14px 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.portfolio-card__label strong,
.portfolio-card__label span {
  display: block;
}

.portfolio-card__label span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.rating-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.rating-card__score {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.rating-card__stars {
  color: #efae00;
  letter-spacing: 2px;
}

.rating-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.faq-list summary {
  position: relative;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  content: "+";
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.contact-panel__content {
  padding: clamp(30px, 5vw, 54px);
}

.contact-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 30px 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}

.contact-list svg {
  width: 24px;
  height: 24px;
}

.contact-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.contact-list strong {
  font-size: 16px;
}

.contact-panel__map {
  min-height: 500px;
  border: 0;
  background: #e8eaec;
}

.contact-panel__map iframe {
  width: 100%;
  height: 100%;
  min-height: 500px;
  border: 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 7px;
  content: "/";
}

.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

.page-hero {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.page-hero__lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.article-meta time {
  font-variant-numeric: tabular-nums;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.page-hero__image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #e9ebed;
}

.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: start;
  gap: 48px;
}

.prose {
  min-width: 0;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 1.6em 0 0.55em;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.prose h2 {
  padding-top: 0.2em;
  font-size: clamp(25px, 3vw, 34px);
}

.prose h3 {
  font-size: 21px;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li + li {
  margin-top: 0.42em;
}

.prose a {
  color: #174ea6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose strong {
  font-weight: 750;
}

.prose blockquote {
  padding: 18px 20px;
  border-left: 5px solid var(--accent);
  background: #fff9e5;
}

.prose hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: var(--line);
}

.table-wrap {
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: #fff6d7;
}

.sidebar-card {
  position: sticky;
  top: 140px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--surface);
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
}

.sidebar-card p {
  margin: 12px 0 20px;
  color: #c7cad0;
  font-size: 14px;
}

.sidebar-card .button {
  width: 100%;
}

.sidebar-card .button + .button {
  margin-top: 10px;
}

.service-meta {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid #454950;
  border-bottom: 1px solid #454950;
  font-size: 13px;
}

.service-meta span {
  color: #b7bbc1;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.article-card__category {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.article-card h2,
.article-card h3 {
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 1.32;
}

.article-card p {
  display: -webkit-box;
  margin: 10px 0 20px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.article-card .text-link {
  margin-top: auto;
  font-size: 14px;
}

.legal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.legal-details div {
  padding: 18px;
  background: var(--surface-soft);
}

.legal-details dt {
  color: var(--muted);
  font-size: 12px;
}

.legal-details dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.page-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: 14px;
  background: var(--accent);
}

.page-cta h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.page-cta p {
  margin: 8px 0 0;
}

.site-footer {
  padding: 52px 0 22px;
  background: var(--dark);
  color: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 38px;
}

.footer-brand img {
  width: 176px;
  padding: 7px;
  border-radius: 8px;
  background: var(--surface);
}

.footer-brand p {
  max-width: 310px;
  margin: 18px 0 0;
  color: #b7bbc1;
  font-size: 14px;
}

.footer-column h2 {
  margin: 0 0 16px;
  font-size: 15px;
}

.footer-column ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #c7cad0;
  font-size: 14px;
  list-style: none;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.footer-link-button:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #3c4046;
  color: #979ba2;
  font-size: 12px;
}

.mobile-actions {
  display: none;
}

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  overflow-y: auto;
  padding: 24px;
  background: rgba(8, 9, 10, 0.68);
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal__dialog {
  position: relative;
  width: min(100%, 640px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.modal__dialog h2 {
  margin: 0;
  font-size: 30px;
}

.modal__dialog > p {
  margin: 8px 0 24px;
  color: var(--muted);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--page);
  font-size: 24px;
}

.modal .field input,
.modal .field select,
.modal .field textarea {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.modal .field select {
  background-image: linear-gradient(45deg, transparent 50%, #222 50%), linear-gradient(135deg, #222 50%, transparent 50%);
}

.modal .form-note {
  color: var(--muted);
}

.modal .form-error {
  color: var(--danger);
}

.cookie-banner {
  position: fixed;
  z-index: 1100;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 48px), 920px);
  margin-inline: auto;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(23, 25, 28, 0.2);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 19px;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cookie-banner p a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 1100px) {
  .header-main {
    grid-template-columns: auto 1fr auto;
  }

  .header-search {
    display: none;
  }

  .quick-categories {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 960px) {
  .section {
    padding: 56px 0;
  }

  .topbar__group:last-child,
  .header-phone,
  .header-actions > .button,
  .header-nav {
    display: none;
  }

  .topbar__inner {
    justify-content: center;
  }

  .header-main {
    display: flex;
    min-height: 68px;
    justify-content: space-between;
  }

  .menu-toggle {
    display: grid;
  }

  .header-nav.is-open {
    display: block;
  }

  .header-nav__inner {
    display: grid;
    gap: 0;
    padding: 8px 0 14px;
  }

  .header-nav a {
    min-height: 44px;
  }

  .header-nav a::after,
  .header-nav__spacer {
    display: none;
  }

  .hero__grid,
  .calculator,
  .contact-panel,
  .content-layout,
  .page-hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__content,
  .hero__visual {
    min-height: auto;
  }

  .hero__visual {
    aspect-ratio: 16 / 10;
  }

  .calculator__intro {
    padding-bottom: 34px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 42px 0;
  }

  .portfolio-card,
  .portfolio-card:first-child,
  .portfolio-card:nth-child(2) {
    grid-column: span 6;
  }

  .contact-panel__map,
  .contact-panel__map iframe {
    min-height: 400px;
  }

  .page-hero__image {
    max-width: 520px;
  }

  .sidebar-card {
    position: static;
  }

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

@media (max-width: 700px) {
  html {
    scroll-padding-top: 78px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .cookie-banner {
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 12px;
    grid-template-columns: 1fr;
    gap: 16px;
    width: auto;
    padding: 18px;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions .button {
    width: 100%;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section,
  .section--tight {
    padding: 44px 0;
  }

  .section--tight {
    padding: 28px 0 36px;
  }

  .section-heading,
  .rating-card,
  .page-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading {
    display: flex;
  }

  .section-heading .button,
  .section-heading .text-link {
    align-self: flex-start;
  }

  .brand img {
    width: 146px;
  }

  .hero {
    padding: 20px 0 24px;
  }

  .hero__grid {
    gap: 14px;
  }

  .hero__content {
    padding: 24px 22px;
  }

  .hero h1 {
    font-size: clamp(32px, 9.2vw, 40px);
    line-height: 1.04;
  }

  .hero__actions .button {
    width: 100%;
  }

  .hero__lead {
    margin-top: 16px;
    line-height: 1.45;
  }

  .hero__actions {
    margin-top: 22px;
  }

  .hero__actions .button--outline {
    width: auto;
    min-height: 36px;
    justify-content: flex-start;
    padding: 4px 0;
    border: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .hero__facts {
    display: grid;
    gap: 8px;
    margin-top: 22px;
  }

  .hero__visual {
    display: none;
  }

  .category-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .contact-us-page .page-hero__image {
    display: none;
  }

  .contact-panel__map,
  .contact-panel__map iframe {
    min-height: 350px;
  }

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

  .quick-category {
    min-height: 110px;
    padding: 15px;
  }

  .service-grid,
  .related-grid,
  .article-grid,
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card__body {
    padding: 14px;
  }

  .service-card h2,
  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    -webkit-line-clamp: 2;
  }

  .form-grid,
  .legal-details,
  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .calculator__form,
  .calculator__intro,
  .contact-panel__content {
    padding: 28px 22px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

  .portfolio-card,
  .portfolio-card:first-child,
  .portfolio-card:nth-child(2) {
    grid-column: 1;
    min-height: 260px;
  }

  .rating-card {
    display: flex;
  }

  .page-hero {
    padding: 36px 0;
  }

  .page-hero__grid {
    gap: 28px;
  }

  .prose {
    padding: 24px 20px;
  }

  .page-cta {
    display: flex;
    padding: 26px 22px;
  }

  .page-cta .button {
    width: 100%;
  }

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

  .footer-bottom {
    display: grid;
  }

  .mobile-actions {
    position: fixed;
    z-index: 200;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 0.8fr 0.8fr 1.4fr;
    gap: 7px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -8px 24px rgba(23, 25, 28, 0.09);
  }

  .mobile-actions a,
  .mobile-actions button {
    display: grid;
    min-height: 48px;
    place-items: center;
    border-radius: 9px;
    background: var(--page);
    font-size: 12px;
    font-weight: 700;
  }

  .mobile-actions .mobile-actions__primary {
    background: var(--accent);
  }

  .modal {
    padding: 10px;
  }

  .modal__dialog {
    max-height: calc(100vh - 20px);
    padding: 26px 18px;
  }
}

@media (max-width: 460px) {
  .service-grid,
  .related-grid,
  .article-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .service-card__image {
    height: 100%;
    min-height: 190px;
    aspect-ratio: auto;
  }

  .service-card__tag {
    display: none;
  }

  .service-card p {
    font-size: 13px;
  }
}

@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;
  }
}
