:root {
  --brand: #2b81cc;
  --brand-deep: #165a96;
  --ink: #0c2438;
  --foam: #f3f8fc;
  --muted: #5a7388;
  --text: #1e3348;
  --line: rgba(12, 36, 56, 0.12);
  --footer: #0c2438;
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--foam);
  line-height: 1.5;
}

/* Cyrillic Sora reads lighter/smaller than Latin — optically match EN. */
html:lang(ru) {
  font-size: 105%;
}

html:lang(ru) body {
  font-weight: 500;
}

html:lang(ru) .nav a {
  font-weight: 600;
}

html:lang(ru) .hero h1 {
  font-weight: 700;
  font-size: clamp(1.3rem, 3.5vw, 1.65rem);
  letter-spacing: 0.015em;
}

html:lang(ru) .hero p {
  font-weight: 600;
  font-size: clamp(0.84rem, 3.5vw, 1.05rem);
}

html:lang(ru) .btn-store {
  font-weight: 700;
}

html:lang(ru) .legal-wrap h1 {
  letter-spacing: 0.01em;
}

html:lang(ru) .legal-wrap p,
html:lang(ru) .legal-wrap li,
html:lang(ru) .legal-wrap .meta {
  font-weight: 500;
}

html:lang(ru) .footer {
  font-size: 0.78rem;
  font-weight: 600;
}

@media (min-width: 520px) {
  html:lang(ru) .footer {
    font-size: 0.86rem;
  }
}

html:lang(ru) .footer a {
  font-weight: 600;
}

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

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem 1rem;
  padding-top: max(1.1rem, env(safe-area-inset-top, 0px));
  padding-bottom: 1.1rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 420px) {
  .nav {
    gap: 0.5rem 0.7rem;
  }

  .nav a {
    font-size: 0.8rem;
  }

  .lang-switch {
    font-size: 0.78rem;
    padding-left: 0.65rem;
  }
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
  padding-left: 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav--legal .lang-switch {
  border-left-color: var(--line);
}

.lang-switch .lang-current {
  opacity: 0.55;
  pointer-events: none;
}

.lang-switch a {
  text-decoration: none;
}

.lang-switch a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav--legal a {
  color: var(--muted);
}

.nav--legal {
  position: sticky;
  background: rgba(243, 248, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.25rem 3rem;
  color: #fff;
  text-align: center;
  background-color: var(--brand);
  /* как на заглушке: светлые тонкие полосы под −18° */
  background-image: repeating-linear-gradient(
    -18deg,
    transparent 0 28px,
    rgba(255, 255, 255, 0.035) 28px 29px
  );
  overflow-x: clip;
}

.hero-inner {
  width: 100%;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: rise 0.75s ease-out both;
}

.hero-logo {
  width: min(42vw, 220px);
  height: auto;
  display: block;
  margin-bottom: 1.35rem;
}

.hero h1 {
  font-size: clamp(1.25rem, 3.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.65rem;
  text-wrap: balance;
}

.hero p {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  max-width: 22rem;
  margin-bottom: 1.6rem;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 520px) {
  .hero p {
    max-width: 34rem;
    white-space: nowrap;
  }
}

.pulse {
  width: 10px;
  height: 10px;
  margin-top: 1.5rem;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.8s ease-in-out infinite;
}

.store-buttons {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: max-content;
  max-width: 100%;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  background: #fff;
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  cursor: default;
  white-space: nowrap;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  box-sizing: border-box;
}

@media (min-width: 520px) {
  .store-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .btn-store {
    width: auto;
    padding: 0.8rem 1.15rem;
    font-size: 0.95rem;
    min-height: 3.25rem;
  }
}

a.btn-store {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.btn-store:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(12, 36, 56, 0.18);
}

.btn-store:hover {
  text-decoration: none;
}

.btn-store svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 6px;
}

.footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.78);
  padding: 1.15rem max(1rem, env(safe-area-inset-right, 0px)) 1.15rem
    max(1rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem 0.9rem;
  flex-shrink: 0;
}

@media (min-width: 520px) {
  .footer {
    font-size: 0.8rem;
    gap: 0.85rem 1.5rem;
  }

  .footer-links {
    gap: 0.75rem 1.25rem;
  }
}

.legal-wrap {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 5.5rem 1.25rem 3.5rem;
}

.legal-wrap h1 {
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.legal-wrap .meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.75rem;
}

.legal-wrap h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.6rem 0 0.55rem;
}

.legal-wrap p,
.legal-wrap li {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.7rem;
}

.legal-wrap ol,
.legal-wrap ul {
  padding-left: 1.2rem;
  margin-bottom: 0.7rem;
}

.legal-wrap li {
  margin-bottom: 0.4rem;
}

.legal-wrap a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 22rem;
}

.legal-form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.legal-form input[type="email"] {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
}

.legal-form button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.legal-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.legal-form .form-status {
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 1.25rem;
}

.legal-form .form-status.is-error {
  color: #b42318;
}

.legal-form .form-status.is-ok {
  color: #027a48;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.55);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-inner {
    animation: none;
  }

  .pulse {
    animation: none;
    opacity: 0.75;
  }
}
