@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --brand-orange: #fd9602;
  --brand-pink: #f51497;
  --brand-cyan: #00a9f9;
  --brand-black: #08090b;

  --background: #ffffff;
  --background-soft: #f6f7f9;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-solid: #ffffff;
  --surface-strong: #f0f2f5;
  --text: #101217;
  --text-muted: #69707d;
  --border: rgba(16, 18, 23, 0.10);
  --border-strong: rgba(16, 18, 23, 0.18);
  --shadow-sm: 0 12px 30px rgba(16, 18, 23, 0.08);
  --shadow-md: 0 24px 70px rgba(16, 18, 23, 0.14);
  --header-background: rgba(255, 255, 255, 0.78);
  --overlay: rgba(5, 7, 10, 0.86);
  --focus: #007fbd;
  --header-height: 82px;
  --container: 1220px;
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --transition-fast: 180ms ease;
  --transition: 320ms cubic-bezier(.2, .75, .25, 1);
  --transition-slow: 650ms cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --background: #08090b;
  --background-soft: #0d0f13;
  --surface: rgba(16, 18, 23, 0.82);
  --surface-solid: #111319;
  --surface-strong: #171a21;
  --text: #f7f8fa;
  --text-muted: #a7adba;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 28px 80px rgba(0, 0, 0, 0.46);
  --header-background: rgba(8, 9, 11, 0.78);
  --overlay: rgba(0, 0, 0, 0.92);
  --focus: #47c3ff;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
}

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

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

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

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

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

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 70%, transparent);
  outline-offset: 4px;
}

::selection {
  background: color-mix(in srgb, var(--brand-pink) 28%, transparent);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-150%);
  transition: transform var(--transition-fast);
}

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

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

.section {
  position: relative;
  padding: 112px 0;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.section-soft {
  background: var(--background-soft);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: var(--header-background);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition:
    height var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.site-header.is-scrolled {
  height: 70px;
  border-color: var(--border);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 11px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 4px;
}

.nav-link {
  position: relative;
  padding: 10px 11px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 5px;
  left: 12px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink), var(--brand-cyan));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--surface-strong);
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

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

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background-color var(--transition),
    border-color var(--transition);
}

.icon-button:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.icon {
  position: absolute;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity var(--transition), transform var(--transition);
}

.icon-moon {
  opacity: 0;
  transform: rotate(-25deg) scale(.65);
}

html[data-theme="dark"] .icon-sun {
  opacity: 0;
  transform: rotate(25deg) scale(.65);
}

html[data-theme="dark"] .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.menu-toggle {
  display: none;
}

.menu-toggle span {
  position: absolute;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle.is-open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.hero {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 60px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-orange) 8%, transparent), transparent 35%),
    linear-gradient(315deg, color-mix(in srgb, var(--brand-cyan) 9%, transparent), transparent 40%);
}

.hero-glow {
  position: absolute;
  z-index: -2;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
  pointer-events: none;
}

.hero-glow-one {
  top: 7%;
  left: -180px;
  background: var(--brand-pink);
}

.hero-glow-two {
  right: -160px;
  bottom: -130px;
  background: var(--brand-cyan);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-pink), var(--brand-cyan));
}

.hero h1,
.section-heading h2,
.price-copy h2,
.reviews-copy h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: .98;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 88px);
}

.gradient-text {
  display: block;
  padding-bottom: .08em;
  background: linear-gradient(95deg, var(--brand-orange) 0%, var(--brand-pink) 50%, var(--brand-cyan) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--text-muted);
  font-size: clamp(17px, 1.8vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition-fast);
}

.button:hover:not(:disabled):not(.is-disabled) {
  transform: translateY(-3px);
}

.button:hover svg {
  transform: translateX(3px);
}

.button-primary {
  background: linear-gradient(105deg, var(--brand-orange), var(--brand-pink) 52%, var(--brand-cyan));
  background-size: 160% 100%;
  color: #ffffff;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--brand-pink) 22%, transparent);
}

.button-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 20px 44px color-mix(in srgb, var(--brand-pink) 30%, transparent);
}

.button-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: color-mix(in srgb, var(--brand-cyan) 50%, var(--border));
  box-shadow: var(--shadow-sm);
}

.button-light {
  background: #ffffff;
  color: #0a0b0d;
}

.button:disabled,
.button.is-disabled {
  opacity: .48;
  cursor: not-allowed;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}

.benefit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 12%, transparent);
}

.benefit-dot.orange { color: var(--brand-orange); background: currentColor; }
.benefit-dot.pink { color: var(--brand-pink); background: currentColor; }
.benefit-dot.cyan { color: var(--brand-cyan); background: currentColor; }

.hero-visual {
  position: relative;
  min-height: 560px;
}

.visual-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  background: #060708;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.visual-main {
  inset: 30px 20px 30px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 5vw, 58px);
  transform: rotate(2.5deg);
}

.visual-main::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -120px;
  width: 320px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand-cyan);
  filter: blur(90px);
  opacity: .22;
}

.brand-symbol {
  display: flex;
  width: min(240px, 60%);
  height: 96px;
}

.symbol-part {
  flex: 1;
  border-radius: 28px 0 28px 0;
}

.symbol-orange { background: var(--brand-orange); }
.symbol-pink { background: var(--brand-pink); }
.symbol-cyan { background: var(--brand-cyan); }

.visual-main-copy {
  position: relative;
  z-index: 2;
}

.visual-main-copy span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .62);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.visual-main-copy strong {
  font-size: clamp(36px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.05em;
}

.focus-corners i {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(255, 255, 255, .42);
  border-style: solid;
}

.focus-corners i:nth-child(1) { top: 24px; left: 24px; border-width: 2px 0 0 2px; }
.focus-corners i:nth-child(2) { top: 24px; right: 24px; border-width: 2px 2px 0 0; }
.focus-corners i:nth-child(3) { right: 24px; bottom: 24px; border-width: 0 2px 2px 0; }
.focus-corners i:nth-child(4) { bottom: 24px; left: 24px; border-width: 0 0 2px 2px; }

.visual-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 800;
  animation: float-chip 5.5s ease-in-out infinite;
}

.visual-chip-top {
  top: 60px;
  right: -20px;
}

.visual-chip-bottom {
  bottom: 58px;
  left: -8px;
  animation-delay: -2.4s;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink), var(--brand-cyan));
  color: #ffffff;
}

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-hint svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  animation: scroll-arrow 1.8s ease-in-out infinite;
}

@keyframes scroll-arrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading h2,
.price-copy h2,
.reviews-copy h2 {
  font-size: clamp(38px, 5vw, 64px);
}

.section-heading > p,
.price-copy > p,
.reviews-copy > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

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

.news-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.news-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.news-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-strong);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.news-card:hover .news-card-media img {
  transform: scale(1.045);
}

.news-card-body {
  padding: 22px;
}

.news-card time {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.news-card h3 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.2;
}

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

.empty-state,
.content-state {
  display: grid;
  justify-items: center;
  padding: 52px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state[hidden],
.content-state[hidden] {
  display: none;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 22px;
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(135deg, var(--brand-orange), var(--brand-pink), var(--brand-cyan)) border-box;
  border: 2px solid transparent;
  font-size: 25px;
}

.empty-state h3 {
  margin: 0;
  font-size: 20px;
}

.empty-state p,
.content-state p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--text-muted);
}

.loader {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--brand-pink);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.portfolio-shell {
  position: relative;
}

.carousel {
  position: relative;
  user-select: none;
  touch-action: pan-y;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.carousel-track {
  display: flex;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.portfolio-carousel .carousel-slide {
  min-height: clamp(420px, 62vw, 680px);
}

.placeholder-slide {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(34px, 7vw, 82px);
  background: #060708;
  color: #ffffff;
}

.placeholder-slide::before,
.placeholder-slide::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .36;
}

.placeholder-slide::before {
  top: -120px;
  left: -80px;
  width: 360px;
  height: 360px;
}

.placeholder-slide::after {
  right: -120px;
  bottom: -160px;
  width: 440px;
  height: 440px;
}

.placeholder-orange::before { background: var(--brand-orange); }
.placeholder-orange::after { background: var(--brand-pink); }
.placeholder-pink::before { background: var(--brand-pink); }
.placeholder-pink::after { background: var(--brand-cyan); }
.placeholder-cyan::before { background: var(--brand-cyan); }
.placeholder-cyan::after { background: var(--brand-orange); }

.placeholder-art {
  position: absolute;
  top: 13%;
  right: 8%;
  width: min(44%, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 38% 62% 56% 44% / 42% 39% 61% 58%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.02));
  animation: morph 11s ease-in-out infinite alternate;
}

@keyframes morph {
  to {
    border-radius: 56% 44% 38% 62% / 62% 48% 52% 38%;
    transform: rotate(12deg) scale(1.05);
  }
}

.placeholder-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.placeholder-copy span {
  display: inline-block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .56);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
}

.placeholder-copy strong {
  display: block;
  font-size: clamp(44px, 8vw, 90px);
  line-height: .94;
  letter-spacing: -.06em;
}

.placeholder-copy p {
  max-width: 520px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.70);
  font-size: clamp(16px, 2vw, 20px);
}

.portfolio-image {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 62vw, 680px);
  cursor: zoom-in;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.portfolio-image::after {
  content: "Открыть";
  position: absolute;
  right: 22px;
  bottom: 22px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(6,7,8,.62);
  color: #fff;
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
}

.carousel-button {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 50%;
  background: rgba(5, 7, 9, .58);
  color: #ffffff;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.carousel-button:hover {
  background: rgba(5, 7, 9, .82);
  transform: translateY(-50%) scale(1.06);
}

.carousel-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 22px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  cursor: pointer;
  transition: width var(--transition), background-color var(--transition);
}

.carousel-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.section-dark-accent {
  overflow: hidden;
  background: #050607;
  color: #ffffff;
}

.section-dark-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand-pink) 28%, transparent), transparent 36%),
    radial-gradient(circle at 100% 90%, color-mix(in srgb, var(--brand-cyan) 30%, transparent), transparent 34%);
  pointer-events: none;
}

.price-grid {
  position: relative;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.price-copy > p {
  margin-top: 24px;
  color: rgba(255,255,255,.68);
}

.price-copy .button {
  margin-top: 30px;
}

.price-file-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: rgba(255,255,255,.54);
  font-size: 12px;
  font-weight: 700;
}

.price-file-status.is-ready {
  color: rgba(255,255,255,.78);
}

.price-file-status.is-missing {
  color: #ffb3b3;
}

.price-showcase {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018)),
    radial-gradient(circle at 25% 20%, rgba(245,20,151,.18), transparent 38%),
    radial-gradient(circle at 86% 80%, rgba(0,169,249,.2), transparent 40%);
  box-shadow:
    0 34px 100px rgba(0,0,0,.38),
    inset 0 1px 0 rgba(255,255,255,.08);
  isolation: isolate;
}

.price-showcase::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: calc(var(--radius-lg) - 12px);
  pointer-events: none;
}

.price-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  animation: price-orbit-spin 18s linear infinite;
}

.price-orbit-one {
  top: -120px;
  right: -90px;
  width: 350px;
  height: 350px;
}

.price-orbit-two {
  bottom: -160px;
  left: -110px;
  width: 430px;
  height: 430px;
  animation-direction: reverse;
  animation-duration: 23s;
}

.price-orbit::before,
.price-orbit::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 22px currentColor;
}

.price-orbit::before {
  top: 18%;
  left: 10%;
  color: var(--brand-pink);
  background: currentColor;
}

.price-orbit::after {
  right: 9%;
  bottom: 20%;
  color: var(--brand-cyan);
  background: currentColor;
}

.price-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255,255,255,.72);
  animation: price-spark-pulse 3.8s ease-in-out infinite;
}

.price-spark-one {
  top: 16%;
  left: 13%;
}

.price-spark-two {
  top: 25%;
  right: 13%;
  animation-delay: -1.3s;
}

.price-spark-three {
  right: 19%;
  bottom: 14%;
  animation-delay: -2.4s;
}

.price-paper-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(350px, 62%);
  aspect-ratio: .76;
  transform: translate(-50%, -50%);
  animation: price-stack-float 6.5s ease-in-out infinite;
}

.price-paper {
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

.price-paper-back {
  background: linear-gradient(135deg, var(--brand-orange), #ffbd43);
  transform: translate(-52px, 24px) rotate(-10deg);
  opacity: .82;
}

.price-paper-middle {
  background: linear-gradient(135deg, var(--brand-cyan), #6bd3ff);
  transform: translate(48px, 20px) rotate(8deg);
  opacity: .78;
}

.price-paper-front {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.72);
  background:
    linear-gradient(155deg, rgba(255,255,255,.98), rgba(235,238,244,.94));
  color: #0b0c0f;
  box-shadow: 0 30px 60px rgba(0,0,0,.34);
  transform: rotate(-1.5deg);
}

.price-paper-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.price-paper-header span {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -.06em;
}

.price-paper-header small {
  color: #777d88;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.price-paper-title {
  margin-top: auto;
  font-size: clamp(28px, 4.1vw, 48px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.055em;
}

.price-paper-lines {
  display: grid;
  gap: 9px;
  margin-top: 26px;
}

.price-paper-lines span {
  height: 5px;
  border-radius: 999px;
  background: #d6d9df;
}

.price-paper-lines span:nth-child(1) { width: 100%; }
.price-paper-lines span:nth-child(2) { width: 82%; }
.price-paper-lines span:nth-child(3) { width: 91%; }
.price-paper-lines span:nth-child(4) { width: 64%; }

.price-paper-brand {
  display: flex;
  width: 100%;
  height: 7px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
}

.price-paper-brand i {
  flex: 1;
}

.price-paper-brand i:nth-child(1) { background: var(--brand-orange); }
.price-paper-brand i:nth-child(2) { background: var(--brand-pink); }
.price-paper-brand i:nth-child(3) { background: var(--brand-cyan); }

.price-floating-badge {
  position: absolute;
  right: 7%;
  bottom: 9%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(7,8,10,.68);
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(0,0,0,.25);
  font-size: 11px;
  font-weight: 800;
  animation: price-badge-float 5.2s ease-in-out infinite;
}

.price-floating-badge span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink), var(--brand-cyan));
  color: #ffffff;
  font-size: 14px;
}

@keyframes price-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes price-stack-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0) rotate(0); }
  50% { transform: translate(-50%, -50%) translateY(-13px) rotate(.7deg); }
}

@keyframes price-spark-pulse {
  0%, 100% { opacity: .25; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes price-badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.services-list {
  display: grid;
  gap: 28px;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

.service-card:nth-child(even) .service-gallery {
  order: 2;
}

.service-gallery {
  position: relative;
  min-height: 410px;
  background: var(--surface-strong);
}

.service-gallery .carousel,
.service-gallery .carousel-viewport,
.service-gallery .carousel-track,
.service-gallery .carousel-slide {
  height: 100%;
}

.service-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

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

.service-content h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.service-content p {
  margin: 18px 0 0;
  color: var(--text-muted);
}

.service-price {
  margin-top: 28px;
  font-size: 22px;
  font-weight: 800;
}

.service-placeholder-photo {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 410px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand-orange) 18%, var(--surface-strong)),
      color-mix(in srgb, var(--brand-pink) 14%, var(--surface-strong)),
      color-mix(in srgb, var(--brand-cyan) 18%, var(--surface-strong)));
  color: var(--text-muted);
  text-align: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
}

.reviews-copy > p {
  margin-top: 24px;
}

.reviews-copy .button {
  margin-top: 28px;
}

.review-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}

.review-showcase::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink), var(--brand-cyan));
  filter: blur(80px);
  opacity: .22;
}

.quote-mark {
  color: var(--brand-pink);
  font-size: 88px;
  font-weight: 800;
  line-height: .7;
}

.review-showcase p {
  position: relative;
  z-index: 2;
  margin: 20px 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.rating-row {
  display: flex;
  gap: 5px;
  color: var(--brand-orange);
  font-size: 22px;
}

.review-showcase small {
  display: block;
  margin-top: 14px;
  color: var(--text-muted);
  font-weight: 700;
}

.contacts-section {
  background: var(--background-soft);
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  gap: 24px;
}

.contact-card,
.map-card {
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(30px, 5vw, 58px);
}

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: start;
  gap: 14px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background: var(--surface-strong);
  font-size: 18px;
}

.contact-item small {
  display: block;
  margin-bottom: 5px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-item a,
.contact-item p {
  margin: 0;
  font-weight: 700;
}

.contact-item a:not([aria-disabled="true"]):hover {
  color: var(--brand-pink);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 800;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
}

.map-card {
  overflow: hidden;
}

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

.map-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  height: 100%;
  min-height: 500px;
  padding: 40px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--brand-cyan) 10%, var(--surface-solid)),
      var(--surface-solid),
      color-mix(in srgb, var(--brand-pink) 8%, var(--surface-solid)));
  text-align: center;
}

.map-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-pink), var(--brand-cyan));
  color: #ffffff;
  transform: rotate(-45deg);
}

.map-pin::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
}

.map-placeholder strong {
  margin-top: 34px;
  font-size: 22px;
}

.map-placeholder p {
  max-width: 390px;
  margin: 8px 0 0;
  color: var(--text-muted);
}

.site-footer {
  padding: 52px 0;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(250px, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.brand-footer .brand-logo {
  width: 42px;
  height: 42px;
}

.footer-grid > p {
  max-width: 500px;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-meta a:hover {
  color: var(--text);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 72px 24px 36px;
  background: var(--overlay);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(94vw, 1480px);
  max-height: 82vh;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  transform: scale(.96);
  transition: transform var(--transition);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox p {
  margin: 14px 0 0;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #ffffff;
  cursor: pointer;
}

.lightbox-close svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}


/* Полноэкранный просмотр прейскуранта */
.lightbox.is-fullscreen {
  padding: 0;
  background: #000000;
  backdrop-filter: none;
}

.lightbox.is-fullscreen img {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.lightbox.is-fullscreen p {
  display: none;
}

.lightbox.is-fullscreen .lightbox-close {
  top: 18px;
  right: 18px;
  z-index: 2;
  background: rgba(0, 0, 0, .62);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-message {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 4000;
  padding: 16px;
  border-radius: 14px;
  background: #b42318;
  color: #ffffff;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 1120px) {
  :root {
    --header-height: 76px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 16px;
    left: 16px;
    display: grid;
    align-content: start;
    gap: 4px;
    max-height: calc(100svh - var(--header-height) - 24px);
    padding: 14px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-solid);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px) scale(.98);
    transform-origin: top;
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  .nav-link {
    padding: 14px 16px;
    border-radius: 13px;
    font-size: 14px;
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(370px, .78fr);
    gap: 40px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .visual-main {
    inset: 35px 12px 35px 25px;
  }

  .visual-chip-top {
    right: 0;
  }

  .visual-chip-bottom {
    left: 0;
  }
}

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

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 70px);
    padding-bottom: 110px;
  }

  .hero-grid,
  .price-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 530px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

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

  .service-card:nth-child(even) .service-gallery {
    order: 0;
  }

  .service-gallery {
    min-height: 370px;
  }

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

  .contact-card,
  .map-card,
  .map-placeholder,
  .map-card iframe {
    min-height: 430px;
  }

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

  .footer-meta {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

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

  .section {
    padding: 72px 0;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 20px;
  }

  .brand-copy small {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 54px);
  }

  .hero h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-benefits {
    display: grid;
    gap: 10px;
  }

  .hero-visual {
    min-height: 430px;
    margin-top: 16px;
  }

  .visual-main {
    inset: 20px 0;
    padding: 30px;
    border-radius: 28px;
    transform: none;
  }

  .brand-symbol {
    width: 180px;
    height: 76px;
  }

  .symbol-part {
    border-radius: 22px 0 22px 0;
  }

  .visual-chip {
    display: none;
  }

  .visual-main-copy strong {
    font-size: 38px;
  }

  .scroll-hint {
    bottom: 20px;
  }

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

  .section-heading h2,
  .price-copy h2,
  .reviews-copy h2 {
    font-size: 40px;
  }

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

  .portfolio-carousel .carousel-slide,
  .portfolio-image {
    min-height: 470px;
  }

  .placeholder-slide {
    padding: 34px 28px 70px;
  }

  .placeholder-art {
    top: 14%;
    right: -8%;
    width: 68%;
  }

  .placeholder-copy strong {
    font-size: 48px;
  }

  .carousel-button {
    top: auto;
    bottom: 18px;
    width: 45px;
    height: 45px;
    transform: none;
  }

  .carousel-button:hover {
    transform: scale(1.05);
  }

  .carousel-prev { left: 18px; }
  .carousel-next { right: 18px; }

  .carousel-dots {
    bottom: 36px;
  }

  .price-showcase {
    min-height: 440px;
  }

  .price-paper-stack {
    width: min(310px, 66%);
  }

  .price-floating-badge {
    right: 5%;
    bottom: 6%;
  }

  .service-gallery,
  .service-placeholder-photo {
    min-height: 320px;
  }

  .service-content {
    padding: 30px 24px 36px;
  }

  .contact-card {
    min-height: 0;
    padding: 30px 24px;
  }

  .map-card,
  .map-placeholder,
  .map-card iframe {
    min-height: 380px;
  }

  .lightbox {
    padding: 70px 12px 24px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* Изображения, открывающиеся на весь экран */
[data-lightbox-src] {
  cursor: zoom-in;
}

.news-card-media img[data-lightbox-src],
.service-gallery img[data-lightbox-src],
.portfolio-image[data-lightbox-src],
.portfolio-image [data-lightbox-src] {
  cursor: zoom-in;
}


/* Карточки новостей: на странице показывается только заголовок */
.news-card {
  cursor: pointer;
}

.news-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-cyan) 65%, transparent);
  outline-offset: 4px;
}

.news-card-body {
  display: flex;
  align-items: center;
  min-height: 86px;
}

.news-card h3 {
  margin: 0;
}

.news-card time,
.news-card-body > p {
  display: none;
}

/* Модальное окно с полной новостью */
body.news-modal-open {
  overflow: hidden;
}

.news-details-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.news-details-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.news-details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .74);
  backdrop-filter: blur(14px);
}

.news-details-dialog {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  width: min(1080px, 100%);
  max-height: min(86vh, 820px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-solid);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .48);
  transform: translateY(18px) scale(.98);
  transition: transform var(--transition);
}

.news-details-modal.is-open .news-details-dialog {
  transform: translateY(0) scale(1);
}

.news-details-image-wrap {
  min-height: 420px;
  overflow: hidden;
  background: var(--surface-strong);
}

.news-details-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-details-content {
  overflow-y: auto;
  padding: clamp(32px, 5vw, 58px);
}

.news-details-content time {
  color: var(--brand-pink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.news-details-content h2 {
  margin: 14px 0 20px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.news-details-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.news-details-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  color: var(--text);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.news-details-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 760px) {
  .news-details-modal {
    padding: 14px;
  }

  .news-details-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 22px;
  }

  .news-details-image-wrap {
    min-height: 240px;
    max-height: 38vh;
  }

  .news-details-content {
    overflow: visible;
    padding: 28px 22px 34px;
  }

  .news-details-content h2 {
    font-size: 31px;
  }
}


.social-section {
  margin-top: 22px;
}

.social-heading {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
}


/* Услуги в стиле карточек новостей */
.services-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card-compact {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card-compact:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--brand-cyan) 38%, var(--border));
  box-shadow: var(--shadow-card);
}

.service-card-compact:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-cyan) 65%, transparent);
  outline-offset: 4px;
}

.service-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-strong);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.service-card-compact:hover .service-card-media img {
  transform: scale(1.045);
}

.service-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 20px;
}

.service-card-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.service-card-price {
  flex: 0 0 auto;
  color: var(--brand-pink);
  font-size: 14px;
  font-weight: 800;
}

/* Модальное окно услуги */
body.service-modal-open {
  overflow: hidden;
}

.service-details-modal {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.service-details-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.service-details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(14px);
}

.service-details-dialog {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(310px, .95fr) minmax(340px, 1.05fr);
  width: min(1120px, 100%);
  max-height: min(88vh, 850px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface-solid);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .5);
  transform: translateY(18px) scale(.98);
  transition: transform var(--transition);
}

.service-details-modal.is-open .service-details-dialog {
  transform: translateY(0) scale(1);
}

.service-modal-gallery {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 520px;
  padding: 16px;
  background: var(--surface-strong);
}

.service-modal-image-wrap {
  overflow: hidden;
  min-height: 380px;
  border-radius: 18px;
  background: #090a0c;
}

.service-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.service-modal-thumb {
  overflow: hidden;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 11px;
  background: var(--surface-solid);
  cursor: pointer;
}

.service-modal-thumb.is-active {
  border-color: var(--brand-cyan);
}

.service-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-details-content {
  overflow-y: auto;
  padding: clamp(34px, 5vw, 62px);
}

.service-details-content h2 {
  margin: 12px 0 20px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.03;
  letter-spacing: -.055em;
}

.service-details-content > p:not(.eyebrow) {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.service-details-price {
  margin-top: 30px;
  font-size: 26px;
  font-weight: 800;
}

.service-details-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  color: var(--text);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.service-details-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Адаптация пользовательской страницы под разные экраны */
@media (max-width: 1180px) {
  .container {
    width: min(100% - 48px, var(--container));
  }

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

  .hero-title {
    font-size: clamp(54px, 8vw, 86px);
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-inline: 22px;
  }

  .header-inner {
    min-height: 72px;
  }

  .hero-grid,
  .reviews-grid,
  .contacts-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 470px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading > p {
    max-width: 100%;
  }

  .service-details-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .service-modal-gallery {
    min-height: auto;
  }

  .service-modal-image-wrap {
    min-height: 330px;
    max-height: 44vh;
  }

  .service-details-content {
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 30px, var(--container));
  }

  .section {
    padding-block: 68px;
  }

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

  .news-card,
  .service-card-compact {
    border-radius: 20px;
  }

  .news-card-media,
  .service-card-media {
    aspect-ratio: 16 / 9;
  }

  .service-card-body {
    min-height: 82px;
    padding: 17px;
  }

  .service-card-body h3 {
    font-size: 18px;
  }

  .service-details-modal {
    padding: 12px;
  }

  .service-details-dialog {
    border-radius: 21px;
  }

  .service-modal-gallery {
    padding: 10px;
  }

  .service-modal-image-wrap {
    min-height: 240px;
    max-height: 36vh;
    border-radius: 14px;
  }

  .service-modal-thumbs {
    gap: 6px;
    margin-top: 8px;
  }

  .service-details-content {
    padding: 28px 21px 34px;
  }

  .service-details-content h2 {
    font-size: 31px;
  }

  .service-details-content > p:not(.eyebrow) {
    font-size: 14px;
  }

  .service-details-price {
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, var(--container));
  }

  .site-header {
    padding-inline: 12px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    padding-top: 106px;
  }

  .hero-title {
    font-size: clamp(42px, 14vw, 62px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

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

  .hero-actions .button {
    width: 100%;
  }

  .portfolio-shell,
  .price-showcase,
  .review-showcase {
    border-radius: 21px;
  }

  .section-heading h2 {
    font-size: clamp(34px, 11vw, 48px);
  }

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

  .service-card-body {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .service-modal-thumbs {
    grid-template-columns: repeat(5, 62px);
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 16px, var(--container));
  }

  .section {
    padding-block: 54px;
  }

  .hero-title {
    font-size: 39px;
  }

  .service-details-modal,
  .news-details-modal {
    padding: 7px;
  }

  .service-details-dialog,
  .news-details-dialog {
    border-radius: 17px;
  }
}


/* Исправленная карусель портфолио */
.portfolio-shell {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

.portfolio-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #08090b;
  box-shadow: var(--shadow-card);
  touch-action: pan-y;
}

.portfolio-carousel .carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  max-height: 680px;
  border-radius: inherit;
  background: #08090b;
}

.portfolio-carousel .carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 620ms cubic-bezier(.2, .75, .25, 1);
  will-change: transform;
}

.portfolio-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #08090b;
  cursor: zoom-in;
}

.portfolio-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  background: #08090b;
  user-select: none;
}

.portfolio-zoom-label {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(6,7,8,.68);
  color: #fff;
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
}

.portfolio-carousel .carousel-button {
  z-index: 10;
}

.portfolio-carousel .carousel-button:disabled {
  display: none;
}

.portfolio-carousel .carousel-dots {
  z-index: 10;
}

@media (max-width: 900px) {
  .portfolio-carousel .carousel-viewport {
    aspect-ratio: 4 / 3;
    max-height: 620px;
  }
}

@media (max-width: 620px) {
  .portfolio-shell {
    width: 100%;
  }

  .portfolio-carousel {
    border-radius: 20px;
  }

  .portfolio-carousel .carousel-viewport {
    aspect-ratio: 4 / 5;
    max-height: 72vh;
  }

  .portfolio-carousel .carousel-button {
    width: 44px;
    height: 44px;
  }

  .portfolio-carousel .carousel-prev {
    left: 10px;
  }

  .portfolio-carousel .carousel-next {
    right: 10px;
  }

  .portfolio-zoom-label {
    right: 12px;
    bottom: 14px;
    padding: 9px 13px;
    font-size: 10px;
  }

  .portfolio-carousel .carousel-dots {
    bottom: 14px;
    max-width: calc(100% - 130px);
    margin-inline: auto;
    overflow-x: auto;
  }
}

@media (max-width: 390px) {
  .portfolio-carousel .carousel-viewport {
    aspect-ratio: 3 / 4;
    max-height: 68vh;
  }
}


/* Карточки услуг полностью повторяют стиль карточек новостей */
.services-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card-compact {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card-compact:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--brand-cyan) 38%, var(--border));
  box-shadow: var(--shadow-card);
}

.service-card-compact:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-cyan) 65%, transparent);
  outline-offset: 4px;
}

.service-card-compact .service-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-strong);
}

.service-card-compact .service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.service-card-compact:hover .service-card-media img {
  transform: scale(1.045);
}

.service-card-compact .service-card-body {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 20px;
}

.service-card-compact .service-card-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.service-card-price {
  display: none !important;
}

@media (max-width: 1180px) {
  .services-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .services-card-grid {
    grid-template-columns: 1fr;
  }

  .service-card-compact {
    border-radius: 20px;
  }

  .service-card-compact .service-card-media {
    aspect-ratio: 16 / 9;
  }

  .service-card-compact .service-card-body {
    min-height: 82px;
    padding: 17px;
  }

  .service-card-compact .service-card-body h3 {
    font-size: 18px;
  }
}


/* Компактное отображение портфолио */
.portfolio-shell {
  width: min(100%, 860px) !important;
  max-width: 860px !important;
  margin-inline: auto !important;
}

.portfolio-carousel {
  width: 100% !important;
  max-width: 860px !important;
  margin-inline: auto !important;
}

.portfolio-carousel .carousel-viewport {
  width: 100% !important;
  height: 440px !important;
  min-height: 0 !important;
  max-height: 440px !important;
  aspect-ratio: auto !important;
}

.portfolio-carousel .carousel-track,
.portfolio-slide {
  height: 440px !important;
  min-height: 0 !important;
}

.portfolio-slide img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
}

@media (max-width: 980px) {
  .portfolio-shell,
  .portfolio-carousel {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
  }

  .portfolio-carousel .carousel-viewport,
  .portfolio-carousel .carousel-track,
  .portfolio-slide {
    height: 380px !important;
    max-height: 380px !important;
  }
}

@media (max-width: 720px) {
  .portfolio-shell,
  .portfolio-carousel {
    width: 100% !important;
    max-width: 100% !important;
  }

  .portfolio-carousel .carousel-viewport,
  .portfolio-carousel .carousel-track,
  .portfolio-slide {
    height: 310px !important;
    max-height: 310px !important;
  }
}

@media (max-width: 480px) {
  .portfolio-carousel .carousel-viewport,
  .portfolio-carousel .carousel-track,
  .portfolio-slide {
    height: 250px !important;
    max-height: 250px !important;
  }

  .portfolio-carousel .carousel-button {
    width: 40px !important;
    height: 40px !important;
  }

  .portfolio-carousel .carousel-prev {
    left: 8px !important;
  }

  .portfolio-carousel .carousel-next {
    right: 8px !important;
  }

  .portfolio-zoom-label {
    right: 10px !important;
    bottom: 10px !important;
    padding: 8px 11px !important;
  }
}


/* Официальные виджеты Яндекса */
.yandex-reviews {
  width: min(100%, 760px);
  min-height: 560px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.yandex-reviews iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
}

.reviews-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 560px;
  padding: 34px;
  color: var(--text-muted);
  text-align: center;
}

.map-card {
  min-height: 430px;
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 430px;
  border: 0;
}

@media (max-width: 768px) {
  .yandex-reviews {
    min-height: 500px;
    border-radius: 18px;
  }

  .yandex-reviews iframe {
    height: 560px;
  }

  .reviews-placeholder {
    min-height: 500px;
  }

  .map-card,
  .map-card iframe {
    height: 340px;
    min-height: 340px;
  }
}

@media (max-width: 480px) {
  .yandex-reviews {
    min-height: 440px;
  }

  .yandex-reviews iframe {
    height: 500px;
  }

  .reviews-placeholder {
    min-height: 440px;
  }

  .map-card,
  .map-card iframe {
    height: 280px;
    min-height: 280px;
  }
}


/* Длинные новости и услуги прокручиваются внутри модального окна */
.news-details-dialog,
.service-details-dialog {
  max-height: 88vh !important;
  min-height: 0;
}

.news-details-content,
.service-details-content {
  min-height: 0;
  max-height: 88vh;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.news-details-content p,
.service-details-content > p:not(.eyebrow) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 760px) {
  .news-details-dialog,
  .service-details-dialog {
    max-height: 94vh !important;
    overflow-y: auto !important;
  }

  .news-details-content,
  .service-details-content {
    max-height: none;
    overflow: visible !important;
  }
}


/* Цена услуги на карточке */
.service-card-compact .service-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.service-card-compact .service-card-body h3 {
  min-width: 0;
  flex: 1;
}

.service-card-compact .service-card-price {
  display: inline-block !important;
  flex: 0 0 auto;
  color: var(--brand-pink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

/* Полностью исправленное модальное окно услуги */
.service-details-modal {
  overflow: hidden;
}

.service-details-dialog {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(340px, 1.05fr);
  width: min(1120px, calc(100vw - 40px));
  max-height: calc(100vh - 40px) !important;
  overflow: hidden !important;
}

.service-modal-gallery {
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.service-modal-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
  height: min(62vh, 580px);
  overflow: hidden;
  background: #090a0c;
}

.service-modal-image-wrap > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  cursor: zoom-in;
  background: #090a0c;
}

.service-modal-thumbs {
  display: flex;
  grid-template-columns: none;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.service-modal-thumb {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  aspect-ratio: 1;
}

.service-modal-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-gallery-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
}

.service-gallery-prev {
  left: 14px;
}

.service-gallery-next {
  right: 14px;
}

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

.service-details-content {
  min-width: 0;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.service-details-content > p:not(.eyebrow) {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.service-details-price {
  position: sticky;
  bottom: 0;
  margin-top: 28px;
  padding: 16px 0 4px;
  background:
    linear-gradient(
      to bottom,
      transparent,
      var(--surface-solid) 28%
    );
}

@media (max-width: 900px) {
  .service-details-dialog {
    display: block;
    width: min(760px, calc(100vw - 24px));
    max-height: calc(100vh - 24px) !important;
    overflow-y: auto !important;
  }

  .service-modal-gallery {
    max-height: none;
    overflow: visible;
  }

  .service-modal-image-wrap {
    height: min(52vh, 440px);
    min-height: 260px;
  }

  .service-details-content {
    max-height: none !important;
    overflow: visible !important;
  }
}

@media (max-width: 600px) {
  .service-card-compact .service-card-body {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .service-card-compact .service-card-price {
    white-space: normal;
  }

  .service-details-modal {
    padding: 7px;
  }

  .service-details-dialog {
    width: 100%;
    max-height: calc(100vh - 14px) !important;
    border-radius: 18px;
  }

  .service-modal-gallery {
    padding: 8px;
  }

  .service-modal-image-wrap {
    height: 42vh;
    min-height: 220px;
    border-radius: 13px;
  }

  .service-modal-thumb {
    flex-basis: 68px;
    width: 68px;
    height: 68px;
  }

  .service-gallery-button {
    width: 40px;
    height: 40px;
    font-size: 29px;
  }

  .service-gallery-prev {
    left: 8px;
  }

  .service-gallery-next {
    right: 8px;
  }

  .service-details-content {
    padding: 26px 19px 34px;
  }
}


/* Карточки услуг полностью повторяют структуру и размеры карточек новостей */
.services-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.services-card-grid .service-card-compact {
  display: block !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  background: var(--surface-solid) !important;
  box-shadow: var(--shadow-sm) !important;
}

.services-card-grid .service-card-compact:hover {
  transform: translateY(-8px) !important;
  border-color: var(--border-strong) !important;
  box-shadow: var(--shadow-md) !important;
}

.services-card-grid .service-card-media {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  overflow: hidden !important;
  background: var(--surface-strong) !important;
}

.services-card-grid .service-card-media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover !important;
}

.services-card-grid .service-card-body {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 108px !important;
  padding: 22px !important;
}

.services-card-grid .service-card-body h3 {
  display: block !important;
  max-width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--text) !important;
  font-size: 21px !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.services-card-grid .service-card-price {
  display: block !important;
  margin-top: 10px !important;
  color: var(--brand-pink) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  white-space: normal !important;
}

/* Цена услуги во всех модальных окнах */
.service-details-price,
.service-details-dialog .service-details-price {
  color: var(--brand-pink) !important;
  font-weight: 800 !important;
}

/* Любые дополнительные элементы цены услуг */
.service-price,
.service-card-price,
[class*="service"][class*="price"] {
  color: var(--brand-pink);
}

@media (max-width: 1180px) {
  .services-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .services-card-grid {
    grid-template-columns: 1fr !important;
  }

  .services-card-grid .service-card-media {
    aspect-ratio: 16 / 9 !important;
  }

  .services-card-grid .service-card-body {
    min-height: 96px !important;
    padding: 18px !important;
  }

  .services-card-grid .service-card-body h3 {
    font-size: 19px !important;
  }
}


/* Пустые контактные элементы не занимают место */
#contacts [hidden],
#contact-card[hidden],
#map-container[hidden],
#contact-phone-item[hidden],
#contact-email-item[hidden],
#contact-address-item[hidden],
#contact-schedule-item[hidden],
#social-section[hidden] {
  display: none !important;
}

/* Если осталась только карточка контактов или только карта */
.contacts-grid.contacts-grid-single {
  grid-template-columns: minmax(0, 1fr) !important;
}

.contacts-grid.contacts-grid-single > * {
  width: 100%;
}


/* Секции при переходе начинаются сразу под закреплённой шапкой */
html {
  scroll-padding-top: 70px !important;
}

main > section[id] {
  scroll-margin-top: 70px !important;
}

/* Атрибут hidden всегда полностью убирает пустой контактный элемент */
#contacts[hidden],
#contact-card[hidden],
#map-container[hidden],
#contact-phone-item[hidden],
#contact-email-item[hidden],
#contact-address-item[hidden],
#contact-schedule-item[hidden],
#social-section[hidden],
.site-nav li[hidden],
.site-nav a[hidden] {
  display: none !important;
}

.contacts-grid.contacts-grid-single {
  grid-template-columns: minmax(0, 1fr) !important;
}

.contacts-grid.contacts-grid-single > * {
  width: 100%;
  max-width: 100%;
}
