/* ========================================================================== */
/* Общие токены и стили клиентской версии                              */
/* ========================================================================== */

:root {
  --ink: #1b2a4a;
  --muted: #687386;
  --paper: #f7f8fa;
  --white: #ffffff;
  --line: #dce1e7;
  --blue: #1b2a4a;
  --blue-soft: #293a5f;
  --yellow: #ffc107;
  --yellow-dark: #c79200;
  --reviews: #e9ecef;
  --radius: 20px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

/* Шапка и переключатель аудитории */

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(27, 42, 74, 0.1);
  background: rgba(247, 248, 250, 0.98);
}
.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 27px;
  font-weight: 800;
}
.logo b,
.logo small {
  display: block;
  line-height: 1.05;
}
.logo b {
  font-size: 19px;
  letter-spacing: 0.08em;
}
.logo small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.header-phone {
  margin-left: auto;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

/* Главный экран */

.hero {
  padding: 32px 0 44px;
}
.hero-grid {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.85fr);
  gap: 40px;
  align-items: stretch;
}
.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 12px;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--yellow-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  max-width: 700px;
  margin-bottom: 22px;
  font-size: clamp(52px, 5.4vw, 78px);
  line-height: 1.01;
  letter-spacing: -0.06em;
}
h1 span {
  color: var(--blue);
}
.hero-text {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}
.button-primary {
  color: var(--white);
  background: var(--blue);
}
.button-primary:hover {
  background: #111d35;
}
.button-accent {
  color: var(--ink);
  background: var(--yellow);
}
.text-link {
  font-size: 14px;
  font-weight: 800;
}
.text-link span {
  color: var(--yellow-dark);
}
.hero-facts {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.hero-facts li {
  min-width: 0;
}
.hero-facts strong,
.hero-facts span {
  display: block;
}
.hero-facts strong {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}
.hero-facts strong::after {
  width: 30px;
  height: 3px;
  display: block;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--yellow);
  content: "";
}
.hero-facts span {
  color: var(--muted);
  font-size: 12px;
}
.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfe3e8;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(10, 21, 45, 0.36));
}
.hero-badge {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--white);
  background: rgba(27, 42, 74, 0.9);
  font-size: 12px;
  font-weight: 700;
}
.hero-badge span {
  color: var(--yellow);
}

/* Главный экран с вырезанной фигурой мастера */

.consumer-page {
  overflow-x: clip;
}

.consumer-page .hero {
  position: relative;
  z-index: 2;
}

.consumer-page .hero-grid {
  min-height: 620px;
}

.hero-media.hero-person {
  min-height: 620px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.hero-media.hero-person::after {
  display: none;
}

.hero-media.hero-person img {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -44px;
  width: auto;
  max-width: none;
  height: 680px;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 24px 28px rgba(17, 29, 53, 0.2));
}

.trade-page .hero {
  overflow: hidden;
}

.trade-page .hero-media.hero-person img,
.home-page .hero-media.hero-person img {
  bottom: -548px;
  height: 1200px;
}

.home-page .hero {
  overflow: hidden;
}

.hero-media.hero-person .hero-badge {
  z-index: 3;
  right: 4px;
  bottom: 8px;
}

.consumer-page .section-dark {
  position: relative;
  z-index: 1;
}

/* Общие секции */

.section {
  padding: 58px 0;
}
.section-dark {
  color: var(--white);
  background: var(--blue);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 28px;
}
.section-heading > div {
  min-width: 0;
}
.section-heading h2 {
  max-width: 790px;
  margin-bottom: 0;
  font-size: clamp(38px, 4.3vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}
.section-heading > p {
  max-width: 410px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.light-heading > p {
  color: #cbd3e2;
}

/* Преимущества и команда */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.advantages-grid article {
  min-width: 0;
  min-height: 244px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}
.advantages-grid article > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}
.advantages-grid h3 {
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  margin: 36px 0 10px;
  font-size: 20px;
}
.advantages-grid p {
  min-height: 64px;
  margin: 0;
  color: #cbd3e2;
  font-size: 13px;
  line-height: 1.65;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.expert-card {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(27, 42, 74, 0.06);
}
.expert-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 120px;
  height: 7px;
  content: "";
  border-radius: 8px 0 0 0;
  background: var(--yellow);
}
.expert-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
}
.expert-top strong {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.expert-card p {
  margin-bottom: 24px;
  color: var(--yellow-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.expert-card h3 {
  margin-bottom: 8px;
  font-size: 34px;
}
.expert-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.expert-card li {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
  font-size: 12px;
}

/* Направления ремонта на главной */

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.direction-card {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(27, 42, 74, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.direction-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 130px;
  height: 7px;
  border-radius: 8px 0 0;
  background: var(--yellow);
  content: "";
}
.direction-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(27, 42, 74, 0.12);
}
.direction-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 800;
}
.direction-card p {
  margin: 34px 0 8px;
  color: var(--yellow-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.direction-card h3 {
  min-height: 76px;
  margin-bottom: 12px;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.direction-card small {
  max-width: 340px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.direction-card b {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  font-size: 14px;
}
.direction-card i {
  color: var(--yellow-dark);
  font-size: 20px;
  font-style: normal;
}

/* Карусели и примеры работ */

.works-section {
  background: var(--white);
}
.carousel-buttons {
  display: flex;
  gap: 8px;
}
.slider-button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.featured-carousel-wrap {
  position: relative;
}
.featured-carousel-controls {
  position: absolute;
  z-index: 3;
  inset: 0 0 54px;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  pointer-events: none;
}
.featured-carousel-controls .slider-button {
  width: 54px;
  height: 54px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--yellow);
  background: transparent;
  box-shadow: none;
  font:
    700 48px/1 Arial,
    sans-serif;
  padding: 0 0 6px;
  pointer-events: auto;
  text-shadow: 0 2px 9px rgba(27, 42, 74, 0.32);
  backdrop-filter: blur(4px);
  transition: transform 0.18s ease;
}
.featured-carousel-controls .slider-button:hover {
  color: var(--yellow);
  background: transparent;
  transform: scale(1.06);
}
.featured-carousel-controls .slider-button:active {
  transform: scale(0.98);
}
.featured-carousel-controls .slider-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
.carousel {
  position: relative;
  overflow: hidden;
  scroll-snap-type: none;
  scroll-behavior: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.carousel img {
  -webkit-user-drag: none;
  user-drag: none;
}
.carousel.is-dragging {
  cursor: grabbing;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel:focus-visible {
  outline: 2px solid var(--yellow-dark);
  outline-offset: 5px;
}
.carousel-track {
  display: flex;
  gap: 18px;
  transition: transform 0.58s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.work-card {
  flex: 0 0 calc((100% - 18px) / 2);
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.work-card-image {
  position: relative;
}
.work-card-carousel,
.project-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}
.work-card-track,
.project-carousel .carousel-track {
  gap: 0;
  transition: transform 0.58s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.work-card-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.work-card-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.work-card-carousel .project-slide {
  flex: 0 0 100%;
}
.work-card-carousel .project-slide .before-after__image {
  height: 100%;
  aspect-ratio: auto;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 20px;
  pointer-events: auto;
}
.carousel-dots[hidden] {
  display: none;
}
.featured-carousel-wrap > .carousel > .carousel-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
}
.work-card-carousel > .carousel-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
}
.project-carousel > .carousel-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
}
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(27, 42, 74, 0.34);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}
.carousel-dot:hover {
  background: var(--yellow-dark);
  transform: scale(1.15);
}
.carousel-dot.is-active {
  width: 24px;
  background: var(--yellow);
}
.carousel-dot:focus-visible {
  outline: 2px solid var(--yellow-dark);
  outline-offset: 3px;
}
.work-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
.image-stage {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  min-width: 74px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: var(--white);
  background: rgba(27, 42, 74, 0.9);
  box-shadow: 0 8px 22px rgba(27, 42, 74, 0.2);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(6px);
}
.image-stage-after {
  color: var(--blue);
  background: rgba(255, 193, 7, 0.94);
}
.work-card .image-stage {
  color: var(--white);
  font-size: 13px;
}
.work-card .image-stage-after {
  color: var(--blue);
}
.work-card figcaption {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 15px 2px 0;
}
.work-card span {
  color: var(--muted);
  font-size: 12px;
}
.work-card b {
  font-size: 14px;
  text-align: right;
}
.work-more-card {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--blue);
}
.work-more-card .work-more-arrow {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 0 auto auto;
  border-radius: 50%;
  color: var(--blue);
  background: var(--yellow);
  font-size: 26px;
}
.work-more-card strong {
  max-width: 260px;
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.15;
}
.work-more-card small {
  max-width: 280px;
  color: #cbd3e2;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 680px) {
  .image-stage {
    top: 10px;
    left: 10px;
    min-width: 62px;
    padding: 8px 11px;
    font-size: 12px;
  }
  .featured-carousel-controls {
    padding: 0 4px;
  }
  .featured-carousel-wrap > .carousel > .carousel-dots {
    bottom: 54px;
  }
}

/* Интерактивное сравнение фотографий до и после */

.before-after {
  --before-after-position: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
  background: var(--blue);
  isolation: isolate;
  user-select: none;
}

.before-after__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 0;
  object-fit: cover;
  pointer-events: none;
}

/* Не даём общему правилу для фотографий каталога оставить пустую полосу снизу. */
.project-slide .before-after__image {
  height: 100%;
  aspect-ratio: auto;
}

.before-after__image--before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--before-after-position)) 0 0);
}

.before-after__label {
  position: absolute;
  z-index: 5;
  top: 18px;
  min-width: 74px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(9, 18, 38, 0.2);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  pointer-events: none;
  backdrop-filter: blur(7px);
}

.before-after__label--before {
  left: 18px;
  color: var(--white);
  background: rgba(20, 40, 77, 0.9);
}

.before-after__label--after {
  right: 18px;
  color: var(--blue);
  background: rgba(255, 193, 7, 0.96);
}

.before-after__range {
  position: absolute;
  z-index: 7;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: none;
}

.before-after__divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--before-after-position);
  width: 4px;
  background: var(--yellow);
  box-shadow: 0 0 0 1px rgba(20, 40, 77, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
}

.before-after__handle {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: var(--before-after-position);
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 4px solid var(--yellow);
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(9, 18, 38, 0.28);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition:
    box-shadow 180ms ease,
    scale 180ms ease;
  pointer-events: none;
}

.before-after__range:hover ~ .before-after__handle {
  scale: 1.06;
  box-shadow: 0 15px 34px rgba(9, 18, 38, 0.35);
}

.before-after__range:focus-visible ~ .before-after__handle {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.project-slide:hover .before-after__image {
  transform: none;
  filter: none;
}

@media (max-width: 680px) {
  .before-after__label {
    top: 12px;
    min-width: 60px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .before-after__label--before {
    left: 12px;
  }

  .before-after__label--after {
    right: 12px;
  }

  .before-after__divider {
    width: 3px;
  }

  .before-after__handle {
    width: 48px;
    height: 48px;
    border-width: 3px;
    font-size: 20px;
  }
}

/* Цены и отзывы */

.price-list {
  border-top: 1px solid var(--ink);
}
.price-list div,
.more-prices div {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.price-list b,
.more-prices b {
  color: var(--blue);
  white-space: nowrap;
}
.price-list small,
.more-prices small {
  color: var(--muted);
  font-size: 12px;
}
.all-prices {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 2px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.all-prices span {
  color: var(--yellow-dark);
}

.reviews-section {
  background: var(--reviews);
}
.reviews-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 16px;
}
.review {
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}
.review.featured {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}
.stars {
  margin-bottom: 22px;
  color: var(--yellow-dark);
  letter-spacing: 0.12em;
}
.review blockquote {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
}
.featured blockquote {
  font-size: 25px;
  line-height: 1.45;
}
.review footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.review footer span {
  color: var(--muted);
  font-size: 12px;
}

/* Контактные формы */

.contact-section {
  background: var(--paper);
}
.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(40px, 5vw, 76px);
  align-items: center;
  padding: clamp(38px, 4vw, 58px);
  border-radius: 30px;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 28px 70px rgba(27, 42, 74, 0.18);
}
.contact-card h2 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(42px, 4.2vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}
.contact-card > div > p:last-child {
  max-width: 540px;
  margin: 0;
  color: #cbd3e2;
  line-height: 1.6;
}
.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.contact-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.contact-form > label:not(.consent-field):not(.form-trap) {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.contact-form > label:not(.consent-field):not(.form-trap) > span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: #d7deeb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.contact-form input {
  width: 100%;
  height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 13px;
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.075);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input::placeholder {
  color: #aeb9cc;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--yellow);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.14);
}
.contact-form .button {
  min-height: 65px;
  border-radius: 14px;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(255, 193, 7, 0.18);
}
.form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: #cbd3e2;
  font-size: 12px;
}
.form-status:not(:empty) {
  min-height: 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.contact-form .consent-field {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.contact-form .consent-field input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 5px;
  accent-color: var(--yellow);
  background: transparent;
  cursor: pointer;
}
.contact-form .consent-field span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: #cbd3e2;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}
.contact-form .consent-field a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-color: rgba(255, 193, 7, 0.7);
  text-underline-offset: 2px;
}
.form-trap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.captcha-field {
  min-width: 0;
  min-height: 100px;
  display: flex;
  align-items: center;
  border-radius: 13px;
}
.captcha-field[hidden] {
  display: none;
}
.captcha-field [data-captcha] {
  width: 100%;
  min-height: 100px;
}
.form-status.is-error {
  color: #ffb9b9;
  border-color: rgba(255, 120, 120, 0.3);
  background: rgba(155, 35, 35, 0.18);
}
.form-status.is-success {
  color: #bdebc8;
  border-color: rgba(126, 220, 149, 0.28);
  background: rgba(39, 125, 62, 0.16);
}
.contact-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

/* Подвал и плавающая кнопка */

.footer {
  padding: 30px 0 86px;
  color: var(--white);
  background: #111a2d;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 32px;
}
.footer-row p {
  margin: 0 auto 0 0;
  color: #9eabc1;
  font-size: 12px;
}
.footer-row > a {
  font-size: 14px;
  font-weight: 800;
}
.footer-row .footer-audience-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b9c4d6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.18s ease;
}
.footer-row .footer-privacy-link {
  color: #b9c4d6;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 193, 7, 0.7);
  text-underline-offset: 3px;
}
.footer-row .footer-privacy-link:hover {
  color: var(--white);
}
.footer-audience-link span {
  color: var(--yellow);
  font-size: 16px;
}
.footer-audience-link:hover {
  color: var(--white);
}
.footer-logo {
  margin: 0;
}
.footer-logo small {
  color: #9eabc1;
}
.floating-call {
  position: fixed;
  z-index: 70;
  right: 18px;
  bottom: 18px;
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 17px 0 8px;
  border: 1px solid rgba(27, 42, 74, 0.16);
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 10px 28px rgba(27, 42, 74, 0.18);
}
.floating-call span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
}
.floating-call b {
  font-size: 13px;
}

/* Единая система плавных переходов и микроанимаций */

:root {
  --motion-fast: 180ms;
  --motion-base: 320ms;
  --motion-slow: 680ms;
  --motion-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --motion-spring: cubic-bezier(0.2, 0.8, 0.2, 1.12);
}

.motion-enabled .motion-reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity var(--motion-slow) var(--motion-ease),
    transform var(--motion-slow) var(--motion-ease);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform;
}

.motion-enabled .motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.hero-media.motion-reveal {
  transform: translate3d(28px, 0, 0) scale(0.985);
}

.hero-media.motion-reveal.is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

.button,
.text-link,
.all-prices,
.back-link,
.header-phone,
.footer-row > a,
.floating-call,
.slider-button {
  transition:
    color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    box-shadow var(--motion-base) var(--motion-ease),
    transform var(--motion-base) var(--motion-spring);
}

.button {
  position: relative;
}

.button,
.floating-call {
  overflow: hidden;
}

.button::after,
.floating-call::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.24) 50%, transparent 75%);
  transform: translateX(-130%);
  transition: transform 620ms var(--motion-ease);
}

.direction-card,
.expert-card,
.advantages-grid article,
.review,
.project-case,
.price-category,
.contact-card {
  transition:
    transform var(--motion-base) var(--motion-ease),
    border-color var(--motion-base) ease,
    background-color var(--motion-base) ease,
    box-shadow var(--motion-base) var(--motion-ease);
}

.direction-card::after,
.expert-card::after {
  transform-origin: right center;
  transition: width var(--motion-base) var(--motion-ease);
}

.direction-card > span,
.advantages-grid article > span,
.price-category-heading > span,
.logo-mark {
  transition: transform var(--motion-base) var(--motion-spring);
}

.direction-card i,
.text-link span,
.all-prices span,
.work-more-arrow,
.footer-audience-link span {
  display: inline-block;
  transition: transform var(--motion-base) var(--motion-spring);
}

.work-card-image,
.project-slide {
  overflow: hidden;
  border-radius: var(--radius);
}

.work-card img,
.project-slide img,
.hero-media img {
  transition:
    transform 720ms var(--motion-ease),
    filter var(--motion-base) ease;
}

.work-more-card {
  transition:
    transform var(--motion-base) var(--motion-ease),
    background-color var(--motion-base) ease,
    box-shadow var(--motion-base) var(--motion-ease);
}

.catalog-price-row,
.price-list div,
.more-prices div {
  transition:
    color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    padding var(--motion-base) var(--motion-ease);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-base) ease,
    transform var(--motion-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .floating-call:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(27, 42, 74, 0.2);
  }

  .button:hover::after,
  .floating-call:hover::after {
    transform: translateX(130%);
  }

  .text-link:hover span,
  .all-prices:hover span,
  .footer-audience-link:hover span {
    transform: translateX(5px);
  }

  .back-link:hover {
    color: var(--ink);
    transform: translateX(-4px);
  }

  .logo:hover .logo-mark {
    transform: rotate(-8deg) scale(1.07);
  }

  .direction-card:hover,
  .expert-card:hover,
  .review:hover,
  .price-category:hover {
    transform: translateY(-7px);
    border-color: rgba(27, 42, 74, 0.18);
    box-shadow: 0 26px 58px rgba(27, 42, 74, 0.13);
  }

  .direction-card:hover::after,
  .expert-card:hover::after {
    width: 52%;
  }

  .direction-card:hover > span,
  .advantages-grid article:hover > span,
  .price-category:hover .price-category-heading > span {
    transform: scale(1.08) rotate(-5deg);
  }

  .direction-card:hover i {
    transform: translate(4px, -4px);
  }

  .advantages-grid article:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 193, 7, 0.52);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 45px rgba(9, 18, 38, 0.18);
  }

  .project-case:hover,
  .contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 64px rgba(27, 42, 74, 0.13);
  }

  .work-card:hover img,
  .project-slide:hover img {
    transform: scale(1.035);
    filter: saturate(1.04) contrast(1.02);
  }

  .work-more-card:hover {
    transform: translateY(-6px);
    background: var(--blue-soft);
    box-shadow: 0 24px 52px rgba(27, 42, 74, 0.2);
  }

  .work-more-card:hover .work-more-arrow {
    transform: translate(5px, -5px) rotate(4deg);
  }

  .catalog-price-row:hover,
  .price-list div:hover,
  .more-prices div:hover {
    padding-inline: 10px;
    color: var(--blue);
    background: rgba(27, 42, 74, 0.035);
  }

  .contact-form input:hover,
  .contact-form select:hover,
  .contact-form textarea:hover {
    border-color: rgba(255, 255, 255, 0.42);
  }
}

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

  .motion-reveal,
  .motion-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Подстраницы: работы и цены */

.subpage-hero {
  padding: 48px 0 36px;
}
.subpage-hero h1 {
  margin-bottom: 18px;
}
.subpage-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.compact-section {
  padding-top: 34px;
}
.loading-state {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--white);
}
.catalog-empty {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px;
  border: 1px dashed #c8ced7;
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--white);
  text-align: center;
}
.catalog-empty > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--yellow);
  font-size: 28px;
  font-weight: 800;
}
.catalog-empty h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 38px);
}
.catalog-empty p {
  max-width: 680px;
  margin-bottom: 0;
  line-height: 1.6;
}
.catalog-empty-compact {
  min-height: 220px;
}
.catalog-empty-compact .text-link,
.catalog-empty-compact .all-prices {
  margin-top: 20px;
}

/* Страница политики конфиденциальности */

.privacy-document {
  max-width: 920px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(27, 42, 74, 0.07);
}

.privacy-document h2 {
  margin: 34px 0 12px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.privacy-document h2:first-of-type {
  margin-top: 0;
}

.privacy-document p,
.privacy-document li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.privacy-document p {
  margin: 0 0 14px;
}

.privacy-document ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.privacy-document li + li {
  margin-top: 7px;
}

.privacy-document strong {
  color: var(--ink);
}

.privacy-document a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(255, 193, 7, 0.8);
  text-underline-offset: 3px;
}

.privacy-notice {
  margin-bottom: 26px !important;
  padding: 15px 17px;
  border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  background: #fff8df;
}

.privacy-meta {
  margin-bottom: 30px !important;
  font-size: 13px !important;
}

@media (max-width: 600px) {
  .privacy-document {
    padding: 20px 17px;
    border-radius: 16px;
  }

  .privacy-document h2 {
    margin-top: 28px;
  }

  .privacy-document p,
  .privacy-document li {
    font-size: 14px;
  }
}

.project-list {
  display: grid;
  gap: 28px;
}
.project-list.is-loading {
  min-height: 920px;
}
.project-case {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 34px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(27, 42, 74, 0.05);
}
.project-case:nth-child(even) .project-gallery {
  order: 2;
}
.project-gallery {
  min-width: 0;
}
.project-carousel-wrap {
  position: relative;
}
.project-carousel .carousel-track {
  transition: transform 0.58s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.project-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.project-carousel .project-slide {
  flex-basis: 100%;
}
.project-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}
.project-details {
  align-self: center;
  padding: 24px 12px;
}
.project-details h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.project-summary {
  margin-bottom: 28px;
  color: var(--muted);
  line-height: 1.6;
}
.project-details h3 {
  margin-bottom: 12px;
  font-size: 15px;
}
.completed-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.completed-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.completed-list li::before {
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--yellow);
  content: "✓";
  font-size: 9px;
  font-weight: 900;
}

.price-catalog {
  display: grid;
  gap: 18px;
}
.price-catalog.is-loading {
  min-height: 100vh;
}
.price-category {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
}
.price-category-heading {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  color: var(--white);
  background: var(--blue);
}
.price-category-heading > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--blue);
  background: var(--yellow);
  font-size: 11px;
  font-weight: 800;
}
.price-category-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
}
.price-category-note {
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  background: var(--paper);
}
.catalog-price-list {
  padding: 0 24px 8px;
}
.price-group-label {
  padding: 18px 0 8px;
  color: var(--yellow-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.catalog-price-row {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.catalog-price-row:last-child {
  border-bottom: 0;
}
.catalog-price-row span {
  font-size: 14px;
  line-height: 1.4;
}
.catalog-price-row small {
  color: var(--muted);
}
.catalog-price-row b {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 14px;
  white-space: nowrap;
}

.subpage-contact-card {
  width: min(calc(100% - 64px), var(--container));
}
.subpage-lead-form .form-status a {
  color: var(--yellow);
  text-decoration: underline;
}

/* Планшеты */

@media (max-width: 1024px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }
  .project-list.is-loading {
    min-height: 1200px;
  }
  .header-phone {
    display: none;
  }
  .hero {
    padding: 30px 0 34px;
  }
  .hero-grid {
    min-height: 0;
    display: block;
  }
  .consumer-page .hero-grid {
    min-height: 0;
  }
  .hero-copy {
    min-height: 0;
    padding: 0;
  }
  .hero-media {
    display: none;
  }
  h1 {
    max-width: 690px;
    font-size: clamp(54px, 8.5vw, 72px);
  }
  .hero-facts {
    margin-top: 30px;
    padding-top: 18px;
  }
  .section {
    padding: 40px 0;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }
  .section-heading > p {
    max-width: 560px;
  }
  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advantages-grid article {
    min-height: 200px;
    padding: 20px;
  }
  .advantages-grid h3 {
    min-height: 24px;
    margin-top: 24px;
  }
  .advantages-grid p {
    min-height: 43px;
  }
  .expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .expert-card {
    min-height: 200px;
  }
  .expert-card:last-child {
    grid-column: 1 / -1;
    min-height: 200px;
  }
  .carousel-buttons {
    display: flex;
  }
  .work-card {
    flex-basis: 72%;
  }
  .work-card img {
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  .project-slide img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .work-more-card {
    aspect-ratio: 16 / 10;
  }
  .contact-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 30px;
  }
  .contact-form {
    width: 100%;
  }
  .subpage-hero {
    padding: 34px 0 26px;
  }
  .back-link {
    margin-bottom: 24px;
  }
  .project-case {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }
  .project-case:nth-child(even) .project-gallery {
    order: 0;
  }
  .project-details {
    padding: 14px 4px 6px;
  }
  .subpage-contact-card {
    width: min(calc(100% - 48px), var(--container));
  }
  .project-carousel {
    overflow: hidden;
    scroll-snap-type: none;
    touch-action: pan-y;
  }
}

/* Десктоп */

@media (min-width: 1025px) {
  .work-card {
    flex-basis: calc((100% - 18px) / 2);
  }
  .featured-carousel-wrap .work-card {
    flex-basis: calc((100% - 18px) * 0.667);
  }
  .work-card img {
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
  .work-more-card {
    height: auto;
    aspect-ratio: 16 / 10;
  }
  .featured-carousel-wrap .work-more-card {
    flex-basis: calc((100% - 18px) * 0.667);
    height: auto;
    align-self: flex-start;
    aspect-ratio: 16 / 10;
    padding: 22px;
  }
  .featured-carousel-wrap .work-more-card .work-more-arrow {
    width: 46px;
    height: 46px;
    font-size: 22px;
  }
  .featured-carousel-wrap .work-more-card strong {
    font-size: 21px;
  }
  .featured-carousel-wrap .work-more-card small {
    font-size: 11px;
  }
  .project-case {
    grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  }
  .project-carousel {
    overflow: hidden;
    scroll-snap-type: none;
  }
  .project-slide img {
    height: clamp(280px, 25vw, 360px);
    aspect-ratio: auto;
  }
}

/* Телефоны */

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }
  .project-list.is-loading {
    min-height: 1100px;
  }
  .header-row {
    min-height: 66px;
    gap: 10px;
  }
  .logo {
    gap: 7px;
  }
  .logo-mark {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
  .logo b {
    font-size: 17px;
  }
  .logo small {
    display: none;
  }
  .hero {
    padding: 24px 0 28px;
  }
  .hero-grid,
  .hero-copy {
    min-height: 0;
  }
  .eyebrow {
    margin-bottom: 10px;
  }
  h1 {
    margin-bottom: 14px;
    font-size: clamp(38px, 11.2vw, 48px);
    line-height: 1.02;
  }
  .hero-text {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .text-link {
    padding-left: 2px;
  }
  .hero-facts {
    gap: 8px;
    margin-top: 22px;
    padding-top: 16px;
  }
  .hero-facts strong {
    font-size: 17px;
  }
  .hero-facts strong::after {
    width: 22px;
    height: 2px;
    margin-top: 6px;
  }
  .hero-facts span {
    font-size: 10px;
    line-height: 1.35;
  }
  .section {
    padding: 30px 0;
  }
  .section-heading {
    gap: 8px;
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: 34px;
  }
  .section-heading > p {
    font-size: 14px;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .advantages-grid article {
    min-height: 0;
    padding: 18px;
  }
  .advantages-grid article > span {
    width: 40px;
    height: 40px;
  }
  .advantages-grid h3 {
    min-height: 0;
    margin: 28px 0 7px;
  }
  .advantages-grid p {
    min-height: 0;
  }
  .expertise-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .direction-grid {
    grid-template-columns: 1fr;
  }
  .direction-card,
  .direction-card:last-child {
    min-height: 270px;
    grid-column: auto;
  }
  .expertise-grid::-webkit-scrollbar {
    display: none;
  }
  .expert-card,
  .expert-card:last-child {
    min-width: 84%;
    min-height: 190px;
    padding: 18px;
    grid-column: auto;
    scroll-snap-align: start;
  }
  .work-card {
    flex-basis: 88%;
  }
  .work-card img {
    aspect-ratio: 16 / 10;
  }
  .work-more-card {
    aspect-ratio: 16 / 10;
    padding: 20px;
  }
  .work-more-card .work-more-arrow {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }
  .work-more-card strong {
    font-size: 21px;
  }
  .work-card figcaption {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
  }
  .work-card b {
    text-align: left;
  }
  .price-list div,
  .more-prices div {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 11px 2px;
    font-size: 14px;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .review.featured {
    grid-row: auto;
  }
  .review {
    padding: 18px;
  }
  .stars {
    margin-bottom: 12px;
  }
  .review blockquote {
    margin-bottom: 18px;
    line-height: 1.45;
  }
  .featured blockquote {
    font-size: 20px;
  }
  .contact-card {
    width: calc(100% - 28px);
    padding: 22px 18px;
    border-radius: 18px;
  }
  .contact-card h2 {
    font-size: 34px;
  }
  .contact-form {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 16px;
    border-radius: 16px;
  }
  .contact-form .consent-field,
  .captcha-field,
  .contact-form .button,
  .form-status {
    grid-column: 1;
  }
  .contact-form .button {
    width: 100%;
  }
  .footer {
    padding: 24px 0 68px;
  }
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .footer-row p {
    margin: 0;
  }
  .floating-call {
    right: 10px;
    bottom: 10px;
    min-height: 48px;
    padding-right: 13px;
  }
  .floating-call span {
    width: 34px;
    height: 34px;
  }
  .subpage-hero {
    padding: 24px 0 18px;
  }
  .subpage-hero h1 {
    font-size: clamp(38px, 11.2vw, 48px);
  }
  .subpage-lead {
    font-size: 14px;
  }
  .back-link {
    margin-bottom: 18px;
  }
  .compact-section {
    padding-top: 18px;
  }
  .project-list {
    gap: 16px;
  }
  .project-case {
    padding: 14px;
    border-radius: 18px;
  }
  .project-carousel .carousel-track {
    gap: 12px;
  }
  .project-slide {
    flex-basis: 88%;
  }
  .project-slide img {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }
  .project-details {
    padding: 10px 2px 4px;
  }
  .project-details h2 {
    font-size: 32px;
  }
  .project-summary {
    margin-bottom: 20px;
    font-size: 14px;
  }
  .price-catalog {
    gap: 12px;
  }
  .price-category {
    border-radius: 16px;
  }
  .price-category-heading {
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 15px 14px;
  }
  .price-category-heading > span {
    width: 32px;
    height: 32px;
  }
  .price-category-heading h2 {
    font-size: 19px;
  }
  .price-category-note {
    padding: 13px 14px;
  }
  .catalog-price-list {
    padding: 0 14px 5px;
  }
  .catalog-price-row {
    min-height: 0;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 0;
  }
  .catalog-price-row span,
  .catalog-price-row b {
    font-size: 12px;
  }
  .catalog-price-row b {
    max-width: 42%;
    text-align: right;
    white-space: nowrap;
  }
  .subpage-contact-card {
    width: calc(100% - 28px);
  }
}

/* Доступность: уменьшение анимаций */

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

/* ========================================================================== */
/* Дополнения и переопределения для бизнес-версии                       */
/* Файл подключается после clients.css.                                  */
/* ========================================================================== */

/* Карусель работ */

.business-page .work-card {
  flex-basis: calc((100% - 36px) / 3);
}
.business-page .featured-carousel-wrap .work-card {
  flex-basis: calc((100% - 18px) * 0.667);
}
.business-page .featured-carousel-wrap .work-more-card {
  flex-basis: calc((100% - 18px) * 0.667);
}

/* Форма заявки для бизнеса */

.business-contact-card {
  align-items: center;
}

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

.business-form label {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.business-form label span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: #d7deeb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.business-form input,
.business-form select,
.business-form textarea {
  width: 100%;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 13px;
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.075);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.business-form input,
.business-form select {
  height: 58px;
}

.business-form textarea {
  min-height: 116px;
  padding-top: 15px;
  padding-bottom: 15px;
  resize: vertical;
}

.business-form select {
  color-scheme: dark;
}

.business-form input::placeholder,
.business-form textarea::placeholder {
  color: #aeb9cc;
}

.business-form input:focus,
.business-form select:focus,
.business-form textarea:focus {
  border-color: var(--yellow);
}

.business-form .field-wide {
  grid-column: 1 / -1;
}

/* Адаптивность */

@media (max-width: 1024px) {
  .business-page .work-card {
    flex-basis: 72%;
  }
}

@media (max-width: 600px) {
  .business-page .work-card {
    flex-basis: 88%;
  }

  .business-form {
    grid-template-columns: 1fr;
  }

  .business-form .field-wide {
    grid-column: auto;
  }
}

