@font-face {
  font-family: Tektur;
  src: url("./tektur-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+1C80-1C8A, U+20B4;
}

@font-face {
  font-family: Tektur;
  src: url("./tektur-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050807;
  --surface: rgba(6, 12, 11, .86);
  --surface-solid: #08100e;
  --surface-soft: rgba(255, 255, 255, .035);
  --line: rgba(226, 245, 241, .15);
  --line-strong: rgba(226, 245, 241, .24);
  --text: #f0f4f3;
  --muted: #a4aeac;
  --subtle: #737e7c;
  --accent: #45d7c8;
  --accent-soft: rgba(69, 215, 200, .12);
  --accent-ink: #061210;
  --primary: #eef0f2;
  --primary-hover: #ffffff;
  --primary-ink: #0a0b0d;
  --danger: #ff8e96;
  --success: #70dfae;
  --radius: 16px;
  --max: 1500px;
  font-family: Tektur, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: transparent;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.contact-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg) url("./cabinet-auth-bg.webp") center / cover no-repeat;
}

.contact-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .94;
  filter: saturate(.82) contrast(1.1) brightness(.88);
  transform: scale(1.02);
}

.contact-background-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 7, .58) 0%, rgba(5, 8, 7, .28) 48%, rgba(5, 8, 7, .56) 100%),
    linear-gradient(180deg, rgba(5, 8, 7, .08) 0%, rgba(5, 8, 7, .28) 68%, rgba(5, 8, 7, .64) 100%);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 200;
  width: min(1380px, calc(100% - 36px));
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 8px 9px 8px 14px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 15px;
  background: linear-gradient(rgba(40, 42, 48, .6), rgba(12, 13, 16, .5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 18px 54px -30px rgba(0, 0, 0, .95);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text);
  text-decoration: none;
  padding: 4px 5px 4px 2px;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: .005em;
}

.brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: block;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.header-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: #9c9c9d;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .18s ease, background-color .18s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--text);
  background: var(--surface-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.language-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 3px;
}

.language-switch button {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}

.language-switch button:hover { color: var(--text); }
.language-switch button.active {
  border-color: rgba(255, 255, 255, .78);
  background: var(--primary);
  color: var(--primary-ink);
}

.login-button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: var(--primary-ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 18px -8px rgba(0, 0, 0, .5);
  transition: transform .2s ease, box-shadow .2s ease;
}

.login-button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.login-button:active { transform: translateY(1px); }

main {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.contact-main {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 132px 0 92px;
}

.contact-layout {
  width: 100%;
  display: grid;
  grid-template-areas: "info form";
  grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
  align-items: center;
  gap: clamp(70px, 10vw, 170px);
}

.contact-info {
  grid-area: info;
  max-width: 690px;
  padding: 24px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .18em;
}

.eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.eyebrow b { font-weight: 750; }

.contact-info h1 {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: clamp(50px, 6vw, 82px);
  font-weight: 650;
  line-height: .99;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.contact-summary {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(230, 238, 236, .7);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}

.contact-divider {
  width: min(100%, 540px);
  height: 1px;
  margin: 38px 0 28px;
  background: var(--line);
}

.direct-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.direct-text {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.email-link {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 7px 10px 7px 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.email-link:hover,
.email-link:focus-visible {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--accent);
}

.email-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(69, 215, 200, .32);
  border-radius: 9px;
  background: var(--accent-soft);
}

.email-icon svg,
.success-icon svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.email-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.email-copy small {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}

.email-copy strong {
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.contact-form-column {
  grid-area: form;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 28px 80px rgba(1, 5, 4, .34);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.025em;
}

.form-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.support-chat-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-top: 16px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.support-chat-button:hover,
.support-chat-button:focus-visible {
  border-color: rgba(69, 215, 200, .45);
  background: var(--accent-soft);
  color: #dcfffb;
}

#contact-form {
  display: grid;
  gap: 16px;
  padding-top: 22px;
}

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

.field label {
  color: #cbd3d1;
  font-size: 12px;
  font-weight: 650;
}

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 9px;
  outline: 0;
  background: rgba(2, 6, 5, .78);
  color: var(--text);
  font-size: 13px;
  transition: border-color .18s ease, background-color .18s ease;
}

.field input {
  height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 126px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.55;
}

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

.field input:hover,
.field textarea:hover { border-color: var(--line-strong); }

.field input:focus,
.field textarea:focus {
  border-color: rgba(69, 215, 200, .7);
  background: rgba(3, 10, 9, .94);
}

.field input.invalid { border-color: rgba(255, 142, 150, .75); }

.field-error {
  min-height: 2px;
  color: var(--danger);
  font-size: 11px;
}

.field-error:not(:empty) { min-height: 15px; }

.field-hint {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.45;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-runtime { width: 100%; min-height: 0; }
.turnstile-runtime:has(#turnstile-widget:empty) { display: none; }
#turnstile-widget { width: 100%; min-height: 0; }
#turnstile-widget:empty { display: none; }

.turnstile-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-actions { display: grid; gap: 10px; }

.submit-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(105deg, #2fc7ba 0%, #66e5d9 48%, #35c8bc 100%);
  background-size: 220% 100%;
  color: #04100e;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  animation: contact-button-flow 5s ease-in-out infinite;
  transition: transform .18s ease, opacity .18s ease, background-color .18s ease;
}

.submit-button:hover:not(:disabled) { transform: translateY(-1px); }
.submit-button:active:not(:disabled) { transform: translateY(1px); }
.submit-button:disabled { opacity: .6; cursor: wait; animation-play-state: paused; }

@keyframes contact-button-flow {
  0%, 100% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
}

.form-note {
  margin: 0;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.form-status { min-height: 0; color: var(--danger); font-size: 11px; }
.form-status:not(:empty) { min-height: 15px; }

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
}

.success-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 5, .82);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  cursor: default;
}

.success-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-solid);
  box-shadow: inset 0 1px rgba(255, 255, 255, .045), 0 30px 90px rgba(1, 5, 4, .55);
  text-align: center;
}

.success-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.success-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 1px solid rgba(112, 223, 174, .36);
  border-radius: 12px;
  background: rgba(112, 223, 174, .1);
  color: var(--success);
}

.success-icon svg { width: 25px; stroke-width: 2; }
.success-dialog h2 { margin: 18px 0 0; font-size: 23px; }
.success-dialog p { margin: 10px auto 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.success-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 23px; }

.success-actions button {
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.success-actions .success-done {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
}

body.modal-open { overflow: hidden; }

footer {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 60px 24px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 60px;
  margin: 0 auto;
}

footer .brand { font-size: 15px; }
footer .brand-mark { width: 29px; height: 29px; }
.footer-brand p { max-width: 320px; margin: 15px 0 0; color: var(--subtle); font-size: 12px; line-height: 1.55; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-links strong { margin-bottom: 4px; color: #cbd3d1; font-size: 12px; }
.footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
  color: #626c69;
  font-size: 10px;
}

@media (max-width: 1040px) {
  .header-nav { display: none; }
  .header-actions { margin-left: auto; }
  .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(370px, 430px); gap: 54px; }
}

@media (max-width: 860px) {
  .contact-main { min-height: auto; padding: 126px 0 80px; }
  .contact-layout {
    width: min(680px, 100%);
    grid-template-areas: "info" "form";
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    margin: 0 auto;
  }
  .contact-info { max-width: none; padding: 36px 0 0; }
  .contact-info h1 { max-width: 620px; font-size: clamp(46px, 9vw, 68px); }
  .contact-summary { max-width: 600px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { grid-column: auto; }
}

@media (max-width: 620px) {
  main { width: calc(100% - 24px); }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 10px 8px 10px 12px;
    border-radius: 14px;
  }

  .site-header .brand { gap: 8px; font-size: 15px; }
  .site-header .brand-mark { width: 28px; height: 28px; }
  .header-actions { gap: 7px; }
  .language-switch button { width: 32px; height: 30px; }
  .login-button { height: 34px; padding: 0 12px; font-size: 12px; }

  .contact-main { padding: 102px 0 64px; }
  .contact-layout { gap: 26px; }
  .contact-info { padding-top: 20px; }
  .eyebrow { font-size: 10px; }
  .eyebrow span { width: 25px; }
  .contact-info h1 { margin-top: 19px; font-size: clamp(39px, 12vw, 52px); }
  .contact-summary { margin-top: 18px; font-size: 14px; }
  .contact-divider { margin: 27px 0 22px; }
  .direct-text { font-size: 12px; }

  .contact-form-column { padding: 22px 18px; border-radius: 13px; }
  .form-heading h2 { font-size: 21px; }
  .form-heading p { max-width: 270px; }
  .support-chat-button { width: 100%; }
  .field-hint { align-items: flex-start; flex-direction: column; gap: 4px; }
  .success-actions { grid-template-columns: 1fr; }

  footer { padding: 48px 20px 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 38px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 370px) {
  .site-header .brand span { display: none; }
  .contact-info h1 { font-size: 37px; }
  .footer-links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-background video { display: none; }
  .submit-button { animation: none; background: var(--accent); }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
