/* Файл: ChatMeldFront/css/styles.css */
:root {
  --bg: #0f1634;
  --panel: rgba(14, 18, 43, 0.76);
  --panel-strong: rgba(18, 23, 52, 0.92);
  --line: rgba(162, 210, 255, 0.16);
  --line-strong: rgba(162, 210, 255, 0.28);
  --text: #f4f7ff;
  --muted: #bfd0f2;
  --accent-a: #5cd2ff;
  --accent-b: #7c63ff;
  --accent-c: #ef5dce;
  --accent-soft: rgba(92, 210, 255, 0.12);
  --shadow: 0 28px 90px rgba(2, 5, 16, 0.42);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(92, 210, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 16%, rgba(124, 99, 255, 0.24), transparent 28%),
    radial-gradient(circle at 44% 74%, rgba(239, 93, 206, 0.2), transparent 24%),
    linear-gradient(180deg, #15245d 0%, #111b4a 52%, #0b1231 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(162, 210, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(162, 210, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.32));
}

a {
  color: inherit;
}

.page-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 24px auto;
}

.page-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(162, 210, 255, 0.16);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(12, 17, 40, 0.9), rgba(8, 13, 31, 0.92)),
    radial-gradient(circle at top right, rgba(124, 99, 255, 0.18), transparent 30%);
  box-shadow: var(--shadow);
}

.page-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 24%, rgba(92, 210, 255, 0.12), transparent 22%),
    radial-gradient(circle at 82% 74%, rgba(239, 93, 206, 0.14), transparent 20%);
}

.topbar,
.footer,
main {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(162, 210, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(11, 20, 50, 0.36);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-name {
  font-family: "Sora", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 12px 18px;
  border-radius: 999px;
  transition: 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(162, 210, 255, 0.18);
}

main {
  padding: 34px 28px 42px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.summary-card,
.feature-card,
.duo-card,
.usecase-card,
.closing-card,
.info-card,
.legal-card,
.micro-card {
  border: 1px solid rgba(162, 210, 255, 0.14);
  background:
    linear-gradient(180deg, var(--panel-strong), var(--panel)),
    radial-gradient(circle at top right, rgba(124, 99, 255, 0.12), transparent 34%);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(5, 10, 28, 0.24);
}

.hero-copy {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.eyebrow,
.section-kicker,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(92, 210, 255, 0.1);
  color: var(--accent-a);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow::before,
.section-kicker::before,
.panel-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.72;
}

.hero h1,
.subpage-hero h1,
.section-head h2,
.summary-card h2,
.duo-card h2 {
  margin: 18px 0 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 10.8ch;
  font-size: clamp(3rem, 6vw, 5.45rem);
}

.hero-lead,
.hero-sublead,
.hero-ecosystem,
.summary-card p,
.section-head p,
.feature-card p,
.duo-card p,
.usecase-card p,
.closing-card p,
.subpage-hero p,
.info-card p,
.legal-card p,
.micro-card p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.05rem;
}

.hero-lead {
  margin-top: 26px;
  font-size: 1.12rem;
}

.hero-sublead {
  margin-top: 16px;
}

.hero-ecosystem {
  margin-top: 16px;
  color: var(--accent-a);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  color: #f8fbff;
  background: linear-gradient(135deg, var(--accent-c), var(--accent-a));
  box-shadow: 0 18px 38px rgba(124, 99, 255, 0.34);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(162, 210, 255, 0.16);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 26px 0 0;
  list-style: none;
}

.pill-row li {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(162, 210, 255, 0.14);
  color: var(--text);
  font-weight: 600;
}

.hero-stage {
  position: relative;
  min-height: 740px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(162, 210, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(23, 37, 89, 0.88), rgba(19, 23, 58, 0.82)),
    radial-gradient(circle at top left, rgba(92, 210, 255, 0.16), transparent 26%),
    radial-gradient(circle at bottom right, rgba(124, 99, 255, 0.22), transparent 28%);
  overflow: hidden;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.42;
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: -10% -12%;
  background:
    radial-gradient(circle, transparent 34%, rgba(255, 255, 255, 0.08) 35%, transparent 36%),
    radial-gradient(circle, transparent 52%, rgba(255, 255, 255, 0.06) 53%, transparent 54%);
  opacity: 0.54;
  transform: rotate(-6deg);
}

.chat-pattern,
.stage-device,
.stage-panel {
  position: relative;
  z-index: 1;
}

.chat-badge,
.chat-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.chat-badge {
  min-width: 54px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f6f9ff;
  font-weight: 700;
  font-size: 1rem;
}

.badge-de { top: 72px; left: 64px; }
.badge-en { top: 146px; right: 82px; }
.badge-es { top: 258px; left: 244px; }
.badge-fr { top: 510px; right: 54px; }
.badge-tr { top: 574px; left: 96px; }

.chat-bubble {
  color: rgba(255, 255, 255, 0.14);
  font-size: 2rem;
}

.bubble-a { top: 88px; right: 196px; }
.bubble-b { top: 346px; left: 92px; }
.bubble-c { bottom: 116px; right: 168px; }

.stage-device {
  position: absolute;
  left: 50%;
  top: 32px;
  transform: translateX(-50%);
  width: min(44%, 280px);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 24px 54px rgba(8, 12, 34, 0.42);
}

.stage-device img {
  display: block;
  width: 100%;
  height: auto;
}

.stage-panel {
  position: absolute;
  width: 270px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(162, 210, 255, 0.16);
  background: rgba(10, 14, 34, 0.82);
  box-shadow: 0 18px 38px rgba(7, 9, 23, 0.34);
}

.stage-panel strong {
  display: block;
  margin-top: 14px;
  font-family: "Sora", sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.stage-panel span:last-child {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.stage-panel-top {
  right: 26px;
  top: 600px;
}

.stage-panel-bottom {
  left: 28px;
  bottom: 38px;
}

.summary-strip,
.duo-section,
.contact-grid {
  display: grid;
  gap: 22px;
}

.summary-strip {
  grid-template-columns: 1.04fr 0.96fr;
  margin-top: 28px;
}

.summary-card,
.info-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.section {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(162, 210, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.section-head {
  max-width: 860px;
}

.feature-grid,
.usecase-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

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

.usecase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.usecase-card {
  min-height: 100%;
  padding: 22px;
  border-radius: 24px;
}

.feature-card h3,
.usecase-card h3,
.info-card h2,
.legal-card h2 {
  margin: 0 0 12px;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}

.duo-section {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  margin-top: 28px;
}

.duo-card,
.closing-card,
.legal-card,
.micro-card {
  padding: 26px;
  border-radius: var(--radius-xl);
}

.duo-card-large {
  display: grid;
  gap: 18px;
}

.duo-card:not(.duo-card-large) {
  display: grid;
  gap: 18px;
  align-content: start;
}

.detail-list {
  display: grid;
  gap: 14px;
  padding-left: 20px;
  margin: 0;
  color: var(--text);
}

.detail-list li {
  line-height: 1.7;
}

.closing-section {
  margin-top: 28px;
}

.closing-card {
  background:
    linear-gradient(135deg, rgba(18, 23, 52, 0.94), rgba(14, 18, 43, 0.88)),
    radial-gradient(circle at top right, rgba(239, 93, 206, 0.16), transparent 30%);
}

.footer {
  padding: 0 28px 30px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.subpage-main {
  padding-top: 8px;
}

.subpage-hero {
  max-width: 860px;
  padding: 18px 0 8px;
}

.subpage-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.legal-card {
  margin-top: 18px;
}

@media (max-width: 1120px) {
  .hero,
  .summary-strip,
  .duo-section,
  .contact-grid,
  .feature-grid,
  .usecase-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 820px;
  }

  .stage-device {
    width: min(42%, 290px);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    margin: 10px auto;
  }

  .topbar,
  main,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-copy,
  .section,
  .duo-card,
  .summary-card,
  .feature-card,
  .usecase-card,
  .info-card,
  .legal-card,
  .micro-card,
  .closing-card {
    padding: 20px;
  }

  .hero h1 {
    max-width: 9.8ch;
    font-size: clamp(2.55rem, 11vw, 4rem);
  }

  .hero-stage {
    min-height: auto;
    padding: 18px 0 320px;
  }

  .stage-device,
  .stage-panel {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    width: auto;
    margin: 18px;
  }

  .chat-badge,
  .chat-bubble {
    display: none;
  }
}
