/* ============================================================
   Марина Петрушина — портфолио
   Светлый editorial: бумага, графит, изумруд, коралл
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/manrope-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/manrope-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/playfair-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/playfair-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/playfair-italic-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/playfair-italic-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Переменные ---------- */
:root {
  --paper: #f6f2ea;
  --paper-2: #efe9de;
  --paper-3: #e7e0d2;
  --ink: #15171c;
  --ink-2: #1b1e24;
  --ink-3: #0f1115;
  --muted: #5e6168;
  --line: #dbd3c5;
  --emerald: #0e7c66;
  --emerald-soft: #7fd6b8;
  --coral: #e5524b;
  --coral-dark: #d0443e;
  --white: #fffdf8;
  --radius: 22px;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --shadow-soft: 0 24px 70px rgba(21, 23, 28, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p,
blockquote,
figure {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
::selection {
  background: rgba(14, 124, 102, 0.22);
}
:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

.container {
  width: min(1200px, calc(100% - 56px));
  margin-inline: auto;
  position: relative;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 27px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(229, 82, 75, 0.2);
  transition: background 0.2s, transform 0.2s var(--ease), box-shadow 0.2s,
    border-color 0.2s, color 0.2s;
}
.btn:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(229, 82, 75, 0.24);
}
.btn:active {
  transform: translateY(0);
}
.btn-sm {
  padding: 11px 19px;
  font-size: 13px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(21, 23, 28, 0.04);
  border-color: var(--ink);
  box-shadow: none;
}
.btn-block {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(14, 124, 102, 0.12);
}
.eyebrow-light {
  color: rgba(246, 242, 234, 0.55);
}
.eyebrow-light .eyebrow-dot {
  background: var(--emerald-soft);
  box-shadow: 0 0 0 4px rgba(127, 214, 184, 0.12);
}

.section {
  position: relative;
  padding: 112px 0;
}
.section-head {
  max-width: 800px;
  margin-bottom: 54px;
}
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px;
  max-width: none;
}
.section-head-row .section-lead {
  max-width: 420px;
  padding-bottom: 6px;
}
.section-head h2,
.process-head h2,
.about-copy h2,
.faq-head h2,
.contact-copy h2 {
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.section-lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.62;
  max-width: 62ch;
}

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(246, 242, 234, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 242, 234, 0.94);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transform: rotate(-2deg);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.brand:hover .brand-mark {
  transform: rotate(0) scale(1.04);
  background: var(--emerald);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-text strong {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}
.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}
.nav-cta {
  display: none !important;
}
.nav-foot {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.25s, top 0.25s;
}
.burger span:first-child {
  top: 17px;
}
.burger span:last-child {
  top: 25px;
}
.burger.is-open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}
.burger.is-open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 148px;
  background:
    radial-gradient(900px 520px at 92% 4%, rgba(14, 124, 102, 0.09), transparent 65%),
    radial-gradient(700px 480px at 4% 14%, rgba(229, 82, 75, 0.055), transparent 65%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 66px;
}
.hero-copy h1 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.hero-copy h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--emerald);
}
.hero-lead {
  margin: 28px 0 34px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.66;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--emerald);
}
.hero-link span {
  transition: transform 0.2s;
}
.hero-link:hover span {
  transform: translate(2px, -2px);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-meta li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.hero-meta strong {
  display: block;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Визуал hero */
.hero-visual {
  position: relative;
  min-height: 510px;
}
.hero-frame {
  position: absolute;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4ddcf;
  border-radius: 16px;
  box-shadow: 0 34px 90px rgba(21, 23, 28, 0.18);
}
.hero-frame img {
  width: 100%;
  height: auto;
}
.hero-frame-main {
  z-index: 2;
  top: 54px;
  left: 0;
  width: 100%;
  transform: rotate(-1.4deg);
  transition: transform 0.6s var(--ease);
}
.hero-frame-back {
  z-index: 1;
  top: 0;
  right: -5%;
  width: 76%;
  transform: rotate(3.4deg);
  opacity: 0.9;
}
.hero-visual:hover .hero-frame-main {
  transform: rotate(-0.4deg) translateY(-4px);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 11px;
  background: #f1ece2;
  border-bottom: 1px solid #e4ddcf;
}
.frame-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8cfc0;
}
.frame-bar span:first-child {
  background: #e58f89;
}
.frame-bar i {
  margin-left: 8px;
  font-size: 9.5px;
  font-style: normal;
  color: #8a8578;
  letter-spacing: 0.02em;
}
.float-card {
  position: absolute;
  z-index: 3;
  padding: 13px 17px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(21, 23, 28, 0.16);
  animation: floaty 7s ease-in-out infinite;
}
.float-card span {
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.float-card strong {
  display: block;
  margin-top: 3px;
  font-size: 23px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.float-card small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}
.float-price {
  top: 18px;
  left: -24px;
}
.float-result {
  bottom: 4px;
  right: -14px;
  animation-delay: -3.5s;
}
.stamp {
  position: absolute;
  z-index: 4;
  right: 8px;
  top: 43%;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border: 2px solid var(--coral);
  border-radius: 50%;
  color: var(--coral);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.03;
  text-align: center;
  transform: rotate(9deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* Статистика */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding: 30px 0 36px;
}
.stats li {
  padding: 4px 26px;
  border-left: 1px solid var(--line);
}
.stats li:first-child {
  padding-left: 0;
  border-left: none;
}
.stats strong {
  display: block;
  font-size: clamp(30px, 3.1vw, 42px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.stats span {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
  max-width: 22ch;
}

/* ---------- Боли ---------- */
.pains {
  background: linear-gradient(180deg, var(--paper) 0%, #f1ece3 100%);
}
.pains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pain-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.pain-card:hover {
  transform: translateY(-4px);
  border-color: #c9bfae;
  box-shadow: 0 24px 50px rgba(21, 23, 28, 0.08);
}
.pain-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--emerald);
}
.pain-card blockquote {
  font-size: 19px;
  line-height: 1.42;
  letter-spacing: -0.015em;
  font-weight: 600;
  min-height: 5.7em;
}
.pain-do {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.pain-do span {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--emerald);
}

/* ---------- Услуги ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 258px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 124, 102, 0.45);
  box-shadow: 0 24px 50px rgba(21, 23, 28, 0.07);
}
.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(14, 124, 102, 0.08);
  color: var(--emerald);
}
.service-icon svg {
  width: 22px;
  height: 22px;
}
.service-card h3 {
  margin: 20px 0 9px;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.service-card p {
  font-size: 14px;
  line-height: 1.56;
  color: var(--muted);
}
.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.service-foot strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.service-foot span {
  font-size: 11.5px;
  color: var(--muted);
}
.service-card-accent {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  justify-content: center;
  gap: 10px;
}
.service-card-accent h3 {
  margin: 0;
  font-size: 24px;
}
.service-card-accent p {
  color: rgba(246, 242, 234, 0.68);
  margin-bottom: 10px;
}
.service-card-accent .btn {
  align-self: flex-start;
}

/* ---------- Специализация ---------- */
.focus {
  background: linear-gradient(180deg, #f1ece3 0%, var(--paper) 100%);
}
.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.focus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.focus-card:hover {
  transform: translateY(-4px);
  border-color: #c9bfae;
  box-shadow: 0 26px 60px rgba(21, 23, 28, 0.08);
}
.focus-card-med {
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(14, 124, 102, 0.16), transparent 70%),
    var(--white);
}
.focus-card-analytics {
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(229, 82, 75, 0.13), transparent 70%),
    var(--white);
}
.focus-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(14, 124, 102, 0.1);
  color: var(--emerald);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.focus-card-analytics .focus-badge {
  background: rgba(229, 82, 75, 0.1);
  color: var(--coral-dark);
}
.focus-card h3 {
  margin: 22px 0 10px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.focus-card > p {
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.focus-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 28px;
}
.focus-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}
.focus-card-analytics .focus-list li::before {
  background: var(--coral);
}
.focus-card-invest {
  grid-column: 1 / -1;
  min-height: 0;
  background:
    radial-gradient(520px 300px at 100% 0%, rgba(107, 91, 200, 0.14), transparent 70%),
    var(--white);
}
.focus-card-invest .focus-badge {
  background: rgba(107, 91, 200, 0.1);
  color: #5646b5;
}
.focus-card-invest .focus-list li::before {
  background: #6b5bc8;
}
.focus-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  color: var(--emerald);
}
.focus-link span {
  transition: transform 0.2s;
}
.focus-link:hover span {
  transform: translate(2px, -2px);
}

/* ---------- Кейсы ---------- */
.cases {
  background: var(--ink);
  color: var(--paper);
}
.cases .section-head h2 {
  color: var(--paper);
}
.cases .section-lead {
  color: rgba(246, 242, 234, 0.6);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}
.filter {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 242, 234, 0.66);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s;
}
.filter:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--paper);
}
.filter.is-active {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid #2b2f37;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 214, 184, 0.42);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}
.case-card.is-hidden {
  display: none;
}
.case-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #101216;
}
.case-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s var(--ease);
}
.case-card:hover .case-media > img {
  transform: scale(1.035);
}
.case-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(21, 23, 28, 0.72);
  backdrop-filter: blur(6px);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(246, 242, 234, 0.86);
}
.case-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
  padding: 23px 24px 22px;
}
.case-kicker {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #969ba5;
}
.case-body h3 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.case-body > p:not(.case-kicker) {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(246, 242, 234, 0.64);
}
.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.case-facts li {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  font-size: 10.5px;
  color: rgba(246, 242, 234, 0.72);
}
.case-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.case-more {
  padding: 0;
  border: none;
  background: none;
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 700;
}
.case-more span {
  display: inline-block;
  transition: transform 0.2s;
}
.case-more:hover span {
  transform: translateX(3px);
}
.case-actions a {
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-soft);
}
.case-actions a:hover {
  text-decoration: underline;
}
.cases-note {
  margin-top: 32px;
  font-size: 12.5px;
  color: rgba(246, 242, 234, 0.45);
}
.cases-note a {
  color: var(--emerald-soft);
}
.cases-note a:hover {
  text-decoration: underline;
}

/* Иллюстрации без скриншотов */
.case-art {
  display: grid;
  place-items: center;
  padding: 24px;
}
.art-bot {
  background: radial-gradient(700px 300px at 70% 0%, rgba(14, 124, 102, 0.35), transparent 70%),
    linear-gradient(135deg, #101d1a, #0c1115);
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  max-width: 440px;
}
.chat p {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 13px;
  font-size: 11.5px;
  line-height: 1.4;
}
.chat-in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(246, 242, 234, 0.86);
  border-bottom-left-radius: 4px;
}
.chat-out {
  align-self: flex-end;
  background: var(--emerald);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.art-term {
  padding: 24px;
  background: radial-gradient(600px 300px at 20% 0%, rgba(127, 214, 184, 0.12), transparent 70%),
    #0a0e12;
}
.term {
  width: 100%;
  max-width: 450px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: #0f141a;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  background: #151b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.term-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b424c;
}
.term-bar span:first-child {
  background: #a44844;
}
.term-bar i {
  margin-left: 8px;
  font-size: 9.5px;
  font-style: normal;
  color: #7d8590;
}
.term pre {
  margin: 0;
  padding: 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10.5px;
  line-height: 1.75;
  color: rgba(246, 242, 234, 0.82);
  white-space: pre-wrap;
}
.t-muted {
  color: #7d8590;
}
.t-ok {
  color: #5fd3a8;
}
.t-warn {
  color: #e9c46a;
}

/* ---------- Процесс ---------- */
.process-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 72px;
  align-items: start;
}
.process-head {
  position: sticky;
  top: 110px;
}
.process-head h2 {
  margin-bottom: 18px;
}
.process-head .btn {
  margin-top: 28px;
}
.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.step-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--emerald);
}
.steps h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
}
.steps p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Пакеты ---------- */
.packages {
  background: linear-gradient(180deg, #f1ece3, var(--paper));
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}
.package {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.package-accent {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateY(-8px);
  box-shadow: 0 34px 70px rgba(21, 23, 28, 0.2);
}
.package-badge {
  position: absolute;
  top: -13px;
  right: 26px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.package-top h3 {
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: -0.02em;
}
.package-top p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.package-accent .package-top p {
  color: rgba(246, 242, 234, 0.55);
}
.package-price {
  margin: 20px 0 22px;
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.package-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-right: 3px;
}
.package-price small {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.package-accent .package-price span,
.package-accent .package-price small {
  color: rgba(246, 242, 234, 0.6);
}
.package-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.package-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.package-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 700;
}
.package-accent .package-list li {
  color: rgba(246, 242, 234, 0.76);
}
.package-accent .package-list li::before {
  color: var(--emerald-soft);
}
.package-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.package-terms span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--muted);
}
.package-accent .package-terms span {
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(246, 242, 234, 0.6);
}
.package .btn {
  margin-top: auto;
}
.package-accent .btn-ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.22);
}
.packages-note {
  margin-top: 30px;
  max-width: 86ch;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Обо мне ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 72px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 440px;
  padding: 34px;
  border-radius: 24px;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(500px 320px at 90% 0%, rgba(127, 214, 184, 0.22), transparent 70%),
    radial-gradient(400px 300px at 0% 100%, rgba(229, 82, 75, 0.16), transparent 70%),
    var(--ink);
}
.about-photo-wrap {
  position: relative;
  width: 132px;
  height: 132px;
}
.about-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(127, 214, 184, 0.65);
  box-shadow: 0 0 0 8px rgba(127, 214, 184, 0.08);
}
.about-photo-badge {
  position: absolute;
  right: -2px;
  bottom: 2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.about-caption {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.about-role {
  margin-top: 4px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(246, 242, 234, 0.5);
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
}
.about-chips span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 10px;
  color: rgba(246, 242, 234, 0.72);
}
.about-quote {
  margin-top: auto;
  padding-top: 26px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: rgba(246, 242, 234, 0.8);
}
.about-stamp {
  position: absolute;
  right: 22px;
  bottom: -14px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  transform: rotate(-3deg);
}
.about-copy h2 {
  margin-bottom: 20px;
}
.about-copy > p:not(.eyebrow) {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}
.about-facts {
  margin: 24px 0 26px;
}
.about-facts li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.about-facts li:last-child {
  border-bottom: 1px solid var(--line);
}
.about-facts strong {
  color: var(--ink);
}
.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}
.link-plain {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--emerald);
}
.link-plain:hover {
  text-decoration: underline;
}

/* ---------- FAQ ---------- */
.faq {
  background: linear-gradient(180deg, var(--paper), #f1ece3);
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 72px;
  align-items: start;
}
.faq-head {
  position: sticky;
  top: 110px;
}
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-right: 34px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--emerald);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details p {
  margin-top: 12px;
  max-width: 66ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Контакты ---------- */
.contact {
  background: var(--ink);
  color: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.contact-copy h2 {
  color: var(--paper);
}
.contact-copy > p:not(.eyebrow) {
  margin-top: 20px;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(246, 242, 234, 0.62);
}
.contact-list {
  margin-top: 34px;
}
.contact-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-list span:first-child {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(246, 242, 234, 0.42);
  padding-top: 3px;
}
.contact-list a,
.contact-list span:last-child {
  font-size: 14.5px;
  color: rgba(246, 242, 234, 0.88);
}
.contact-list a:hover {
  color: var(--emerald-soft);
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding: 30px;
  background: var(--ink-2);
  border: 1px solid #2b2f37;
  border-radius: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(246, 242, 234, 0.5);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #333841;
  border-radius: 11px;
  background: #12151a;
  color: var(--paper);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #646a74;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--emerald-soft);
  box-shadow: 0 0 0 3px rgba(127, 214, 184, 0.12);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237d8590' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.field select option {
  background: #12151a;
  color: var(--paper);
}
.field textarea {
  resize: vertical;
  min-height: 84px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--coral);
}
.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.form-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.form-buttons .btn {
  padding: 12px 18px;
  font-size: 13px;
}
.contact-form .btn-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--paper);
}
.contact-form .btn-ghost:hover {
  border-color: var(--emerald-soft);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
}
.form-note {
  max-width: 32ch;
  font-size: 10.5px;
  line-height: 1.45;
  color: rgba(246, 242, 234, 0.42);
}
.form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  font-size: 12.5px;
  color: var(--emerald-soft);
}
.form-status.is-error {
  color: #f19a95;
}

/* ---------- Подвал ---------- */
.footer {
  background: var(--ink-3);
  color: rgba(246, 242, 234, 0.6);
  padding: 42px 0 24px;
}
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand .brand-mark {
  background: var(--paper);
  color: var(--ink);
}
.footer-brand strong {
  display: block;
  font-size: 14px;
  color: var(--paper);
}
.footer-brand p {
  margin-top: 3px;
  font-size: 11.5px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-nav a,
.footer-links a {
  font-size: 12.5px;
  transition: color 0.2s;
}
.footer-nav a:hover,
.footer-links a:hover {
  color: var(--paper);
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a {
  color: var(--emerald-soft);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  font-size: 11px;
  color: rgba(246, 242, 234, 0.38);
}
.footer-bottom a {
  color: rgba(246, 242, 234, 0.6);
}

/* ---------- Модалка кейса ---------- */
.case-modal {
  width: min(920px, 92vw);
  max-height: 90vh;
  padding: 0;
  border: none;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}
.case-modal::backdrop {
  background: rgba(10, 12, 15, 0.72);
  backdrop-filter: blur(5px);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(21, 23, 28, 0.6);
  color: #fff;
  font-size: 15px;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.modal-close:hover {
  background: var(--ink);
}
.modal-media {
  aspect-ratio: 16 / 7;
  background: #111;
  overflow: hidden;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.modal-media .case-art {
  height: 100%;
}
.modal-body {
  padding: 30px 34px 36px;
}
.modal-kicker {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emerald);
}
.modal-body h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.modal-short {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}
.modal-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 26px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.modal-blocks h3 {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-bottom: 6px;
}
.modal-blocks p {
  font-size: 13.5px;
  line-height: 1.55;
}
.modal-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.modal-facts li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--muted);
}
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.modal-meta dt {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}
.modal-meta dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.modal-actions .btn {
  padding: 12px 20px;
  font-size: 13px;
}

/* ---------- Анимации появления ---------- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .hero-grid {
    gap: 38px;
  }
  .hero-visual {
    min-height: 440px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid,
  .about-grid,
  .faq-grid,
  .contact-grid {
    gap: 48px;
  }
  .section-head-row {
    gap: 30px;
  }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 40px);
  }
  .header {
    /* backdrop-filter у fixed-шапки превращает её в containing block
       и сжимает fixed-меню до высоты шапки */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--paper);
  }
  .header.is-scrolled {
    background: var(--paper);
  }
  .nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 20px 30px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    overflow-y: auto;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    width: 100%;
    padding: 11px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child {
    border-bottom: none;
  }
  .nav a::after {
    display: none;
  }
  .nav .nav-cta {
    display: inline-flex !important;
    justify-content: center;
    margin-top: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }
  .nav-foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 24px;
    font-size: 12px;
    color: var(--muted);
  }
  .nav-foot a {
    padding: 0;
    border: none;
    font-size: 13px;
    color: var(--emerald);
  }
  .burger {
    display: block;
  }
  .header-actions .btn {
    display: none;
  }
  .hero {
    padding-top: 122px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 46px;
  }
  .hero-copy h1 {
    max-width: 15ch;
  }
  .hero-visual {
    min-height: 430px;
    margin-top: 14px;
    max-width: 620px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
  }
  .stats li:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
  .pains-grid,
  .cases-grid,
  .packages-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  .section-head-row {
    display: block;
  }
  .section-head-row .section-lead {
    margin-top: 18px;
    max-width: 62ch;
  }
  .process-grid,
  .about-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .process-head,
  .faq-head {
    position: static;
  }
  .package-accent {
    transform: none;
  }
  .faq-head .section-lead {
    max-width: 56ch;
  }
  .modal-blocks {
    grid-template-columns: 1fr;
  }
  .modal-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .br-desk {
    display: none;
  }
  body {
    font-size: 16px;
  }
  .section {
    padding: 78px 0;
  }
  .section-head {
    margin-bottom: 38px;
  }
  .about-card {
    min-height: 0;
    padding: 26px;
  }
  .about-photo-wrap {
    width: 112px;
    height: 112px;
  }
  .about-stamp {
    right: 14px;
  }
  .hero {
    padding-top: 108px;
  }
  .hero-copy h1 {
    font-size: clamp(36px, 10.5vw, 46px);
  }
  .hero-copy h1 em {
    white-space: nowrap;
  }
  .hero-lead {
    margin: 22px 0 28px;
    font-size: 15.5px;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .hero-meta {
    gap: 20px;
    margin-top: 30px;
  }
  .hero-visual {
    min-height: 350px;
  }
  .hero-frame-back {
    right: 0;
    width: 72%;
  }
  .hero-frame-main {
    top: 38px;
  }
  .float-card {
    padding: 10px 13px;
  }
  .float-card strong {
    font-size: 18px;
  }
  .float-price {
    left: -10px;
  }
  .float-result {
    right: -6px;
  }
  .stamp {
    width: 68px;
    height: 68px;
    font-size: 13px;
    right: 0;
  }
  .stats {
    padding: 22px 0 28px;
  }
  .stats strong {
    font-size: 30px;
  }
  .pains-grid,
  .services-grid {
    gap: 14px;
  }
  .pain-card,
  .service-card,
  .package {
    padding: 24px;
  }
  .section-head h2,
  .process-head h2,
  .about-copy h2,
  .faq-head h2,
  .contact-copy h2 {
    font-size: clamp(29px, 8.5vw, 38px);
  }
  .cases-grid {
    gap: 16px;
  }
  .case-body {
    padding: 20px;
  }
  .case-body h3 {
    font-size: 19px;
  }
  .contact-form {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .field-full,
  .form-foot,
  .form-status {
    grid-column: auto;
  }
  .form-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .form-foot .btn {
    width: 100%;
  }
  .form-note {
    max-width: none;
  }
  .contact-list li {
    grid-template-columns: 82px 1fr;
    gap: 12px;
  }
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .modal-body {
    padding: 24px 22px 28px;
  }
  .modal-media {
    aspect-ratio: 4 / 3;
  }
  .case-modal {
    width: 94vw;
  }
}

@media (max-width: 900px) {
  .focus-grid {
    grid-template-columns: 1fr;
  }
  .focus-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .focus-card {
    padding: 24px;
  }
  .form-buttons {
    width: 100%;
  }
}

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