/* Photolyx landing — дизайн-токены 1:1 с app.photolyx.com (src/app/globals.css) */

:root {
  --radius: 0.75rem;

  --background: #ffffff;
  --foreground: #0a0a0b;
  --card: #ffffff;
  --card-foreground: #0a0a0b;
  --surface: #f5f5f7;
  --surface-foreground: #0a0a0b;
  --elevated: #ffffff;
  --popover: #ffffff;
  --popover-foreground: #0a0a0b;
  --primary: #0a0a0b;
  --primary-foreground: #ffffff;
  --secondary: #f1f1f3;
  --secondary-foreground: #0a0a0b;
  --muted: #f5f5f7;
  --muted-foreground: #6b6b70;
  --accent: #f1f1f3;
  --accent-foreground: #0a0a0b;
  --destructive: #b91c1c;
  --border: #e6e6e9;
  --input: #e6e6e9;
  --ring: #0a0a0b;

  /* бренд-акцент из логотипа (фиолетовый→синий) — используем точечно */
  --brand-1: #8b5cf6;
  --brand-2: #6366f1;

  --grid-fill: rgba(10, 10, 11, 0.07);

  --card-translucent: rgba(255, 255, 255, 0.8);
}

.dark {
  --background: #0a0a0b;
  --foreground: #fafafa;
  --card: rgba(17, 17, 19, 0.9);
  --card-foreground: #fafafa;
  --surface: #0f0f11;
  --surface-foreground: #fafafa;
  --elevated: #18181b;
  --popover: #111113;
  --popover-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #0a0a0b;
  --secondary: #18181b;
  --secondary-foreground: #fafafa;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --destructive: #7f1d1d;
  --border: #202024;
  --input: #27272a;
  --ring: #d4d4d8;

  --grid-fill: rgba(255, 255, 255, 0.05);

  --card-translucent: rgba(17, 17, 19, 0.8);
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}
*:focus,
*:focus-visible {
  outline: none;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

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

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

/* Сетка-фон (аналог BGPattern variant=grid, mask=fade-edges) */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-fill) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-fill) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at center, var(--background), transparent);
  mask-image: radial-gradient(ellipse at center, var(--background), transparent);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: color-mix(in oklab, var(--muted-foreground), transparent 60%);
  border-radius: 4px;
}

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding-block: 88px;
}
.section-tight {
  padding-block: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted-foreground);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-head p {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--muted-foreground);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding-inline: 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease,
    transform 0.08s ease, opacity 0.18s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover {
  opacity: 0.85;
}
.btn-outline {
  border-color: var(--border);
  background: var(--background);
  color: var(--foreground);
}
.btn-outline:hover {
  background: var(--muted);
}
.btn-sm {
  height: 36px;
  padding-inline: 14px;
  font-size: 14px;
}
.btn-lg {
  height: 50px;
  padding-inline: 26px;
  font-size: 16px;
}
.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- toggles (lang / theme) — как в шапке приложения ---------- */
.toggle {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted), transparent 60%);
}
.toggle button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-width: 30px;
  padding-inline: 9px;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.18s ease;
}
.toggle button svg {
  width: 15px;
  height: 15px;
}
.toggle button:hover {
  color: var(--foreground);
}
.toggle button[aria-checked="true"],
.toggle button.is-active {
  color: var(--foreground);
}
.toggle button[aria-checked="true"]::before,
.toggle button.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--accent);
  /* -1 + isolation на кнопке: пилюля позади ГОЛОГО текста (RU/EN), не только позади элементов */
  z-index: -1;
}
.toggle button {
  isolation: isolate;
}
.toggle button > * {
  position: relative;
  z-index: 1;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 1100px;
  padding: 8px 8px 8px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-translucent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
}
.nav-links a {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-links a:hover {
  color: var(--foreground);
  background: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}
.nav-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
}
.nav-toggle-btn svg {
  width: 20px;
  height: 20px;
}

/* мобильное меню */
.mobile-menu {
  pointer-events: auto;
  position: absolute;
  top: 68px;
  left: 16px;
  right: 16px;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-translucent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
}
.mobile-menu a:hover {
  background: var(--accent);
}
.mobile-menu .btn {
  margin-top: 6px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted-foreground);
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-micro {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted-foreground);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
}
.badge .spark {
  color: var(--brand-1);
}

/* hero visual — макет карточки приложения */
.hero-card {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--card-translucent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px;
  box-shadow: 0 24px 60px -28px rgba(10, 10, 11, 0.35);
}
.dark .hero-card {
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.hero-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 12px;
}
.hero-card-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.hero-card-bar .field {
  margin-left: 6px;
  flex: 1;
  height: 30px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--muted);
  display: flex;
  align-items: center;
  padding-inline: 12px;
  font-size: 12.5px;
  color: var(--muted-foreground);
}
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.hero-card-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.hero-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 4px 4px 2px;
  font-size: 12.5px;
  color: var(--muted-foreground);
}
.hero-card-foot .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

/* ---------- trust strip ---------- */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 40%);
}
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  padding-block: 26px;
}
.trust-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.trust-items span {
  font-size: 14px;
  font-weight: 600;
  color: var(--foreground);
  opacity: 0.85;
}
.trust-items .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-foreground);
  opacity: 0.5;
}

/* ---------- generic card ---------- */
.card {
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card-translucent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
}

/* features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--foreground);
  margin-bottom: 16px;
}
.feature .icon svg {
  width: 20px;
  height: 20px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* ссылка «Подробнее →» на карточках-инструментах (ведёт на SEO-под-страницу) */
.feature .card-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-1);
}
.feature .card-link:hover {
  text-decoration: underline;
}

/* hero-картинка на SEO-под-страницах (/ikonki, /otkrytki) */
.seo-hero-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -20px rgba(109, 91, 208, 0.28);
}

/* ---------- integrations ---------- */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.integration h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 650;
}
.integration p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted-foreground);
}
.integration .tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--muted);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-foreground);
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 14px;
}
.step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
}
.step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted-foreground);
}

/* ---------- gallery ---------- */
.gallery {
  columns: 4;
  column-gap: 14px;
}
.gallery img {
  width: 100%;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  break-inside: avoid;
  transition: transform 0.25s ease;
}
.gallery img:hover {
  transform: translateY(-3px);
}

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--foreground);
  box-shadow: 0 0 0 1px var(--foreground);
}
.price-card .plan-name {
  font-size: 15px;
  font-weight: 650;
}
.price-card .plan-info {
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--muted-foreground);
  min-height: 34px;
}
.price-card .lux {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-card .lux b {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-card .lux span {
  font-size: 14px;
  color: var(--muted-foreground);
}
.price-card .rub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.price-card .rub b {
  color: var(--foreground);
  font-weight: 700;
  font-size: 16px;
}
.price-card ul {
  list-style: none;
  margin: 18px 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.price-card li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted-foreground);
}
.price-card li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--foreground);
}
.price-card .btn {
  width: 100%;
}
.bonus-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--muted);
  font-size: 11px;
  font-weight: 700;
  color: var(--foreground);
}
.popular-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.sub-card {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sub-card .sub-text h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}
.sub-card .sub-text p {
  margin: 0;
  font-size: 14px;
  color: var(--muted-foreground);
}
.sub-card .sub-price {
  text-align: right;
}
.sub-card .sub-price b {
  font-size: 24px;
  font-weight: 800;
}
.sub-card .sub-price span {
  font-size: 13px;
  color: var(--muted-foreground);
}
.pricing-note {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted-foreground);
}

/* ---------- faq ---------- */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card-translucent);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border: none;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.faq-q svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 0.22s ease;
}
.faq-item.open .faq-q svg {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}
.faq-a-inner {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* ---------- final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 56px 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card-translucent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.final-cta h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.final-cta p {
  margin: 14px auto 0;
  max-width: 480px;
  font-size: 16px;
  color: var(--muted-foreground);
}
.final-cta .hero-cta {
  justify-content: center;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px 32px;
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-brand p {
  margin: 0;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--muted-foreground);
  transition: color 0.18s ease;
}
.footer-col a:hover {
  color: var(--foreground);
}
.footer-legal {
  border-top: 1px solid var(--border);
  padding-block: 22px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.footer-legal p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-foreground);
}
.footer-legal .ver {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: color-mix(in oklab, var(--muted-foreground), transparent 35%);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- responsive ---------- */
/* навигация сворачивается в бургер раньше, чем ломается сетка контента:
   6 пунктов меню перестают помещаться в pill около 1080px */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .nav-toggle-btn {
    display: inline-flex;
  }
  .nav-cta-desktop {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-card {
    max-width: 480px;
  }
  .features-grid,
  .integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    columns: 3;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .section {
    padding-block: 60px;
  }
  .hero {
    padding-top: 124px;
  }
  .features-grid,
  .integrations-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    columns: 2;
    column-gap: 10px;
  }
  .gallery img {
    margin-bottom: 10px;
  }
  .hero-cta .btn {
    flex: 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sub-card .sub-price {
    text-align: left;
  }
}

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  color: inherit;
}
.blog-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-card-body h2,
.blog-card-body h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0;
}
.blog-card-body p {
  color: var(--muted-foreground);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}
.post-date {
  color: var(--muted-foreground);
  font-size: 0.82rem;
}
/* Статья */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 120px;
}
.post-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}
.post-cover {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  margin: 22px 0 6px;
  display: block;
}
.post-body {
  font-size: 1.02rem;
  line-height: 1.75;
}
.post-body h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 34px 0 12px;
  letter-spacing: -0.01em;
}
.post-body p {
  margin: 14px 0;
}
.post-body ul,
.post-body ol {
  margin: 14px 0;
  padding-left: 24px;
}
.post-body li {
  margin: 6px 0;
}
.post-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body strong {
  font-weight: 600;
}
.post-tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.95rem;
}
.post-cta {
  margin-top: 32px;
}
@media (max-width: 720px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
