:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #1d2a3b;
  --text-soft: #52627a;
  --line: #dbe3ef;
  --accent: #4a79d8;
  --accent-strong: #2f60c2;
  --shadow: 0 20px 60px rgba(29, 42, 59, 0.08);
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-cyrillic-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-cyrillic-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-cyrillic-ext-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-cyrillic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-cyrillic-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-cyrillic-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-cyrillic-ext-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-cyrillic-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
  line-height: 1.55;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(219, 227, 239, 0.7);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent-strong);
}

.main-nav a.nav-login {
  padding: 9px 18px;
  font-weight: 600;
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(74, 121, 216, 0.22);
}

.main-nav a.nav-login:hover,
.main-nav a.nav-login:focus-visible {
  color: #fff;
  background: var(--accent-strong);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu-toggle-icon {
  width: 18px;
  height: 14px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  padding: 34px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-beta-banner {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(210, 143, 44, 0.36);
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.26) 0%, rgba(255, 251, 235, 0.94) 100%);
  color: #8a4b10;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.45;
  font-weight: 600;
  width: 100%;
  max-width: none;
  box-shadow: 0 10px 28px rgba(210, 143, 44, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-beta-text {
  display: inline;
}

.hero-kicker,
.section-kicker {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.95rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.1;
}

.hero-text {
  margin: 20px 0 0;
  color: var(--text-soft);
  max-width: 60ch;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(74, 121, 216, 0.25);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.card-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.card-head span:nth-child(1) {
  background: linear-gradient(180deg, #ff6f67 0%, #ff5f57 100%);
}

.card-head span:nth-child(2) {
  background: linear-gradient(180deg, #ffcd55 0%, #febc2e 100%);
}

.card-head span:nth-child(3) {
  background: linear-gradient(180deg, #39d369 0%, #28c840 100%);
}

.card-body {
  padding: 0;
  background: #f8fbff;
}

.line {
  height: 12px;
  border-radius: 999px;
  background: #e7edf7;
  margin-bottom: 12px;
}

.line-lg {
  width: 78%;
}

.tiles {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tile {
  min-height: 92px;
  border: 1px solid #d7e1f2;
  border-radius: 14px;
  background: linear-gradient(145deg, #eef4ff 0%, #f9fbff 100%);
}

.card-preview-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.card-preview-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 28px;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: min(1200px, 96vw);
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(219, 227, 239, 0.6);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
}

.lightbox-content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(219, 227, 239, 0.7);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2937;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--surface-soft);
  border-top: 1px solid #e8eef8;
  border-bottom: 1px solid #e8eef8;
}

.philosophy-column {
  max-width: 720px;
  margin-inline: auto;
}

.philosophy-layout {
  margin-top: 18px;
}

.philosophy-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.philosophy-lead {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.philosophy-lead-en {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-strong);
  line-height: 1.25;
}

.philosophy-lead-ru {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.philosophy-prose {
  font-size: 1.05rem;
  color: var(--text-soft);
}

.philosophy-prose p {
  margin: 0 0 1.25em;
}

.philosophy-prose p:last-child {
  margin-bottom: 0;
}

.philosophy-tagline {
  margin: 32px 0 0;
  padding: 20px 22px 20px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(74, 121, 216, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
  box-shadow: 0 8px 28px rgba(29, 42, 59, 0.06);
}

.philosophy-tagline p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.philosophy-tagline strong {
  color: var(--accent-strong);
  font-weight: 700;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

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

.info-card,
.feature-item,
.price-card,
.about-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.info-card p,
.feature-item p,
.about-wrap p {
  margin: 0;
  color: var(--text-soft);
}

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

.pricing-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
}

.price-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.featured {
  border-color: #9eb7ea;
  box-shadow: 0 14px 36px rgba(74, 121, 216, 0.16);
}

.badge {
  align-self: flex-start;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #edf3ff;
  color: #315ea9;
  font-weight: 600;
  font-size: 0.85rem;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid #dfe7f3;
  background: #fff;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-soft);
}

.footer-inner a {
  text-decoration: none;
  color: var(--accent-strong);
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-3,
  .features-grid,
  .pricing-grid,
  .about-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 22px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 4%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    gap: 14px;
    margin-left: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a.nav-login {
    margin-top: 4px;
    text-align: center;
    justify-content: center;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }
}
