*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
button,a,input,select,textarea{font:inherit}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
:root{--ink:#162033;--muted:#66748a;--paper:rgba(255,255,255,.85);--paper-solid:#ffffff;--soft:rgba(255,255,255,.60);--line:rgba(22,32,51,.13);--shadow:0 24px 75px rgba(31,42,68,.16);--rose:#ec4899;--orange:#f97316;--yellow:#84cc16;--green:#22c55e;--cyan:#06b6d4;--blue:#2563eb;--violet:#6366f1;--danger:#ef4444;--focus:#06b6d4;--mix-a:#ec4899;--mix-b:#06b6d4;--mix-c:#84cc16;--mix-d:#6366f1;--deep:#162033}
body.dark{--ink:#f8fbff;--muted:#b8c3d7;--paper:rgba(15,23,42,.84);--paper-solid:#101827;--soft:rgba(255,255,255,.08);--line:rgba(255,255,255,.14);--shadow:0 25px 80px rgba(0,0,0,.38);--focus:#67e8f9}
body{min-height:100vh;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink);background:#f8fbff;overflow-x:hidden}
.page-bg{position:fixed;inset:0;z-index:-5;background:radial-gradient(circle at 9% 12%, rgba(236,72,153,.24) 0%, transparent 31%),radial-gradient(circle at 88% 17%, rgba(6,182,212,.24) 0%, transparent 34%),radial-gradient(circle at 74% 82%, rgba(132,204,22,.20) 0%, transparent 33%),linear-gradient(135deg,#fff7fb 0%,#effaff 38%,#f4ffe8 72%,#f5f3ff 100%)}
body.dark .page-bg{background:radial-gradient(circle at 11% 10%, rgba(236,72,153,.20) 0%, transparent 33%),radial-gradient(circle at 88% 18%, rgba(6,182,212,.24) 0%, transparent 35%),radial-gradient(circle at 72% 84%, rgba(132,204,22,.14) 0%, transparent 35%),linear-gradient(135deg,#08111f 0%,#17203b 48%,#172412 100%)}
.blob{position:fixed;border-radius:999px;filter:blur(38px);z-index:-4;pointer-events:none}.b1{width:240px;height:240px;background:#ec4899;left:-70px;top:80px;opacity:.30}.b2{width:280px;height:280px;background:#06b6d4;right:-80px;top:140px;opacity:.31}.b3{width:250px;height:250px;background:#84cc16;right:18%;bottom:-80px;opacity:.25}.grain{position:fixed;inset:0;z-index:-3;pointer-events:none;opacity:.15;background-image:radial-gradient(rgba(22,32,51,.18) 1px,transparent 1px);background-size:18px 18px}
.wrap{width:min(1240px,100%);margin:0 auto;padding:28px 18px 48px}.topbar{position:sticky;top:0;z-index:50;border-bottom:1px solid var(--line);background:rgba(255,255,255,.7);backdrop-filter:blur(22px)}body.dark .topbar{background:rgba(15,23,42,.72)}.top-inner{width:min(1280px,100%);margin:auto;padding:12px 18px;display:flex;align-items:center;gap:14px}.brand{display:flex;align-items:center;gap:10px;min-width:max-content}

.brand-mark{width:42px;height:42px;border-radius:16px;display:grid;place-items:center;
font-weight:1000;
background:linear-gradient(135deg,#111827,#26364f);
color:#fff;
box-shadow:0 14px 30px rgba(17,24,39,.24),inset 0 0 0 2px rgba(255,255,255,.18)
}

body.dark .brand-mark{background:linear-gradient(135deg,#fff,#dbeafe);color:#111827}

.brand-name{font-weight:1000;letter-spacing:-.04em}.brand-sub{font-size:12px;color:var(--muted)}.nav{display:flex;gap:8px;flex:1;justify-content:center}.nav button,.nav a{border:1px solid transparent;background:transparent;color:var(--muted);padding:10px 12px;border-radius:999px;cursor:pointer;font-weight:850;white-space:nowrap}.nav button:hover,.nav button.active,.nav a:hover,.nav a.active{background:linear-gradient(135deg,#111827,#164e63,#312e81);color:#fff;border-color:transparent}.actions{display:flex;gap:8px;align-items:center}.btn{border:0;border-radius:999px;padding:11px 16px;font-weight:950;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .18s ease,box-shadow .18s ease}.btn:hover{transform:translateY(-1px)}.btn-primary{background:linear-gradient(135deg,#111827,#164e63,#312e81);color:white;box-shadow:0 14px 30px rgba(31,42,68,.24)}body.dark .btn-primary{background:linear-gradient(135deg,#f8fafc,#cffafe);color:#111827}.btn-soft{border:1px solid var(--line);background:var(--soft);color:var(--ink);backdrop-filter:blur(12px)}.theme{width:44px;height:44px;padding:0}.burger{display:none}.glass{border:1px solid var(--line);background:var(--paper);box-shadow:var(--shadow);backdrop-filter:blur(22px)}.footer{margin-top:38px;padding-top:30px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap;color:var(--muted)}.footer b{color:var(--ink)}.modal-backdrop{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(15,23,42,.52);backdrop-filter:blur(10px)}.modal-backdrop.open{display:flex}.modal-card{width:min(730px,100%);max-height:92vh;overflow:auto;border-radius:34px;padding:24px}.modal-head{display:flex;justify-content:space-between;gap:18px;margin-bottom:18px}.modal-head h2{font-size:34px;letter-spacing:-.05em}.modal-close{border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:16px;width:44px;height:44px;font-size:26px;cursor:pointer}.form{display:grid;gap:14px}.field{display:grid;gap:8px}.field-label{font-weight:1000}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:16px;padding:13px 14px;outline:none}.field textarea{min-height:100px;resize:vertical}.modal-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:860px){.top-inner{flex-wrap:wrap}.burger{display:grid;place-items:center}.nav{display:none;width:100%;order:5;grid-template-columns:1fr;gap:8px}.nav.open{display:grid}.nav button,.nav a{width:100%;text-align:left}.actions{margin-left:auto}.brand-sub{display:none}}
@media(max-width:540px){.wrap{padding-left:12px;padding-right:12px}.top-inner{padding-left:12px;padding-right:12px}.btn{width:100%}.actions .btn{width:auto}.modal-head h2{font-size:26px}}
.rules-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:12px 0;
}

.rules-row input[type="checkbox"]{
  width:16px;
  height:16px;
  margin:0;
  flex-shrink:0;
}

.rules-row label{
  margin:0;
  line-height:1;
  cursor:pointer;
}

.rules-row a{
  text-decoration: underline;
  text-decoration-line: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  color: inherit;
}

.rules-row a:hover{
  opacity:.8;
}

.telegram-wrap {
    position: relative;
    width: 100%;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b2a3d, #30358a);
}

.telegram-fake-btn {
    position: absolute;
    inset: 0;
    z-index: 1;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.telegram-wrap iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 44px !important;
    opacity: 0.01 !important;
    z-index: 2 !important;
}
.telegram-wrap {
    grid-column: 1 / -1;
    position: relative;
    width: 100%;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b2a3d, #30358a);
}
.telegram-full-btn {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0b2a3d, #30358a);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}















.consultant-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: inherit;
}

.consultant-button {
  width: 104px;
  height: 104px;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;

  animation: consultant-float 2.2s ease-in-out infinite,
             consultant-pulse 1.8s ease-in-out infinite;
}

@media (max-width: 768px) {
  .consultant-button {
    width: 84px;
    height: 84px;
  }
}

.consultant-chat {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: 0.25s ease;
}

.consultant-widget.is-open .consultant-chat {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.consultant-chat__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(135deg, #7b2cff, #00d4ff);
  color: #fff;
}

.consultant-chat__header span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  opacity: 0.85;
}

.consultant-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.consultant-chat__body {
  padding: 16px;
  min-height: 180px;
  max-height: 260px;
  overflow-y: auto;
  background: #f7f7fb;
}

.consultant-message {
  max-width: 85%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.consultant-message--bot {
  background: #fff;
  color: #222;
  border-bottom-left-radius: 4px;
}

.consultant-message--user {
  margin-left: auto;
  background: #7b2cff;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.consultant-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid #eee;
}

.consultant-chat__form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  font-size: 14px;
}

.consultant-chat__form button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #7b2cff;
  color: #fff;
  cursor: pointer;
}

@keyframes consultant-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(4deg);
  }
}

@keyframes consultant-pulse {
  0%, 100% {
    box-shadow: 0 12px 30px rgba(123, 44, 255, 0.45);
  }
  50% {
    box-shadow: 0 12px 42px rgba(123, 44, 255, 0.75);
  }
}

@media (max-width: 480px) {
  .consultant-widget {
    right: 16px;
    bottom: 16px;
  }

  .consultant-chat {
    width: calc(100vw - 32px);
  }
}

.consultant-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}









/* === Header menu separated from hero === */

.topbar {
  padding-bottom: 14px;
}

.top-inner {
  padding-bottom: 10px;
}

.nav-row {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.nav-row button,
.nav-row a,
.nav-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  padding: 10px 14px;

  font-size: 14px;
  font-weight: 850;
  line-height: 1;

  border: 1px solid var(--line);
  border-radius: 999px;

  background: var(--soft);
  color: var(--ink);

  white-space: nowrap;

  box-shadow: 0 8px 18px rgba(31,42,68,.06);
}

.nav-row button:hover,
.nav-row button.active,
.nav-row a:hover,
.nav-row a.active,
.nav-row span.active {
  background: linear-gradient(135deg,#111827,#164e63,#312e81);
  color: #fff;
  border-color: transparent;
}

/* чтобы hero не прилипал к меню */
.wrap {
  padding-top: 26px;
}

/* === Burger only on mobile === */

.burger {
  display: none;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 860px) {

  .topbar {
    padding-bottom: 10px;
  }

  .burger {
    display: grid !important;
    place-items: center;
  }

  .nav-row {
    display: none;

    width: 100%;
    margin: 0 auto 10px;

    padding: 0 12px 10px;
    box-sizing: border-box;

    justify-content: flex-start;

    overflow-x: auto;

    scrollbar-width: none;
  }

  .nav-row::-webkit-scrollbar {
    display: none;
  }

  .nav-row.open {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 4px;
  }

  .nav-row.open button,
  .nav-row.open a,
  .nav-row.open span {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }

  .nav-row button,
  .nav-row a,
  .nav-row span {
    border-radius: 20px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* =========================
   DESKTOP
========================= */

@media (min-width: 861px) {

  .nav-row {
    display: flex !important;
    gap: 10px;
  }

  .nav-row button,
  .nav-row a,
  .nav-row span {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    padding: 13px 20px;

    font-size: 18px;
    font-weight: 900;
    line-height: 1;

    border-radius: 999px;
  }
}

/* =========================
   STICKY SIDEBAR
========================= */

:root {
  --sticky-sidebar-top: 150px;
}

@media (min-width: 1201px) {

  .sidebar {
    top: var(--sticky-sidebar-top);
  }

  .right-sidebar {
    top: 150px !important;
  }
}


.translate-option{
  margin-top:4px;
  display:grid;
  gap:8px;
}

.translate-check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  cursor:pointer;

  padding:14px 16px;

  border:1px solid var(--line);
  border-radius:18px;

  background:var(--soft);

  color:var(--ink);
}

.translate-check input{
  margin-top:2px;
  width:18px;
  height:18px;
  flex-shrink:0;
}

.translate-check span{
  line-height:1.45;
  font-weight:700;
}

.translate-note{
  padding-left:30px;
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
}


.side-nav a.active,
.side-nav span.active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  padding: 12px 13px;

  border: 1px solid transparent;
  border-radius: 18px;

  background: linear-gradient(135deg,#111827,#164e63,#312e81);
  color: #fff;

  font-weight: 850;
}

.side-nav a.active small,
.side-nav span.active small {
  color: rgba(255,255,255,.75);
}


.side-nav a.active {
  background: linear-gradient(135deg,#111827,#164e63,#312e81) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.side-nav a.active span,
.side-nav a.active small {
  color: #fff !important;
}



.success-modal {
  max-width: 520px;
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #18c37e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.success-content h2 {
  margin-bottom: 10px;
}

#successModal {
  display: none;
}
.success-modal {
  position: relative;
  max-width: 520px;
  text-align: center;
}

.success-modal .modal-close {
  position: absolute;
  top: 24px;
  right: 24px;

  margin: 0;
}
.media-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.media-preview-item {
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  padding: 8px;
}

.media-preview-item img,
.media-preview-item video {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.media-preview-name {
  margin-top: 6px;
  font-size: 12px;
  word-break: break-word;
}

.media-preview-item {
  position: relative;
}

.media-preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 860px) {
  .actions .lang-toggle {
    display: none;
  }

  .nav-row.open .lang-toggle {
    display: flex;
  }
}



@media (max-width: 860px) {

  header.topbar {
    padding: 10px 0;
  }

  header.topbar > .top-inner {
    height: 46px;

    padding: 0 10px;

    display: flex;
    align-items: center;
    flex-wrap: nowrap;

    gap: 6px;
  }

  header.topbar .brand-mark {
    width: 31px;
    height: 31px;
    min-width: 31px;
  }

  header.topbar .theme,
  header.topbar .burger {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
}


.btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: wait;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btnSpin 0.7s linear infinite;
  flex: 0 0 auto;
}

@keyframes btnSpin {
  to {
    transform: rotate(360deg);
  }
}

.underline {text-decoration:underline}


.lang-dropdown {
  position: relative;
  display: inline-flex;
  z-index: 50;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.lang-arrow {
  font-size: 13px;
  opacity: .75;
  transition: transform .18s ease;
}

.lang-dropdown:hover .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 118px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(15, 23, 42, .12);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transition: .18s ease;
}

.lang-dropdown:hover .lang-dropdown-menu,
.lang-dropdown:focus-within .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.lang-dropdown-menu a:hover,
.lang-dropdown-menu a.active {
  background: rgba(99, 102, 241, .14);
}

.dark .lang-dropdown-menu {
  background: rgba(15, 23, 42, .9);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
}

.nav-lang-dropdown {
  display: none;
}

@media (max-width: 760px) {
  .actions .lang-dropdown {
    display: none;
  }

  .nav-lang-dropdown {
    display: inline-flex;
  }

  .nav-lang-dropdown .lang-dropdown-menu {
    left: 0;
    right: auto;
  }
}

.field-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

@media (max-width:768px){
    .field-row{
        grid-template-columns:1fr;
    }
}


.footer-clean{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:16px;
    padding:30px 0;
}

.footer-brand{
    display:grid;
    gap:4px;
}

.footer-nav,
.footer-bottom{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px 16px;
}

.footer-nav a,
.footer-bottom a{
    color:var(--muted);
    text-decoration:none;
}

.footer-nav a:hover,
.footer-bottom a:hover{
    color:var(--ink);
    text-decoration:underline;
}

.footer-bottom{
    color:var(--muted);
    font-size:14px;
}

.translate-option {
    display: none;
}