:root {
  --bg-deep: #07070a;
  --bg-card: #12121a;
  --bg-elevated: #1a1a26;
  --text: #e8e8ee;
  --text-muted: #9898a8;
  --accent: #c4c4d4;
  --accent-bright: #f0f0f8;
  --border: rgba(196, 196, 212, 0.12);
  --glow: rgba(200, 200, 220, 0.08);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --radius: 14px;
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -30%, var(--glow), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(100, 100, 140, 0.06), transparent);
  min-height: 100vh;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.88;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 7, 10, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.lang-dropdown {
  position: relative;
  font-family: var(--font-sans);
}

.lang-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lang-dropdown__toggle:hover {
  border-color: rgba(196, 196, 212, 0.35);
  color: var(--accent-bright);
}

.lang-dropdown.is-open .lang-dropdown__toggle {
  border-color: rgba(240, 240, 248, 0.28);
  background: #222230;
}

.lang-dropdown__flag {
  font-size: 1.25rem;
  line-height: 1;
}

.lang-dropdown__toggle .lang-dropdown__flag {
  font-size: 1.35rem;
}

.lang-dropdown__chevron {
  flex-shrink: 0;
  margin-left: 0.1rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.lang-dropdown.is-open .lang-dropdown__chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

/* Author `display` must not override `[hidden]` — otherwise the menu stays visible */
.lang-dropdown__menu[hidden] {
  display: none !important;
}

.lang-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.lang-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-dropdown__option:hover,
.lang-dropdown__option:focus-visible {
  outline: none;
  background: var(--bg-elevated);
  color: var(--text);
}

.lang-dropdown__option.is-active {
  color: var(--accent-bright);
  background: rgba(240, 240, 248, 0.06);
}

.lang-dropdown__option .lang-dropdown__flag {
  font-size: 1.35rem;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 3.5rem;
}

.hero__logo {
  width: min(200px, 52vw);
  height: auto;
  margin: 0 auto 1.75rem;
  border-radius: 22px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px var(--border);
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  color: var(--accent-bright);
}

.hero__lead {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  min-width: min(100%, 17.5rem);
  box-sizing: border-box;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: left;
}

.store-btn:hover {
  background: #222230;
  border-color: rgba(196, 196, 212, 0.22);
  opacity: 1;
}

.store-btn .store-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn svg.store-mark {
  opacity: 0.95;
}

.store-mark--google {
  display: block;
  object-fit: cover;
  object-position: left center;
  border-radius: 5px;
}

.store-btn__label {
  flex: 1;
  min-width: 0;
}

.section {
  margin-top: 3.5rem;
}

.section h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--accent-bright);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--accent-bright);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.cta-block {
  margin-top: 3.5rem;
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

.cta-block p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  background: rgba(10, 10, 15, 0.6);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-bright);
  opacity: 1;
}

.company-block {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.company-block strong {
  color: var(--text);
  font-weight: 600;
}

.footer-contacts {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-contacts__title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-contacts p {
  margin: 0.35rem 0 0;
}

.footer-contacts a {
  color: var(--accent-bright);
  word-break: break-all;
}

.footer-contacts a:hover {
  opacity: 1;
}

.copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.85;
}

/* Privacy page */
.privacy-page main {
  padding-top: 1.5rem;
}

.privacy-page article {
  max-width: 42rem;
}

.privacy-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--accent-bright);
}

.privacy-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.privacy-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--accent-bright);
}

.privacy-body h2:first-child {
  margin-top: 0;
}

.privacy-body p,
.privacy-body li {
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.privacy-body ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.privacy-body a {
  word-break: break-word;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.back-link:hover {
  color: var(--accent-bright);
  opacity: 1;
}

@media (max-width: 520px) {
  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .lang-switch {
    justify-content: center;
  }

  .lang-dropdown__menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .brand {
    justify-content: center;
  }
}
