:root {
  --ink: #0a2039;
  --ink-soft: #213b55;
  --muted: #586b7d;
  --brand: #1659b7;
  --brand-dark: #0d438f;
  --brand-soft: #d7e4f4;
  --teal: #087f6d;
  --teal-dark: #066454;
  --teal-soft: #e8f7f3;
  --surface: #cbdbea;
  --surface-soft: #dbe7f2;
  --surface-raised: #f7f9fb;
  --line: #bdc9d6;
  --line-strong: #9fb0c2;
  --shadow-sm: 0 8px 24px rgba(9, 32, 57, 0.12);
  --shadow-lg: 0 24px 70px rgba(8, 29, 52, 0.19);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.filters-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid #f0a400;
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: var(--brand);
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 7px 11px;
  color: var(--brand);
  background: rgba(224, 236, 255, 0.78);
  border: 1px solid rgba(20, 100, 232, 0.1);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 99px;
}

.eyebrow--light {
  color: #b9d5ff;
  background: rgba(105, 160, 238, 0.13);
  border-color: rgba(177, 208, 255, 0.18);
}

.topbar {
  color: #dbe7f5;
  background: linear-gradient(90deg, #071b34 0%, #0a3266 100%);
  font-size: 13px;
}

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

.topbar__group,
.topbar__item {
  display: flex;
  align-items: center;
}

.topbar__group {
  gap: 24px;
}

.topbar__item {
  gap: 8px;
  white-space: nowrap;
}

.topbar a:hover {
  color: #fff;
}

.topbar svg {
  width: 15px;
  height: 15px;
  color: #9bc4ff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(238, 243, 247, 0.96);
  border-bottom: 1px solid rgba(157, 175, 194, 0.9);
  box-shadow: 0 8px 30px rgba(17, 66, 124, 0.06);
  backdrop-filter: blur(16px);
}

.header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 28px;
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--ink-soft);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}

.header__contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header__phones {
  display: grid;
  gap: 1px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.header__phones a:hover {
  color: var(--brand);
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #176fee 0%, #0c50c4 100%);
  box-shadow: 0 10px 24px rgba(21, 94, 239, 0.22);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #0d5fd9 0%, #093f9b 100%);
  box-shadow: 0 13px 30px rgba(21, 94, 239, 0.28);
}

.btn--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line-strong);
}

.btn--secondary:hover {
  color: var(--brand);
  border-color: #93b3f8;
  box-shadow: var(--shadow-sm);
}

.btn--whatsapp {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(8, 127, 109, 0.2);
}

.btn--whatsapp:hover {
  background: var(--teal-dark);
}

.btn--compact {
  min-height: 42px;
  padding-inline: 14px;
  border-radius: 10px;
  font-size: 13px;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.mobile-menu {
  display: none;
}

.hero {
  padding: 26px 0 38px;
  background: #071b34;
}

.hero__shell {
  position: relative;
  min-height: 468px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #d8e1ea;
  border: 1px solid #aebdcd;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(220, 228, 236, 0.99) 0%, rgba(220, 228, 236, 0.94) 39%, rgba(220, 228, 236, 0.18) 64%, rgba(220, 228, 236, 0) 100%);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 58%;
  max-width: 680px;
  padding: 54px 0 54px 58px;
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(39px, 4.25vw, 61px);
  font-weight: 820;
  letter-spacing: -0.052em;
  line-height: 0.99;
  text-wrap: balance;
  white-space: pre-line;
}

.hero__shell--without-image .hero__content {
  width: 100%;
  max-width: 820px;
  padding-right: 58px;
}

.hero__lead {
  max-width: 600px;
  margin: 22px 0 0;
  color: #3d5369;
  font-size: 17px;
  line-height: 1.55;
}

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

.hero__hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.hero__hint svg {
  width: 19px;
  height: 19px;
  color: var(--teal);
}

.section {
  padding: 88px 0;
}

.section--soft {
  color: #fff;
  background: #071b34;
  border-block: 0;
}

.section--soft .section-heading h2 {
  color: #fff;
}

.section--soft .eyebrow {
  color: #b9d5ff;
  background: rgba(105, 160, 238, 0.13);
  border-color: rgba(177, 208, 255, 0.18);
}

#services {
  background: #fff;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 810;
  letter-spacing: -0.048em;
  line-height: 1.02;
  text-wrap: balance;
  white-space: pre-line;
}

.section-heading--center h2 {
  margin-inline: auto;
}

.section-heading p {
  max-width: 660px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 398px;
  display: grid;
  grid-template-rows: 278px minmax(120px, auto);
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafb 0%, #e8edf2 100%);
  border: 1px solid #b4c1ce;
  border-radius: var(--radius-md);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: #86afea;
  box-shadow: 0 20px 48px rgba(18, 75, 146, 0.16);
}

.category-card__visual {
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.category-card:nth-child(2n) .category-card__visual {
  background: #fff;
}

.category-card:nth-child(3n) .category-card__visual {
  background: #fff;
}

.category-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: scale(0.82);
  transform-origin: center top;
  transition: transform 260ms ease;
}

.category-card:hover .category-card__visual img {
  transform: scale(0.86);
}

.category-card__body {
  position: relative;
  z-index: 1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 23px;
  background: linear-gradient(180deg, #f5f7f9 0%, #e4eaf0 100%);
  grid-row: 2;
}

.category-card--without-image {
  min-height: 250px;
  grid-template-rows: minmax(250px, auto);
}

.category-card--without-image .category-card__body {
  grid-row: 1;
}

.category-card__text {
  width: 100%;
  display: grid;
  justify-items: center;
}

.category-card:not(.category-card--catalog) h3 {
  max-width: 290px;
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.015em;
  text-align: center;
  text-transform: uppercase;
}

.category-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.category-card__line {
  width: 54px;
  height: 3px;
  margin-top: 14px;
  background: var(--brand);
  border-radius: 99px;
  transition: width 200ms ease;
}

.category-card:hover .category-card__line {
  width: 70px;
}

.category-card__arrow {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.category-card:hover .category-card__arrow {
  color: #fff;
  background: var(--brand);
  transform: translateX(2px);
}

.category-card__arrow svg {
  width: 17px;
  height: 17px;
}

.category-card--catalog {
  min-height: 398px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  justify-content: flex-start;
  align-self: stretch;
  color: #fff;
  background: linear-gradient(145deg, #082448 0%, #0d4387 100%);
  border-color: #123f78;
}

.category-card--catalog:hover {
  border-color: #2865ac;
  box-shadow: 0 20px 48px rgba(8, 44, 91, 0.3);
}

.catalog-card__top {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.catalog-card__count {
  margin-top: 28px;
  color: #9ec5ff;
  font-size: 37px;
  font-weight: 820;
  letter-spacing: -0.06em;
  line-height: 1;
}

.category-card--catalog h3 {
  max-width: 300px;
  margin: 0;
  font-size: 27px;
  line-height: 1.08;
}

.category-card--catalog p {
  max-width: 290px;
  color: #bdcada;
  font-size: 14px;
}

.catalog-card__link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 20px;
  color: #fff;
  border-top: 1px solid rgba(169, 204, 255, 0.2);
  font-weight: 750;
}

.catalog-card__link span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #082448;
  background: #a9ccff;
  border-radius: 50%;
}

.catalog-card__link svg {
  width: 18px;
  height: 18px;
}

.services-shell {
  position: relative;
  overflow: hidden;
  padding: 58px;
  color: #fff;
  background: linear-gradient(120deg, #071b35 0%, #0a2d59 55%, #0b3a73 100%);
  border: 1px solid rgba(137, 183, 244, 0.2);
  box-shadow: 0 26px 64px rgba(7, 38, 79, 0.2);
  border-radius: var(--radius-lg);
}

.services-shell::after {
  display: none;
}

.services-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  margin-bottom: 38px;
}

.services-intro h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 810;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 190px;
  padding: 26px;
  background: rgba(222, 236, 255, 0.09);
  border: 1px solid rgba(183, 211, 249, 0.18);
  border-radius: 18px;
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  color: #b6d4ff;
  background: rgba(113, 166, 239, 0.16);
  border-radius: 12px;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin: 0;
  font-size: 21px;
}

.service-card p {
  max-width: 500px;
  margin: 9px 0 0;
  color: #bdcada;
  font-size: 15px;
}

.services-note {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  color: #d9e4f0;
  font-size: 14px;
}

.section--repair {
  padding: 88px 0;
  background: #071b34;
}

.repair-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: stretch;
  gap: 48px;
  overflow: hidden;
  padding: 54px 58px;
  background: #fff;
  border: 1px solid #a8b8c8;
  box-shadow: 0 22px 56px rgba(18, 74, 140, 0.12);
  border-radius: var(--radius-lg);
}

.repair-shell::before {
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 390px;
  height: 390px;
  content: "";
  display: none;
  pointer-events: none;
}

.repair-shell__content,
.repair-shell__feature {
  position: relative;
  z-index: 1;
}

.repair-shell h2 {
  max-width: 740px;
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 810;
  letter-spacing: -0.048em;
  line-height: 1.03;
  text-wrap: balance;
}

.repair-shell__lead {
  max-width: 750px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}

.repair-shell__consultation {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
}

.repair-shell__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
}

.repair-shell__address {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.repair-shell__address:hover {
  color: var(--brand);
}

.repair-shell__address svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--brand);
}

.repair-shell__feature {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  color: #fff;
  background: linear-gradient(145deg, #092448 0%, #0d4387 100%);
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(11, 31, 58, 0.16);
}

.repair-shell__icon {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  color: #b5d3ff;
  background: rgba(116, 168, 239, 0.16);
  border: 1px solid rgba(171, 205, 252, 0.22);
  border-radius: 20px;
}

.repair-shell__icon svg {
  width: 72px;
  height: 72px;
}

.repair-shell__feature strong {
  margin-top: 0;
  font-size: 23px;
  line-height: 1.15;
}

.repair-shell__feature span {
  margin-top: 10px;
  color: #b9c8d9;
  font-size: 14px;
  line-height: 1.5;
}

.repair-shell--without-feature {
  grid-template-columns: minmax(0, 1fr);
}

.content-section--soft {
  background: #fff;
  border-block: 0;
}

.content-section--dark {
  color: #fff;
  background: linear-gradient(135deg, #06172d 0%, #0a3265 100%);
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 78px);
}

.content-shell--without-image {
  grid-template-columns: minmax(0, 820px);
}

.content-shell__copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 810;
  letter-spacing: -0.05em;
  line-height: 1.04;
  white-space: pre-line;
  text-wrap: balance;
}

.content-shell__body {
  max-width: 740px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  white-space: pre-line;
}

.content-shell__copy .btn {
  margin-top: 28px;
}

.content-shell__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0;
  background: #e8eef7;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

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

.content-section--dark .content-shell__body {
  color: #bdcada;
}

.content-section--dark .content-shell__media {
  background: var(--ink);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.site-footer {
  padding: 58px 0 28px;
  color: #c1cddd;
  background: #020b18;
  border-top: 1px solid #153657;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr 1.25fr;
  gap: 48px;
  padding-bottom: 46px;
}

.site-footer .brand {
  color: #fff;
}

.footer-about p {
  max-width: 310px;
  margin: 20px 0 0;
  color: #94a7bd;
  font-size: 14px;
}

.footer-column h2 {
  margin: 3px 0 18px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  display: grid;
  gap: 11px;
  font-size: 14px;
}

.footer-contact__item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.footer-contact__item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 3px;
  color: #9fc6ff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  color: #879eb6;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12px;
}

/* Catalog */
.catalog-hero {
  padding: 46px 0 38px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.catalog-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(440px, 1.15fr);
  align-items: end;
  gap: 60px;
}

.catalog-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 820;
  letter-spacing: -0.057em;
  line-height: 0.98;
}

.catalog-hero__copy p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.search-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.search-field__control {
  position: relative;
}

.search-field__control > svg {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 21px;
  height: 21px;
  color: #77879a;
  pointer-events: none;
  transform: translateY(-50%);
}

.search-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 52px 0 52px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(15, 35, 60, 0.08);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.12), 0 10px 34px rgba(15, 35, 60, 0.08);
}

.search-field input::placeholder {
  color: #66758a;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 38px;
  height: 38px;
  display: none;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transform: translateY(-50%);
}

.search-clear[data-visible="true"] {
  display: grid;
}

.search-clear:hover {
  color: var(--ink);
  background: var(--surface);
}

.search-clear svg {
  width: 18px;
  height: 18px;
}

.search-field__hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.catalog-section {
  padding: 34px 0 88px;
  background: #071b34;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: start;
  gap: 34px;
}

.filter-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
  background: #fff;
  border: 1px solid #c4d7ef;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  border-radius: 18px;
}

.filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.filter-panel__header h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.filter-close {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}

.filter-close svg {
  width: 19px;
  height: 19px;
}

.filter-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-panel legend {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-list {
  display: grid;
  gap: 5px;
  max-height: calc(100vh - 285px);
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.filter-option {
  position: relative;
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 140ms ease;
}

.filter-option:hover {
  background: #edf5ff;
}

.filter-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--brand);
}

.filter-option__name {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.3;
}

.filter-option__count {
  min-width: 25px;
  padding: 2px 6px;
  color: var(--muted);
  background: #d8e6fa;
  border-radius: 99px;
  font-size: 11px;
  text-align: center;
}

.filter-reset {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.filter-reset:hover {
  border-color: #aac1f2;
}

.filter-backdrop {
  display: none;
}

.results-toolbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.results-summary {
  margin: 0;
  color: #b9c8d9;
  font-size: 14px;
}

.results-summary strong {
  color: #fff;
  font-size: 17px;
}

.mobile-filter-button {
  min-height: 44px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
}

.mobile-filter-button svg {
  width: 18px;
  height: 18px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.active-filters:empty {
  display: none;
}

.filter-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.filter-chip svg {
  width: 13px;
  height: 13px;
}

.product-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.product-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.product-row:last-child {
  border-bottom: 0;
}

.product-row:hover {
  background: #edf5ff;
}

.product-row h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.016em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.product-row__category {
  width: fit-content;
  display: inline-block;
  margin-top: 8px;
  padding: 3px 8px;
  color: #315d91;
  background: #e3edfb;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.product-request {
  min-width: 172px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.load-more-wrap[hidden] {
  display: none;
}

.empty-state,
.catalog-error {
  display: none;
  padding: 70px 26px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.empty-state[data-visible="true"],
.catalog-error[data-visible="true"] {
  display: block;
}

.empty-state__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 16px;
}

.empty-state__icon svg {
  width: 27px;
  height: 27px;
}

.empty-state h2,
.catalog-error h2 {
  margin: 0;
  font-size: 24px;
}

.empty-state p,
.catalog-error p {
  max-width: 520px;
  margin: 10px auto 22px;
  color: var(--muted);
}

.empty-state__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1120px) {
  .header__inner {
    grid-template-columns: 190px 1fr auto;
    gap: 16px;
  }

  .desktop-nav a {
    padding-inline: 9px;
    font-size: 13px;
  }

  .header__phones {
    display: none;
  }

  .hero__content {
    width: 62%;
    padding-left: 44px;
  }

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

  .category-card--catalog {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }

  .footer-about {
    grid-row: span 2;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header__contact {
    display: none;
  }

  .header__inner {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-menu {
    position: fixed;
    inset: 108px 0 auto;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    padding: 14px 20px 24px;
    background: #f6f9ff;
    border-top: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.15);
  }

  .mobile-menu[data-open="true"] {
    display: block;
  }

  .mobile-menu__nav {
    display: grid;
    gap: 4px;
  }

  .mobile-menu__nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 10px;
    font-weight: 700;
  }

  .mobile-menu__nav a:hover,
  .mobile-menu__nav a[aria-current="page"] {
    color: var(--brand);
    background: var(--brand-soft);
  }

  .mobile-menu__contacts {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .mobile-menu__phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 14px;
    font-weight: 700;
  }

  .hero__shell {
    min-height: 610px;
    display: block;
  }

  .hero__media {
    top: auto;
    height: 290px;
  }

  .hero__media::after {
    background: linear-gradient(180deg, #ebf3ff 0%, rgba(235, 243, 255, 0) 34%);
  }

  .hero__media img {
    object-position: 72% center;
  }

  .hero__content {
    width: 100%;
    max-width: 720px;
    padding: 42px 38px 300px;
  }

  .services-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .repair-shell__feature {
    min-height: 240px;
  }

  .content-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .content-shell__media {
    max-width: 720px;
  }

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

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: fixed;
    inset: auto 0 0;
    z-index: 1100;
    max-height: min(88vh, 780px);
    overflow-y: auto;
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(105%);
    transition: transform 220ms ease, visibility 0s linear 220ms;
  }

  .filter-panel[data-open="true"] {
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .filter-close {
    display: grid;
  }

  .filter-list {
    max-height: 52vh;
  }

  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(7, 24, 45, 0.55);
    backdrop-filter: blur(3px);
  }

  .filter-backdrop[data-visible="true"] {
    display: block;
  }

  .mobile-filter-button {
    display: inline-flex;
  }
}

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

  .topbar__inner {
    min-height: 38px;
  }

  .topbar__item:first-child {
    min-width: 0;
  }

  .topbar__item:first-child span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar__group .topbar__item:last-child {
    display: none;
  }

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

  .hero__shell {
    min-height: 650px;
    border-radius: 22px;
  }

  .hero__content {
    padding: 34px 22px 292px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero__lead {
    margin-top: 18px;
    font-size: 15px;
  }

  .hero__actions {
    display: grid;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__hint {
    align-items: flex-start;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2,
  .services-intro h2,
  .repair-shell h2,
  .content-shell__copy h2 {
    font-size: 38px;
  }

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

  .category-card {
    min-height: 344px;
    grid-template-rows: 234px minmax(110px, auto);
  }

  .category-card__visual {
    height: auto;
  }

  .category-card--catalog {
    min-height: 282px;
    padding: 26px;
  }

  .category-card--catalog h3 {
    font-size: 28px;
  }

  .catalog-card__count {
    font-size: 36px;
  }

  .services-shell {
    padding: 38px 22px;
    border-radius: 22px;
  }

  .services-intro {
    gap: 26px;
  }

  .services-intro .btn {
    width: 100%;
  }

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

  .repair-shell {
    gap: 24px;
    padding: 38px 22px;
    border-radius: 22px;
  }

  .repair-shell__lead {
    font-size: 16px;
  }

  .repair-shell__actions,
  .repair-shell__actions .btn {
    width: 100%;
  }

  .repair-shell__feature {
    min-height: 230px;
    padding: 24px;
  }

  .content-shell__body {
    font-size: 16px;
  }

  .content-shell__copy .btn {
    width: 100%;
  }

  .content-shell__media {
    border-radius: 18px;
  }

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

  .footer-about {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-hero {
    padding: 32px 0 28px;
  }

  .catalog-hero__row {
    gap: 24px;
  }

  .catalog-hero h1 {
    font-size: 48px;
  }

  .search-field input {
    min-height: 54px;
    font-size: 15px;
  }

  .catalog-section {
    padding: 22px 0 64px;
  }

  .product-row {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .product-request {
    width: 100%;
  }

  .results-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .brand {
    font-size: 16px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .category-card__body {
    padding: 19px;
  }

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

  .footer-column:last-child,
  .footer-about {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
