/* Torttik landing — тёмная тема по референсу incy.cc (deep navy, dot-grid, cyan accent) */

:root {
  --bg: #0b0f14;
  --bg-elevated: #11161d;
  --card: #11161d;
  --card-hover: #151b24;
  --border: #1e2732;
  --border-light: #2a3644;
  --text: #e6ebf2;
  --text-muted: #8b98a9;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, .12);
  --green: #34d399;
  --radius: 16px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow { max-width: 760px; }

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(11, 15, 20, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 20px;
}

.brand-mark i {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), #0ea5b7);
}

.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 20px; }
.brand-mark i:nth-child(4) { height: 13px; }

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .2px;
}

.header-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .15s;
}

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

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #06232a;
  box-shadow: 0 2px 14px rgba(34, 211, 238, .25);
}

.btn-primary:hover { background: #4ddcf3; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 10px; }

.btn-lg { padding: 14px 26px; font-size: 16.5px; border-radius: 14px; }

/* ---------- hero ---------- */

.hero {
  padding: 96px 20px 84px;
  background:
    radial-gradient(600px 320px at 70% -10%, rgba(34, 211, 238, .12), transparent 65%),
    radial-gradient(500px 300px at 15% 0%, rgba(52, 211, 153, .05), transparent 60%);
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 26px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, .8);
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 60px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.5px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 22px auto 34px;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 17.5px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 52px;
}

.hero-stats li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.hero-stats strong {
  font-size: 24px;
  color: var(--accent);
  font-weight: 800;
}

.hero-stats span {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- секции ---------- */

.section { padding: 84px 0; }

.section-alt {
  background: rgba(255, 255, 255, .014);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -.3px;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 16.5px;
  margin-bottom: 44px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s, background .15s;
}

.card:hover { border-color: var(--border-light); background: var(--card-hover); }

/* ---------- возможности ---------- */

.feature h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 16px 0 8px;
}

.feature p { color: var(--text-muted); font-size: 14.8px; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
}

.feature-icon svg { width: 23px; height: 23px; }

/* ---------- тарифы ---------- */

.pricing-grid { align-items: stretch; }

.plan {
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-popular {
  border-color: rgba(34, 211, 238, .55);
  background: linear-gradient(180deg, rgba(34, 211, 238, .07), rgba(17, 22, 29, 0) 55%), var(--card);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: var(--accent);
  color: #06232a;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-length {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.5px;
}

.plan-period {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan-note {
  margin-top: 4px;
  color: var(--green);
  font-size: 13.5px;
  font-weight: 600;
}

.plan-list {
  list-style: none;
  margin: 20px 0 26px;
  display: grid;
  gap: 10px;
}

.plan-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-muted);
  font-size: 14.8px;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat,
    rgba(52, 211, 153, .12);
}

.plan .btn { margin-top: auto; }

.pricing-footnote {
  text-align: center;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-top: 28px;
}

/* ---------- шаги ---------- */

.step { position: relative; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, .35);
  color: var(--accent);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 { font-size: 17.5px; margin-bottom: 8px; }

.step p { color: var(--text-muted); font-size: 14.8px; }

.apps-note {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 20px;
  padding: 28px 30px;
}

.apps-note-text { flex: 1; }

.apps-note h3 { font-size: 18px; margin-bottom: 8px; }

.apps-note p { color: var(--text-muted); font-size: 14.8px; }

/* ---------- FAQ ---------- */

.faq {
  padding: 0;
  margin-bottom: 12px;
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 24px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: "+";
  font-size: 21px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .15s;
}

.faq[open] summary::after { transform: rotate(45deg); }

.faq p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.link { color: var(--accent); text-decoration: none; }

.link:hover { text-decoration: underline; }

/* ---------- финальный CTA ---------- */

.cta-final {
  padding: 96px 0;
  text-align: center;
  background:
    radial-gradient(500px 260px at 50% 120%, rgba(34, 211, 238, .13), transparent 65%);
}

.cta-final h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -.3px;
  margin-bottom: 12px;
}

.cta-final p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 30px;
}

/* ---------- футер ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  flex-wrap: wrap;
}

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

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

.footer-copy {
  color: var(--text-muted);
  font-size: 13.5px;
  width: 100%;
  text-align: left;
  margin-top: 4px;
}

@media (min-width: 768px) {
  .footer-copy { width: auto; text-align: right; margin-top: 0; }
}

/* ---------- адаптив ---------- */

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

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

@media (max-width: 640px) {
  .header { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }

  .header-nav { display: none; }

  .header .btn { margin-left: auto; }

  .hero { padding: 64px 16px 60px; }

  .section { padding: 60px 0; }

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

  .hero-stats { gap: 10px; }

  .hero-stats li { padding: 10px 14px; width: 100%; justify-content: center; }
}
