.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: 82px;
  color: var(--ink-950);
  transition:
    min-height var(--duration-med) var(--ease-out),
    color var(--duration-med) var(--ease-out);
}

.site-header.is-scrolled,
.site-header.is-open {
  min-height: 74px;
  color: var(--ink-950);
}

.header__inner {
  display: flex;
  width: min(calc(100% - 48px), var(--container));
  min-height: 58px;
  margin-top: 12px;
  padding: 0 16px 0 18px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 22px;
  background: rgba(244, 248, 252, 0.84);
  box-shadow: 0 16px 48px rgba(3, 15, 29, 0.12);
  backdrop-filter: blur(12px);
  transition:
    min-height var(--duration-med) var(--ease-out),
    margin-top var(--duration-med) var(--ease-out),
    background var(--duration-med) var(--ease-out),
    border-color var(--duration-med) var(--ease-out),
    box-shadow var(--duration-med) var(--ease-out);
}

.site-header.is-scrolled .header__inner,
.site-header.is-open .header__inner {
  min-height: 54px;
  margin-top: 10px;
  border-color: rgba(6, 20, 38, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(3, 15, 29, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 137px;
  width: 137px;
  height: 38px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
  box-shadow: none;
  transition:
    opacity var(--duration-fast) var(--ease-out);
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand {
  width: 137px;
  height: 38px;
}

.brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.nav__mobile-lang {
  display: none;
}

.nav__link {
  position: relative;
  flex: 0 0 auto;
  border-radius: 12px;
  padding: 9px 11px;
  color: currentColor;
  font-size: 0.94rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: nowrap;
  opacity: 0.78;
  transition:
    background var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  background: rgba(7, 79, 159, 0.07);
  opacity: 1;
}

.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active,
.site-header.is-open .nav__link:hover,
.site-header.is-open .nav__link.is-active {
  background: rgba(7, 79, 159, 0.08);
}

.header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
}

.menu-button {
  display: none;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 14px;
  background: transparent;
  color: currentColor;
}

.menu-button__line {
  position: relative;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-button__line::before,
.menu-button__line::after {
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-button__line::before {
  top: -6px;
}

.menu-button__line::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 740;
  line-height: 1;
  transition:
    transform var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--blue-600);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--blue-700);
}

.btn--secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper);
}

.btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
}

.btn--outline {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-950);
}

.btn--outline:hover {
  border-color: rgba(7, 79, 159, 0.32);
  background: var(--paper);
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.site-header.is-scrolled .lang-switch,
.site-header.is-open .lang-switch {
  border-color: var(--line);
  background: rgba(6, 20, 38, 0.04);
}

.lang-switch__button {
  min-width: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  padding: 7px 9px;
  font-size: 0.74rem;
  font-weight: 760;
  opacity: 0.58;
}

.lang-switch__button.is-active {
  background: var(--paper);
  color: var(--ink-950);
  opacity: 1;
}

.site-header.is-scrolled .lang-switch__button.is-active,
.site-header.is-open .lang-switch__button.is-active {
  background: var(--ink-950);
  color: var(--paper);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink-700);
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 680;
}

.chip::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan-400);
  content: "";
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(6, 20, 38, 0.1);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(245, 249, 252, 0.84)),
    radial-gradient(circle at 22% 18%, rgba(74, 181, 207, 0.24), transparent 34%),
    radial-gradient(circle at 86% 74%, rgba(7, 79, 159, 0.12), transparent 32%);
  box-shadow: var(--shadow-soft);
}

.media-frame::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(6, 20, 38, 0.08);
  border-radius: calc(var(--radius-xl) - 8px);
  content: "";
  pointer-events: none;
}

.media-frame__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__placeholder {
  display: grid;
  min-height: 100%;
  align-content: space-between;
  gap: 36px;
  padding: 28px;
}

.media-frame__label {
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(6, 20, 38, 0.86);
  color: var(--paper);
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-frame__caption {
  max-width: 360px;
  color: var(--ink-700);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
}

.media-lines {
  display: grid;
  gap: 12px;
  width: min(340px, 100%);
}

.media-lines span {
  height: 1px;
  transform-origin: left;
  background: linear-gradient(90deg, rgba(7, 79, 159, 0.34), transparent);
}

.media-lines span:nth-child(1) {
  width: 86%;
}

.media-lines span:nth-child(2) {
  width: 62%;
}

.media-lines span:nth-child(3) {
  width: 74%;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  transition:
    transform var(--duration-med) var(--ease-out),
    border-color var(--duration-med) var(--ease-out),
    box-shadow var(--duration-med) var(--ease-out);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 79, 159, 0.22);
  box-shadow: var(--shadow-hover);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--ink-800);
  font-size: 0.9rem;
  font-weight: 760;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-950);
  padding: 13px 14px;
  font-size: 1rem;
  line-height: 1.45;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.form-field select {
  min-height: 54px;
  appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-600) 50%),
    linear-gradient(135deg, var(--ink-600) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-repeat: no-repeat;
  background-size:
    6px 6px,
    6px 6px;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(39, 135, 222, 0.72);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(39, 135, 222, 0.11);
  outline: 0;
}

.form-field.is-invalid input,
.form-field.is-invalid textarea,
.form-field.is-invalid select {
  border-color: rgba(214, 75, 85, 0.72);
}

.field-error {
  min-height: 18px;
  color: var(--red-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

body.is-modal-open {
  overflow: hidden;
}

.privacy-field {
  gap: 8px;
}

.privacy-field__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-800);
  line-height: 1.45;
}

.privacy-field__label input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 0;
  background: var(--paper);
  accent-color: var(--blue-600);
}

.privacy-field__text {
  color: var(--ink-600);
  font-size: 0.88rem;
  line-height: 1.62;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.privacy-field__trigger {
  display: inline-flex;
  border: 0;
  background: transparent;
  color: var(--blue-700);
  padding: 0 0 0 6px;
  font: inherit;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.privacy-field__trigger:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(39, 135, 222, 0.2);
  outline-offset: 3px;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding: 20px;
}

.privacy-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(74, 181, 207, 0.18), transparent 28rem),
    rgba(3, 12, 24, 0.72);
  backdrop-filter: blur(10px);
}

.privacy-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(720px, calc(100% - 32px));
  max-height: calc(100svh - 48px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(3, 12, 24, 0.36);
  color: var(--ink-950);
}

.privacy-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-700);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.privacy-modal__eyebrow {
  margin: 24px 68px 8px 24px;
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-modal__title {
  margin: 0 68px 10px 24px;
  color: var(--ink-950);
  font-size: clamp(1.36rem, 2.6vw, 1.86rem);
  font-weight: 800;
  line-height: 1.2;
}

.privacy-modal__desc {
  margin: 0 24px 18px;
  color: var(--ink-600);
  font-size: 0.95rem;
  line-height: 1.68;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.privacy-modal__content {
  min-height: 0;
  display: grid;
  gap: 16px;
  max-height: min(50vh, 480px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-block: 1px solid var(--line);
  padding: 20px 24px;
}

.privacy-modal__section {
  display: grid;
  gap: 10px;
}

.privacy-modal__section h4 {
  color: var(--ink-950);
  font-size: 1rem;
  font-weight: 800;
}

.privacy-modal__section p,
.privacy-modal__item dd,
.privacy-modal__bullets li {
  color: var(--ink-600);
  font-size: 0.9rem;
  line-height: 1.64;
  overflow-wrap: break-word;
  word-break: keep-all;
}

.privacy-modal__list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(247, 249, 251, 0.72);
}

.privacy-modal__item {
  display: grid;
  grid-template-columns: minmax(140px, 0.32fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.privacy-modal__item + .privacy-modal__item {
  border-top: 1px solid var(--line);
}

.privacy-modal__item dt {
  color: var(--ink-950);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.55;
}

.privacy-modal__bullets {
  display: grid;
  gap: 8px;
}

.privacy-modal__bullets li {
  position: relative;
  padding-left: 14px;
}

.privacy-modal__bullets li::before {
  position: absolute;
  top: 0.75em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--blue-600);
  content: "";
}

.privacy-modal__actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 16px 24px 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .privacy-modal {
    align-items: flex-end;
    padding: 8px;
  }

  .privacy-modal__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    max-height: calc(100svh - 16px);
    border-radius: 24px 24px 0 0;
    background: var(--paper);
    overflow: hidden;
    isolation: isolate;
  }

  @supports (height: 100dvh) {
    .privacy-modal__panel {
      max-height: calc(100dvh - 16px);
    }
  }

  .privacy-modal__eyebrow {
    margin: 24px 64px 10px 20px;
  }

  .privacy-modal__title {
    margin: 0 64px 12px 20px;
  }

  .privacy-modal__desc {
    margin-inline: 20px;
  }

  .privacy-modal__content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 56vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 0;
    padding: 18px 20px;
    padding-bottom: 22px;
  }

  .privacy-modal__item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px;
  }

  .privacy-modal__actions {
    flex: 0 0 auto;
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -12px 28px rgba(6, 20, 38, 0.08);
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .privacy-modal__actions::before {
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--paper));
    content: "";
    pointer-events: none;
  }

  .privacy-modal__actions .btn {
    min-height: 52px;
  }
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.74);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-block: 46px;
}

.footer__brand {
  display: grid;
  gap: 16px;
  max-width: 680px;
}

.footer__brand-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer__name {
  color: var(--paper);
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: 0.03em;
}

.footer__logo {
  width: 92px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 0.9;
}

.footer__wordmark {
  color: var(--paper);
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer__note {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
}

.footer__aside {
  display: grid;
  justify-items: end;
  gap: 14px;
  min-width: 180px;
}

.footer__email {
  color: var(--paper);
  font-weight: 760;
}
