/* ==========================================================================
   Paint-Art — дизайн-система лендинга и SEO-статей
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --index: calc(1vw + 1vh);
  --transition: cubic-bezier(0.1, 0.7, 0, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Палитра: глубокий синий, бирюзовый, коралловый + пастель */
  --navy: #131a3a;
  --navy-soft: #26315f;
  --turq: #17c3b2;
  --turq-deep: #0f9c8f;
  --coral: #ff6b5e;
  --coral-deep: #e8483a;
  --violet: #6c63ff;
  --amber: #ffb347;
  --green: #00bb66;

  --pastel-turq: #e4faf7;
  --pastel-coral: #fff0ee;
  --pastel-violet: #efeeff;
  --pastel-amber: #fff6e8;
  --pastel-blue: #eef2ff;

  --base: #ffffff;
  --surface: #f6f7fb;
  --surface-2: #eef1f8;
  --ink: #131a3a;
  --ink-soft: #4a5578;
  --muted: #7b85a3;
  --line: rgba(19, 26, 58, 0.08);

  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.6);

  --shadow-sm: 0 2px 8px rgba(19, 26, 58, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(19, 26, 58, 0.16);
  --shadow-lg: 0 30px 60px -24px rgba(19, 26, 58, 0.28);
  --shadow-glow: 0 20px 45px -18px rgba(23, 195, 178, 0.55);

  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;

  --wide: 1240px;
  --content: 760px;
  --pad-x: clamp(18px, 4vw, 48px);
  --gap: clamp(20px, 3vw, 34px);
  --radius: 22px;
  --radius-sm: 14px;

  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  --fs-h1: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);
  --fs-h1-article: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--base);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 700;
}

::selection {
  background: var(--turq);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--turq);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 999;
  background: #fff;
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.shell {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.accent {
  background: linear-gradient(100deg, var(--turq) 0%, var(--violet) 55%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================ Хедер + навигация ========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  margin-right: auto;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--turq), var(--violet));
  box-shadow: var(--shadow-sm);
  flex: none;
}

.brand__mark svg {
  width: 20px;
  height: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--pastel-blue);
  color: var(--ink);
}

.nav__cta {
  padding: 10px 20px !important;
  color: #fff !important;
  font-weight: 600 !important;
  background: linear-gradient(120deg, var(--turq-deep), var(--turq)) !important;
  box-shadow: var(--shadow-sm);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.header-cta {
  display: none;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  background: linear-gradient(120deg, var(--turq-deep), var(--turq));
  box-shadow: var(--shadow-sm);
  flex: none;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex: none;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s linear, top 0.3s var(--ease);
}

.burger span:nth-child(1) {
  top: 15px;
}
.burger span:nth-child(2) {
  top: 21px;
}
.burger span:nth-child(3) {
  top: 27px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 900px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px var(--pad-x) 26px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 13px 16px;
    font-size: 1rem;
    text-align: center;
  }
}

/* ================================= Hero ================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
  background:
    radial-gradient(60% 70% at 12% 8%, var(--pastel-turq) 0%, transparent 60%),
    radial-gradient(55% 65% at 88% 12%, var(--pastel-coral) 0%, transparent 62%),
    radial-gradient(70% 80% at 50% 110%, var(--pastel-violet) 0%, transparent 60%),
    var(--base);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  animation: float 16s ease-in-out infinite;
}

.hero__blob--1 {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -60px;
  background: var(--turq);
}

.hero__blob--2 {
  width: 260px;
  height: 260px;
  top: 40%;
  right: -70px;
  background: var(--coral);
  animation-delay: -5s;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: 35%;
  background: var(--violet);
  animation-delay: -9s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(28px, -26px, 0) scale(1.08);
  }
  66% {
    transform: translate3d(-22px, 20px, 0) scale(0.95);
  }
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(15, 156, 143, 0.4);
  box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--turq-deep);
  width: fit-content;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

a.pill::after {
  content: "→";
  margin-left: 2px;
  font-weight: 800;
}

a.pill:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--turq-deep), var(--turq));
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

a.pill:hover .pill__dot {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.pill__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--turq);
  box-shadow: 0 0 0 4px rgba(23, 195, 178, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(23, 195, 178, 0);
  }
}

.hero__title {
  font-size: var(--fs-h1);
  margin-top: 22px;
}

.hero__text {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  text-align: justify;
  text-justify: inter-word;
  margin-top: 20px;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 40px);
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.stat__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--muted);
}

.hero__media {
  position: relative;
}

.hero__frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px;
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.hero__frame img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

.hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.8125rem;
  font-weight: 600;
  animation: float-badge 6s ease-in-out infinite;
}

.hero__badge--tl {
  top: -18px;
  left: -14px;
}

.hero__badge--br {
  bottom: -20px;
  right: -10px;
  animation-delay: -3s;
}

.hero__badge svg {
  width: 18px;
  height: 18px;
  flex: none;
}

@keyframes float-badge {
  50% {
    transform: translateY(-10px);
  }
}

/* ================================ Кнопки ================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--turq-deep) 0%, var(--turq) 45%, var(--violet) 100%);
  background-size: 180% 100%;
  box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
  transform: translateY(-3px);
  background-position: 100% 0;
  box-shadow: 0 26px 55px -18px rgba(108, 99, 255, 0.6);
}

.btn--light {
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.btn--light:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 19px 40px;
  font-size: 1.0625rem;
}

/* ================================ Секции ================================= */

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section--surface {
  background: var(--surface);
}

.section--tint {
  background: linear-gradient(180deg, var(--base) 0%, var(--surface) 100%);
}

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(34px, 5vw, 60px);
  text-align: center;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--turq-deep);
  margin-bottom: 14px;
}

.section__title {
  font-size: var(--fs-h2);
}

.section__text {
  color: var(--ink-soft);
  margin-top: 16px;
  font-size: 1.0625rem;
}

/* ============================== Преимущества ============================= */

.grid {
  display: grid;
  gap: var(--gap);
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  margin-bottom: 20px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.i-turq {
  background: var(--pastel-turq);
  color: var(--turq-deep);
}
.i-coral {
  background: var(--pastel-coral);
  color: var(--coral-deep);
}
.i-violet {
  background: var(--pastel-violet);
  color: var(--violet);
}
.i-amber {
  background: var(--pastel-amber);
  color: #c9781a;
}
.i-blue {
  background: var(--pastel-blue);
  color: var(--navy-soft);
}
.i-green {
  background: #e6f9f0;
  color: var(--green);
}

.card__title {
  font-size: var(--fs-h3);
  font-weight: 700;
}

.card__text {
  color: var(--ink-soft);
  margin-top: 12px;
}

/* Шаги */

.step {
  padding: 34px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  position: relative;
  overflow: hidden;
}

.step::after {
  content: counter(step);
  position: absolute;
  right: 14px;
  bottom: -18px;
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  color: rgba(19, 26, 58, 0.05);
}

.steps {
  counter-reset: step;
}

.step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--turq), var(--violet));
  margin-bottom: 18px;
}

/* =============================== Галерея ================================= */

.gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 0;
}

.gallery__items {
  display: flex;
  gap: 0.4rem;
  perspective: calc(var(--index) * 35);
}

.gallery__item {
  position: relative;
  background-color: #222;
  width: calc(var(--index) * 3);
  height: calc(var(--index) * 12);
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 1.25s var(--transition), filter 3s var(--transition), width 1.25s var(--transition);
  will-change: transform, filter;
  filter: grayscale(1) brightness(0.55);
}

.gallery__item::before,
.gallery__item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 100%;
  right: calc(var(--index) * -1);
}

.gallery__item::after {
  left: calc(var(--index) * -1);
}

.gallery__items .gallery__item:hover {
  transform: translateZ(calc(var(--index) * 10));
  filter: inherit;
}

.gallery__items .gallery__item:hover + * {
  transform: translateZ(calc(var(--index) * 8.5)) rotateY(35deg);
  filter: inherit;
  z-index: -1;
}

.gallery__items .gallery__item:hover + * + * {
  transform: translateZ(calc(var(--index) * 5.6)) rotateY(40deg);
  filter: inherit;
  z-index: -2;
}

.gallery__items .gallery__item:hover + * + * + * {
  transform: translateZ(calc(var(--index) * 2.4)) rotateY(30deg);
  filter: inherit;
  z-index: -3;
}

.gallery__items .gallery__item:hover + * + * + * + * {
  transform: translateZ(calc(var(--index) * 0.6)) rotateY(14deg);
  filter: inherit;
  z-index: -4;
}

.gallery__item:has(+ :hover) {
  transform: translateZ(calc(var(--index) * 8.5)) rotateY(-35deg);
  filter: inherit;
}

.gallery__item:has(+ * + :hover) {
  transform: translateZ(calc(var(--index) * 5.6)) rotateY(-40deg);
  filter: inherit;
}

.gallery__item:has(+ * + * + :hover) {
  transform: translateZ(calc(var(--index) * 2.4)) rotateY(-30deg);
  filter: inherit;
}

.gallery__item:has(+ * + * + * + :hover) {
  transform: translateZ(calc(var(--index) * 0.6)) rotateY(-14deg);
  filter: inherit;
}

.gallery__items .gallery__item:active,
.gallery__items .gallery__item:focus {
  width: 28vw;
  transform: translateZ(calc(var(--index) * 10));
  filter: inherit;
  z-index: 100;
  margin: 0 0.45vw;
  outline: none;
}

/* =============================== Кластеры ================================ */

.silo {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
}

.silo + .silo {
  margin-top: var(--gap);
}

.silo__head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.silo__title {
  font-size: var(--fs-h3);
  font-weight: 800;
}

.silo__count {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface);
}

.silo__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px 24px;
  margin-top: 14px;
}

.silo__list a {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.9688rem;
  color: var(--ink-soft);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.silo__list a::before {
  content: "→";
  color: var(--turq);
  flex: none;
}

.silo__list a:hover {
  background: var(--pastel-turq);
  color: var(--ink);
  transform: translateX(3px);
}

/* =============================== Отзывы ================================== */

.slider {
  position: relative;
}

.slider__viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.slider__track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.slide {
  flex: 0 0 100%;
  padding: 6px;
}

.review {
  height: 100%;
  padding: clamp(26px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.review__stars {
  color: var(--amber);
  letter-spacing: 3px;
  font-size: 1.0625rem;
}

.review__text {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.6;
  margin-top: 18px;
}

.review__author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.review__ava {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--violet));
  flex: none;
}

.review__name {
  font-weight: 700;
}

.review__role {
  font-size: 0.875rem;
  color: var(--muted);
}

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.slider__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.slider__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.slider__dots {
  display: flex;
  gap: 8px;
}

.slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(19, 26, 58, 0.16);
  cursor: pointer;
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}

.slider__dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: var(--turq);
}

/* ================================= FAQ =================================== */

.faq {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  margin-left: auto;
  flex: none;
  border-right: 2px solid var(--turq-deep);
  border-bottom: 2px solid var(--turq-deep);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
}

.faq p {
  padding: 0 24px 22px;
  color: var(--ink-soft);
}

/* =============================== CTA-блок ================================ */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(38px, 6vw, 72px);
  color: #fff;
  background: linear-gradient(130deg, var(--navy) 0%, var(--navy-soft) 45%, var(--violet) 100%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.cta::before,
.cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
}

.cta::before {
  width: 300px;
  height: 300px;
  top: -110px;
  left: -80px;
  background: var(--turq);
}

.cta::after {
  width: 260px;
  height: 260px;
  bottom: -110px;
  right: -60px;
  background: var(--coral);
}

.cta > * {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: var(--fs-h2);
}

.cta__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--fs-lead);
  margin: 16px auto 0;
  max-width: 620px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.cta__note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 18px;
}

/* ================================ Футер ================================== */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(44px, 6vw, 72px) 0 32px;
}

.site-footer .brand {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gap);
}

.footer__about {
  margin-top: 16px;
  font-size: 0.9375rem;
  max-width: 320px;
}

.footer__col h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer__col a {
  font-size: 0.9375rem;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--turq);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================== Страница статьи ============================== */

.crumbs {
  padding: 22px 0 0;
  font-size: 0.8438rem;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(19, 26, 58, 0.24);
}

.crumbs a:hover {
  color: var(--turq-deep);
}

.article-hero {
  padding: 26px 0 clamp(28px, 4vw, 48px);
  background:
    radial-gradient(50% 70% at 15% 0%, var(--pastel-turq) 0%, transparent 62%),
    radial-gradient(45% 60% at 90% 5%, var(--pastel-coral) 0%, transparent 60%),
    var(--base);
}

.article-hero__inner {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--turq-deep);
  box-shadow: var(--shadow-sm);
}

.article-hero h1 {
  font-size: var(--fs-h1-article);
  margin-top: 18px;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.article-lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--turq);
  background: var(--glass);
  border-top: 1px solid var(--glass-line);
  border-right: 1px solid var(--glass-line);
  border-bottom: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.article-body {
  max-width: var(--content);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) var(--pad-x) clamp(40px, 6vw, 72px);
}

.article-body h2 {
  font-size: var(--fs-h2);
  margin-top: 2.2em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-top: 1.8em;
}

.article-body p {
  margin-top: 1.1em;
}

.article-body ul,
.article-body ol {
  margin: 1.2em 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.article-body ul li,
.article-body ol li {
  position: relative;
  padding-left: 38px;
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--turq), var(--violet));
}

.article-body ol {
  counter-reset: li;
}

.article-body ol li {
  counter-increment: li;
}

.article-body ol li::before {
  content: counter(li);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--turq-deep);
  background: var(--pastel-turq);
}

.article-body a:not(.btn) {
  color: var(--turq-deep);
  font-weight: 500;
  border-bottom: 1px solid rgba(23, 195, 178, 0.4);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.article-body a:not(.btn):hover {
  color: var(--violet);
  border-color: var(--violet);
}

.toc {
  margin-top: 8px;
  padding: 24px 26px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.toc h2 {
  font-size: 0.8125rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 !important;
}

.article-body .toc ol {
  counter-reset: toc;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
}

.article-body .toc ol li {
  counter-increment: toc;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-left: 0;
}

.article-body .toc ol li::before {
  content: counter(toc) ".";
  position: static;
  left: auto;
  top: auto;
  display: inline;
  width: auto;
  height: auto;
  border-radius: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--turq);
  background: none;
}

.toc a {
  font-size: 0.9688rem;
  color: var(--ink-soft) !important;
  border: none !important;
  font-weight: 500;
}

.toc a:hover {
  color: var(--turq-deep) !important;
}

.callout {
  margin-top: 1.6em;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: var(--pastel-amber);
  border: 1px solid rgba(255, 179, 71, 0.35);
}

.callout__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b9701a;
}

.callout p {
  margin-top: 8px !important;
}

.plan {
  margin-top: 1.6em;
  display: grid;
  gap: 14px;
}

.plan__item {
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.plan__item h3 {
  margin-top: 0 !important;
  font-size: 1.0625rem;
}

.plan__item ul {
  margin-top: 12px;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.4em;
  padding: 0 !important;
  list-style: none;
}

.keys li {
  padding: 7px 14px !important;
  border-radius: 999px;
  font-size: 0.8438rem;
  color: var(--ink-soft);
  background: var(--surface-2);
}

.keys li::before {
  content: none !important;
}

.article-cta {
  margin-top: 2.4em;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  background: linear-gradient(130deg, var(--navy) 0%, var(--navy-soft) 50%, var(--turq-deep) 100%);
  box-shadow: var(--shadow-lg);
}

.article-cta h2 {
  margin-top: 0 !important;
  font-size: var(--fs-h3) !important;
  color: #fff;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.article-cta .btn {
  margin-top: 22px;
}

.related {
  background: var(--surface);
  padding: clamp(44px, 6vw, 72px) 0;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--gap);
}

.related__card {
  display: block;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.related__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.related__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--turq-deep);
}

.related__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 10px;
}

.related__text {
  font-size: 0.9063rem;
  color: var(--muted);
  margin-top: 10px;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================== Появление ================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 901px) {
  .hero {
    padding-top: 28px;
  }
}

/* ============================== Адаптив ================================== */

@media (max-width: 900px) {
  .hero {
    padding-top: clamp(24px, 4vw, 40px);
    padding-bottom: clamp(32px, 5vw, 56px);
  }

  .hero__grid {
    display: flex;
    flex-direction: column;
  }

  .hero__text {
    max-width: none;
  }

  .hero__copy,
  .hero__actions {
    display: contents;
  }

  .hero__media {
    order: 0;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 18px;
  }

  .pill {
    order: 1;
  }

  .hero__title {
    order: 2;
  }

  .hero__text {
    order: 3;
  }

  .hero__text--more {
    order: 4;
    margin-top: 18px;
  }

  .hero__actions .btn--primary {
    order: 5;
    margin-top: 22px;
  }

  .hero__actions-secondary {
    display: none;
  }

  .hero__stats {
    order: 6;
  }

  .footer__grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 400px) {
  .header-cta {
    font-size: 0.8125rem;
    padding: 9px 12px;
  }
}

@media (max-width: 560px) {
  .hero__badge--tl {
    left: 6px;
    top: -14px;
  }

  .hero__badge--br {
    right: 6px;
    bottom: -14px;
  }

  .silo__list {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero__actions,
  .cta__actions {
    flex-direction: column;
  }

  .gallery__item {
    width: calc(var(--index) * 4.2);
    height: calc(var(--index) * 14);
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
