/* Cont.: modal, header, nav, controls · Landing v2 */
}

.accordion__panel {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: var(--measure);
}

.accordion__item.is-open .accordion__panel {
  display: block;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: var(--safe-t) var(--pad-x) calc(1rem + var(--safe-b));
}

.modal-root.is-open {
  display: flex;
}

.modal-root__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(90dvh, 720px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-modal);
  padding: 1.75rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal__close span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
}

.modal__close span:first-child {
  transform: rotate(45deg);
}

.modal__close span:last-child {
  transform: rotate(-45deg);
}

.modal__title {
  font-size: 1.375rem;
  margin-bottom: 0.35rem;
  padding-right: 2rem;
}

.modal__sub {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.modal__context {
  font-size: 0.8125rem;
  color: var(--muted);
  background: var(--canvas);
  padding: 0.75rem 0.875rem;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
}

.modal__success-icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--success);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--success);
  font-size: 1.125rem;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: auto;
  padding: calc(12px + var(--safe-t)) clamp(12px, 2.5vw, 32px) 0;
  background: transparent;
  border: 0;
  pointer-events: none;
}

.site-header__inner {
  pointer-events: auto;
  height: auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  background: rgba(22, 24, 26, 0.38);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  backdrop-filter: blur(22px) saturate(1.35);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(247, 246, 244, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 28px rgba(22, 24, 26, 0.12);
  transition:
    background 320ms var(--ease-reveal),
    border-color 320ms var(--ease-reveal),
    box-shadow 320ms var(--ease-reveal),
    -webkit-backdrop-filter 320ms var(--ease-reveal),
    backdrop-filter 320ms var(--ease-reveal);
}

.site-header.is-scrolled .site-header__inner {
  background: rgba(22, 24, 26, 0.72);
  border-color: rgba(247, 246, 244, 0.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  backdrop-filter: blur(28px) saturate(1.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 36px rgba(22, 24, 26, 0.2);
}

.site-header .brand {
  color: var(--cream);
  padding-left: clamp(0.35rem, 1vw, 0.75rem);
}

.site-header .brand:hover,
.site-header .brand:focus-visible {
  color: var(--accent);
}

.site-header .brand__desc {
  color: rgba(247, 246, 244, 0.6);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.59375rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand__name {
  font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.brand__desc {
  font-size: 0.6875rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: auto;
}

.site-header__actions .btn--primary {
  display: none;
}

.site-header__nav {
  display: none;
}

.site-header__tel {
  display: none;
}

.site-header__tel-icon {
  width: 46px;
  height: 46px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-button);
  color: var(--accent-button-text);
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease);
}

.site-header__tel-icon:hover {
  background: var(--accent-button-hover);
  color: var(--accent-button-text);
}

.site-header__tel-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.burger {
  width: 46px;
  height: 46px;
  border: 0;
  background: rgba(247, 246, 244, 0.12);
  border-radius: var(--radius-pill);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.burger__lines {
  width: 16px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.burger__lines span {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--cream);
}

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--ink);
  color: var(--cream);
  padding: calc(var(--safe-t) + 1.375rem) clamp(1.25rem, 6vw, 2.75rem)
    calc(var(--safe-b) + 1.875rem);
  display: none;
  flex-direction: column;
}

.nav-sheet.is-open {
  display: flex;
}

.nav-sheet__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
}

.nav-sheet .brand__name {
  font-size: 1.5625rem;
  color: var(--cream);
}

.nav-sheet .brand:hover .brand__name,
.nav-sheet .brand:focus-visible .brand__name {
  color: var(--accent);
}

.nav-sheet .brand__desc {
  color: rgba(247, 246, 244, 0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.65625rem;
}

.nav-sheet .modal__close {
  position: static;
  border: 1px solid rgba(247, 246, 244, 0.3);
  border-radius: var(--radius);
}

.nav-sheet .modal__close span {
  background: var(--cream);
}

.nav-sheet__list {
  list-style: none;
  padding: 0;
  margin: clamp(2rem, 8vh, 4rem) 0 0;
  display: flex;
  flex-direction: column;
}

.nav-sheet__list a {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  min-height: auto;
  padding: 0.9375rem 0;
  font-size: clamp(1.375rem, 6vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
  border-bottom: 1px solid rgba(247, 246, 244, 0.14);
}

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

.nav-sheet__footer {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.nav-sheet__footer .link-tel {
  color: var(--cream);
  font-size: 1.1875rem;
}

@media (min-width: 768px) {
  .site-header__tel-icon {
    display: none;
  }

  .site-header__nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    margin: 0 auto;
  }

  .site-header__nav a {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(247, 246, 244, 0.82);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-pill);
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  }

  .site-header__nav a:hover {
    background: rgba(247, 246, 244, 0.14);
    color: var(--cream);
  }

  .site-header__tel {
    display: inline-flex;
    align-items: center;
    gap: 0.5625rem;
    background: var(--accent-button);
    color: var(--accent-button-text);
    border-radius: var(--radius-pill);
    min-height: 46px;
    padding: 0.75rem 1.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
  }

  .site-header__tel:hover {
    background: var(--accent-button-hover);
    color: var(--accent-button-text);
    transform: translateY(-1px);
    text-decoration: none;
  }

  .site-header__tel svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .burger {
    display: none;
  }

  .modal-root {
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .site-header__inner {
    padding-right: 0.55rem;
  }
}
