@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Onest";
  src: url("assets/fonts/Onest-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --deep: #180a3b;
  --deep-2: #110629;
  --primary: #4d2c9d;
  --active: #7b53d8;
  --soft: #ae8dfe;
  --lavender: #e4e5f7;
  --surface: #f7f6f9;
  --white: #fff;
  --ink: #180a3b;
  --muted: #655d79;
  --line: rgba(24, 10, 59, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --gradient: linear-gradient(135deg, #ae8dfe 0%, #7b53d8 48%, #4d2c9d 100%);
  --shadow: 0 28px 80px rgba(24, 10, 59, 0.14);
  --shadow-soft: 0 18px 56px rgba(24, 10, 59, 0.08);
  --font: "Onest", "Segoe UI", Arial, sans-serif;
  --max: 1440px;
  --gutter: clamp(20px, 4.7vw, 76px);
  --section: clamp(88px, 9vw, 148px);
  --header-height: 88px;
  --radius-section: 32px;
  --radius-card: 24px;
  --radius-control: 12px;
  --radius-pill: 999px;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.56;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

figure,
p {
  margin: 0;
}

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

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

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

button {
  color: inherit;
}

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

::selection {
  color: var(--white);
  background: var(--active);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-control);
  color: var(--deep);
  background: var(--white);
  font-size: 15px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site {
  position: relative;
  isolation: isolate;
}

.container {
  width: min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section-shell {
  position: relative;
  padding-block: var(--section);
  overflow: clip;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(52px, 5.6vw, 84px);
  line-height: 0.95;
}

h2 {
  font-size: clamp(46px, 5vw, 76px);
  line-height: 0.98;
}

h3 {
  font-size: clamp(20px, 1.65vw, 27px);
  line-height: 1.1;
}

.eyebrow,
.section-kicker,
.footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--active);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow::before,
.section-kicker::before,
.footer-kicker::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--accent,
.button--dark {
  color: var(--deep);
  background: var(--soft);
  box-shadow: 0 12px 36px rgba(174, 141, 254, 0.2);
}

.button--accent:hover,
.button--dark:hover {
  background: #c1a9ff;
  box-shadow: 0 16px 42px rgba(174, 141, 254, 0.3);
}

.topbar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  color: var(--white);
  background: rgba(24, 10, 59, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.header-scrolled .topbar {
  background: rgba(24, 10, 59, 0.96);
  border-bottom-color: var(--line-light);
  box-shadow: 0 10px 36px rgba(10, 3, 28, 0.18);
}

.nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: clamp(22px, 3vw, 54px);
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
}

.brand-wordmark {
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(14px, 1.45vw, 26px);
  margin-left: auto;
}

.nav-links > a {
  position: relative;
  padding-block: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 500;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-links > a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: var(--soft);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links > a:hover {
  color: var(--white);
}

.nav-links > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-messengers {
  display: none;
}

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

.header-phone {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.header-phone svg {
  width: 20px;
  height: 20px;
}

.header-phone:hover {
  color: var(--white);
}

.header-cta {
  min-height: 46px;
  padding: 12px 18px;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 22px;
  height: 2px;
  margin: 0;
  border-radius: 4px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 7px));
}

.menu-toggle span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 7px));
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.menu-open .menu-toggle span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 28%, rgba(123, 83, 216, 0.34), transparent 28%),
    radial-gradient(circle at 30% 100%, rgba(77, 44, 157, 0.38), transparent 34%),
    var(--deep);
}

.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
  content: "";
  pointer-events: none;
}

.hero-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  grid-template-rows: 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-top: calc(var(--header-height) + clamp(54px, 7vh, 96px));
  padding-bottom: clamp(34px, 5vh, 64px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 880px;
  padding-block: 48px;
}

.hero .eyebrow {
  max-width: 100%;
  color: var(--soft);
  line-height: 1.3;
}

.hero .eyebrow > span {
  min-width: 0;
}

.hero h1 {
  max-width: 920px;
  text-shadow: 0 8px 40px rgba(6, 2, 18, 0.28);
}

.hero-copy > p {
  max-width: 650px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.hero-consultation-note {
  display: block;
  max-width: 470px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.4;
}

.hero-art {
  position: absolute;
  z-index: 0;
  inset: 0 calc(50% - 50vw) 0 44%;
  min-width: 0;
  overflow: hidden;
  background: #2a1059;
}

.hero-material {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.02) brightness(0.88);
  transform: translate(5%, -4%) scale(1.12);
  transform-origin: center;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 10, 59, 1) 0%, rgba(24, 10, 59, 0.86) 12%, rgba(24, 10, 59, 0.34) 34%, transparent 58%),
    linear-gradient(180deg, rgba(24, 10, 59, 0.16) 0%, transparent 42%, rgba(24, 10, 59, 0.3) 100%);
  content: "";
}

.hero-glow {
  display: none;
}

.hero-outline-mark {
  display: none;
}

.about {
  background: var(--lavender);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.about-copy {
  grid-column: 1 / span 7;
  padding-top: 16px;
}

.about-copy h2 {
  max-width: 900px;
}

.about-copy > p {
  max-width: 760px;
  margin-top: 24px;
  color: var(--muted);
}

.about-copy > p:first-of-type {
  color: var(--ink);
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.45;
}

.about-proof-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  margin-top: clamp(30px, 3.2vw, 46px);
  padding-top: clamp(22px, 2.2vw, 30px);
  border-top: 1px solid rgba(77, 44, 157, 0.22);
}

.about-proof {
  min-width: 0;
  padding-right: clamp(22px, 2.8vw, 40px);
}

.about-proof + .about-proof {
  padding-right: 0;
  padding-left: clamp(22px, 2.8vw, 40px);
  border-left: 1px solid rgba(77, 44, 157, 0.16);
}

.about-proof h3 {
  max-width: 360px;
  color: var(--primary);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

.about-proof-main h3 {
  color: var(--deep);
}

.about-proof p {
  max-width: 390px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.about-media {
  grid-column: 8 / -1;
}

.about-symbol {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: var(--radius-section);
  background:
    radial-gradient(circle at 70% 22%, rgba(174, 141, 254, 0.68), transparent 28%),
    linear-gradient(155deg, #fff 0%, #f4efff 48%, #d9caff 100%);
  box-shadow: var(--shadow-soft);
}

.about-symbol::before {
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(77, 44, 157, 0.14);
  border-radius: calc(var(--radius-section) - 10px);
  content: "";
}

.about-symbol-orb {
  position: absolute;
  top: 10%;
  right: 9%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #d9c7ff, #8b61e5 58%, #4d2c9d);
  box-shadow: 0 26px 54px rgba(77, 44, 157, 0.24);
}

.about-symbol > img {
  position: absolute;
  z-index: 2;
  top: 17%;
  right: 5%;
  width: 76%;
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(77, 44, 157, 0.22));
}

.about-symbol figcaption {
  position: absolute;
  z-index: 3;
  right: 42px;
  bottom: 36px;
  left: 42px;
  display: grid;
  gap: 4px;
  color: var(--deep);
  font-size: 14px;
  font-weight: 700;
}

.about-symbol figcaption span:last-child {
  color: var(--primary);
  font-weight: 500;
}

.about-photo {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  border-radius: var(--radius-section);
  background: var(--deep);
  box-shadow: var(--shadow-soft);
}

.about-photo-image {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: 50% 8%;
  filter: grayscale(0.62) sepia(0.12) hue-rotate(214deg) saturate(1.55) contrast(1.08) brightness(0.82);
}

.about-photo-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(24, 10, 59, 0.86), transparent 46%),
    linear-gradient(140deg, rgba(123, 83, 216, 0.44), rgba(24, 10, 59, 0.08));
  mix-blend-mode: multiply;
}

.about-photo-mark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 78%;
  height: auto;
  opacity: 0.36;
  transform: translate(-50%, -50%);
  filter: blur(0.35px) drop-shadow(0 0 14px rgba(174, 141, 254, 0.12));
}

.about-metrics {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(34px, 5vw, 70px);
}

.metric-card {
  min-width: 0;
  padding: clamp(28px, 3vw, 48px);
  border: 1px solid rgba(77, 44, 157, 0.1);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.metric-card:nth-child(2) {
  color: var(--white);
  border-color: transparent;
  background:
    radial-gradient(circle at 100% 0%, rgba(174, 141, 254, 0.3), transparent 34%),
    var(--deep);
}

.metric-kicker {
  display: block;
  margin-bottom: 34px;
  color: var(--active);
  font-size: 14px;
  font-weight: 700;
}

.metric-card:nth-child(2) .metric-kicker {
  color: var(--soft);
}

.metric-lead {
  display: grid;
  grid-template-columns: auto minmax(0, 260px);
  gap: 24px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.metric-card:nth-child(2) .metric-lead {
  border-bottom-color: var(--line-light);
}

.metric-number {
  font-size: clamp(66px, 7vw, 108px);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.metric-number sup {
  color: #111;
  font-size: 0.35em;
  vertical-align: top;
}

.metric-card:nth-child(2) .metric-number sup {
  color: var(--white);
}

.metric-lead > span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.metric-card:nth-child(2) .metric-lead > span {
  color: rgba(255, 255, 255, 0.64);
}

.metric-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  padding-top: 30px;
}

.metric-group-title {
  display: block;
  min-height: 44px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.metric-card:nth-child(2) .metric-group-title {
  color: rgba(255, 255, 255, 0.54);
}

.metric-values {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.metric-value {
  display: grid;
  gap: 4px;
}

.metric-value strong {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-value small {
  color: var(--muted);
  font-size: 12px;
}

.metric-card:nth-child(2) .metric-value small {
  color: rgba(255, 255, 255, 0.54);
}

.about-notes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-note {
  padding: 32px 0 0;
  border-top: 1px solid rgba(77, 44, 157, 0.22);
}

.about-note h3 {
  margin-bottom: 14px;
}

.about-note p {
  max-width: 560px;
  color: var(--muted);
}

.services {
  background: var(--surface);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
  margin-bottom: clamp(46px, 7vw, 92px);
}

.section-head h2 {
  max-width: 950px;
}

.section-head > p {
  max-width: 460px;
  padding-bottom: 8px;
  color: var(--muted);
}

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

.service-card {
  min-height: 250px;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-card:hover {
  border-color: rgba(123, 83, 216, 0.34);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.service-card h3 {
  max-width: 360px;
  margin-bottom: 22px;
}

.service-card p {
  color: var(--muted);
  font-size: 16px;
}

.cases {
  background: var(--lavender);
}

.cases-head {
  grid-template-columns: minmax(0, 1fr);
}

.case-visual {
  position: relative;
  max-height: 680px;
  overflow: hidden;
  border-radius: var(--radius-section);
  background: var(--deep);
  box-shadow: var(--shadow);
}

.case-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(77, 44, 157, 0.16), transparent 58%);
  content: "";
}

.case-visual img {
  width: 100%;
  height: clamp(430px, 48vw, 680px);
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06);
}

.case-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.case-card {
  overflow: hidden;
  border: 1px solid rgba(77, 44, 157, 0.1);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: border-color 180ms ease;
}

.case-card.is-open {
  border-color: rgba(123, 83, 216, 0.36);
}

.case-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: 30px 34px;
}

.case-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(190px, 0.55fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.case-heading h3 {
  max-width: 650px;
}

.case-result {
  color: var(--active);
  font-size: 16px;
  font-weight: 700;
}

.case-toggle {
  min-width: 176px;
  min-height: 50px;
  padding: 13px 18px;
  border: 1px solid rgba(77, 44, 157, 0.24);
  border-radius: var(--radius-control);
  color: var(--primary);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.case-toggle:hover {
  border-color: var(--active);
}

.case-toggle:focus-visible {
  outline: 3px solid rgba(123, 83, 216, 0.3);
  outline-offset: 3px;
}

.case-card.is-open .case-toggle {
  border-color: var(--active);
  color: var(--white);
  background: var(--active);
}

.case-panel {
  border-top: 1px solid var(--line);
}

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

.case-detail {
  padding: 30px 34px 34px;
}

.case-detail + .case-detail {
  border-left: 1px solid var(--line);
}

.case-detail h4 {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.case-detail p {
  color: var(--muted);
  font-size: 16px;
}

.cases-action {
  margin-top: 30px;
}

.cases-action .button {
  gap: 10px;
}

.cases-action .button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.consultation {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(123, 83, 216, 0.24), transparent 28%),
    var(--deep);
}

.consultation--compact {
  padding-block: clamp(72px, 7vw, 108px);
}

.consult-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(42px, 7vw, 104px);
  align-items: center;
}

.consult-media {
  position: relative;
  max-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-section);
  background: var(--white);
}

.consult-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(123, 83, 216, 0.1), rgba(24, 10, 59, 0.08));
  content: "";
  pointer-events: none;
}

.consult-media img {
  width: 100%;
  height: min(36vw, 460px);
  object-fit: cover;
  filter: saturate(0.74) contrast(1.05);
}

.consult-copy .section-kicker {
  color: var(--soft);
}

.consult-steps {
  display: grid;
  gap: 0;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.consult-steps li {
  padding: 20px 0;
  border-top: 1px solid var(--line-light);
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.pricing-page {
  background: var(--white);
}

.pricing-layout {
  min-width: 0;
}

.pricing-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.55fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 54px;
}

.pricing-title {
  max-width: 900px;
}

.pricing-summary {
  padding-bottom: 8px;
}

.pricing-summary p {
  color: var(--muted);
}

.pricing-count {
  display: block;
  margin-top: 18px;
  color: var(--active);
  font-size: 14px;
  font-weight: 700;
}

.category-picker {
  margin-bottom: 28px;
}

.price-catalog .category-picker > .mobile-step {
  display: block;
  margin-bottom: 14px;
  color: var(--active);
  font-size: 14px;
  font-weight: 700;
}

.price-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(123, 83, 216, 0.28);
  border-radius: calc(var(--radius-control) + 8px);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.price-tab {
  display: flex;
  min-height: 66px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.price-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.price-tab[aria-selected="true"] {
  border-color: var(--deep);
  color: var(--white);
  background: var(--deep);
  box-shadow: 0 12px 30px rgba(24, 10, 59, 0.18);
}

@media (min-width: 981px) {
  .price-tabs {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .price-tab {
    grid-column: span 3;
  }

  .price-tab:nth-child(n + 5) {
    grid-column: span 4;
  }
}

.price-panels {
  min-width: 0;
}

.panel-package-groups {
  min-width: 0;
}

.mobile-direction-switcher {
  display: none;
}

.catalog-panel[hidden] {
  display: none !important;
}

.catalog-panel:focus {
  outline: 0;
}

.catalog-panel:focus-visible {
  outline: 3px solid var(--soft);
  outline-offset: 10px;
}

.catalog-panel-head {
  margin-bottom: 64px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.catalog-panel-head h2 {
  font-size: clamp(40px, 4.7vw, 70px);
}

.catalog-panel-head p {
  max-width: 820px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
}

.package-group + .package-group {
  margin-top: 78px;
}

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

.package-group-head h3 {
  max-width: 920px;
  font-size: clamp(27px, 2.3vw, 38px);
}

.package-group-head > span {
  flex: 0 0 auto;
  color: var(--active);
  font-size: 13px;
  font-weight: 700;
}

.package-grid {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

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

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

.package-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 560px;
  flex-direction: column;
  padding: clamp(24px, 2vw, 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.catalog-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: transparent;
  content: "";
}

.catalog-card--accent::before {
  background: var(--gradient);
}

.catalog-card:hover {
  border-color: rgba(123, 83, 216, 0.34);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.catalog-card-topline {
  min-height: 38px;
  color: var(--active);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 700;
}

.catalog-card h3 {
  min-height: 62px;
  margin-top: 22px;
  font-size: clamp(23px, 1.8vw, 29px);
}

.catalog-card h3 small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
}

.catalog-price {
  margin-top: 20px;
  color: var(--primary);
  font-size: clamp(30px, 2.45vw, 44px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.catalog-price small {
  font-size: 0.42em;
  letter-spacing: 0;
}

.catalog-features {
  display: grid;
  gap: 11px;
  margin: 28px 0 24px;
  padding: 25px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.catalog-features li {
  position: relative;
  padding-left: 19px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.44;
}

.catalog-features li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--active);
  content: "";
  transform: translateY(-50%);
}

.catalog-note {
  margin: -7px 0 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.catalog-card .package-link {
  margin-top: auto;
}

.package-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.package-link::after {
  font-size: 20px;
  content: "↗";
}

.package-link:hover {
  color: var(--active);
}

.mobile-step,
.mobile-card-nav {
  display: none;
}

.final {
  position: relative;
  padding-block: var(--section);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 18%, rgba(123, 83, 216, 0.3), transparent 24%),
    radial-gradient(circle at 88% 76%, rgba(174, 141, 254, 0.14), transparent 28%),
    var(--deep);
}

.final::before {
  position: absolute;
  top: -140px;
  right: -120px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(174, 141, 254, 0.15);
  border-radius: 50%;
  content: "";
}

.final-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1fr);
  gap: clamp(40px, 4vw, 64px);
  align-items: start;
}

.final-copy .section-kicker {
  color: var(--soft);
}

.final-copy p {
  max-width: 720px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.66);
}

.final-right {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.final-visual {
  position: relative;
  aspect-ratio: 1.5;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-section);
}

.final-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(123, 83, 216, 0.13), transparent 56%);
  content: "";
}

.final-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.08);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
}

.contact-note h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.contact-note p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
}

.messenger-buttons {
  display: flex;
  gap: 8px;
}

.messenger-btn {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.08);
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.messenger-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.messenger-btn svg,
.messenger-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.messenger-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.final-right .contact-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 0;
}

.final-right .messenger-buttons {
  width: 100%;
}

.final-right .messenger-btn {
  width: 100%;
  height: auto;
  min-height: 52px;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(174, 141, 254, 0.16);
}

.final-right .messenger-btn span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  white-space: normal;
}

.amo-form-card {
  --amo-card-padding: clamp(24px, 3vw, 42px);

  min-height: 0;
  padding: var(--amo-card-padding);
  border-radius: var(--radius-section);
  color: var(--ink);
  background: #fbfaf7;
  box-shadow: 0 40px 90px rgba(4, 1, 14, 0.3);
}

.amo-form-title {
  margin-bottom: clamp(30px, 4vw, 52px);
  color: #111;
  font-size: clamp(38px, 3.6vw, 54px);
  line-height: 0.96;
}

.amo-form-title span {
  display: block;
  white-space: nowrap;
}

.amo-form-card iframe {
  display: block;
  width: calc(100% + var(--amo-card-padding) + var(--amo-card-padding)) !important;
  max-width: none !important;
  margin-inline: calc(0px - var(--amo-card-padding)) !important;
  margin-bottom: -50px !important;
  border: 0;
  clip-path: inset(0 0 50px 0);
}

.amo-form-noscript {
  color: var(--muted);
}

.footer {
  color: var(--white);
  background: var(--deep-2);
  border-top: 1px solid var(--line-light);
}

.footer-main {
  padding: clamp(72px, 8vw, 120px) 0 58px;
}

.footer-intro {
  display: block;
}

.footer-kicker {
  color: var(--soft);
  margin-bottom: 20px;
}

.footer-title {
  max-width: 840px;
}

.footer-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(50px, 7vw, 90px);
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.footer-contact {
  display: grid;
  min-width: 0;
  min-height: 160px;
  align-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 2.5vw, 38px);
  transition: background-color 160ms ease;
}

.footer-contact:first-child {
  padding-left: 0;
}

.footer-contact + .footer-contact {
  border-left: 1px solid var(--line-light);
}

.footer-contact:hover {
  background: rgba(255, 255, 255, 0.045);
}

.footer-contact-label,
.footer-contact-action {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.footer-contact-value {
  overflow-wrap: anywhere;
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 40px;
  align-items: end;
  padding: 30px 0 46px;
}

.footer-note {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  line-height: 1.5;
}

.footer-meta {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
}

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

.cookie-note {
  position: fixed;
  z-index: 300;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(640px, calc(100vw - 44px));
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(24, 10, 59, 0.14);
  border-radius: var(--radius-card);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 52px rgba(24, 10, 59, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  transition:
    opacity 1.35s ease,
    transform 1.35s ease,
    visibility 0s linear 1.35s;
}

.cookie-note.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

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

.cookie-note strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.cookie-note p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-note p a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.cookie-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.cookie-button--primary {
  min-width: 126px;
  color: var(--white);
  border-color: var(--primary);
  background: var(--primary);
}

.cookie-button--secondary {
  color: var(--ink);
  background: var(--surface);
}

.mobile-cta {
  display: none;
}

.not-found {
  min-height: 100svh;
  padding: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 24%, rgba(123, 83, 216, 0.34), transparent 28%),
    var(--deep);
}

.not-found-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-content: space-between;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
}

.not-found-brand {
  position: relative;
  z-index: 2;
  width: 200px;
}

.not-found-brand img {
  width: 100%;
  height: auto;
}

.not-found-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-block: 80px;
}

.not-found-copy > span {
  display: block;
  margin-bottom: 24px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.not-found-copy p {
  max-width: 610px;
  margin: 28px 0 36px;
  color: rgba(255, 255, 255, 0.68);
}

.not-found-mark {
  position: absolute;
  right: -9vw;
  bottom: -19vw;
  width: min(66vw, 900px);
  opacity: 0.74;
}

.js .reveal,
.js .stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal-image {
  transform: translateY(28px) scale(0.985);
}

.js .reveal.is-visible,
.js .stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

.js .stagger.is-visible > *:nth-child(2) {
  transition-delay: 70ms;
}

.js .stagger.is-visible > *:nth-child(3) {
  transition-delay: 140ms;
}

.js .stagger.is-visible > *:nth-child(4) {
  transition-delay: 210ms;
}

.js .stagger.is-visible > *:nth-child(5) {
  transition-delay: 280ms;
}

.js .stagger.is-visible > *:nth-child(6) {
  transition-delay: 350ms;
}

@media (max-width: 1240px) {
  .nav-links {
    gap: 15px;
  }

  .nav-links > a {
    font-size: 13px;
  }

  .header-phone-text {
    display: none;
  }

  .header-phone {
    width: 46px;
    justify-content: center;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
    gap: 44px;
  }

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

  .catalog-card {
    min-height: 520px;
  }
}

@media (max-width: 1080px) {
  :root {
    --header-height: 78px;
  }

  .header-cta {
    display: none;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  }

  .case-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .final-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1fr);
  }
}

@media (max-width: 980px) {
  .nav {
    justify-content: space-between;
  }

  .brand {
    width: auto;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    z-index: 99;
    inset: var(--header-height) 0 0;
    display: grid;
    height: calc(100svh - var(--header-height));
    align-content: start;
    gap: 0;
    padding: 32px var(--gutter) max(32px, env(safe-area-inset-bottom));
    overflow-y: auto;
    color: var(--white);
    background:
      radial-gradient(circle at 84% 18%, rgba(123, 83, 216, 0.35), transparent 26%),
      var(--deep);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links > a {
    display: flex;
    min-height: 60px;
    align-items: center;
    border-bottom: 1px solid var(--line-light);
    color: var(--white);
    font-size: 22px;
  }

  .nav-links > a::after {
    display: none;
  }

  .nav-messengers {
    display: grid;
    gap: 10px;
    margin-top: 32px;
  }

  .nav-messengers-label {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
  }

  .nav-messenger {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    color: var(--white);
  }

  .nav-messenger svg,
  .nav-messenger img {
    width: 26px;
    height: 26px;
    object-fit: contain;
  }

  .nav-messenger-name {
    font-size: 15px;
    font-weight: 700;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    min-height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 36px;
    padding-top: calc(var(--header-height) + 64px);
    padding-bottom: 0;
  }

  .hero-copy {
    max-width: 820px;
    padding: 0;
  }

  .hero-art {
    position: relative;
    inset: auto;
    width: calc(100% + (var(--gutter) * 2));
    max-width: none;
    height: min(72vw, 620px);
    margin-inline: calc(var(--gutter) * -1);
    aspect-ratio: auto;
    justify-self: stretch;
    background: var(--deep);
  }

  .hero-material {
    object-position: center;
    transform: scale(1.06);
  }

  .hero-art::after {
    background:
      linear-gradient(180deg, rgba(24, 10, 59, 1) 0%, rgba(24, 10, 59, 0.82) 8%, rgba(24, 10, 59, 0.2) 26%, transparent 44%, rgba(24, 10, 59, 0.18) 74%, rgba(24, 10, 59, 0.78) 100%),
      linear-gradient(90deg, rgba(24, 10, 59, 0.2), transparent 58%),
      linear-gradient(140deg, rgba(174, 141, 254, 0.08), rgba(24, 10, 59, 0.12));
  }

  .hero-outline-mark {
    width: 72%;
  }

  .about-copy,
  .about-media {
    grid-column: 1 / -1;
  }

  .about-symbol {
    min-height: 560px;
  }

  .about-photo,
  .about-photo-image {
    min-height: 560px;
  }

  .section-head,
  .pricing-intro {
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
  }

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

  .consult-media {
    max-height: 520px;
  }

  .consult-media img {
    height: min(68vw, 520px);
  }

  .case-details {
    grid-template-columns: 1fr;
  }

  .case-detail + .case-detail {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

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

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

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

  .footer-contact,
  .footer-contact:first-child {
    min-height: 130px;
    padding: 24px 0;
  }

  .footer-contact + .footer-contact {
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: clamp(58px, 8svh, 64px);
    --gutter: 18px;
    --section: 84px;
    --radius-section: 26px;
    --radius-card: 20px;
    --radius-control: 12px;
  }

  body {
    padding-bottom: 0;
    font-size: 17px;
  }

  .topbar,
  .header-scrolled .topbar {
    border-bottom-color: transparent;
    box-shadow: none;
  }

  .hero {
    min-height: 100svh;
  }

  h1 {
    font-size: clamp(38px, 10vw, 48px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(39px, 10.6vw, 56px);
    line-height: 1;
  }

  .eyebrow,
  .section-kicker,
  .footer-kicker {
    margin-bottom: 22px;
  }

  .brand {
    width: auto;
  }

  .brand-mark {
    width: clamp(34px, 5.5svh, 40px);
    height: clamp(34px, 5.5svh, 40px);
  }

  .brand-wordmark {
    font-size: clamp(12px, 1.9svh, 14px);
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .hero-shell {
    height: 100svh;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(180px, 35svh, 300px) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    padding-top: var(--header-height);
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(27px, min(8.8vw, 4.8svh), 38px);
    line-height: 0.98;
  }

  .hero-copy > p {
    margin-top: clamp(12px, 2svh, 20px);
    font-size: clamp(13px, min(4vw, 2.2svh), 16px);
    line-height: 1.4;
  }

  .hero-copy {
    order: 2;
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(14px, 2.4svh, 24px) 0 clamp(16px, 2.8svh, 26px);
  }

  .hero .eyebrow {
    display: flex;
    width: 100%;
    padding-right: 52px;
  }

  .hero-actions {
    display: grid;
    margin-top: clamp(16px, 2.6svh, 24px);
  }

  .hero-actions .button {
    width: 100%;
    padding: clamp(12px, 2svh, 15px) 18px;
    font-size: clamp(13px, 3.8vw, 15px);
  }

  .hero-art {
    order: 1;
    height: 100%;
    max-height: none;
  }

  .hero-material {
    object-position: center 58%;
  }

  .hero-outline-mark {
    width: 82%;
  }

  .about-grid {
    gap: 24px;
  }

  .about-copy > p {
    margin-top: 20px;
  }

  .about-proof-strip {
    grid-template-columns: 1fr;
  }

  .about-proof {
    padding-right: 0;
  }

  .about-proof + .about-proof {
    margin-top: 22px;
    padding-top: 22px;
    padding-left: 0;
    border-top: 1px solid rgba(77, 44, 157, 0.16);
    border-left: 0;
  }

  .about-symbol {
    min-height: 440px;
  }

  .about-photo,
  .about-photo-image {
    min-height: 500px;
  }

  .about-symbol figcaption {
    right: 28px;
    bottom: 26px;
    left: 28px;
  }

  .about-metrics,
  .about-notes {
    grid-template-columns: 1fr;
  }

  .metric-card {
    padding: 28px 22px;
  }

  .metric-lead {
    grid-template-columns: 1fr;
  }

  .metric-groups {
    gap: 18px;
  }

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

  .service-card {
    min-height: 0;
  }

  .case-summary,
  .case-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .case-toggle {
    width: 100%;
  }

  .case-visual img {
    height: 116vw;
    max-height: 570px;
  }

  .consult-media img {
    height: min(90vw, 520px);
  }

  .price-tabs {
    display: flex;
    gap: 8px;
    padding: 0 0 8px;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .price-tabs::-webkit-scrollbar {
    display: none;
  }

  .price-tab {
    min-width: min(78vw, 290px);
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--surface);
    scroll-snap-align: start;
  }

  .mobile-step {
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-card-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0 14px;
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-swipe-hint {
    display: none;
  }

  .mobile-card-arrows {
    display: flex;
    gap: 6px;
  }

  .mobile-card-arrows button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    background: var(--surface);
    cursor: pointer;
  }

  .mobile-card-arrows button:disabled {
    opacity: 0.35;
  }

  .catalog-panel-head {
    margin-bottom: 48px;
    padding-bottom: 34px;
  }

  .catalog-panel-head h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .catalog-panel-head p {
    margin-top: 18px;
    font-size: 16px;
  }

  .panel-package-groups {
    display: flex;
    gap: 12px;
    padding-bottom: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .panel-package-groups::-webkit-scrollbar {
    display: none;
  }

  .panel-package-groups > .package-group,
  .panel-package-groups > .package-group > .package-grid {
    display: contents;
  }

  .panel-package-groups .package-group-head {
    display: none;
  }

  .panel-package-groups .catalog-card {
    width: 100%;
    min-width: 100%;
    min-height: 580px;
    flex: 0 0 100%;
    scroll-snap-align: start;
  }

  .js .panel-package-groups .stagger > .catalog-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .catalog-card h3 {
    min-height: 0;
  }

  .mobile-direction-switcher {
    display: block;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }

  .mobile-direction-title {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
  }

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

  .mobile-direction-button {
    min-height: 72px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    color: var(--ink);
    background: var(--surface);
    font: inherit;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition:
      color 160ms ease,
      border-color 160ms ease,
      background-color 160ms ease;
  }

  .mobile-direction-button:hover {
    border-color: rgba(123, 83, 216, 0.34);
    color: var(--primary);
    background: rgba(228, 229, 247, 0.42);
  }

  .mobile-direction-button:focus-visible {
    outline: 3px solid var(--soft);
    outline-offset: 2px;
  }

  .mobile-direction-button:last-child {
    grid-column: 1 / -1;
  }

  .mobile-direction-button[aria-current="true"],
  .mobile-direction-button[aria-current="true"]:hover {
    border-color: var(--deep);
    color: var(--white);
    background: var(--deep);
    box-shadow: 0 12px 30px rgba(24, 10, 59, 0.16);
    cursor: default;
  }

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

  .messenger-buttons {
    justify-content: flex-start;
  }

  .amo-form-card {
    --amo-card-padding: 18px;

    padding: 24px var(--amo-card-padding);
  }

  .amo-form-title {
    font-size: clamp(32px, 9.5vw, 38px);
    line-height: 0.98;
  }

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

  .footer-meta {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-note {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .mobile-cta {
    position: fixed;
    z-index: 220;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-control);
    color: var(--deep);
    background: var(--soft);
    box-shadow: 0 16px 40px rgba(24, 10, 59, 0.3);
    font-size: 15px;
    font-weight: 700;
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .mobile-cta.is-hidden,
  .menu-open .mobile-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
  }

  .not-found-shell {
    padding: 24px 18px;
  }

  .not-found-brand {
    width: 170px;
  }

  .not-found-copy {
    padding-block: 56px 160px;
  }

  .not-found-mark {
    right: -34vw;
    bottom: -12vw;
    width: 126vw;
  }
}

@media (max-width: 430px) {
  .about-symbol {
    min-height: 390px;
  }

  .about-photo,
  .about-photo-image {
    min-height: 450px;
  }

  .metric-groups {
    grid-template-columns: 1fr;
  }

  .metric-group-title {
    min-height: 0;
  }

  .service-card,
  .case-summary,
  .case-detail {
    padding: 26px 22px;
  }

  .catalog-price {
    font-size: 34px;
  }

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

@media (max-width: 360px) {
  h1 {
    font-size: 10vw;
  }

  .final-right .messenger-btn {
    padding-inline: 10px;
  }

  .final-right .messenger-btn span {
    font-size: 14px;
  }
}

@media (max-width: 760px) and (max-height: 600px) {
  :root {
    --header-height: 54px;
  }

  .hero-shell {
    grid-template-rows: clamp(150px, 30svh, 180px) minmax(0, 1fr);
  }

  .hero h1 {
    font-size: clamp(25px, min(8vw, 4.5svh), 31px);
  }

  .hero-copy {
    padding-block: 12px;
  }

  .hero-copy > p {
    margin-top: 10px;
    font-size: clamp(12px, 3.8vw, 14px);
    line-height: 1.36;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .hero-actions .button {
    padding-block: 11px;
  }
}

@media (max-height: 720px) and (min-width: 981px) {
  .hero-shell {
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 28px;
  }

  .hero-copy {
    padding-block: 20px;
  }

  .hero-copy > p {
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-art {
    max-height: none;
  }
}

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

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

  .js .reveal,
  .js .stagger > * {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .topbar,
  .cookie-note,
  .mobile-cta,
  .price-catalog .category-picker,
  .price-catalog .mobile-card-nav,
  .price-catalog .package-swipe-step,
  .price-catalog .mobile-direction-switcher,
  .price-catalog .package-link {
    display: none !important;
  }

  .price-catalog .package-grid--two,
  .price-catalog .package-grid--three,
  .price-catalog .package-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-catalog .catalog-card {
    min-height: 0;
    break-inside: avoid;
    box-shadow: none;
  }

  body {
    padding: 0;
    color: #000;
    background: #fff;
  }
}
