@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@400;500;600;700;800;900&display=swap");

:root, .application-page {
  --paper: #181718;
  --surface: #242123;
  --surface-tint: #2d2322;
  --surface-warm: #372823;
  --ink: #f8eee8;
  --muted: #c9b7ae;
  --orange: #ff925e;
  --action: #ff783e;
  --action-ink: #29150d;
  --line: #4c3d39;
  --card-radius: 16px;
  --button-radius: 8px;
}

[hidden] { display: none !important; }

.btn.primary, .application-page .btn.primary {
  background: linear-gradient(120deg, #ff984a, var(--action) 70%);
  border-color: transparent;
  color: var(--action-ink);
  font-weight: 800;
  box-shadow: 0 5px 14px #b84c2427;
}
.btn.primary span { transition: transform .2s ease; }
.btn.primary:hover, .application-page .btn.primary:hover { box-shadow: 0 7px 18px #b84c2442; }
.btn.primary:hover span { transform: translateX(3px); }
.btn.secondary { background: var(--surface); color: var(--ink); }
.btn, .small-btn { border-radius: var(--button-radius); }
.small-btn { border-color: #ec996c; background: #ffe9d9; color: var(--action-ink); font-weight: 700; }
.small-btn:hover { background: #ffddc6; }
button.btn { cursor: pointer; justify-content: center; }
button.btn:disabled { cursor: wait; opacity: .7; transform: none; }

.hero {
  --hero-paper: 255 246 232;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(500px, 46vw, 590px);
  padding: 48px clamp(26px, 5vw, 76px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: rgb(var(--hero-paper));
  color: var(--ink);
}
.hero-background {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  display: block;
  width: 76%;
  height: 100%;
  object-fit: cover;
  object-position: right 51%;
  filter: sepia(.12) saturate(1.2) brightness(1.16);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(var(--hero-paper)) 27%, rgb(var(--hero-paper) / .96) 42%,
    rgb(var(--hero-paper) / .81) 52%, rgb(var(--hero-paper) / .27) 65%, transparent 78%);
}
.hero-copy { max-width: min(620px, 72%); }
.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(45px, 5.3vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.052em;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero .intro { margin: 0; color: var(--ink); }
.hero .note { color: var(--muted); margin-bottom: 0; }

.mode-tile { min-width: 0; }
.mode-tile .mode { height: 100%; min-height: 0; padding: clamp(14px, 1.8vw, 24px); background: var(--surface); border-radius: var(--card-radius); }
.mode-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0 18px;
  border-radius: 9px;
  background: #d9d1c4;
}
.mode-tile .mode p, .mode-top { color: var(--muted); }

.process, .cta {
  background: var(--surface-tint);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
}
.process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #fff0db, #ffe1c6 93%);
}
.process::before {
  position: absolute;
  z-index: -1;
  top: -250px;
  right: -150px;
  width: 540px;
  height: 540px;
  border: 1px solid #e9985755;
  border-radius: 50%;
  box-shadow: 0 0 0 24px #e998571f, 0 0 0 62px #e9985716, 0 0 0 105px #e9985710;
  content: "";
}
.process-head { align-items: center; gap: 20px; }
.process h2 { font-size: clamp(34px, 5.3vw, 58px); line-height: 1.03; margin: 0 0 13px; }
.process-head p { max-width: 455px; margin: 0; color: var(--muted); line-height: 1.5; }
.process .steps { list-style: none; padding: 0; margin: 28px 0 0; gap: 12px; }
.process .step {
  min-width: 0;
  padding: 18px;
  border: 1px solid #edcdb5;
  border-radius: 12px;
  background: #fffaf2da;
}
.process .num {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  margin: 0 0 14px;
  border-radius: 50%;
  background: #ffe1c6;
  color: var(--orange);
  font-size: 17px;
  font-weight: 800;
}
.calc-badge { color: var(--orange); }
.process .step p, .calc-result small, .calc-hourly, .cta p { color: var(--muted); }
.process .step p { margin-bottom: 0; }
.calc-panel, .channel { background: var(--surface); border-color: var(--line); border-radius: var(--card-radius); }
.calc-result { background: var(--surface-tint); color: var(--ink); }
.calc-week { border-color: var(--line); }
.cta { background: var(--surface-warm); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .mode-tile .mode { transition: transform 180ms ease-out, box-shadow 180ms ease-out; }
  .mode-tile:hover .mode {
    transform: perspective(850px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-3px);
    box-shadow: 0 14px 26px #22221f19;
  }
}

.news { padding-bottom: 32px; }
.news-head, .cooperation-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.carousel-controls { display: flex; gap: 10px; flex-shrink: 0; }
.carousel-controls button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.carousel-controls button:disabled { opacity: .5; cursor: default; }
.news-track, .cooperation-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 5px;
}
.news-track.has-multiple { grid-auto-columns: 88%; }
.cooperation { padding: 48px 0 20px; }
.cooperation-track { grid-auto-columns: clamp(320px, 48%, 560px); }
.cooperation-card {
  --art-start: #ffe7b8;
  --art-end: #ffad60;
  --art-ink: #a54018;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 12px clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  scroll-snap-align: start;
}
.cooperation-card h3 { max-width: 22ch; margin: 16px 7px 9px; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1; }
.cooperation-card p { margin: 0 7px; max-width: 42ch; color: var(--muted); line-height: 1.5; }
.cooperation-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(118px, 13vw, 177px);
  overflow: hidden;
  border-radius: 11px;
  background: linear-gradient(124deg, var(--art-start), var(--art-end));
  color: var(--art-ink);
}
.cooperation-art::before, .cooperation-art::after {
  position: absolute;
  z-index: -1;
  width: 220px;
  height: 220px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: .25;
}
.cooperation-art::before { top: -120px; right: -44px; box-shadow: 0 0 0 26px #fff5; }
.cooperation-art::after { bottom: -162px; left: -35px; box-shadow: 0 0 0 18px #fff5; }
.cooperation-art span {
  display: grid;
  min-width: 1.4em;
  min-height: 1.05em;
  place-items: center;
  padding: 0 .19em;
  border: 1px solid #fff8;
  border-radius: 16px;
  background: #fff6;
  box-shadow: 0 10px 27px #7239102b;
  font-size: clamp(54px, 7.4vw, 108px);
  font-weight: 800;
  line-height: 1;
  transform: rotate(-10deg);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cooperation-art span { transition: transform .25s ease; }
  .cooperation-card:hover .cooperation-art span { transform: rotate(-5deg) translateY(-4px); }
}
.cooperation-card > a { margin: 14px 7px 0; }
.cooperation-card > a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.cooperation-cover .cooperation-art {
  background: #d98e5f url("media/courier-bike.webp") center 7% / cover;
}
.cooperation-cover .cooperation-art::before, .cooperation-cover .cooperation-art::after { display: none; }
.cooperation-support { --art-start: #ffe9d8; --art-end: #ff8e6d; --art-ink: #932921; }
.cooperation-support .cooperation-art span { font-size: clamp(43px, 5.7vw, 80px); }
.cooperation-profile { --art-start: #fff2b7; --art-end: #f6c454; --art-ink: #7d4a15; }
.cooperation-bonus { --art-start: #ffddc5; --art-end: #ff9870; --art-ink: #992e18; }
.cooperation-draw { --art-start: #ffe9cc; --art-end: #ffc468; --art-ink: #9d4519; }
.cooperation-last { --art-start: #ffd7ad; --art-end: #ff8648; --art-ink: #8e2d15; }
.cooperation-apply { margin-top: 20px; }
.news-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(155px, 245px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 4vw, 48px);
  padding: clamp(16px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
  scroll-snap-align: start;
}
.news-cover { width: 100%; height: auto; display: block; border-radius: 10px; }
.news-results .news-cover { aspect-ratio: 3 / 4; object-fit: cover; }
.news-content { max-width: 650px; }
.news-content h3 { font-size: clamp(21px, 3.4vw, 31px); }
.news-content p { line-height: 1.65; margin: 0 0 12px; }
.news-content a, .application a { text-decoration: underline; text-underline-offset: 3px; }
.news-video { padding: 12px 0 0; border: 0; }
.news-video summary { font-weight: 700; min-height: 44px; align-items: center; }
.news-video video { display: block; width: 100%; height: auto; background: #151515; border-radius: 8px; }

.application { padding-top: 28px; }
.application-page {
  margin: 0 auto;
  max-width: 880px;
  padding: 0 clamp(16px, 5vw, 42px) 44px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 "Golos Text", Arial, sans-serif;
}
.application-page *, .application-page { box-sizing: border-box; }
.application-page a { color: inherit; }
.application-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.application-header a { text-underline-offset: 3px; }
.application-back { display: inline-flex; align-items: center; gap: 10px; }
.application-back img { border-radius: var(--button-radius); }
.application-page .section-head { margin: 0 0 24px; }
.application-page h1 { margin: 0; font-size: clamp(34px, 6vw, 53px); line-height: 1.08; letter-spacing: -.04em; }
.application-page .section-head p { margin: 12px 0 0; max-width: 54ch; }
.application-page h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.application-page .btn {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink);
}
.application-form { background: var(--surface); padding: clamp(16px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--card-radius); }
.application-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.application-grid label { display: grid; align-content: start; gap: 8px; font-weight: 600; }
.application-grid input, .application-grid select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #9b9b91;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
.application-grid select {
  appearance: none;
  padding-right: 32px;
  background-color: var(--paper);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}
.application-form :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.application-grid small, #application-data-use { color: var(--muted); font-weight: 400; font-size: 14px; line-height: 1.5; }
.birthdate-field { position: relative; display: grid; align-content: start; gap: 8px; }
.birthdate-input { position: relative; }
.birthdate-input input { padding-right: 54px; }
.birthdate-toggle { position: absolute; inset: 1px 1px 1px auto; width: 46px; border-radius: 0 7px 7px 0; }
.birthdate-toggle, .birthdate-calendar button { border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.birthdate-toggle::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 13px;
  border: 2px solid currentColor;
  border-top-width: 5px;
  border-radius: 3px;
}
.birthdate-calendar {
  position: absolute;
  z-index: 2;
  top: calc(100% + 8px);
  left: 0;
  width: min(100%, 320px);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px #0002;
}
.calendar-header { display: grid; grid-template-columns: 40px 1fr 40px; margin-bottom: 4px; }
.calendar-header button { min-height: 40px; font-weight: 600; }
.calendar-header button[data-calendar-step] { font-size: 24px; }
.calendar-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calendar-options[data-view="day"] { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-options span { color: var(--muted); padding-block: 6px; font-size: 13px; text-align: center; }
.calendar-options button { min-height: 34px; padding: 2px; font-size: 14px; }
.birthdate-calendar button { border-radius: 6px; }
.birthdate-calendar button:enabled:hover, .birthdate-toggle:hover { background: var(--paper); }
.birthdate-calendar button[aria-current] { font-weight: 700; box-shadow: inset 0 0 0 2px var(--orange); }
.birthdate-calendar button:disabled { opacity: .46; cursor: default; }
.birthdate-calendar button[data-calendar-title]:disabled { opacity: 1; }
.application-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.application-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; line-height: 1.5; }
.application-consent input { flex: 0 0 auto; width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--orange); }
#application-data-use { margin: 8px 0 0 29px; }
#application-data-use a { color: inherit; text-decoration: underline; text-underline-offset: .16em; }
.application-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.application-actions button[type="submit"]:disabled { cursor: not-allowed; }
.application-confirmation {
  padding: clamp(34px, 7vw, 76px) clamp(16px, 4vw, 40px);
  text-align: center;
}
.application-confirmation-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #ff8d4c24;
  color: var(--orange);
}
.application-confirmation-icon::before {
  content: "";
  width: 13px;
  height: 24px;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: translateY(-3px) rotate(45deg);
}
.application-confirmation p { margin: 14px 0 24px; color: var(--muted); }
#application-status:empty { margin: 0; }
#application-status[data-error] { color: #a1240a; }
.privacy-content { max-width: 72ch; line-height: 1.6; }
.privacy-content h1 { overflow-wrap: anywhere; }
.privacy-content h2 { margin: 1.5em 0 .5em; font-size: 1.35rem; }

@media (max-width: 700px) {
  .hero { min-height: 590px; align-items: flex-end; padding: 225px clamp(16px, 5vw, 30px) 24px; }
  .hero-background { width: 100%; height: 61%; object-position: 65% 46%; }
  .hero::before {
    background: linear-gradient(0deg, rgb(var(--hero-paper)) 48%, rgb(var(--hero-paper) / .96) 56%,
      rgb(var(--hero-paper) / .75) 63%, rgb(var(--hero-paper) / .26) 72%, transparent 85%);
  }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: clamp(32px, 9.9vw, 56px); margin: 13px 0 12px; }
  .hero .eyebrow { font-size: 12px; }
  .hero .buttons { margin-top: 17px; gap: 9px; }
  .hero .btn { padding: 13px 14px; gap: 12px; }
  .hero .note { margin-top: 12px; }
  .process-head > a { display: inline-flex; margin-top: 20px; }
  .news-card, .application-grid { grid-template-columns: minmax(0, 1fr); }
  .news-cover { max-width: 240px; }
  .cooperation { padding-top: 35px; }
  .cooperation-track { grid-auto-columns: 89%; }
  .cooperation-art { height: 126px; }
}

@media (max-width: 420px) {
  .cooperation-head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html, .news-track, .cooperation-track { scroll-behavior: auto; }
  .btn, .btn.primary span, .channel { transition: none; }
  .btn:hover, .btn.primary:hover span, .channel:hover { transform: none; }
}

/* React Bits ShinyText */
.shiny-text {
  position: relative;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shiny-text__glow {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: blur(0.14em);
  pointer-events: none;
  user-select: none;
}

/* Dark palette and React interactions */
html { background: var(--paper); color-scheme: dark; }
body:not(.application-page) {
  background: radial-gradient(ellipse 900px 580px at 85% 0%, #2b201b 0%, transparent 78%), var(--paper);
}
.wrap { color: var(--ink); }
.wrap :focus-visible, .application-page :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--action); color: var(--action-ink); }
.hero {
  --hero-paper: 24 23 24;
  box-shadow: 0 18px 50px #0004;
}
.hero-background { filter: saturate(1.13) brightness(.85); }
.hero .btn.secondary { background: #222022; border-color: #5a4d46; }
.hero .btn.secondary:hover, .btn.secondary:hover { background: #302826; }
.small-btn { background: #33241f; border-color: #6e4937; color: #ffbd97; }
.small-btn:hover { background: #442d23; }
.mode .arrow { border-color: #675448; color: var(--orange); }
.mode-photo { background: var(--surface-tint); }
.process { background: linear-gradient(134deg, #211d1f, #37251f 94%); }
.process .step { border-color: #5c4033; background: #211b1c; }
.process .num { background: #472a20; }
.channel:hover, .mode-tile:hover .mode { border-color: #78513d; }
.channel-top, .faq summary::marker { color: var(--orange); }
.cta { background: radial-gradient(ellipse at 80% 10%, #472b22, transparent 75%), #281f1f; }
.cta .btn.primary { background: linear-gradient(120deg, #ff984a, var(--action) 70%); border-color: transparent; }
.news-content p { color: var(--muted); }
.news-content strong, .news-content a { color: var(--ink); }
.news-video summary { color: var(--orange); }
#application-status[data-error] { color: #ff9f83; }

.carousel-controls button:not(:disabled):hover { border-color: #b3704d; background: var(--surface-warm); }
.carousel-controls button { transition: background-color .18s, border-color .18s; }
.cooperation .carousel-controls button:not(:disabled) { border-color: #734b36; background: #392820; }
.cooperation .carousel-controls button:not(:disabled):hover { background: #523326; }
.news-track, .cooperation-track { scrollbar-width: thin; scrollbar-color: #816152 transparent; }
.carousel-progress, .cooperation-progress {
  position: relative;
  height: 4px;
  margin-top: 9px;
  border-radius: 99px;
  background: #422f2a;
  overflow: hidden;
}
.carousel-progress > span, .cooperation-progress > span {
  position: absolute;
  inset-block: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--action), #ffbb79);
}
.calc-options button { min-height: 44px; transition: background-color .18s, border-color .18s; }
.calc-options button:not([aria-pressed="true"]):hover { border-color: #9f684a; }
.calc-options button[aria-pressed="true"] { background: #512e22; border-color: #ef8b58; color: #ffe7d7; }
.calc-total { font-size: clamp(31px, 5vw, 56px); font-variant-numeric: tabular-nums; }
.calc-amount { display: inline-block; }

.menu-slot { display: none; }
.menu-icon { position: relative; display: grid; place-items: center; width: 20px; height: 18px; }
.menu-icon i {
  position: absolute;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-icon i:first-child { transform: translateY(-6px); }
.menu-icon i:last-child { transform: translateY(6px); }
.menu[aria-expanded="true"] .menu-icon i:first-child { transform: rotate(45deg); }
.menu[aria-expanded="true"] .menu-icon i:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] .menu-icon i:last-child { transform: rotate(-45deg); }

@media (max-width: 700px) {
  .hero-background { filter: saturate(1.12) brightness(.92); }
  .menu-slot { display: block; }
  .menu { color: var(--ink); min-width: 44px; min-height: 44px; padding: 0; place-items: center; }
  .wrap .menu { display: grid; }
  .wrap .nav { padding: 8px; max-height: 68vh; overflow-y: auto; gap: 2px; background: #242022; box-shadow: 0 18px 35px #0007; }
  .wrap .nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; }
  .wrap .nav a[href]:hover { background: var(--surface-warm); }
  .calc-controls, .calc-result { padding: clamp(17px, 5vw, 25px); }
}
@media (max-width: 380px) {
  .channels { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  .react-reveal { animation: react-reveal .56s cubic-bezier(.18,.65,.32,1) both; }
  .calc-amount { animation: react-reveal .25s ease-out both; }
  @media (max-width: 700px) {
    .wrap .nav.open { animation: mobile-nav-in .2s ease-out both; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-icon i, .calc-options button, .carousel-controls button { transition: none; }
  .shiny-text { background: none !important; -webkit-text-fill-color: currentColor; }
}
@keyframes react-reveal {
  from { opacity: .55; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mobile-nav-in {
  from { opacity: .5; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
