.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--color-line);
  background: rgba(3, 10, 8, 0.95);
  backdrop-filter: blur(14px);
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  border-bottom-color: rgba(245, 240, 229, 0.12);
  background: linear-gradient(180deg, rgba(2, 7, 6, 0.78), rgba(2, 7, 6, 0.28) 72%, transparent);
  backdrop-filter: none;
}

.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.flag-icon {
  display: block;
  width: 26px;
  height: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.flag-icon--inline {
  display: inline-block;
  width: 20px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -2px;
}

.language-switcher {
  position: relative;
}

.language-switcher--desktop {
  display: flex;
  align-items: center;
}

.language-switcher--mobile {
  display: none;
}

.language-switcher__trigger {
  display: none;
}

.language-switcher__options {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(2, 7, 6, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switcher a,
.language-switcher__trigger {
  min-width: 42px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--color-ink-muted);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.language-switcher a {
  display: inline-flex;
}

.language-switcher a:hover,
.language-switcher a[aria-current="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  color: #08120e;
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  background: var(--color-warm-bright);
  border: 1px solid rgba(255, 238, 202, 0.78);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  box-shadow: var(--shadow-button);
  transform: translateY(0);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  cursor: pointer;
}

.button::before {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: -1;
  border: 1px solid rgba(85, 44, 16, 0.22);
  clip-path: inherit;
}

.button:hover {
  background: #ffd58c;
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--color-warm-dark), 0 18px 34px rgba(0, 0, 0, 0.3);
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--color-warm-dark), 0 9px 20px rgba(0, 0, 0, 0.25);
}

.button--small {
  min-height: 42px;
  padding: 10px 17px;
  font-size: var(--step--1);
}

.button--plain {
  color: var(--color-ink);
  background: transparent;
  border-color: var(--color-line-strong);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.38);
}

.button--plain:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.42), 0 18px 34px rgba(0, 0, 0, 0.24);
}

.portrait-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 6vw, 70px);
}

.portrait-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 24px 20px 26px;
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.portrait-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--color-cold);
  opacity: 0.28;
}

.portrait-flag {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 31px;
  place-items: center;
  background: rgba(2, 7, 6, 0.7);
  border: 1px solid var(--color-line);
}

.portrait-flag .flag-icon {
  width: 25px;
  height: 17px;
}

.portrait-silhouette {
  position: relative;
  width: min(140px, 68%);
  aspect-ratio: 1 / 1.03;
  margin: 8px auto 22px;
}

.portrait-silhouette::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #253c35;
  border: 1px solid rgba(245, 240, 229, 0.08);
}

.portrait-silhouette::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 58%;
  border-radius: 48% 48% 6px 6px;
  background: #20362f;
  border: 1px solid rgba(245, 240, 229, 0.08);
}

.portrait-card h3 {
  position: relative;
  font-size: var(--step-1);
}

.portrait-card p {
  position: relative;
  margin-top: 7px;
  color: var(--color-ink-soft);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.signup-card {
  width: min(100%, 780px);
  margin: clamp(36px, 5vw, 58px) auto 0;
  padding: clamp(24px, 4vw, 40px);
  text-align: left;
  background: var(--color-bg-card);
  border: 1px solid var(--color-line-strong);
  box-shadow: var(--shadow-soft);
}


.signup-card--embed {
  padding: clamp(18px, 3vw, 30px);
  overflow: hidden;
}

.signup-card--embed iframe {
  display: block;
  width: 100%;
  min-height: 120px;
  border: 0;
  background: transparent;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.signup-card label {
  display: grid;
  gap: 8px;
  color: var(--color-ink);
  font-size: var(--step--1);
  font-weight: 850;
}

.signup-card input[type="text"],
.signup-card input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  color: var(--color-ink);
  background: var(--color-bg-field);
  border: 1px solid var(--color-line-strong);
  border-radius: 0;
}

.signup-card input::placeholder {
  color: rgba(245, 240, 229, 0.4);
}

.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 11px !important;
  margin: 18px 0 22px;
  color: var(--color-ink-muted) !important;
  font-weight: 650 !important;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--color-warm);
}

.form-note {
  margin-top: 16px;
  font-size: var(--step--1);
  text-align: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  color: var(--color-ink-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-ink);
}
