:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --radius: 16px;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 18px rgba(15, 23, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 400px at 100% -10%, rgba(37, 99, 235, 0.14), transparent 65%),
    var(--bg);
  font:
    16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  text-rendering: optimizeLegibility;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

section {
  scroll-margin-top: 92px;
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.55), rgba(241, 245, 249, 0.95));
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  gap: 7px;
}

.menu-toggle .bar {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle .menu-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.nav .nav-cta {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  max-width: 18ch;
}

.hero-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.room-preview {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow);
}

.room-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.room-title {
  font-size: 0.86rem;
  color: var(--muted);
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.participant {
  position: relative;
  min-height: 90px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 10px;
  display: flex;
  align-items: flex-end;
}

.participant::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(37, 99, 235, 0.16), transparent 60%);
}

.participant span {
  position: relative;
  font-size: 0.83rem;
  font-weight: 600;
}

.room-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.control-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 0;
}

.control-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-button-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.features-grid,
.pricing-grid,
.security-grid,
.steps-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card {
  padding: 20px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

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

.step-card {
  padding: 20px;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.11);
  color: var(--primary);
  display: grid;
  place-items: center;
}

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

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.3;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

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

.plan-card {
  position: relative;
  padding: 22px;
}

.plan-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.plan-for {
  margin: 0 0 12px;
  color: var(--muted);
}

.plan-price {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
}

.plan-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.plan-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

.plan-card.is-accent {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.14);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.pricing-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

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

.security-card {
  padding: 20px;
}

.security-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.3;
}

.security-card p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  max-width: 860px;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq-question::after {
  content: "+";
  color: var(--primary);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item.is-open .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  align-items: start;
}

.contact-form-card,
.contact-info-card {
  padding: 22px;
}

.contact-form-card h2,
.contact-info-card h3 {
  margin-top: 0;
}

.contact-form-card p,
.contact-info-card p {
  margin-top: 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.92rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.16);
  border-color: var(--primary);
}

.form-message {
  margin: 10px 0 0;
  min-height: 22px;
  font-size: 0.92rem;
}

.form-message.success {
  color: #166534;
}

.form-message.error {
  color: #b91c1c;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
}

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

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

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    margin-left: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav .nav-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 2px;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .features-grid,
  .pricing-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .room-grid {
    gap: 8px;
  }

  .participant {
    min-height: 82px;
  }

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