:root {
  color-scheme: light;
  --bg: #f7f7fa;
  --bg-strong: #ffffff;
  --ink: #1f1724;
  --muted: #625a68;
  --soft: #ebe8ef;
  --line: #ded8e4;
  --violet: #714b67;
  --violet-strong: #56364f;
  --plum: #211827;
  --slate: #253145;
  --blue: #45688d;
  --amber: #b8823a;
  --green: #547064;
  --shadow: 0 20px 54px rgba(31, 23, 36, 0.13);
  --radius: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - var(--container)) / 2));
  background: rgba(247, 247, 250, 0.9);
  border-bottom: 1px solid rgba(113, 75, 103, 0.14);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: var(--violet);
  color: #fff;
  font-size: 0.88rem;
  line-height: 1;
}

.brand-text {
  overflow-wrap: anywhere;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a,
.text-link {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--violet);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  border: 1px solid rgba(113, 75, 103, 0.18);
  border-radius: 999px;
  background: #fff;
  padding: 3px;
}

.language-button {
  min-width: 42px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
  cursor: pointer;
}

.language-button.is-active {
  background: var(--violet);
  color: #fff;
}

.header-action,
.button,
.card-cta,
.details-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 18px;
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.header-action,
.button-primary,
.card-cta {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 10px 28px rgba(113, 75, 103, 0.24);
}

.button-secondary {
  background: #fff;
  color: var(--violet);
  border-color: rgba(113, 75, 103, 0.22);
}

.button-ghost,
.details-button {
  background: transparent;
  color: var(--ink);
  border-color: rgba(113, 75, 103, 0.24);
}

.header-action:hover,
.button:hover,
.card-cta:hover,
.details-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(31, 23, 36, 0.14);
}

.is-disabled,
.is-disabled:hover {
  background: #e8e3eb;
  color: #8a8190;
  border-color: #e8e3eb;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.section-band {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(113, 75, 103, 0.08), rgba(69, 104, 141, 0.05) 38%, rgba(255, 255, 255, 0) 70%),
    var(--bg);
}

.hero {
  padding: 84px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: 54px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4rem;
  line-height: 1.03;
}

.hero-subtitle {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--violet-strong);
  font-size: 1.35rem;
  font-weight: 760;
  line-height: 1.35;
}

.hero-body {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions,
.service-actions,
.card-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

.support-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 740px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

.support-line span {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.hero-media {
  border-radius: 24px;
  background: #17121d;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}

.section-wrap {
  padding: 78px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 30px;
}

.section-heading-wide {
  display: flex;
  max-width: none;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-heading h2,
.service-band h2,
.roadmap-band h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.12;
}

.section-heading p,
.roadmap-band p {
  margin: 12px 0 0;
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
  gap: 20px;
}

.featured-card,
.catalog-card {
  border: 1px solid rgba(113, 75, 103, 0.15);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 38px rgba(31, 23, 36, 0.08);
  overflow: hidden;
}

.featured-card img {
  width: 100%;
  aspect-ratio: 1.52;
  object-fit: cover;
  background: var(--plum);
}

.featured-copy,
.featured-text-card {
  padding: 22px;
}

.featured-card h3,
.catalog-card h3,
.paid-note h3 {
  margin: 12px 0 8px;
  font-size: 1.28rem;
  line-height: 1.24;
}

.featured-card p,
.catalog-card p,
.paid-note p {
  margin: 0;
  color: var(--muted);
}

.featured-text-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--plum);
  color: #fff;
}

.featured-text-card p {
  color: rgba(255, 255, 255, 0.76);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 800;
}

.badge-free {
  background: rgba(84, 112, 100, 0.16);
  color: #2e5b4b;
}

.badge-pro {
  background: rgba(113, 75, 103, 0.16);
  color: var(--violet-strong);
}

.badge-service {
  background: rgba(69, 104, 141, 0.15);
  color: #294f75;
}

.badge-roadmap {
  background: rgba(184, 130, 58, 0.18);
  color: #79511e;
}

.service-band {
  padding: 80px 0;
  background: var(--plum);
  color: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.76fr);
  gap: 56px;
  align-items: center;
}

.service-band p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
}

.service-lead {
  margin-top: 18px;
  font-size: 1.24rem;
  font-weight: 760;
  color: #fff;
}

.service-list {
  display: grid;
  gap: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 28px;
}

.service-list div {
  display: grid;
  gap: 4px;
}

.service-list strong {
  font-size: 1.05rem;
}

.service-list span {
  color: rgba(255, 255, 255, 0.68);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab {
  min-height: 42px;
  border: 1px solid rgba(113, 75, 103, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 760;
  cursor: pointer;
}

.tab.is-active {
  background: var(--violet);
  color: #fff;
  border-color: var(--violet);
}

.catalog-count {
  min-height: 24px;
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 700;
}

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

.catalog-card {
  display: flex;
  flex-direction: column;
  min-height: 324px;
  padding: 22px;
}

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

.card-image {
  width: calc(100% + 44px);
  max-width: none;
  margin: -22px -22px 18px;
  aspect-ratio: 1.52;
  object-fit: cover;
  background: var(--plum);
  border-bottom: 1px solid rgba(113, 75, 103, 0.15);
}

.catalog-card-pro {
  background: #fbf8fc;
}

.catalog-card-service {
  border-color: rgba(69, 104, 141, 0.22);
}

.catalog-card-roadmap {
  background: #fffdf8;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 740;
}

.card-meta {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
  margin: auto 0 20px;
  padding-top: 22px;
}

.card-meta div,
.dialog-meta div {
  display: grid;
  gap: 2px;
}

.card-meta dt,
.dialog-meta dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
}

.card-meta dd,
.dialog-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 760;
}

.paid-note {
  margin-top: 28px;
  border-radius: var(--radius);
  background: var(--slate);
  color: #fff;
  padding: 28px;
}

.paid-note p {
  color: rgba(255, 255, 255, 0.76);
}

.roadmap-band {
  padding: 72px 0;
  background: #e9edf2;
}

.roadmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: 42px;
  align-items: center;
}

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

.roadmap-steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid rgba(37, 49, 69, 0.14);
  padding: 0 0 14px;
  color: var(--slate);
  font-weight: 700;
}

.roadmap-steps span:first-child {
  min-width: 68px;
  color: var(--violet);
}

.roadmap-steps span:last-child {
  color: var(--slate);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 44px;
}

.faq-heading {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid rgba(113, 75, 103, 0.14);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 20px;
}

.faq-list summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.legal-band {
  background: var(--violet);
  color: #fff;
  padding: 24px 0;
}

.legal-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  align-items: center;
}

.legal-layout span {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 42px 0;
  background: #17121d;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 34px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-links a:hover {
  color: #fff;
}

.module-dialog {
  width: min(720px, calc(100% - 28px));
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.module-dialog::backdrop {
  background: rgba(23, 18, 29, 0.62);
  backdrop-filter: blur(4px);
}

.dialog-body {
  padding: 34px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(113, 75, 103, 0.18);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.dialog-close::before,
.dialog-close::after {
  position: absolute;
  top: 18px;
  left: 10px;
  width: 16px;
  height: 2px;
  background: var(--violet);
  content: "";
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

.module-dialog h2 {
  margin: 16px 46px 8px 0;
  font-size: 2rem;
  line-height: 1.15;
}

.module-dialog p {
  color: var(--muted);
}

.dialog-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.error-page {
  background: var(--plum);
  color: #fff;
}

.error-layout {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 100vh;
  width: min(640px, calc(100% - 40px));
  margin: 0 auto;
}

.error-layout h1 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.08;
}

.error-layout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-grid,
  .service-grid,
  .roadmap-layout,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .support-line,
  .featured-grid,
  .catalog-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-list {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 24px 0 0;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand-text {
    font-size: 0.92rem;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
  }

  .header-controls {
    justify-content: end;
    gap: 8px;
  }

  .language-switcher {
    min-height: 38px;
  }

  .language-button {
    min-width: 36px;
    min-height: 30px;
    font-size: 0.78rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    gap: 16px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 42px 0 36px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-copy h1 {
    font-size: 2.42rem;
  }

  .hero-subtitle {
    font-size: 1.12rem;
  }

  .hero-actions,
  .service-actions,
  .card-actions,
  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .card-cta,
  .details-button {
    width: 100%;
  }

  .support-line,
  .featured-grid,
  .catalog-grid,
  .card-meta,
  .dialog-meta {
    grid-template-columns: 1fr;
  }

  .section-wrap,
  .service-band,
  .roadmap-band {
    padding: 54px 0;
  }

  .section-heading-wide {
    display: block;
  }

  .section-heading h2,
  .service-band h2,
  .roadmap-band h2 {
    font-size: 2rem;
  }

  .catalog-card {
    min-height: auto;
  }

  .roadmap-steps li {
    display: grid;
    gap: 4px;
  }

  .dialog-body {
    padding: 28px 20px 22px;
  }
}
