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

/* ── Design tokens (из globals.css проекта) ── */
:root {
  color-scheme: dark;

  --ink: 10, 17, 36;
  --orange: 255, 122, 24;
  --orange-soft: 255, 154, 68;
  --blue: 78, 168, 255;
  --blue-soft: 134, 196, 255;
  --primary: var(--orange);
  --secondary: var(--blue);

  --background: 6, 8, 16;
  --surface: 14, 20, 40;
  --surface-container: 16, 24, 50;
  --surface-container-high: 22, 32, 62;
  --text-primary: 234, 240, 255;
  --text-secondary: 159, 176, 214;
  --text-faint: 111, 128, 168;
  --border: 32, 44, 72;
  --line: 48, 58, 88;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --elevation-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 0 0 1px rgb(255 255 255 / 0.03);
  --elevation-2: 0 4px 12px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.04);
  --elevation-3: 0 8px 24px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.05);
  --glow-orange: 0 0 24px rgb(var(--orange) / 0.2);
  --glow-blue: 0 0 20px rgb(var(--blue) / 0.18);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Oswald', system-ui, sans-serif;
  --lp-gutter: clamp(1.25rem, 4.5vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: rgb(var(--text-primary));
  background: linear-gradient(165deg, #0a1028 0%, rgb(var(--background)) 40%, #060810 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(var(--line) / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--line) / 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(120% 100% at 50% 30%, #000 45%, transparent 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(50vw 50vw at 90% 90%, rgb(var(--orange) / 0.07), transparent 60%),
    radial-gradient(45vw 45vw at 5% 5%, rgb(var(--blue) / 0.05), transparent 60%);
}

body > * { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgb(var(--text-primary));
}

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

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

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: max(var(--lp-gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--lp-gutter), env(safe-area-inset-right, 0px));
}

/* Full-bleed карточки: gutter только safe-area, отступ — внутри .news-card / .outcome-item и т.д. */
#outcomes.container,
#news.container,
#final-cta.container {
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}

@media (max-width: 639px) {
  .landing-stage {
    overflow-x: clip;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid {
    gap: 1.75rem;
  }

  .hero-media {
    max-width: min(280px, 100%);
  }

  .hero h1 {
    font-size: clamp(1.625rem, 7vw, 2rem);
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero-sub {
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .hero-cta .btn-primary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .section-header {
    min-width: 0;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-form .input-field {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }

  .subscribe-form .btn-primary {
    width: 100%;
  }

  .site-header {
    gap: 0.625rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
  }

  .site-header .logo {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
  }

  .header-cta {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }

  .blog-layout .blog-main,
  .blog-layout .blog-sidebar,
  .blog-page > .blog-back,
  .blog-page > .blog-page-heading,
  .blog-page > #blog-list,
  .blog-page > .blog-pager {
    padding-inline: 0.75rem;
    box-sizing: border-box;
  }
}

/* ── Landing stage (animated grid) ── */
.landing-stage {
  position: relative;
  isolation: isolate;
  background: radial-gradient(120% 90% at 18% 12%, #14224d 0%, rgb(var(--ink)) 46%, #070c1c 100%);
}

.landing-stage::before {
  content: '';
  position: fixed;
  inset: -2px;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 235, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 235, 0.28) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(130% 110% at 50% 40%, #000 55%, transparent 100%);
  animation: gridPan 5s linear infinite;
  opacity: 0.4;
}

.landing-stage::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 88% 92%, rgb(var(--orange) / 0.14), transparent 62%),
    radial-gradient(40vw 40vw at 6% 6%, rgb(var(--blue) / 0.1), transparent 62%);
}

@keyframes gridPan {
  from { background-position: 0 0; }
  to { background-position: 40px 40px; }
}

/* ── Components ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgb(var(--orange));
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, rgb(var(--orange)), rgb(var(--orange-soft)));
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, rgb(var(--orange)), rgb(var(--orange-soft)));
  box-shadow: var(--elevation-1), var(--glow-orange);
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: var(--elevation-2), var(--glow-orange);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--orange));
  background: transparent;
  border: 1px solid rgb(var(--orange) / 0.5);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-outline:hover {
  background: rgb(var(--orange) / 0.1);
}

.surface-card {
  border-radius: var(--radius-lg);
  background: rgb(var(--surface-container));
  box-shadow: var(--elevation-2);
}

.panel-grid {
  position: relative;
  isolation: isolate;
}

.panel-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    linear-gradient(rgb(var(--line) / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--line) / 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(100% 80% at 30% 20%, #000 35%, transparent 100%);
}

.panel-grid > * { position: relative; z-index: 1; }

.section-block {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 0.75rem;
}

.section-header p {
  color: rgb(var(--text-secondary));
  max-width: 36rem;
  margin: 0.75rem auto 0;
}

.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: rgb(var(--text-primary));
  background: rgb(var(--surface-container-high) / 0.55);
  border: 1.5px solid rgb(var(--line));
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: rgb(var(--orange-soft));
  box-shadow: 0 0 0 3px rgb(var(--orange) / 0.28);
}

.input-field::placeholder { color: rgb(var(--text-faint)); }

textarea.input-field { resize: vertical; min-height: 6rem; }

/* Native <select> popup: без color-scheme OS рисует светлый список + светлый текст = нечитаемо */
select.input-field {
  color-scheme: dark;
  background-color: rgb(var(--surface-container-high));
  color: rgb(var(--text-primary));
}

select.input-field option,
select.input-field optgroup {
  background-color: rgb(var(--surface-container-high));
  color: rgb(var(--text-primary));
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgb(var(--line) / 0.3);
  background: rgb(var(--surface) / 0.2);
  backdrop-filter: blur(12px);
}

.header-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
  text-align: center;
  white-space: nowrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(var(--text-faint));
}

.logo-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgb(var(--orange));
  box-shadow: var(--glow-orange);
}

.logo b { color: rgb(var(--blue)); font-weight: 500; }

/* ── Hero ── */
.hero {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 2.5rem 4rem;
    min-height: min(640px, calc(100vh - 8rem));
  }
}

.hero-media {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: min(300px, 72vw);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--elevation-3), var(--glow-orange);
  background: rgb(var(--surface-container));
}

@media (min-width: 1024px) {
  .hero-media {
    margin: 0;
    max-width: 300px;
  }
}

.hero-media-inner {
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-media.has-video #hero-photo {
  filter: brightness(0.58) saturate(0.92);
  transition: filter 0.35s ease;
}

.hero-media.has-video .hero-play-overlay.is-ready {
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 0.72) 0%,
    rgb(0 0 0 / 0.42) 45%,
    rgb(0 0 0 / 0.32) 100%
  );
}

.hero-media.has-video .hero-play-overlay.is-ready:hover {
  background: linear-gradient(
    to top,
    rgb(0 0 0 / 0.78) 0%,
    rgb(0 0 0 / 0.48) 50%,
    rgb(0 0 0 / 0.36) 100%
  );
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}

.hero-video:fullscreen,
.hero-video:-webkit-full-screen {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000;
}

.hero-media.is-fullscreen .hero-video {
  object-fit: contain !important;
  object-position: center center !important;
}

.hero-media-ring {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgb(var(--orange) / 0.25);
  pointer-events: none;
  z-index: 3;
}

.hero-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: default;
  background: linear-gradient(to top, rgb(0 0 0 / 0.45) 0%, rgb(0 0 0 / 0.1) 45%, rgb(0 0 0 / 0.05) 100%);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-play-overlay.is-ready {
  cursor: pointer;
}

.hero-play-overlay.is-ready:hover {
  background: linear-gradient(to top, rgb(0 0 0 / 0.5) 0%, rgb(0 0 0 / 0.15) 50%, rgb(0 0 0 / 0.08) 100%);
}

.hero-play-overlay.is-ready:hover .hero-play-icon {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.hero-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--orange)), rgb(var(--orange-soft)));
  box-shadow: var(--elevation-3), var(--glow-orange);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-play-overlay:not(.is-ready) .hero-play-icon {
  opacity: 0.85;
}

.hero-media.is-playing .hero-play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hero-copy {
  min-width: 0;
}

@media (max-width: 1023px) {
  .hero-copy {
    min-width: 0;
  }
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.08;
  margin-top: 1.25rem;
}

.hero h1 .accent { color: rgb(var(--orange)); }

.hero-sub {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  color: rgb(var(--text-secondary));
  max-width: 38rem;
  line-height: 1.55;
}

.hero-cta { margin-top: 2rem; }

/* ── Tech marquee ── */
.tech-marquee {
  margin-top: 2.5rem;
  border-radius: var(--radius);
  background: rgb(var(--surface-container) / 0.35);
  border: 1px solid rgb(var(--line) / 0.28);
}

.tech-marquee-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tech-marquee-track {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: max-content;
  padding: 1.125rem 0;
  animation: techMarquee 48s linear infinite;
  will-change: transform;
}

.tech-marquee-item {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--text-faint));
  white-space: nowrap;
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  border: 1px solid rgb(var(--line) / 0.35);
  background: rgb(var(--surface-container) / 0.45);
}

.tech-marquee-item.accent {
  color: rgb(var(--orange));
  border-color: rgb(var(--orange) / 0.35);
  background: rgb(var(--orange) / 0.08);
}

@keyframes techMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tech-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.25rem;
    gap: 0.625rem;
  }

  .tech-marquee-viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .tech-marquee-item:nth-child(n + 8) {
    display: none;
  }
}

@media (max-width: 639px) {
  .tech-marquee {
    margin-top: 2rem;
  }

  .tech-marquee-item {
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    padding: 0.5rem 1rem;
  }
}

/* ── About ── */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: auto 1fr; }
}

.about-avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgb(var(--orange) / 0.25);
  box-shadow: var(--elevation-2);
  flex-shrink: 0;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(var(--text-secondary));
  background: rgb(var(--surface-container-high) / 0.5);
  border: 1px solid rgb(var(--line) / 0.5);
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover {
  color: rgb(var(--orange));
  border-color: rgb(var(--orange) / 0.4);
}

/* ── Outcomes ── */
.outcomes-list {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .outcomes-list { grid-template-columns: 1fr 1fr; }
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.125rem 1.375rem;
  border-radius: var(--radius);
  background: rgb(var(--surface-container) / 0.5);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.outcome-check {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(var(--orange) / 0.15);
  color: rgb(var(--orange));
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 0.125rem;
}

/* ── Tool ladder ── */
.tool-ladder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: rgb(var(--surface-container) / 0.4);
}

.tool-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  background: rgb(var(--surface-container-high) / 0.6);
  color: rgb(var(--text-secondary));
}

.tool-step.highlight {
  background: rgb(var(--orange) / 0.15);
  color: rgb(var(--orange));
}

.tool-arrow {
  color: rgb(var(--text-faint));
  font-size: 1.0625rem;
}

/* ── Catalog cards ── */
.catalog-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: rgb(var(--surface-container));
  box-shadow: var(--elevation-1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--elevation-3), var(--glow-orange);
}

.catalog-card-cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgb(var(--orange) / 0.15), rgb(var(--blue) / 0.15));
  position: relative;
  overflow: hidden;
}

.catalog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.5rem;
}

.catalog-tier {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(var(--orange));
  margin-bottom: 0.5rem;
}

.catalog-card h3 {
  font-size: 1.125rem;
  line-height: 1.25;
}

.catalog-promise {
  font-size: 0.875rem;
  color: rgb(var(--text-secondary));
  margin-top: 0.5rem;
  flex: 1;
}

.catalog-price {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: rgb(var(--text-primary));
}

.catalog-price .old {
  font-size: 0.875rem;
  color: rgb(var(--text-faint));
  text-decoration: line-through;
  margin-left: 0.5rem;
  font-weight: 400;
}

.catalog-card .btn-outline {
  margin-top: 1rem;
  width: 100%;
}

.catalog-skeleton {
  height: 320px;
  border-radius: var(--radius-lg);
  background: rgb(var(--surface-container) / 0.5);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ── AI assistant ── */
.ai-block {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .ai-block { grid-template-columns: 1fr 1fr; }
}

.ai-screenshot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--elevation-3), var(--glow-blue);
  border: 1px solid rgb(var(--line) / 0.5);
}

.ai-screenshot img,
.ai-screenshot video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgb(var(--surface-container));
  display: block;
}

.ai-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgb(var(--surface-container)), rgb(var(--surface-container-high)));
  color: rgb(var(--text-faint));
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
}

/* ── News ── */
.news-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

.news-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: rgb(var(--surface-container) / 0.5);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.news-card:hover {
  background: rgb(var(--surface-container-high) / 0.6);
  transform: translateY(-1px);
  box-shadow: var(--elevation-2);
}

.news-card .news-thumb,
.news-card .news-date,
.news-card .news-title,
.news-card .news-excerpt {
  pointer-events: none;
}

.news-channel-link {
  color: rgb(var(--blue));
  font-size: 0.875rem;
  font-weight: 500;
}

.news-channel-link:hover {
  text-decoration: underline;
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  user-select: none;
  -webkit-user-drag: none;
}

.news-date {
  font-size: 0.75rem;
  color: rgb(var(--text-faint));
}

.news-title {
  font-weight: 600;
  margin-top: 0.375rem;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.news-excerpt {
  font-size: 0.9375rem;
  color: rgb(var(--text-secondary));
  margin-top: 0.5rem;
  line-height: 1.5;
}

.subscribe-panel {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: rgb(var(--surface-container) / 0.5);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0;
  width: 100%;
  justify-content: center;
}

.subscribe-form .input-field {
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  min-height: 0;
}

@media (min-width: 640px) {
  .subscribe-form {
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
  }

  .subscribe-form .input-field {
    flex: 0 0 auto;
    width: 21rem;
  }

  .subscribe-form .btn-primary {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

.form-status {
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.form-status.success { color: rgb(40, 200, 120); }
.form-status.error { color: rgb(255, 77, 77); }

/* ── Services ── */
.services-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.service-tag {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  background: rgb(var(--orange) / 0.12);
  color: rgb(var(--orange));
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: 16rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgb(var(--surface-container) / 0.35);
  border: 1px solid rgb(var(--line) / 0.25);
  box-shadow: none;
  text-align: center;
}

.contact-success.is-visible {
  display: flex;
}

#contact-form-wrap #contact-form.is-hidden {
  display: none;
}

.contact-success-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgb(40 200 120 / 0.12);
  border: 2px solid rgb(40 200 120 / 0.55);
  color: rgb(72 220 140);
  box-shadow: none;
}

.contact-success-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.contact-success p {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 4.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  color: rgb(var(--text-primary));
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ── CTA band ── */
.cta-band {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgb(var(--orange) / 0.12), rgb(var(--blue) / 0.08));
  border: 1px solid rgb(var(--line) / 0.25);
}

.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.cta-band p {
  color: rgb(var(--text-secondary));
  margin: 0.75rem auto 1.5rem;
  max-width: 28rem;
}

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgb(var(--line) / 0.4);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  font-size: 0.8125rem;
  color: rgb(var(--text-faint));
  margin-bottom: 1rem;
}

.footer-nav a {
  color: rgb(var(--orange));
  font-weight: 500;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-copy {
  text-align: center;
  font-size: 0.6875rem;
  color: rgb(var(--text-faint));
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social a {
  font-size: 0.8125rem;
  color: rgb(var(--text-secondary));
}

.footer-social a:hover { color: rgb(var(--orange)); }

/* ── Blog layout ── */
.blog-layout {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

@media (min-width: 960px) {
  .blog-layout {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    gap: 2.5rem 3rem;
  }
}

/* Сплошной фон под текст поста и архив слева */
.blog-post-page .blog-panel {
  position: relative;
  z-index: 1;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1.5rem;
  box-shadow: var(--elevation-2);
}

@media (min-width: 960px) {
  .blog-post-page .blog-main.blog-panel {
    padding: 1.75rem 2rem 2.25rem;
  }
}

.blog-index-page .site-header,
.blog-post-page .site-header {
  position: relative;
  z-index: 2;
}

.blog-index-page .blog-page {
  position: relative;
  z-index: 1;
}

.blog-sidebar {
  position: sticky;
  top: 1.5rem;
}

.blog-sidebar-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgb(var(--text-faint));
  margin: 1.5rem 0 0.75rem;
}

.blog-back {
  display: inline-block;
  color: rgb(var(--text-faint));
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  text-decoration: none;
}

.blog-back:hover {
  color: rgb(var(--orange));
}

.blog-back-secondary {
  display: block;
  margin-bottom: 0.25rem;
}

.blog-back-mobile {
  display: inline-block;
  margin-bottom: 1.25rem;
}

@media (min-width: 960px) {
  .blog-back-mobile {
    display: none;
  }
}

.blog-archive {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  padding-right: 0.25rem;
}

.blog-archive-item {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.blog-archive-item time {
  display: block;
  font-size: 0.6875rem;
  color: rgb(var(--text-faint));
  margin-bottom: 0.25rem;
}

.blog-archive-item span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgb(var(--text-secondary));
}

.blog-archive-item:hover,
.blog-archive-item.is-active {
  background: rgb(var(--surface-container) / 0.7);
  border-color: rgb(var(--orange) / 0.25);
}

.blog-archive-item.is-active span {
  color: rgb(var(--orange));
}

.blog-main {
  min-width: 0;
}

.blog-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0.75rem 0 1.5rem;
  color: rgb(var(--text-primary));
}

.blog-page-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 1rem 0 1.75rem;
  color: rgb(var(--text-primary));
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.45);
}

.blog-hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: var(--elevation-2);
  display: block;
  background: rgb(var(--surface-container));
}

.blog-body {
  color: rgb(var(--text-secondary));
  line-height: 1.75;
  font-size: 1.0625rem;
  max-width: 42rem;
}

.blog-empty {
  color: rgb(var(--text-faint));
  text-align: center;
  padding: 2rem 0;
  grid-column: 1 / -1;
}

.blog-page {
  padding: 2rem 0 4rem;
}

/* Listing: 3 колонки, картинка + заголовок */
#blog-list.blog-grid,
.blog-grid {
  display: grid !important;
  gap: 1.25rem 1.15rem;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 640px) {
  #blog-list.blog-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  #blog-list.blog-grid,
  .blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0.65rem;
  margin: -0.65rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  background: rgb(var(--surface-container) / 0.88);
  border-color: rgb(var(--border));
  box-shadow: var(--elevation-2);
}

.blog-card-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgb(var(--border) / 0.85);
  background: rgb(var(--surface-container) / 0.35);
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgb(var(--surface-container) / 0.5), rgb(var(--ink) / 0.4));
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
  padding: 0 0.15rem 0.25rem;
  color: rgb(var(--text-primary));
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-card-title {
  color: rgb(var(--orange));
  text-shadow: none;
}

.blog-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.blog-pager-compact {
  margin-top: 0.85rem;
  justify-content: flex-start;
}

.blog-page-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgb(var(--border) / 0.9);
  background: rgb(10 16 34 / 0.75);
  color: rgb(var(--text-secondary));
  font-size: 0.8125rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.blog-page-btn:hover:not(:disabled) {
  border-color: rgb(var(--orange) / 0.5);
  color: rgb(var(--text-primary));
}

.blog-page-btn.is-current {
  background: rgb(var(--orange) / 0.2);
  border-color: rgb(var(--orange) / 0.55);
  color: rgb(var(--orange));
}

.blog-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.blog-list-item {
  display: block;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
}

.blog-list-item .news-title {
  font-size: 1.125rem;
}

.blog-list-item .news-excerpt {
  font-size: 1rem;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .landing-stage::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
