:root {
  --primary-color: #1769ff;
  --primary-gradient: linear-gradient(135deg, #1769ff 0%, #19b7d8 100%);
  --text-main: #102033;
  --text-secondary: #607188;
  --bg-color: #f5f9ff;
  --bg-secondary: #eef6ff;
  --line-color: #d9e5f5;
  --content-max-width: 1160px;
  --content-padding-x: 20px;
  --shadow-xl: 0 22px 55px rgba(23, 105, 255, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans", "Apple SD Gothic Neo", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: var(--bg-color);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }

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

header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: flex;
  justify-content: center;
  background: rgba(245, 249, 255, 0.86);
  border-bottom: 1px solid rgba(217, 229, 245, 0.8);
  backdrop-filter: blur(16px);
}

.header-container {
  width: min(var(--content-max-width), calc(100% - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-weight: 800;
  text-decoration: none;
  z-index: 30;
}

.logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 12px 25px rgba(23, 105, 255, 0.18);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 30;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text-main);
}

nav { display: flex; align-items: center; }

nav a {
  margin-left: 26px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover, .lang-current:hover { color: var(--primary-color); }

.lang-switch { position: relative; margin-left: 24px; color: var(--text-secondary); font-weight: 500; }

.lang-current {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  min-width: 160px;
  max-height: 70vh;
  margin-top: 8px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(16, 32, 51, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.2s ease;
}

[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

.lang-switch:hover .lang-dropdown,
.lang-switch.active .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-dropdown a {
  display: block;
  margin: 0;
  padding: 10px 16px;
  color: var(--text-main);
  font-size: 0.9rem;
}

.lang-dropdown a.active { color: var(--primary-color); background: #e8f1ff; font-weight: 700; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 76px 0 104px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(8, 36, 84, 0.96) 0%, rgba(20, 92, 206, 0.88) 54%, rgba(25, 183, 216, 0.74) 100%),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(245, 249, 255, 0), var(--bg-color));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 56px;
}

.hero h1 {
  margin: 0 0 20px;
  max-width: 680px;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 span { display: block; margin-top: 0.28em; color: rgba(255, 255, 255, 0.9); }

.hero p {
  max-width: 620px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  background: #fff;
  color: #0f3f9f;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.cta-button.is-soon { cursor: default; color: #607188; background: rgba(255, 255, 255, 0.78); }

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  background: #fff;
}

.features, .support-section { padding: 84px 0; }

.section-header { max-width: 760px; margin: 0 auto 32px; text-align: center; }

.section-header h2, .support-box h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-header p, .support-box p { margin: 0; color: var(--text-secondary); }

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

.feature-card {
  padding: 26px;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 32, 51, 0.06);
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary-color);
  background: #e8f1ff;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 { margin: 0 0 10px; font-size: 21px; }
.feature-card p { margin: 0; color: var(--text-secondary); }

.support-box {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 32px;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 14px 36px rgba(16, 32, 51, 0.06);
}

.support-email {
  display: block;
  margin-top: 16px;
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.privacy-content {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 84px;
}

.privacy-content h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 52px);
  text-align: center;
  letter-spacing: 0;
}

.meta-info {
  margin-bottom: 38px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-color);
  color: var(--text-secondary);
  text-align: center;
}

.privacy-content h2 {
  display: flex;
  align-items: center;
  margin: 40px 0 16px;
  font-size: 1.45rem;
}

.privacy-content h2::before {
  content: "";
  width: 4px;
  height: 24px;
  margin-inline-end: 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #1769ff, #19b7d8);
}

.privacy-content p, .privacy-content li { color: var(--text-secondary); }
.privacy-content a { color: var(--primary-color); }

footer {
  margin-top: auto;
  padding: 34px 0;
  background: #071a35;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

footer a { margin: 0 16px; color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer-links { margin-bottom: 14px; }

.footer-registration {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 14px;
}

.footer-registration a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: inherit;
}

.footer-registration img { width: 1em; height: 1em; }

@media (max-width: 1000px) {
  .hero-content, .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 20px;
    background: rgba(245, 249, 255, 0.98);
    box-shadow: 0 18px 36px rgba(16, 32, 51, 0.1);
  }
  nav.active { display: flex; }
  nav a, .lang-switch { margin: 0 20px; padding: 12px 0; }
  .lang-dropdown { position: static; display: none; opacity: 1; visibility: visible; transform: none; }
  .lang-switch.active .lang-dropdown { display: block; }
}

@media (max-width: 560px) {
  .hero { padding: 48px 0 80px; }
  .hero h1 { font-size: 40px; }
}
