/* =============================================
   StudentMarket — Landing CSS
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #6366f1;
  --blue-dk:   #4f46e5;
  --blue-lt:   #eef2ff;
  --green:     #34a853;
  --green-dk:  #2d9148;
  --red:       #e53935;
  --red-dk:    #c62828;
  --purple:    #7c3aed;
  --orange:    #f59e0b;
  --bg:        #ffffff;
  --bg-light:  #f8fafc;
  --text:      #0f172a;
  --text-2:    #64748b;
  --border:    #e2e8f0;
  --shadow:    0 4px 24px rgba(99,102,241,0.10);
  --shadow-md: 0 8px 32px rgba(99,102,241,0.15);
  --r:         16px;
  --r-sm:      10px;
  --font:      'Inter', 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; font-size: 20px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- CONTAINER ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px;
  font-family: var(--font); font-weight: 600; font-size: 16px;
  cursor: pointer; border: 2px solid transparent;
  transition: all .2s ease; white-space: nowrap;
  text-decoration: none; line-height: 1;
}
.btn i { font-size: 17px; }
.btn--sm { padding: 8px 20px; font-size: 14px; }
.btn--lg { padding: 15px 36px; font-size: 17px; }
.btn--full { width: 100%; justify-content: center; display: flex; }

.btn--primary  { background: var(--blue);  color: #fff; border-color: var(--blue); }
.btn--primary:hover  { background: var(--blue-dk); border-color: var(--blue-dk); box-shadow: 0 6px 18px rgba(26,115,232,.25); }

.btn--green  { background: var(--green);  color: #fff; border-color: var(--green); }
.btn--green:hover  { background: var(--green-dk); border-color: var(--green-dk); box-shadow: 0 6px 18px rgba(52,168,83,.25); }

.btn--red  { background: var(--red);  color: #fff; border-color: var(--red); }
.btn--red:hover  { background: var(--red-dk); border-color: var(--red-dk); box-shadow: 0 6px 18px rgba(229,57,53,.25); }

.btn--white  { background: #fff; color: var(--blue); border-color: #fff; }
.btn--white:hover  { background: var(--blue-lt); }

.btn--outline  { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover  { background: var(--blue-lt); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.navbar.scrolled { border-color: var(--border); box-shadow: 0 1px 16px rgba(0,0,0,0.07); }

.navbar__inner {
  display: flex; align-items: center;
  height: 64px; gap: 0;
}

.navbar__logo { display: flex; align-items: center; flex-shrink: 0; margin-right: auto; }
.logo__img { height: 36px; width: auto; display: block; object-fit: contain; }
.logo__img--footer { height: 30px; width: auto; filter: brightness(0) invert(1); }

.navbar__links { display: flex; align-items: center; gap: 2px; margin-right: 16px; }
.navbar__links a {
  padding: 6px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: color .15s, background .15s;
}
.navbar__links a:hover { color: var(--blue); background: var(--blue-lt); }

.navbar__actions { display: flex; align-items: center; gap: 8px; }

.navbar__auth {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 50px;
  background: var(--blue); color: #fff;
  border: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  transition: background .15s;
}
.navbar__auth:hover { background: var(--blue-dk); }
.navbar__auth i { font-size: 16px; }

.navbar__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: 4px;
}
.navbar__burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all .2s; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #1a73e8 0%, #1045a0 45%, #6a11cb 100%);
  padding-top: 64px; position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;
}

.hero__inner {
  display: grid; grid-template-columns: 1fr 440px;
  align-items: center; gap: 24px;
  padding: 60px 0 100px;
  min-height: calc(100vh - 64px);
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.15);
  color: #fff; padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero__title {
  font-size: clamp(36px, 5vw, 60px); font-weight: 800;
  color: #fff; line-height: 1.12; margin-bottom: 20px;
}

.hero__sub { font-size: 18px; color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 36px; }

.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero__stats { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.stat { text-align: center; padding: 0 24px; }
.stat:first-child { padding-left: 0; }
.stat__num { font-size: 30px; font-weight: 800; color: #fff; }
.stat span:not(.stat__label) { font-size: 24px; font-weight: 800; color: rgba(255,255,255,.8); }
.stat__label { display: block; font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 2px; }
.stat__sep { width: 1px; height: 40px; background: rgba(255,255,255,0.2); flex-shrink: 0; }

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  height: 520px; align-self: flex-end;
}

.hero__circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.hero__circle--1 { width: 340px; height: 340px; animation: spin 24s linear infinite; }
.hero__circle--2 { width: 230px; height: 230px; animation: spin 16s linear infinite reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__img {
  position: relative; z-index: 2;
  height: 520px; width: auto; max-width: 100%;
  object-fit: contain; display: block;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.30));
  animation: heroFloat 4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}

.hero__card {
  position: absolute; background: #fff; border-radius: 50px;
  padding: 9px 16px; display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text);
  box-shadow: 0 6px 24px rgba(0,0,0,0.12); z-index: 3;
  animation: float 3s ease-in-out infinite; white-space: nowrap;
}
.hero__card i { font-size: 15px; }
.hero__card--1 { top: 22%; right: -12px; }
.hero__card--1 i { color: var(--green); }
.hero__card--2 { bottom: 22%; left: -12px; animation-delay: 1.5s; }
.hero__card--2 i { color: var(--orange); }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; height: 90px; pointer-events: none; }
.hero__wave svg { width: 100%; height: 100%; }

.hero__wave-top { position: absolute; top: 0; left: 0; right: 0; height: 60px; pointer-events: none; z-index: 1; }
.hero__wave-top svg { width: 100%; height: 100%; }

/* ---- SECTIONS ---- */
.section { padding: 96px 0; }
.section--light { background: var(--bg-light); }
.section--blue {
  background: linear-gradient(135deg, #1a73e8 0%, #6a11cb 100%);
  color: #fff;
}

.section__head { text-align: center; margin-bottom: 56px; }
.badge {
  display: inline-block; background: var(--blue-lt); color: var(--blue);
  padding: 5px 16px; border-radius: 50px; font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.section--blue .badge { background: rgba(255,255,255,.15); color: #fff; }
.section__title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--text); }
.section--blue .section__title { color: #fff; }
.section__sub { margin-top: 10px; font-size: 16px; color: var(--text-2); }

/* ---- STEPS ---- */
.steps { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

.step {
  flex: 1; min-width: 220px; max-width: 300px;
  background: var(--bg); border-radius: var(--r); padding: 40px 28px 32px;
  text-align: center; box-shadow: var(--shadow); position: relative;
  transition: transform .2s;
}
.step:hover { transform: none; }

.step__num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; background: var(--blue); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}

.step__icon {
  width: 60px; height: 60px; background: var(--blue-lt); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: var(--blue); margin: 0 auto 18px;
}

.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: 14px; color: var(--text-2); }

.step__arrow { font-size: 22px; color: var(--blue); opacity: 0.35; flex-shrink: 0; }


/* ---- ADVANTAGES ---- */
.advantages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.adv {
  background: var(--bg); border-radius: var(--r); padding: 36px 28px;
  box-shadow: var(--shadow); border: 1.5px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.adv:hover { transform: none; box-shadow: var(--shadow); }

.adv__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.adv__icon--blue   { background: #e8f0fe; color: var(--blue); }
.adv__icon--green  { background: #e6f4ea; color: var(--green); }
.adv__icon--purple { background: #ede9fe; color: var(--purple); }
.adv__icon--orange { background: #fef3c7; color: var(--orange); }

.adv h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.adv p  { font-size: 14px; color: var(--text-2); }

/* ---- REVIEWS ---- */
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.review {
  background: var(--bg); border-radius: var(--r); padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07); border: 1.5px solid var(--border);
}
.review__stars { display: flex; gap: 3px; color: var(--orange); font-size: 16px; margin-bottom: 14px; }
.review p { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__ava {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.review__author strong { display: block; font-size: 14px; }
.review__author span  { font-size: 13px; color: var(--text-2); }

/* ---- CTA ---- */
.cta { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; }

.cta__text h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; color: #fff; margin-bottom: 12px; }
.cta__text p  { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 22px; }

.cta__list { display: flex; flex-direction: column; gap: 10px; }
.cta__list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.9); }
.cta__list i   { color: #a8f0c6; font-size: 18px; }

.cta__action { text-align: center; flex-shrink: 0; }
.cta__contacts { margin-top: 14px; font-size: 13px; color: rgba(255,255,255,.7); text-align: center; }
.cta__contacts a { color: rgba(255,255,255,.9); font-weight: 600; text-decoration: underline; }
.cta__contacts a:hover { color: #fff; }

/* ---- CONTACTS ---- */
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; max-width: 780px; margin: 0 auto; }

.contact-card {
  background: var(--bg); border-radius: var(--r); padding: 30px 24px;
  text-align: center; box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1.5px solid var(--border); transition: all .2s;
}
.contact-card:hover { transform: none; border-color: var(--blue); box-shadow: var(--shadow); }
.contact-card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 14px;
}
.contact-card__icon--green  { background: #e6f4ea; color: var(--green); }
.contact-card__icon--blue   { background: var(--blue-lt); color: var(--blue); }
.contact-card__icon--orange { background: #fef3c7; color: var(--orange); }
.contact-card h4  { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.contact-card span { font-size: 14px; color: var(--text-2); }

/* ---- CTA WAVE TOP ---- */
.cta__wave-top { position: absolute; top: 0; left: 0; right: 0; height: 70px; pointer-events: none; }
.cta__wave-top svg { width: 100%; height: 100%; }
.section--blue { position: relative; padding-top: 136px; }

/* ---- FOOTER WAVE ---- */
.footer-wave {
  background: transparent;
  line-height: 0; overflow: hidden;
  margin-bottom: -1px;
}
.footer-wave svg { display: block; width: 100%; height: 80px; }

/* ---- FOOTER ---- */
.footer { background: #0d1526; padding: 0; }
.footer__inner { padding: 40px 0 28px; }
.footer__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo { display: flex; align-items: center; flex-shrink: 0; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,.5); transition: color .18s; }
.footer__links a:hover { color: #fff; }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: background .18s, color .18s;
}
.footer__socials a:hover { background: var(--blue); color: #fff; }
.footer__bottom { padding-top: 20px; text-align: center; }
.footer__copy { font-size: 13px; color: rgba(255,255,255,.25); }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(13,21,38,.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--bg); border-radius: 24px; padding: 48px 40px;
  max-width: 400px; width: 90%; text-align: center; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  transform: translateY(18px) scale(.97); transition: transform .25s;
}
.modal-overlay.active .modal { transform: none; }

.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-light); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--text-2); transition: background .18s;
}
.modal__close:hover { background: var(--border); }

.modal__icon {
  width: 64px; height: 64px; background: var(--blue-lt); border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--blue); margin: 0 auto 18px;
}
.modal__title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.modal__sub   { font-size: 14px; color: var(--text-2); margin-bottom: 26px; }

.modal__or {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-2); margin: 14px 0;
}
.modal__or::before, .modal__or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---- TOAST (landing) ---- */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 360px; width: calc(100vw - 48px);
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.07);
  border-left: 4px solid var(--blue);
  pointer-events: all;
  opacity: 0; transform: translateX(24px) scale(.97);
  transition: opacity .28s ease, transform .28s ease;
}
.toast--in  { opacity: 1; transform: none; }
.toast--out { opacity: 0; transform: translateX(24px) scale(.95); }
.toast--success { border-left-color: var(--green); }
.toast--error   { border-left-color: var(--red); }
.toast--warning { border-left-color: var(--orange); }
.toast--info    { border-left-color: var(--blue); }
.toast__icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.toast--success .toast__icon { color: var(--green); }
.toast--error   .toast__icon { color: var(--red); }
.toast--warning .toast__icon { color: var(--orange); }
.toast--info    .toast__icon { color: var(--blue); }
.toast__body { flex: 1; min-width: 0; }
.toast__title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.toast__msg   { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.toast__action {
  font-size: 12px; font-weight: 700; color: var(--blue);
  background: none; border: none; cursor: pointer;
  padding: 2px 0; text-decoration: underline; align-self: center; white-space: nowrap;
}
.toast__close {
  background: none; border: none; cursor: pointer;
  color: var(--text-2); font-size: 14px; padding: 0 0 0 6px;
  flex-shrink: 0; align-self: flex-start; margin-top: 2px; line-height: 1;
}
.toast__close:hover { color: var(--text); }

/* ---- ORDER MODAL EXTENDED ---- */
.order-modal { max-width: 620px; padding: 0; overflow: hidden; }
.order-modal__head {
  padding: 20px 28px 0; text-align: center;
}
.order-modal__body { padding: 0 28px 24px; }
.order-wizard-steps {
  display: flex; align-items: center;
  padding: 20px 28px 0; margin-bottom: 0; overflow-x: auto;
}
.order-wizard-step {
  display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0;
}
.order-wizard-step__dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  border: 2px solid var(--border); background: #fff; color: var(--text-2);
}
.order-wizard-step__label { font-size: 11px; color: var(--text-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-wizard-step.done  .order-wizard-step__dot { background: var(--green); color: #fff; border-color: var(--green); }
.order-wizard-step.active .order-wizard-step__dot { background: var(--blue); color: #fff; border-color: var(--blue); }
.order-wizard-step.active .order-wizard-step__label { color: var(--blue); font-weight: 700; }
.order-wizard-step:not(:last-child)::after {
  content: ''; flex: 1; height: 2px; background: var(--border); margin: 0 4px; min-width: 12px;
}
.order-wizard-step.done:not(:last-child)::after { background: var(--green); }

.order-step-panel { display: none; padding: 20px 0 0; }
.order-step-panel.active { display: block; }

/* tag chips */
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; padding: 5px 14px; border-radius: 50px;
  border: 1.5px solid var(--border); background: #fff;
  cursor: pointer; transition: all .15s; color: var(--text-2);
}
.tag-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.tag-chip.active { border-color: var(--blue); color: #fff; background: var(--blue); }

/* urgency */
.urgency-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 4px; }
.urgency-opt {
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 10px 6px; text-align: center; cursor: pointer; transition: all .15s;
}
.urgency-opt:hover { border-color: var(--blue); background: var(--blue-lt); }
.urgency-opt.active { border-color: var(--blue); background: var(--blue-lt); }
.urgency-opt__days { font-size: 18px; font-weight: 800; color: var(--text); }
.urgency-opt__label { font-size: 10px; color: var(--text-2); margin-top: 2px; }
.urgency-opt.active .urgency-opt__days { color: var(--blue); }

/* dropzone landing */
.dropzone {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 18px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s; background: var(--bg-light);
  margin-top: 4px;
}
.dropzone:hover, .dropzone--over { border-color: var(--blue); background: var(--blue-lt); }
.dropzone__icon { font-size: 28px; color: var(--text-2); margin-bottom: 6px; }
.dropzone__text { font-size: 13px; color: var(--text-2); }
.dropzone__text strong { color: var(--blue); }
.dropzone__hint { font-size: 11px; color: var(--text-2); margin-top: 3px; }
.attach-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.attach-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px;
  background: var(--bg-light); border: 1px solid var(--border);
}
.attach-item__icon { font-size: 16px; color: var(--blue); flex-shrink: 0; }
.attach-item__name { flex: 1; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-item__size { font-size: 11px; color: var(--text-2); flex-shrink: 0; }
.attach-item__del { background: none; border: none; cursor: pointer; color: var(--text-2); font-size: 15px; padding: 0; }
.attach-item__del:hover { color: var(--red); }

/* yadisk input */
.yadisk-input-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg-light);
  transition: border-color .15s; margin-top: 4px;
}
.yadisk-input-wrap:focus-within { border-color: var(--blue); background: #fff; }
.yadisk-input-wrap__icon { font-size: 20px; color: #e63f3f; flex-shrink: 0; }
.yadisk-input-wrap input { flex: 1; border: none; background: none; font-family: var(--font); font-size: 14px; color: var(--text); outline: none; }
.yadisk-input-wrap input::placeholder { color: var(--text-2); }

/* order-form labels */
.form-label-sm { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; display: block; }
.form-input-sm {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg-light);
  font-family: var(--font); font-size: 14px; color: var(--text);
  outline: none; transition: border-color .15s;
}
.form-input-sm:focus { border-color: var(--blue); background: #fff; }
.form-group-sm { margin-bottom: 14px; }

/* ---- BACK TO TOP ---- */
.backtop {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 4px 16px rgba(26,115,232,.4);
  opacity: 0; pointer-events: none; transition: all .25s;
  transform: translateY(10px);
}
.backtop.show { opacity: 1; pointer-events: all; transform: none; }
.backtop:hover { background: var(--blue-dk); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  html { font-size: 18px; }
  .cta { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .cta__list { align-items: center; }
  .cta__action { width: 100%; }
  .hero__inner { grid-template-columns: 1fr 340px; gap: 16px; }
  .hero__img { height: 380px; }
  .hero__visual { height: 400px; }
}

/* ---- TABLET ---- */
@media (max-width: 860px) {
  html { font-size: 17px; }
  /* Navbar mobile */
  .navbar__links { display: none; }
  .navbar__links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; padding: 12px 20px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.07); z-index: 99;
  }
  .navbar__links.open a { width: 100%; padding: 10px 12px; font-size: 15px; }
  .navbar__burger { display: flex; }
  .navbar__inner { position: relative; }

  /* Hero tablet — 1 колонка, персонаж снизу */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 0 0;
    min-height: auto;
  }
  .hero__content { padding: 40px 0 32px; }
  .hero__visual { height: 340px; margin: 0 auto; }
  .hero__img { height: 320px; margin: 0 auto; }
  .hero__btns { justify-content: center; }
  .hero__stats { justify-content: center; }
  .hero__sub br { display: none; }
  .hero__card--1 { right: 8px; top: 10%; }
  .hero__card--2 { left: 8px; bottom: 15%; }

  .footer__top { flex-direction: column; text-align: center; gap: 16px; }
  .footer__links { justify-content: center; }
  .footer__socials { justify-content: center; }
  .advantages { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; }

  .section--blue { padding-top: 100px; }
  .order-modal { max-width: 95vw; }
}

/* ---- MOBILE ---- */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 36px; }
  .section--blue { padding-top: 80px; }

  /* Показываем персонажа компактно на мобиле */
  .hero__visual { display: flex; height: 220px; margin: 0 auto; }
  .hero__img { height: 200px; }
  .hero__circle--1 { width: 200px; height: 200px; }
  .hero__circle--2 { width: 140px; height: 140px; }
  .hero__card { font-size: 11px; padding: 6px 12px; }
  .hero__card--1 { right: 0; top: 5%; }
  .hero__card--2 { left: 0; bottom: 10%; }

  .hero__inner {
    padding: 32px 0 60px;
    min-height: auto;
  }
  .hero__title { font-size: 30px; }
  .hero__sub { font-size: 15px; margin-bottom: 24px; }
  .hero__badge { font-size: 12px; margin-bottom: 14px; }
  .hero__btns { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 28px; }
  .hero__btns .btn { justify-content: center; font-size: 15px; padding: 14px 20px; }
  .hero__stats { gap: 0; flex-wrap: nowrap; justify-content: center; }
  .stat { padding: 0 12px; }
  .stat__num { font-size: 24px; }
  .stat span:not(.stat__label) { font-size: 18px; }
  .stat__label { font-size: 10px; }
  .stat__sep { height: 30px; }

  .hero__wave { height: 50px; }

  /* Navbar mobile auth */
  .navbar__auth span { display: none; }
  .navbar__auth { padding: 8px 12px; }

  .steps { flex-direction: column; align-items: stretch; gap: 20px; }
  .step { max-width: 100%; min-width: unset; padding: 32px 20px 24px; }
  .step__arrow { display: none; }

  .advantages { grid-template-columns: 1fr; }
  .adv { padding: 24px 20px; }

  .reviews { grid-template-columns: 1fr; }
  .review { padding: 24px 20px; }

  .contacts { grid-template-columns: 1fr; }

  .cta { gap: 24px; }
  .cta__text h2 { font-size: 22px; }

  .modal { padding: 28px 16px; max-width: 95vw; }
  .modal__title { font-size: 19px; }
  .order-modal { max-width: 100vw; border-radius: 16px; }
  .order-modal__head { padding: 16px 16px 0; }
  .order-modal__body { padding: 0 16px 20px; }
  .order-wizard-steps { padding: 16px 16px 0; }
  .order-wizard-step__label { display: none; }
  .tag-chips { gap: 6px; }
  .tag-chip { font-size: 12px; padding: 4px 10px; }
  .urgency-grid { grid-template-columns: repeat(4,1fr); gap: 6px; }

  .btn--lg { padding: 14px 24px; font-size: 15px; }

  .backtop { bottom: 16px; right: 16px; width: 40px; height: 40px; font-size: 16px; }

  .footer__top { gap: 12px; }
  .footer__links a { font-size: 13px; }
  .footer__socials a { width: 32px; height: 32px; font-size: 14px; }
}
