/* ═══════════════════════════════════════════
   STUDIO — доп. компоненты для главной студии
   (подключается после aurora.css)
   ═══════════════════════════════════════════ */

/* hero secondary tiny link */
.hero-idea-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  text-decoration: none; transition: color 0.2s;
}
.hero-idea-link:hover { color: var(--accent); }

/* hero без правой колонки — выравнивание по левому краю, без vh-пустоты */
#hero { min-height: auto; display: block; padding-bottom: 70px; }
.hero-wrap--solo { display: block; width: 100%; }
.hero-wrap--solo .hero-left { max-width: 720px; margin: 0; }
.hero-wrap--solo .hero-title { text-align: left; }
.hero-wrap--solo .hero-desc { max-width: 600px; }

/* короткий вариант текста кнопки — скрыт на десктопе */
.nav-cta-short { display: none; }

/* мобилка: верхнее меню — чтобы CTA не уезжал за край экрана */
@media (max-width: 600px) {
  .nav-inner { padding: 0 16px; gap: 12px; }
  .nav-right { gap: 0; flex: 1; justify-content: flex-end; min-width: 0; }
  .nav-cta {
    font-size: 13px; padding: 9px 16px; line-height: 1.2;
    white-space: nowrap; flex-shrink: 0;
  }
  .nav-cta-full { display: none; }
  .nav-cta-short { display: inline; }
  .nav-logo { font-size: 14px; flex-shrink: 0; }
}

/* мобилка: уменьшаем заголовок, чтобы «IT-продукты» не ломалось некрасиво */
@media (max-width: 600px) {
  #hero { padding-bottom: 50px; }
  #hero .hero-title { font-size: clamp(32px, 9vw, 44px); }

  /* градиентные кнопки не должны вылезать за край: перенос + меньше паддинги */
  .btn-gradient {
    white-space: normal; text-align: center;
    padding: 14px 22px; font-size: 14.5px;
    max-width: 100%;
  }
  /* кнопка в финальном CTA — на всю ширину панели */
  .cta-actions { width: 100%; }
  .cta-actions .btn-gradient {
    display: flex; width: 100%; justify-content: center;
  }
}
@media (max-width: 380px) {
  #hero .hero-title { font-size: 30px; }
}

/* подзаголовок в блоке клиентов */
.trust-sub { font-size: 16.5px; color: var(--ink-2); line-height: 1.65; max-width: 680px; margin-bottom: 26px; }

/* ───────── METHOD · методология через результаты ───────── */
.method-section { padding: 30px 0 70px; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.method-principles { display: flex; flex-direction: column; gap: 4px; }
.method-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.method-item:first-child { padding-top: 0; }
.method-item:last-child { border-bottom: none; }
.method-num { font-size: 14px; font-weight: 800; color: var(--accent); flex-shrink: 0; padding-top: 2px; font-variant-numeric: tabular-nums; }
.method-item b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 4px; }
.method-item p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

.method-visual {
  background: linear-gradient(180deg, var(--surface-2), #fbfcff);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 30px 26px; box-shadow: var(--shadow-sm);
  position: sticky; top: 90px;
}
.method-chart-title { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.method-chart { width: 100%; height: auto; display: block; }
.method-chart-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 12px; }
.mc-leg { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.mc-line { width: 24px; height: 0; flex-shrink: 0; }
.mc-line--blue { border-top: 2.5px solid var(--accent); }
.mc-line--grey { border-top: 2px dashed var(--ink-3); }
.method-chart-note { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

.method-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.method-result {
  position: relative;
  background: linear-gradient(170deg, var(--accent-tint) 0%, var(--surface) 38%);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.method-result:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.method-result-ic {
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm);
}
.method-result-ic svg { width: 20px; height: 20px; }
.method-result b { display: block; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 8px; }
.method-result p { font-size: 14px; color: var(--ink-2); line-height: 1.55; }

@media (max-width: 1000px) {
  .method-grid { grid-template-columns: 1fr; gap: 28px; }
  .method-visual { position: static; }
  .method-results { grid-template-columns: 1fr; }
}

/* ───────── FORMATS · 2 плитки ───────── */
.formats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.format-tile {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 40px 40px 36px; box-shadow: var(--shadow-sm);
}
.format-tile .chip-pill { margin-bottom: 18px; align-self: flex-start; }
.format-title { font-size: clamp(24px, 2.8vw, 32px); font-weight: 800; letter-spacing: -0.025em; text-transform: uppercase; margin-bottom: 14px; }
.format-desc { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin-bottom: 24px; flex: 1; }
.format-cta { align-self: flex-start; }
.formats-note { margin-top: 22px; font-size: 14.5px; color: var(--ink-2); }
.formats-note a { color: var(--accent); font-weight: 700; text-decoration: none; }
.formats-note a:hover { text-decoration: underline; }

/* ───────── TRUST / CLIENTS ───────── */
.clients-section { padding: 40px 0 20px; }
.trust-line {
  font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 26px; max-width: 760px;
}
.trust-line .accent { color: var(--accent); }

.clients-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.client-chip {
  display: inline-flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 16px; box-shadow: var(--shadow-sm);
}
.client-chip b { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }
.client-chip span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

/* объединённый блок «Растим IT-продукты» + методология */
.approach-section { padding: 30px 0 70px; }
.approach-head { margin-bottom: 26px; }
.approach-head .label { margin-bottom: 16px; }
.approach-method { margin-top: 40px; }

.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quote-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 24px 22px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.quote-text {
  font-size: 14.5px; color: var(--ink); line-height: 1.6; font-weight: 600;
  margin-bottom: 16px; flex: 1; text-wrap: pretty;
}
.quote-text::before { content: '“'; color: var(--accent); font-weight: 800; font-size: 18px; margin-right: 2px; }
.quote-author { font-size: 12px; color: var(--ink-3); font-weight: 600; }

.product-section { padding: 70px 0 40px; }

/* ───────── DIAGNOSTIC · idea mini ───────── */
.idea-mini {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  border-radius: var(--radius); padding: 22px 26px; margin-top: 4px;
}
.idea-mini-txt { flex: 1; min-width: 240px; }
.idea-mini-txt b { font-size: 15px; font-weight: 800; color: var(--ink); display: block; margin-bottom: 4px; }
.idea-mini-txt span { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.idea-mini-link {
  font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.idea-mini-link:hover { text-decoration: underline; }

/* ───────── FREE · materials ───────── */
.free-section { padding: 50px 0; }

.free-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.free-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 30px 28px; box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink); transition: all 0.22s;
}
.free-card:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.free-card:hover .free-card-link span { transform: translateX(4px); }
.free-card-ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.free-card-ic svg { width: 24px; height: 24px; }
.free-card-label { font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.free-card-title { font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.free-card-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.free-card-link { font-size: 14.5px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.free-card-link span { transition: transform 0.2s; }

.free-row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 30px; box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink); transition: all 0.22s; margin-bottom: 16px;
}
.free-row:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.free-row:hover .free-card-link span { transform: translateX(4px); }
.free-row-body { min-width: 0; }
.free-row-title { font-size: clamp(19px, 2vw, 24px); font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 6px; }
.free-row-desc { font-size: 14px; color: var(--ink-2); line-height: 1.55; max-width: 620px; }

.events-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px 26px; box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink); transition: all 0.22s;
}
.events-card:hover { transform: translateY(-3px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.event-date {
  flex-shrink: 0; text-align: center; line-height: 1;
  background: var(--accent-tint); color: var(--accent);
  border-radius: 12px; padding: 12px 14px; min-width: 64px;
}
.event-date b { display: block; font-size: 22px; font-weight: 800; }
.event-date span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.event-body { flex: 1; }
.event-body .event-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.event-body h4 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 5px; }
.event-body p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }

/* ───────── TEAM / FOUNDER extra ───────── */
.team-note {
  margin-top: 28px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
}
.team-note-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.team-note p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin-bottom: 14px; }
.team-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.team-tags span {
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.founder-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.founder-link {
  font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.founder-link:hover { text-decoration: underline; }

/* ───────── COST OF INACTION CALCULATOR (на всю ширину) ───────── */
.scalc-section { padding: 40px 0 60px; }
.scalc-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 48px 52px 46px; box-shadow: var(--shadow);
}
.scalc-head { margin-bottom: 36px; }
.scalc-head .label { margin-bottom: 12px; }
.scalc-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.scalc-controls { padding-top: 4px; }
.scalc-result {
  background: linear-gradient(170deg, var(--surface-2), #fbfcff);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 32px 30px;
}
.scalc-title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.025em; text-transform: uppercase; }
.scalc-block { margin-bottom: 28px; }
.scalc-block:last-child { margin-bottom: 0; }
.scalc-label { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; display: block; font-weight: 600; }
.scalc-row { display: flex; align-items: center; gap: 18px; }
.scalc-range {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--line-strong); border-radius: 3px; outline: none; cursor: pointer;
}
.scalc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); cursor: pointer; box-shadow: 0 0 0 4px var(--accent-tint);
}
.scalc-range::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: none; box-shadow: 0 0 0 4px var(--accent-tint);
}
.scalc-val { font-size: 24px; font-weight: 800; color: var(--ink); min-width: 104px; text-align: right; white-space: nowrap; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.scalc-unit { font-size: 12px; color: var(--ink-3); margin-left: 3px; font-weight: 600; }
.scalc-rlabel { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-weight: 700; }
.scalc-rbig { font-size: clamp(54px, 8vw, 76px); font-weight: 800; color: #ef4d4d; line-height: 1; margin-bottom: 14px; letter-spacing: -0.03em; }
.scalc-rsub { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.scalc-rsub b { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .scalc-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .scalc-box { padding: 32px 24px; }
  .scalc-result { padding: 26px 24px; }
}

/* ───────── CTA · telegram note ───────── */
.cta-tg-note { font-size: 13.5px; color: var(--ink-2); margin-top: 18px; }
.cta-sub-free { font-size: 12.5px; color: var(--ink-3); font-weight: 600; margin-top: 10px; }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1000px) {
  .quotes-grid { grid-template-columns: 1fr; }
  .formats-grid { grid-template-columns: 1fr; }
  .free-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .format-tile { padding: 32px 26px; }
  .free-card { padding: 26px 24px; }
  .free-row { padding: 24px 24px; }
  .idea-mini { flex-direction: column; align-items: flex-start; gap: 12px; }
}
