/* Service pages (/consult, /service). Loaded after styles.css and reuses its tokens
   and sections (hero, section-heading, workflow, mentor, faq, final-cta, footer). */

.hero-services { min-height: auto; padding-bottom: 96px; }
.hero-services .hero-copy { max-width: 1040px; }
.hero-services h1 { font-size: clamp(46px, 5.6vw, 84px); }
.hero-facts {
  margin: 44px auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-facts span {
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.hero-facts b { color: var(--blue); }
.hero-tools {
  margin: 48px auto 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}
.hero-tools li {
  padding: 10px 16px 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.hero-tools img { width: 22px; height: 22px; object-fit: contain; }
.hero-price {
  margin: 26px auto 0;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--lime);
  font-weight: 800;
}
.hero-price strong { font-size: 26px; letter-spacing: -.04em; }
.hero-price span { font-size: 12px; }

/* Offer cards: scenario + term + "from" price */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.offer-card {
  position: relative;
  min-height: 320px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.offer-card:hover { transform: translateY(-5px); border-color: rgba(35,136,242,.24); box-shadow: var(--shadow); }
.offer-card .problem-icon { margin-top: 0; }
.offer-card h3 { margin: 30px 0 12px; font-size: 26px; line-height: 1.15; letter-spacing: -.04em; }
.offer-card > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.68; }
.offer-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.offer-card li { padding: 7px 0; font-size: 13px; line-height: 1.45; }
.offer-card li::before { content: "✓"; margin-right: 8px; color: var(--blue); font-weight: 800; }
.offer-meta {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.offer-meta strong { font-size: 24px; letter-spacing: -.04em; }
.offer-meta span { color: var(--muted); font-size: 12px; font-weight: 700; }

/* "Хочу…" self-identification */
.fit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.fit-card {
  min-height: 190px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
}
.fit-card { justify-content: flex-start; }
.fit-index { color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.fit-card strong { margin-top: 36px; font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
.fit-card p { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* Cases: own products in production */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case-card {
  min-height: 330px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: white;
  transition: transform .25s, box-shadow .25s;
}
.case-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-tag {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.case-card:nth-child(3n+2) .case-tag { background: #eee9ff; color: #5b47d6; }
.case-card:nth-child(3n) .case-tag { background: #efffc7; color: #456600; }
.case-card h3 { margin: 26px 0 10px; font-size: 23px; line-height: 1.15; letter-spacing: -.04em; }
.case-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.case-card p b { color: var(--ink); font-weight: 700; }
.case-stack { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.case-stack span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; font-weight: 700; }
.case-card a.case-link { margin-top: 14px; color: var(--blue-deep); font-size: 12px; font-weight: 800; text-decoration: none; }

/* Pricing with fewer plans than the main page */
.pricing-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin: 0 auto; }
.pricing-grid-2 .price-plan li,
.pricing-grid-3 .price-plan li { font-size: 13px; }
.pricing-grid-2 .price-plan > div > p,
.pricing-grid-3 .price-plan > div > p { font-size: 13px; }
.pricing-grid-2 .price-plan .button,
.pricing-grid-3 .price-plan .button { min-height: 50px; font-size: 13px; }

/* Bridge between consultation and development */
.bridge {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.bridge-inner {
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 26px;
  background: var(--lime);
}
.bridge-inner strong { display: block; font-size: 22px; line-height: 1.25; letter-spacing: -.03em; }
.bridge-inner p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.bridge-inner .button { flex: 0 0 auto; }
.bridge-course { margin-top: 20px; }
.bridge-course .bridge-inner { border: 1px solid var(--line); background: #eef0f3; }

/* Guarantees */
.guarantee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 30px; background: rgba(255,255,255,.1); }
.guarantee-item { min-height: 210px; padding: 34px; background: #16181d; }
.guarantee-item span { color: #86c3ff; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.guarantee-item h3 { margin: 40px 0 10px; font-size: 21px; line-height: 1.2; letter-spacing: -.03em; }
.guarantee-item p { margin: 0; color: #aeb1ba; font-size: 13px; line-height: 1.65; }

/* Founder */
.founder {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: center;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: white;
}
.founder-photo {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 25%, #b9e2ff, transparent 55%),
    radial-gradient(circle at 75% 80%, #e3d9ff, transparent 55%),
    var(--blue-soft);
  color: var(--blue);
  font-size: 120px;
  font-weight: 800;
  letter-spacing: -.06em;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder h2 { margin: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1.05; letter-spacing: -.05em; font-weight: 650; }
.founder-role { margin: 14px 0 0; color: var(--blue-deep); font-size: 14px; font-weight: 800; }
.founder-text { margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.founder-facts { margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.founder-facts li { padding: 16px; border-radius: 16px; background: var(--paper); font-size: 12px; line-height: 1.4; color: var(--muted); }
.founder-facts strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 24px; letter-spacing: -.04em; }
.founder-links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; }

/* Checklist of what the client gets */
.deliverables { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.deliverables li {
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  color: #d4d5da;
  font-size: 14px;
  line-height: 1.5;
}
.deliverables li::before { content: "✓"; color: var(--lime); font-weight: 800; }

/* Lead form */
.lead-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.lead-copy h2 { margin: 0; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -.055em; font-weight: 650; }
.lead-copy > p:not(.eyebrow) { margin: 22px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.lead-copy .button { margin-top: 28px; }
.lead-copy .lead-alt { margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.lead-copy .lead-alt a { color: var(--ink); }
.lead-form {
  padding: 36px;
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
}
.lead-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.lead-form input,
.lead-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #e6e6e3;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}
.lead-form textarea { min-height: 130px; resize: vertical; }
.lead-form input:focus,
.lead-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(35,136,242,.12); }
.lead-form .button { width: 100%; cursor: pointer; }
.lead-form .button[disabled] { opacity: .6; cursor: wait; transform: none; }
.lead-form small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.lead-form small a { color: var(--blue-deep); }
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-success { display: none; padding: 40px 36px; border-radius: 28px; background: var(--blue-soft); }
.lead-success.is-visible { display: block; }
.lead-success strong { display: block; font-size: 26px; letter-spacing: -.04em; }
.lead-success p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.lead-error { display: none; color: #c43d2b; font-size: 13px; }
.lead-error.is-visible { display: block; }

/* Sticky CTA on phones */
.sticky-cta { display: none; }

@media (max-width: 1100px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .founder { grid-template-columns: 260px 1fr; gap: 40px; padding: 40px; }
  .pricing-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .guarantee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-shell { grid-template-columns: 1fr; gap: 36px; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 280px; }
  .bridge-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
  .hero-services { padding-bottom: 60px; }
  .hero-services h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .hero-facts { margin-top: 32px; }
  .hero-facts span { font-size: 11px; }
  .hero-tools { margin-top: 34px; gap: 8px; }
  .hero-tools li { padding: 8px 12px 8px 10px; font-size: 12px; }
  .hero-tools img { width: 18px; height: 18px; }
  .offer-grid,
  .case-grid,
  .guarantee-grid,
  .pricing-grid-2,
  .pricing-grid-3 { grid-template-columns: 1fr; }
  .offer-card { min-height: 0; padding: 28px; border-radius: 23px; }
  .offer-card h3 { font-size: 23px; }
  .case-card { min-height: 0; }
  .guarantee-item { min-height: 0; padding: 28px; }
  .guarantee-item h3 { margin-top: 24px; }
  .bridge { padding: 0 16px; }
  .bridge-inner { padding: 28px 24px; }
  .bridge-inner .button { width: 100%; }
  .founder { padding: 26px; border-radius: 26px; }
  .founder-photo { max-width: none; font-size: 90px; }
  .founder-facts { grid-template-columns: 1fr; }
  .lead-form { padding: 24px; border-radius: 23px; }
  .lead-copy .button { width: 100%; }
  .sticky-cta {
    position: fixed;
    z-index: 90;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity .25s, transform .25s;
  }
  .sticky-cta.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .sticky-cta .button { width: 100%; box-shadow: 0 16px 40px rgba(16,17,23,.28); }
  .site-footer { padding-bottom: 96px; }
}


/* "Знакомо?" cards: fixed rhythm index → emoji → title → text, whatever the title length. */
.problems .problem-card { min-height: 0; }
.problems .problem-icon { margin-top: 40px; }
.problems .problem-card h3 { margin: 18px 0 12px; }

/* Cases: product screenshots */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  color: inherit;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.work-card:hover { transform: translateY(-5px); border-color: rgba(35,136,242,.24); box-shadow: var(--shadow); }
.work-shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: #eef1f5; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
a.work-card:hover .work-shot img { transform: scale(1.03); }
.work-copy { padding: 20px 22px 24px; }
.work-copy h3 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.03em; }
.work-copy p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
a.work-card .work-copy h3::after { content: " ↗"; color: var(--blue); font-size: 14px; }
@media (max-width: 1100px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .problems .problem-icon { margin-top: 28px; }
  .work-grid { gap: 12px; }
  .work-copy { padding: 14px 14px 18px; }
  .work-copy h3 { font-size: 15px; }
  .work-copy p { font-size: 12px; }
}
@media (max-width: 480px) { .work-grid { grid-template-columns: 1fr; } }
