/* Header, menu, buttons, the workflow line, frames, tags, forms and footer. */

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform 0.5s var(--ease-out), background-color 0.4s; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { background: rgba(4, 3, 3, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.site-header__brand { margin-right: auto; display: block; padding: 6px 0; }
.site-header__brand img { width: 150px; height: auto; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav__list a { display: block; padding: 10px 14px; border-radius: var(--radius-pill); color: var(--text-2); font-size: var(--fs-small); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.site-nav__list a:hover { color: var(--white); background: var(--surface-2); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: transparent; cursor: pointer; }
.menu-toggle .icon { width: 20px; height: 20px; }
.menu-toggle__close { display: none; }
.menu-open .menu-toggle__open { display: none; }
.menu-open .menu-toggle__close { display: block; }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--ground); padding: calc(var(--header-h) + 32px) var(--gutter) 40px; visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s; }
.menu.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.menu__list a { display: block; padding: 14px 0; font-family: var(--font-display); font-size: 2.4rem; line-height: 1.1; text-decoration: none; color: var(--white); border-bottom: 1px solid var(--line); }
.menu__list li:last-child a { color: var(--orange); }

@media (max-width: 900px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-weight: 500; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.btn .icon { transition: transform 0.35s var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-hover); color: var(--on-orange); }
.btn--outline { border-color: var(--line-strong); color: var(--white); background: transparent; }
.btn--outline:hover { border-color: var(--orange); color: var(--white); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover .icon--down { transform: translateY(3px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: var(--fs-small); }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 1.0625rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--white); text-decoration-color: var(--orange); text-underline-offset: 0.3em; }
.link-arrow:hover { color: var(--orange); }

/* ---------- Section heads and the workflow line ----------
   Each section's content sits right of a rail. Without JS every section shows a static line segment and its node
   down the rail; with JS (html.has-flow) one SVG path draws the whole route down the page as you scroll, and the
   nodes tick as the line reaches them. */
.section { position: relative; padding-block: var(--section); }
.flow { position: relative; padding-left: calc(var(--gutter) + var(--rail)); }
.sec-head { position: relative; max-width: 52rem; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-title { font-size: var(--fs-h2); }
.sec-lede { margin-top: 22px; max-width: 40rem; font-size: var(--fs-lede); color: var(--text-2); line-height: 1.55; }
.flow-node {
  position: absolute; top: calc(var(--fs-h2) * 0.52 - var(--node) / 2);
  left: calc(var(--rail-x) - var(--rail) - var(--node) / 2);
  width: var(--node); height: var(--node); border-radius: 50%;
  border: 3px solid var(--orange); background: var(--ground);
  transition: background-color 0.4s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.flow-node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform 0.45s var(--ease-out); }
.flow-node.is-reached::after { transform: scale(1); }
.section::before { /* the no-JS rail segment */
  content: ""; position: absolute; top: 0; bottom: 0;
  left: calc(max(0px, (100% - var(--wrap) - 2 * var(--gutter)) / 2) + var(--gutter) + var(--rail-x) - 1px);
  width: 2px; background: var(--line-strong);
}
.has-flow .section::before { display: none; }
.flow-line { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; display: none; }
.has-flow .flow-line { display: block; }
.flow-line__track { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.flow-line__ink { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; }
.has-flow .flow-node { z-index: 3; }

/* ---------- Frames around screenshots ---------- */
.frame { margin: 0; background: var(--surface-1); border: 1px solid var(--line-strong); overflow: hidden; }
.frame__screen { position: relative; }
.frame__screen img { width: 100%; }
.frame--phone { border-radius: 34px; padding: 7px; }
.frame--phone .frame__screen { border-radius: 27px; overflow: hidden; }
.frame--desk { border-radius: var(--radius); }
.frame__bar { display: flex; align-items: center; justify-content: center; height: 30px; border-bottom: 1px solid var(--line); font-size: var(--fs-tiny); color: var(--text-3); letter-spacing: 0.01em; }
.frame__bar span { padding: 3px 14px; border-radius: var(--radius-pill); background: var(--surface-2); }

/* ---------- Promise tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-tiny); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--orange); }
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 2px solid currentColor; }

/* ---------- Small shared pieces ---------- */
.work__note { margin-top: clamp(40px, 5vw, 64px); font-size: var(--fs-small); color: var(--text-3); }
.svc__for { margin-top: 14px; color: var(--orange); font-size: var(--fs-small); font-weight: 500; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__field { display: grid; gap: 8px; }
.form__label { font-size: var(--fs-small); font-weight: 500; color: var(--text); padding: 0; }
.input {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  background: var(--surface-1); border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color 0.2s, background-color 0.2s;
}
textarea.input { resize: vertical; min-height: 120px; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b1a7' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.input:hover { border-color: var(--text-3); }
.input:focus { outline: none; border-color: var(--orange); background: var(--surface-2); }
.input:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.has-error .input { border-color: var(--error); }
.form__error { font-size: var(--fs-small); color: var(--error); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__choice { display: flex; flex-wrap: wrap; gap: 10px; }
.form__choice legend { width: 100%; margin-bottom: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); font-size: var(--fs-small); transition: border-color 0.2s, background-color 0.2s; }
.choice span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text-3); transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.choice input:checked + span { border-color: var(--orange); background: var(--orange-wash); }
.choice input:checked + span::before { border-color: var(--orange); background: var(--orange); box-shadow: inset 0 0 0 2px var(--surface-1); }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface-1); }
.notice .icon { margin-top: 3px; color: var(--ok); }
.notice--ok { border-color: rgba(127, 209, 160, 0.4); }
.notice--error { border-color: rgba(255, 138, 122, 0.5); color: var(--text); margin-bottom: 18px; }
.notice:focus { outline: none; }

/* ---------- Booking block (includes/book.php) ---------- */
.book { padding-bottom: calc(var(--section) * 0.9); }
.book__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.book__call, .book__form-wrap { padding-top: 28px; border-top: 1px solid var(--line-strong); }
.book__h { font-size: var(--fs-h3); margin-bottom: 14px; }
.book__call p { color: var(--text-2); margin-bottom: 26px; max-width: 30ch; }
.book__call .book__direct { margin: 32px 0 6px; font-size: var(--fs-small); color: var(--text-3); }
.book__direct-list { display: grid; justify-items: start; gap: 2px; }
.book__direct-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--text-2); text-decoration: none; }
.book__direct-list a:hover { color: var(--white); }
.flow-node--end { width: calc(var(--node) + 6px); height: calc(var(--node) + 6px); left: calc(var(--rail-x) - var(--rail) - (var(--node) + 6px) / 2); top: calc(var(--fs-h2) * 0.52 - (var(--node) + 6px) / 2); }
@media (max-width: 860px) { .book__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 40px; background: var(--ground); position: relative; z-index: 3; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px 64px; align-items: start; }
.site-footer__brand img { width: 220px; }
.site-footer__brand p { margin-top: 16px; color: var(--text-2); max-width: 30ch; }
.site-footer__brand .site-footer__area { margin-top: 8px; font-size: var(--fs-small); color: var(--text-3); max-width: 36ch; }
.site-footer__contact { margin-top: 20px; font-style: normal; display: grid; justify-items: start; gap: 2px; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--text-2); text-decoration: none; }
.site-footer__contact a:hover { color: var(--white); }
.site-footer__nav ul { display: grid; gap: 4px; }
.site-footer__nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--text-2); text-decoration: none; }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--text-3); }
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: 1fr; } }
