:root {
  --bg: #ffffff;
  --bg-alt: #f7f3f4;
  --surface: #ffffff;
  --border: #e6dde0;
  --text: #1f1a1c;
  --muted: #645a5f;
  --accent: #8a1e3c;
  --accent-hover: #6e1530;
  --accent-ink: #ffffff;
  --success: #1f7a3a;
  --error: #c0262d;
  --radius: 14px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--muted);
}

.btn--small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  width: auto;
  height: 40px;
}

.footer .logo img {
  height: 48px;
}

@media (max-width: 600px) {
  .logo img {
    height: 32px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  /* Фото на фоні (hero-bg.jpg) під білим градієнтом, щоб текст ліворуч добре читався.
     Якщо файлу немає, лишається просто світлий фон. */
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .88) 45%, rgba(255, 255, 255, .35) 100%),
    url("hero-bg.jpg") center / cover no-repeat,
    var(--bg);
}

.hero__title {
  max-width: 820px;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(138, 30, 60, .08);
  border: 1px solid rgba(138, 30, 60, .25);
  border-radius: 999px;
}

.hero__title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.02em;
}

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

.hero__text {
  max-width: 620px;
  margin: 24px 0 36px;
  font-size: 18px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.hero__stats strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
}

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

/* ---------- Hero scene: bus drops staff at home ---------- */
.hero {
  padding-bottom: 210px;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.scene {
  --cycle: 16s;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  overflow: hidden;
  pointer-events: none;
}

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background:
    repeating-linear-gradient(90deg, #ffffff 0 26px, transparent 26px 52px) center / 100% 3px no-repeat,
    #ece4e7;
  border-top: 4px solid #ddd1d5;
}

.tree {
  position: absolute;
  bottom: 34px;
  width: 34px;
  height: 60px;
}

.tree rect   { fill: #bba393; }
.tree circle { fill: #d3e2cc; }

.house {
  position: absolute;
  bottom: 34px;
  width: 64px;
  height: 72px;
  margin-left: 8px;
}

.house__body { fill: #fbf6f7; stroke: #dccfd4; stroke-width: 1.5; }
.house__roof { fill: var(--accent); opacity: .85; }
.house__door { fill: #cbb5bd; }

.house__win {
  fill: #e7dde1;
  animation: window-light var(--cycle) linear infinite;
}

.house--2 .house__win { animation-delay: calc(var(--cycle) * .22); }
.house--3 .house__win { animation-delay: calc(var(--cycle) * .44); }

.bus {
  position: absolute;
  bottom: 6px;
  left: -2%;
  width: 158px;
  height: 72px;
  transform: translateX(-100%);
  animation: bus-route var(--cycle) infinite;
}

.bus__body   { fill: var(--accent); }
.bus__stripe { fill: #ffffff; opacity: .25; }
.bus__glass  { fill: #f3e7ec; }
.bus__door   { fill: #e6d2da; }
.bus__light  { fill: #f6c453; }
.bus__wheel  { fill: #2a2326; transform-box: fill-box; transform-origin: center; animation: wheel-spin var(--cycle) infinite; }
.bus__hub    { fill: #9a8f94; }

.person {
  position: absolute;
  bottom: 12px;
  z-index: 2;
  width: 12px;
  height: 26px;
  fill: #3b3236;
  opacity: 0;
  animation: person-walk var(--cycle) linear infinite;
}

.person--2 { animation-delay: calc(var(--cycle) * .22); }
.person--3 { animation-delay: calc(var(--cycle) * .44); }

.person__legs {
  transform-box: fill-box;
  transform-origin: top;
  animation: legs .3s ease-in-out infinite alternate;
}

/* Bus: drive → stop at house 1 → house 2 → house 3 → leave */
@keyframes bus-route {
  0%   { left: -2%; animation-timing-function: ease-out; }
  14%  { left: 22%; }
  24%  { left: 22%; animation-timing-function: ease-in-out; }
  36%  { left: 50%; }
  46%  { left: 50%; animation-timing-function: ease-in-out; }
  58%  { left: 78%; }
  68%  { left: 78%; animation-timing-function: ease-in; }
  84%  { left: calc(100% + 190px); }
  100% { left: calc(100% + 190px); }
}

/* Wheels turn only while the bus is moving */
@keyframes wheel-spin {
  0%   { transform: rotate(0deg); animation-timing-function: ease-out; }
  14%  { transform: rotate(720deg); }
  24%  { transform: rotate(720deg); animation-timing-function: ease-in-out; }
  36%  { transform: rotate(1560deg); }
  46%  { transform: rotate(1560deg); animation-timing-function: ease-in-out; }
  58%  { transform: rotate(2400deg); }
  68%  { transform: rotate(2400deg); animation-timing-function: ease-in; }
  84%  { transform: rotate(3400deg); }
  100% { transform: rotate(3400deg); }
}

/* Passenger steps out of the bus door and walks into the house */
@keyframes person-walk {
  0%, 15% { opacity: 0; transform: translate(-37px, 0); }
  16%     { opacity: 1; transform: translate(-37px, 0); }
  23%     { opacity: 1; transform: translate(30px, -20px); }
  24.5%   { opacity: 0; transform: translate(34px, -22px) scale(.8); }
  100%    { opacity: 0; transform: translate(34px, -22px) scale(.8); }
}

/* Window lights up once the passenger is home */
@keyframes window-light {
  0%, 24% { fill: #e7dde1; }
  26%     { fill: #f6c453; }
  70%     { fill: #f6c453; }
  76%     { fill: #e7dde1; }
  100%    { fill: #e7dde1; }
}

@keyframes legs {
  from { transform: scaleY(1); }
  to   { transform: scaleY(.7); }
}

@media (max-width: 600px) {
  .scene {
    height: 130px;
  }

  .tree:not(:first-child) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene * {
    animation: none !important;
  }

  .bus    { left: 50%; }
  .person { display: none; }
  .house__win { fill: #f6c453; }
}

/* ---------- Sections ---------- */
.section-title {
  margin-bottom: 40px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -.01em;
}

/* ---------- Services ---------- */
.services {
  padding: 88px 0;
}

.services .section-title {
  margin-bottom: 12px;
}

.services__lead {
  max-width: 620px;
  margin: 0 0 40px;
  font-size: 17px;
  color: var(--muted);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(31, 26, 28, .05);
}

.service__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.service__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--accent);
  background: rgba(138, 30, 60, .09);
  border-radius: 14px;
}

.service__icon svg {
  width: 28px;
  height: 28px;
}

.service__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.service__title {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
}

.service__text {
  margin: 0 0 20px;
  color: var(--muted);
}

.service__list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.service__list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.service__list strong {
  color: var(--text);
  font-weight: 700;
}

.service__btn {
  align-self: flex-start;
  margin-top: auto;
}

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

@media (max-width: 600px) {
  .services {
    padding: 64px 0;
  }

  .service {
    padding: 28px 22px;
  }

  .service__title {
    font-size: 20px;
  }

  .service__btn {
    align-self: stretch;
  }
}

/* ---------- Benefits ---------- */
.benefits {
  padding: 88px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

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

.card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}

.card:hover {
  border-color: rgba(138, 30, 60, .45);
  transform: translateY(-4px);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--accent);
  background: rgba(138, 30, 60, .09);
  border-radius: 12px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

/* Reveal on scroll (only when JS is on — without JS cards are just visible) */
.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
}

.reveal.is-visible {
  animation: card-in .7s cubic-bezier(.2, .7, .2, 1) backwards;
  animation-delay: calc(var(--i, 0) * .15s);
}

.reveal.is-visible .card__icon {
  animation: icon-pop .6s cubic-bezier(.3, 1.6, .5, 1) backwards;
  animation-delay: calc(var(--i, 0) * .15s + .35s);
}

/* Clock: hands keep ticking */
.icon-clock__min,
.icon-clock__hour {
  transform-box: view-box;
  transform-origin: 12px 12px;
}

.is-visible .icon-clock__min  { animation: spin 4s linear infinite; }
.is-visible .icon-clock__hour { animation: spin 48s linear infinite; }

/* Shield: the check mark draws itself */
.icon-shield__check {
  stroke-dasharray: 10;
  stroke-dashoffset: 0;
}

.is-visible .icon-shield__check {
  animation: draw .6s ease-out backwards;
  animation-delay: .9s;
}

/* Chart: bars grow from the bottom */
.icon-bar {
  transform-box: fill-box;
  transform-origin: bottom;
}

.is-visible .icon-bar {
  animation: bar-grow .5s ease-out backwards;
  animation-delay: calc(1.05s + var(--b) * .12s);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes icon-pop {
  from { transform: scale(.4) rotate(-12deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes draw {
  from { stroke-dashoffset: 10; }
  to   { stroke-dashoffset: 0; }
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

.card__title {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 700;
}

.card__text {
  margin: 0;
  color: var(--muted);
}

/* ---------- Clients ---------- */
.clients {
  padding: 88px 0;
}

.clients .section-title {
  margin-bottom: 12px;
}

.clients__lead {
  max-width: 560px;
  margin: 0 0 40px;
  font-size: 17px;
  color: var(--muted);
}

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 140px;
  padding: 24px 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}

.client:hover {
  border-color: rgba(138, 30, 60, .45);
  transform: translateY(-3px);
}

.client img {
  display: block;
  width: auto;
  max-width: min(100%, 170px);
  height: 52px;
  object-fit: contain;
}

.client img.client__logo--tall {
  height: 68px;
}

/* Reveal: cards appear in a quicker wave, logos zoom in after */
.client.reveal.is-visible {
  animation-duration: .6s;
  animation-delay: calc(var(--i, 0) * .1s);
}

.client.is-visible img {
  animation: logo-in .5s cubic-bezier(.3, 1.4, .5, 1) backwards;
  animation-delay: calc(var(--i, 0) * .1s + .25s);
}

@keyframes logo-in {
  from { opacity: 0; transform: scale(.7); }
  to   { opacity: 1; transform: scale(1); }
}

.client__tag {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .clients {
    padding: 64px 0;
  }

  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ---------- Request ---------- */
.request {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.request__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.request__info .section-title {
  margin-bottom: 16px;
}

.request__info p {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--muted);
}

.request__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.request__list li {
  position: relative;
  padding: 8px 0 8px 32px;
}

.request__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(31, 26, 28, .08);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9095;
}

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

.field .is-invalid,
.field input.is-invalid {
  border-color: var(--error);
}

.form__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.form__status {
  margin: 0;
  font-weight: 600;
  text-align: center;
}

.form__status:empty {
  display: none;
}

.form__status.is-success { color: var(--success); }
.form__status.is-error   { color: var(--error); }

/* ---------- Footer ---------- */
.footer {
  padding-top: 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
}

.footer__text {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer__contacts {
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer__contacts a:hover {
  color: var(--accent);
}

.footer__contacts span {
  color: var(--muted);
}

.footer__bottom {
  padding-block: 20px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ---------- Gallery ---------- */
.gallery {
  padding: 88px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.gallery .section-title {
  margin-bottom: 12px;
}

.gallery__lead {
  max-width: 620px;
  margin: 0 0 40px;
  font-size: 17px;
  color: var(--muted);
}

/* 3 колонки; вертикальне фото = 1 колонка, горизонтальне = 2, перше = на всю ширину */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 170px;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item {
  grid-row: span 2;
  overflow: hidden;
  border-radius: var(--radius);
}

.gallery__item.is-land { grid-column: span 2; }
.gallery__item.is-wide { grid-column: span 3; grid-row: span 3; }

.gallery__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--border);
  cursor: zoom-in;
}

.gallery__btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery__btn:hover img {
  transform: scale(1.04);
}

.gallery__btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: rgba(20, 14, 17, .92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  text-align: center;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  margin: 0 auto;
  border-radius: 10px;
  animation: lightbox-in .25s ease-out;
}

.lightbox__caption {
  margin-top: 14px;
  font-size: 15px;
  color: #e9dfe3;
}

.lightbox__close,
.lightbox__nav {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  font: inherit;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--accent);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
  .gallery__grid {
    grid-auto-rows: 120px;
  }
}

@media (max-width: 600px) {
  .gallery {
    padding: 64px 0;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    gap: 10px;
  }

  .gallery__item,
  .gallery__item.is-land {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 1;
  }

  .gallery__item.is-wide,
  .gallery__item:last-child {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }

  /* На телефоні гортаємо свайпом, стрілки по краях */
  .lightbox {
    padding: 64px 8px 24px;
  }

  .lightbox__nav {
    position: absolute;
    bottom: 20px;
  }

  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }

  .lightbox__img {
    max-height: calc(100vh - 180px);
  }
}

/* ---------- Navigation ---------- */
.header__nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}

.header__nav a,
.footer__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color .2s;
}

.header__nav a:hover,
.header__nav a[aria-current="page"],
.footer__links a:hover {
  color: var(--accent);
}

.footer__links {
  display: grid;
  gap: 6px;
  align-content: start;
}

@media (max-width: 760px) {
  .header__nav {
    display: none;
  }
}

/* ---------- FAQ page ---------- */
.page-head {
  padding: 64px 0 40px;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(138, 30, 60, .08), transparent 70%),
    var(--bg);
}

.page-head__back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.page-head__back:hover {
  text-decoration: underline;
}

.page-head__title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -.02em;
}

.page-head__text {
  max-width: 640px;
  margin: 16px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.faq {
  padding: 24px 0 96px;
}

.faq__inner {
  max-width: 860px;
}

/* FAQ як блок на головній */
.faq--home {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.faq--home .faq__inner {
  margin: 0 auto;
}

.faq--home .section-title {
  margin-bottom: 12px;
}

.faq__lead {
  margin: 0 0 40px;
  font-size: 17px;
  color: var(--muted);
}

.faq__more {
  margin: 32px 0 0;
  color: var(--muted);
}

.faq__more a {
  font-weight: 700;
  color: var(--accent);
}

.faq__more a:hover {
  text-decoration: underline;
}

/* Вкладки тем: без JS сховані (тоді видно всі групи із заголовками) */
.faq__tabs {
  display: none;
}

.faq--tabs .faq__tabs {
  display: grid;
  gap: 8px;
}

.faq__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.faq__tab:hover {
  border-color: rgba(138, 30, 60, .45);
}

.faq__tab.is-active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.faq__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq__count {
  min-width: 26px;
  padding: 2px 8px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
  background: var(--bg-alt);
  border-radius: 999px;
}

.faq__tab.is-active .faq__count {
  color: var(--accent);
  background: #fff;
}

/* Показуємо лише вибрану тему */
.faq--tabs .faq__group {
  margin-top: 0;
}

.faq--tabs .faq__group:not(.is-active) {
  display: none;
}

.faq--tabs .faq__group.is-active {
  animation: faq-open .3s ease-out;
}

.faq--tabs .faq__heading {
  display: none;
}

.faq--home .faq__item + .faq__item {
  margin-top: 8px;
}

.faq--home .faq__item summary {
  padding: 16px 52px 16px 20px;
  font-size: 16px;
}

.faq--home .faq__item summary::before,
.faq--home .faq__item summary::after {
  right: 20px;
}

.faq--home .faq__answer {
  padding: 0 20px 18px;
}

/* ПК: зліва заголовок і вкладки, справа питання вибраної теми */
@media (min-width: 901px) {
  .faq__layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 56px;
    align-items: start;
  }

  .faq__side {
    position: sticky;
    top: 96px;
  }

  .faq__side .faq__lead {
    margin-bottom: 28px;
  }
}

/* Планшет і телефон: вкладки в один рядок над питаннями, посилання на заявку внизу */
@media (max-width: 900px) {
  .faq__layout {
    display: flex;
    flex-direction: column;
  }

  .faq__side {
    display: contents;
  }

  .faq__side .faq__lead {
    margin-bottom: 24px;
  }

  .faq--tabs .faq__tabs {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 20px;
  }

  .faq__groups { order: 1; }
  .faq__more   { order: 2; margin-top: 24px; }
}

@media (max-width: 600px) {
  .faq--tabs .faq__tabs {
    gap: 6px;
  }

  .faq__tab {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 6px;
    padding: 10px 6px;
    font-size: 14px;
    text-align: center;
  }

  .faq__count {
    min-width: 20px;
    padding: 1px 6px;
    font-size: 11px;
  }

  .faq--home .faq__item summary {
    padding: 16px 44px 16px 16px;
    font-size: 15px;
  }

  .faq--home .faq__item summary::before,
  .faq--home .faq__item summary::after {
    right: 16px;
  }

  .faq--home .faq__answer {
    padding: 0 16px 16px;
  }
}

@media (max-width: 600px) {
  .faq--home {
    padding: 64px 0;
  }
}

.faq__group + .faq__group {
  margin-top: 48px;
}

.faq__heading {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 800;
}

.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s;
}

.faq__item + .faq__item {
  margin-top: 10px;
}

.faq__item[open] {
  border-color: rgba(138, 30, 60, .45);
}

.faq__item summary {
  position: relative;
  padding: 20px 56px 20px 24px;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

/* Плюс, що стає мінусом */
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .25s;
}

.faq__item summary::after {
  transform: rotate(90deg);
}

.faq__item[open] summary::after {
  transform: rotate(0deg);
}

.faq__item summary:hover {
  color: var(--accent);
}

.faq__item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.faq__answer {
  padding: 0 24px 22px;
  color: var(--muted);
}

.faq__answer p {
  margin: 0;
}

.faq__item[open] .faq__answer {
  animation: faq-open .3s ease-out;
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq__cta {
  margin-top: 56px;
  padding: 36px 32px;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq__cta h2 {
  font-size: 24px;
  font-weight: 800;
}

.faq__cta p {
  margin: 10px 0 22px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .page-head {
    padding: 40px 0 24px;
  }

  .faq {
    padding-bottom: 64px;
  }

  .faq__item summary {
    padding: 18px 48px 18px 18px;
    font-size: 16px;
  }

  .faq__item summary::before,
  .faq__item summary::after {
    right: 18px;
  }

  .faq__answer {
    padding: 0 18px 18px;
  }

  .faq__cta {
    padding: 28px 20px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .request__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 180px;
    /* На телефоні текст на всю ширину, тож білий шар рівномірний */
    background:
      linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)),
      url("hero-bg.jpg") center / cover no-repeat,
      var(--bg);
  }

  .hero__text {
    font-size: 16px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__stats strong {
    font-size: 26px;
  }

  .benefits,
  .request {
    padding: 64px 0;
  }

  .form {
    padding: 22px;
  }

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

  .footer__contacts {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }

  .reveal,
  .reveal * {
    animation: none !important;
    opacity: 1 !important;
  }
}

.manager {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 36px;
  padding: 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.manager__photo {
  flex: none;
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  border: 3px solid var(--surface);
  box-shadow: 0 6px 16px rgba(31, 26, 28, .15);
}

.manager__title {
  display: block;
  font-size: 18px;
  color: var(--text);
}

.manager .manager__text {
  margin: 4px 0 14px;
  font-size: 15px;
}

.manager__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.manager__link:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 560px) {
  .manager {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
}

/* Пастка для спам-ботів у формі: прихована від людей */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn:disabled {
  opacity: .6;
  cursor: wait;
}
