/* ── VARIABLES ── */
:root {
  --accent: #4e75a6;
  --accent-d: #3a5d8a;
  --accent-l: #e6effe;
  --black: #1a1a1a;
  --white: #ffffff;
  --muted: #727056;
  --hint: #aaa;
  --border: rgba(0,0,0,0.08);
  --border-m: rgba(0,0,0,0.15);
  --surface: #f5f5f2;
  --max: 1120px;
  --r: 16px;
  --r-sm: 10px;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: var(--black);
}

/* ── HEADER ── */
.header.visible {
  background: #e6effe;
}

/* ── HERO ── */
.guide-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: url('../image/гид1.png') center/cover no-repeat;
  overflow: hidden;
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

.guide-hero-bg-shapes,
.guide-hero-shape1,
.guide-hero-shape2 {
  display: none;
}

.guide-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.guide-hero-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.guide-hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.guide-hero-title {
  font-size: 46px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.guide-hero-title span { color: #a8c4e8; }

.guide-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 420px;
}

.guide-hero-stats {
  display: flex;
  gap: 28px;
}

.hstat-val {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.hstat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.guide-hero-right {
  display: flex;
  justify-content: flex-end;
}

.guide-hero-form-preview {
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 24px;
  padding: 28px;
  width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.hfp-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}

.hfp-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hfp-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

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

.hfp-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.hfp-step-text {
  font-size: 13px;
  color: var(--black);
}

.hfp-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}

.hfp-btn:hover { background: var(--accent-d); }

/* ── WHY GUIDE ── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 36px;
}

.why-title {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 14px;
  font-weight: 600;
}

.why-headline {
  font-size: 34px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 14px;
  max-width: 600px;
  letter-spacing: -0.5px;
}

.why-headline span { color: var(--accent); }

.why-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.benefit-card {
  padding: 24px;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  transition: border-color .2s, transform .2s;
}

.benefit-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.benefit-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-l);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.benefit-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

.benefit-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── CALCULATOR ── */
.calc-section {
  position: relative;
  background: url('../image/гид2.png') center/cover no-repeat;
  padding: 64px 0;
}

.calc-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.calc-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 36px;
}

.calc-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  font-weight: 600;
}

.calc-headline {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.calc-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calc-row { margin-bottom: 24px; }

.calc-row-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.calc-row-label span {
  color: #ffffff;
  font-weight: 700;
}

input[type=range] {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.2);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(78,117,166,.3);
}

.calc-result-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.calc-result-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.calc-result-val {
  font-size: 44px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
  letter-spacing: -1px;
}

.calc-result-val span { color: var(--accent); }

.calc-result-per {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.calc-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.calc-row-item:last-child { border-bottom: none; }
.calc-row-item-label { font-size: 13px; color: var(--muted); }
.calc-row-item-val { font-size: 13px; font-weight: 700; color: var(--black); }

/* ── HOW IT WORKS ── */
.how-section {
  background: var(--surface);
  padding: 64px 0;
}

.how-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 36px;
}

.how-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 12px;
  font-weight: 600;
}

.how-headline {
  font-size: 32px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 14px);
  right: calc(12.5% + 14px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 8px, transparent 8px, transparent 16px);
}

.step {
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 auto 16px;
}

.step-num.filled {
  background: var(--accent);
  color: #fff;
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--black);
}

.step-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── FORM ── */
.form-section { padding: 64px 0; }

.form-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: start;
}

.form-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hint);
  margin-bottom: 12px;
  font-weight: 600;
}

.form-headline {
  font-size: 32px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.form-headline span { color: var(--accent); }

.form-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.form-progress {
  display: flex;
  margin-bottom: 36px;
}

.fp-step {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
}

.fp-step:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.fp-step:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.fp-step + .fp-step { border-left: none; }
.fp-step.active { background: var(--accent-l); border-color: var(--accent); }
.fp-step.done { background: var(--accent); border-color: var(--accent); }

.fp-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.fp-step.active .fp-num { background: var(--accent); color: #fff; }
.fp-step.done .fp-num { background: rgba(255,255,255,.3); color: #fff; }

.fp-text { font-size: 12px; font-weight: 600; color: var(--muted); }
.fp-step.active .fp-text { color: var(--accent-d); }
.fp-step.done .fp-text { color: #fff; }

.guide-testimonials { display: flex; flex-direction: column; gap: 12px; }

.gt-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border-radius: 16px;
  align-items: flex-start;
}

.gt-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.gt-av1 { background: linear-gradient(135deg,#4e75a6,#3a5d8a); }
.gt-av2 { background: linear-gradient(135deg,#5a8aa6,#3a6a8a); }
.gt-av3 { background: linear-gradient(135deg,#6a75a6,#4a5d8a); }

.gt-name { font-size: 13px; font-weight: 700; color: var(--black); }
.gt-role { font-size: 11px; color: var(--hint); margin-bottom: 5px; }
.gt-text { font-size: 12px; color: var(--muted); line-height: 1.55; }
.gt-income { font-size: 12px; font-weight: 700; color: var(--accent); margin-top: 4px; }

.the-form {
  background: var(--white);
  border: 1.5px solid var(--border-m);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.form-step { display: none; }
.form-step.active { display: block; }

.form-step-title { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.form-step-sub { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

.photo-upload {
  width: 100%;
  height: 120px;
  border: 2px dashed var(--border-m);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: var(--surface);
  margin-bottom: 16px;
  transition: border-color .18s, background .18s;
}

.photo-upload:hover { border-color: var(--accent); background: var(--accent-l); }
.photo-upload-ico { font-size: 28px; }
.photo-upload-text { font-size: 13px; color: var(--muted); font-weight: 600; }
.photo-upload-hint { font-size: 11px; color: var(--hint); }

.type-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.type-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
}

.type-option:hover { border-color: var(--border-m); background: var(--surface); }
.type-option.selected { border-color: var(--accent); background: var(--accent-l); }
.type-option input[type=radio] { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.type-option-title { font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.type-option-desc { font-size: 12px; color: var(--muted); }

.field { margin-bottom: 16px; }
.field-label { font-size: 12px; color: var(--hint); margin-bottom: 6px; font-weight: 600; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border-m);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--black);
  background: var(--surface);
  outline: none;
  transition: border-color .15s;
  resize: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: var(--white);
}

.field-hint { font-size: 11px; color: var(--hint); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.tags-wrap { display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border-m);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}

.tag:hover { border-color: var(--accent); color: var(--accent-d); background: var(--accent-l); }
.tag.selected { border-color: var(--accent); background: var(--accent); color: #fff; }

.form-nav { display: flex; align-items: center; gap: 10px; margin-top: 20px; }

.form-nav-back {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border-m);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}

.form-nav-next {
  flex: 1;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 13px;
  border-radius: 100px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background .15s;
}

.form-nav-next:hover { background: var(--accent-d); }

.form-progress-bar {
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.form-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width .3s ease;
}

.form-success { text-align: center; padding: 20px 10px; display: none; }
.form-success-ico { font-size: 52px; margin-bottom: 14px; }
.form-success-title { font-size: 20px; font-weight: 700; color: var(--black); margin-bottom: 8px; }
.form-success-sub { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── FAQ ── */
.faq-section { background: var(--surface); padding: 64px 0; }

.faq-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.faq-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--hint); margin-bottom: 12px; font-weight: 600; }
.faq-headline { font-size: 30px; font-weight: 700; color: var(--black); line-height: 1.2; margin-bottom: 16px; letter-spacing: -0.5px; }
.faq-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }

.faq-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 100px;
  border: 1.5px solid var(--black);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}

.faq-contact-btn:hover { background: var(--accent-l); border-color: var(--accent); color: var(--accent-d); }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  gap: 12px;
}

.faq-q-text { font-size: 14px; font-weight: 600; color: var(--black); }

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border-m);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: all .2s;
}

.faq-item.open .faq-toggle { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.65; }
.faq-item.open .faq-a { display: block; }

/* ── GUIDES PREVIEW ── */
.guides-preview { padding: 64px 0; }

.guides-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 36px;
}

.gp-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--hint); margin-bottom: 12px; font-weight: 600; }
.gp-headline { font-size: 32px; font-weight: 700; color: var(--black); margin-bottom: 8px; letter-spacing: -0.5px; }
.gp-sub { font-size: 15px; color: var(--muted); margin-bottom: 36px; max-width: 500px; }

.guides-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.guide-card {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, border-color .2s;
}

.guide-card:hover { transform: translateY(-3px); border-color: var(--border-m); }

.guide-photo {
  height: 160px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.guide-photo-bg { position: absolute; inset: 0; }
.gp1 { background: linear-gradient(155deg,#1a2a4a,#2a4a7e); }
.gp2 { background: linear-gradient(155deg,#1a3a4a,#2a5a7a); }
.gp3 { background: linear-gradient(155deg,#2a1a4a,#4a2a8a); }
.gp4 { background: linear-gradient(155deg,#1a2a4a,#2a4a7a); }

.guide-photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 50%); }

.guide-name-badge {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.guide-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background: rgba(0,0,0,.35);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 11px;
  color: #fff;
  font-weight: 600;
}

.guide-body { padding: 14px; background: var(--white); }
.guide-gname { font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 3px; }
.guide-spec { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.guide-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.gtag { font-size: 10px; padding: 3px 10px; border-radius: 100px; background: var(--accent-l); color: var(--accent-d); font-weight: 600; }