:root {
  --brand: #4d6bfe;
  --brand-2: #2498ff;
  --text: #334155;
  --muted: #94a3b8;
  --border: rgba(226, 232, 240, 0.9);
  --card-bg: rgba(255, 255, 255, 0.74);
  --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(77, 107, 254, 0.08);
  --shadow-hover: 0 8px 24px rgba(77, 107, 254, 0.14);
  --radius-card: 28px;
  --radius-pill: 999px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #ffffff;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.page { min-height: 100vh; overflow: hidden; }

.hero {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(255,255,255,0.96), rgba(245,249,255,0.97) 34%, rgba(220,233,255,0.95) 62%, rgba(194,215,255,0.75) 80%, rgba(255,255,255,1) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(30px);
}

.hero::before {
  left: -180px;
  bottom: -20px;
  width: 760px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(77,107,254,0.25), rgba(77,107,254,0.10) 42%, transparent 72%);
  transform: rotate(6deg);
}

.hero::after {
  right: -120px;
  bottom: -10px;
  width: 620px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(36,152,255,0.22), rgba(36,152,255,0.08) 42%, transparent 72%);
  transform: rotate(-6deg);
}

.hero-wave {
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 1000px;
  height: 360px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(77,107,254,0.20), rgba(77,107,254,0.10) 34%, rgba(77,107,254,0.04) 52%, transparent 72%);
  filter: blur(34px);
  pointer-events: none;
}

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

.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px 0 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 8px 24px rgba(77, 107, 254, 0.25);
  color: white;
  flex: 0 0 auto;
}

.brand-mark svg { width: 22px; height: 22px; }

.brand-name {
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.nav a {
  color: #64748b;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--brand); }

.main-nav {
  justify-content: center;
  gap: 10px 22px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 0;
  line-height: 1.2;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-button,
.lang-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  color: #475569;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(148,163,184,0.08);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.profile-button:hover,
.lang-button:hover,
.lang-dropdown:hover .lang-button {
  color: var(--brand);
  border-color: rgba(191,219,254,0.95);
  background: rgba(255,255,255,0.95);
}

.profile-button {
  width: 42px;
  padding: 0;
  flex: 0 0 42px;
}

.profile-button svg {
  width: 18px;
  height: 18px;
}

.lang-dropdown { position: relative; flex: 0 0 auto; }

.lang-button strong { font-weight: 600; color: var(--brand); }
.lang-arrow { font-size: 12px; }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 110px;
  padding: 8px;
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 16px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 18px 40px rgba(15,23,42,0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown:focus-within .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #475569;
  font-size: 14px;
}

.lang-menu a:hover,
.lang-menu a.active {
  background: rgba(239,246,255,0.95);
  color: var(--brand);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 26px;
}

.announcement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 920px;
  padding: 8px 18px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(148,163,184,0.12);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.announcement:hover { color: var(--brand); }

.hero-title {
  margin: 0;
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: -0.08em;
  color: var(--brand);
}

.hero-subtitle {
  margin: 12px 0 14px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}

.promo-card,
.card,
.info-card,
.wide-ad-card,
.faq-block,
.wide-models-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,0.78);
  border-radius: var(--radius-card);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.promo-card::before,
.card::before,
.info-card::before,
.wide-ad-card::before,
.faq-block::before,
.wide-models-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(219,234,254,0.20), rgba(255,255,255,0.2));
  pointer-events: none;
}

.promo-card:hover,
.card:hover,
.info-card:hover,
.wide-ad-card:hover,
.wide-models-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(191,219,254,0.9);
}

.card-content { position: relative; z-index: 1; }

.promo-card {
  width: min(100%, 760px);
  padding: 20px 28px;
  margin-bottom: 14px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.promo-title,
.card-title {
  margin: 0 0 10px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--brand);
}

.promo-title { font-size: 28px; line-height: 1.1; }

.promo-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #64748b;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 760px);
}

.card {
  padding: 22px 24px;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-title { font-size: 28px; line-height: 1.1; }

.card-text {
  margin: 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.55;
  color: #64748b;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
}

.card:hover .card-link { color: var(--brand); }

.content-section {
  padding: 26px 0 32px;
  background: linear-gradient(180deg, rgba(247,250,255,0.7) 0%, #ffffff 100%);
}

.content-container {
  display: grid;
  gap: 22px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.info-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.info-card,
.wide-ad-card,
.faq-block,
.wide-models-card {
  padding: 28px 30px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.info-card h2,
.faq-block h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #1e293b;
}

.info-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #475569;
}

.wide-ad-card,
.fullwidth-faq,
.wide-models-card { width: 100%; }

.models-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  margin-top: 14px;
}

.model-item {
  padding: 18px 20px;
  border: 1px solid rgba(226,232,240,0.82);
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
}

.model-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
  color: var(--brand);
  letter-spacing: -0.03em;
}

.model-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
}

.models-note {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(226,232,240,0.9);
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.models-note p { margin: 0 0 12px; }
.models-note p:last-child { margin-bottom: 0; }
.models-note strong { color: var(--brand); }

.faq-item {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(226,232,240,0.9);
}

.faq-item:first-of-type { border-top: 0; }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
  color: var(--brand);
}

.faq-item[open] summary::after { content: "−"; }

.faq-answer {
  padding: 0 0 18px;
  color: #64748b;
  line-height: 1.7;
  font-size: 15px;
}

.footer {
  padding: 42px 0 48px;
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.social:hover {
  color: var(--brand);
  border-color: rgba(191,219,254,0.9);
  background: rgba(239,246,255,0.9);
}

.legal {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.footer-title {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #1e293b;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-links a {
  color: #64748b;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--brand); }

/* Chat modal */
.chat-modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.52);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.chat-modal.active { display: flex; }

.chat-modal-content {
  width: 460px;
  max-width: 100%;
  height: min(680px, 85vh);
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(226,232,240,0.95);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(15,23,42,0.24);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(226,232,240,0.9);
  font-weight: 600;
  color: #1e293b;
}

.chat-header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(241,245,249,0.9);
  color: #475569;
  font-size: 16px;
  cursor: pointer;
}

.chat-log {
  flex: 1;
  padding: 18px;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(248,250,255,0.95) 0%, rgba(255,255,255,1) 100%);
}

.chat-message {
  display: flex;
  margin-bottom: 12px;
}

.chat-message.user { justify-content: flex-end; }
.chat-message.bot,
.chat-message.typing { justify-content: flex-start; }

.bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 8px 24px rgba(15,23,42,0.06);
}

.chat-message.user .bubble {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: white;
  border-bottom-right-radius: 6px;
}

.chat-message.bot .bubble,
.chat-message.typing .bubble {
  background: white;
  border: 1px solid rgba(226,232,240,0.9);
  color: #334155;
  border-bottom-left-radius: 6px;
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(226,232,240,0.9);
  background: rgba(255,255,255,0.98);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(203,213,225,0.95);
  border-radius: 14px;
  outline: none;
  font: inherit;
}

.chat-form input:focus {
  border-color: rgba(77,107,254,0.5);
  box-shadow: 0 0 0 3px rgba(77,107,254,0.12);
}

.chat-form button {
  width: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: white;
  font-size: 20px;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .main-nav { justify-content: center; }
  .header-actions { justify-content: center; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; }

  .container { width: min(var(--container), calc(100% - 28px)); }

  .brand-name { font-size: 30px; }

  .main-nav { gap: 10px 16px; }
  .main-nav a { font-size: 13px; padding: 4px 0; }

  .lang-button {
    min-height: 38px;
    padding: 0 12px;
  }

  .profile-button {
    min-height: 38px;
    width: 38px;
    flex-basis: 38px;
  }

  .promo-card,
  .cards { width: 100%; }

  .cards,
  .info-grid,
  .info-row-two,
  .models-grid {
    grid-template-columns: 1fr;
  }

  .content-section { padding-top: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-content { padding-bottom: 30px; }

  .info-card,
  .wide-ad-card,
  .faq-block,
  .wide-models-card {
    padding: 22px 20px;
  }

  .info-card h2,
  .faq-block h2 { font-size: 26px; }

  .info-card p,
  .model-item p,
  .models-note { font-size: 14px; }

  .faq-item summary { font-size: 16px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer { padding: 34px 0 40px; }

  .chat-modal-content {
    height: 82vh;
    border-radius: 18px;
  }
}
