/* Народна позика — лендінг (спільні токени, шапка, кнопки, футер — у base.css). */

/* ---------- перший екран ---------- */
.hero {
  width: min(1120px, 100% - 32px);
  margin: 4px auto 0;
  display: grid;
  gap: 22px;
}
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "eyebrow eyebrow"
    "title plate"
    "sub sub"
    "points points";
  align-items: center;
  column-gap: 12px;
}
.eyebrow {
  grid-area: eyebrow;
  justify-self: start;
  margin: 6px 0 0;
  padding: 4px 12px;
  border: 1.5px dashed var(--red);
  border-radius: 999px;
  background: var(--paper);
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero h1 {
  grid-area: title;
  margin: 12px 0 0;
  font: 800 clamp(42px, 11vw, 76px)/0.98 var(--display);
  letter-spacing: -0.01em;
}
.hero-sub {
  grid-area: sub;
  margin: 12px 0 0;
  font-size: 19px;
  color: var(--muted);
}
.hero-points {
  grid-area: points;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-weight: 700;
  font-size: 15px;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

/* майолікова тарілка з півником */
.plate {
  grid-area: plate;
  position: relative;
  width: 108px;
  aspect-ratio: 1;
  margin: 14px 10px 0 0;
  border-radius: 50%;
  background: var(--paper);
  box-shadow:
    0 0 0 3px var(--brown),
    0 0 0 8px var(--ochre),
    0 0 0 10px var(--brown),
    0 14px 26px -6px rgba(90, 58, 34, 0.45);
  display: grid;
  place-items: center;
}
.plate::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2.5px dotted var(--cobalt);
}
.plate img { width: 78%; height: auto; }

/* калькулятор-квиток */
.ticket {
  position: relative;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px 0;
  box-shadow: 0 22px 44px -24px rgba(90, 58, 34, 0.55);
}
.ticket-head {
  margin: 0 0 18px;
  font: 700 23px/1.15 var(--display);
}
.ticket-row { margin-bottom: 18px; }
.ticket-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.ticket-label label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ticket-label output { font: 800 27px/1.1 var(--display); }
.ticket-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.ticket-tear {
  position: relative;
  margin: 4px -20px 0;
  padding: 20px 20px 16px;
  border-top: 2px dashed var(--line);
}
.ticket-tear::before,
.ticket-tear::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--linen);
  border: 1.5px solid var(--line);
}
.ticket-tear::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket-tear::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket-foot {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 8px;
  margin: 14px 0 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0 var(--fill, 0%), rgba(90, 58, 34, 0.16) var(--fill, 0%) 100%);
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--red);
  background: radial-gradient(circle, var(--red) 0 3px, var(--paper) 3.5px);
  box-shadow: 0 2px 6px rgba(26, 23, 20, 0.25);
}
.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--red);
  background: radial-gradient(circle, var(--red) 0 3px, var(--paper) 3.5px);
  box-shadow: 0 2px 6px rgba(26, 23, 20, 0.25);
}
.slider::-moz-range-track { background: transparent; }

/* ---------- коротко про сервіс ---------- */
.facts {
  width: min(1120px, 100% - 32px);
  margin: 26px auto 0;
  padding: 18px 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  text-align: center;
}
.facts b { display: block; font: 800 30px/1.1 var(--display); color: var(--ochre); }
.facts span { display: block; font-size: 13px; opacity: 0.85; }


/* кроки — нитка з вузликами */
.thread {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.thread li { position: relative; padding-left: 58px; min-height: 40px; }
.thread li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -24px;
  border-left: 2px dashed var(--red);
}

/* чому через нас + поради */
.block-split { display: grid; gap: 40px; }
.why { list-style: none; margin: 0; padding: 0; }
.why li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.why svg {
  width: 44px;
  height: 44px;
  padding: 5px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--line);
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tips {
  align-self: start;
  padding: 24px 22px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 16px;
}
.tips .block-title { font-size: 28px; }
.tips ol { list-style: none; margin: 0; padding: 0; counter-reset: tip; }
.tips li {
  counter-increment: tip;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  padding: 12px 0;
}
.tips li + li { border-top: 1px dashed var(--line); }
.tips li::before {
  content: counter(tip);
  grid-row: span 2;
  font: 800 34px/1 var(--display);
  color: var(--ochre);
}

/* FAQ */
.faq details { border-bottom: 1.5px dashed var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  padding: 16px 40px 16px 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  display: grid;
  place-items: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-weight: 800;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; }


/* ---------- форма заявки: шторка знизу на телефоні, діалог на десктопі ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(26, 23, 20, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 94vh;
  max-height: 94dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 20px 22px;
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  transform: translateY(30px);
  transition: transform 0.25s;
}
.modal-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background: var(--orn) repeat-x 0 0 / 20px 10px;
}
.modal-overlay.is-open .modal-card { transform: none; }
.modal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.modal-title { margin-top: 4px; font: 800 28px/1.1 var(--display); }
.modal-desc { margin: 4px 0 6px; font-size: 14px; color: var(--muted); }
.field-label { display: block; margin: 12px 0 6px; font-size: 14px; font-weight: 700; }
.req { color: var(--red); }
.text-field,
.phone-field input {
  border: 1.5px solid rgba(90, 58, 34, 0.35);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.text-field input,
.phone-field input {
  display: block;
  width: 100%;
  padding: 13px 14px;
  font: 16px var(--sans);
  color: var(--ink);
  outline: none;
}
.text-field input { border: 0; border-radius: 10px; background: transparent; }
.text-field:focus-within,
.phone-field input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(181, 36, 43, 0.14);
}
.field-error { margin: 6px 0 0; font-size: 13px; color: var(--err); }
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.field-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.email-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.email-chip {
  padding: 6px 11px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--linen);
  font-size: 14px;
  cursor: pointer;
}
.link-btn {
  padding: 0;
  background: none;
  border: 0;
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 16px;
  font-size: 13px;
  line-height: 1.4;
}
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); }

/* ---------- планшет і десктоп ---------- */
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 16px; }
  .modal-card { border-radius: 18px; padding: 30px 28px 26px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .plate { width: 150px; }
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 48px;
    align-items: center;
    margin-top: 24px;
  }
  .hero-copy {
    grid-template-areas:
      "eyebrow plate"
      "title plate"
      "sub plate"
      "points points";
    column-gap: 28px;
  }
  .hero-sub { font-size: 21px; }
  .plate { width: 200px; align-self: center; }
  .ticket { padding: 26px 26px 0; }
  .ticket-tear { margin: 4px -26px 0; padding: 22px 26px 18px; }
  .thread { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .thread li { padding: 58px 0 0; }
  .thread li:not(:last-child)::before {
    left: 40px;
    right: -28px;
    top: 19px;
    bottom: auto;
    border-left: 0;
    border-top: 2px dashed var(--red);
  }
  .block-split { grid-template-columns: 1.15fr 1fr; gap: 56px; }
}
