:root{
  --bg:#070B12;
  --text:#F4F7FF;
  --muted:rgba(244,247,255,.72);
  --muted-2:rgba(244,247,255,.56);
  --line:rgba(255,255,255,.10);

  --gold-1:#FFD875;
  --gold-2:#F6C44B;
  --gold-3:#D6A026;

  --cyan:#16E0C9;
  --cyan-2:#0FB7FF;
  --green:#6DFF8B;

  --shadow-1:0 18px 60px rgba(0,0,0,.32);
  --shadow-2:0 32px 90px rgba(0,0,0,.46);
  --shadow-gold:0 18px 50px rgba(246,196,75,.18);

  --container:1180px;
  --person-top:-58px;
  --person-right:60px;
  --person-width:min(660px, 54vw);
  --hero-visual-minh:700px;
}

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

html{
  scroll-behavior:smooth;
  background:var(--bg);
}

body{
  margin:0;
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    linear-gradient(180deg, #060A12 0%, #050812 35%, #040711 72%, #02040C 100%);
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(1200px 820px at 58% 24%, rgba(15,183,255,.06), transparent 64%),
    radial-gradient(1000px 820px at 26% 46%, rgba(22,224,201,.05), transparent 66%),
    linear-gradient(180deg, #060A12 0%, #050812 35%, #040711 72%, #02040C 100%);
}

#spaceDust{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:1;
  pointer-events:none;
}

.site-main,
.site-footer{
  position:relative;
  z-index:2;
}

.site-main{
  padding-top:0;
  margin-top:0;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
textarea{
  font:inherit;
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

.muted{
  color:var(--muted);
}

.text-accent{
  background:linear-gradient(90deg, #ffffff 0%, #dff7ff 34%, #8ce7ff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* header */

.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background:rgba(0,0,0,.20);
  backdrop-filter:blur(14px);
  border-bottom:none;
  box-shadow:none;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:78px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand-mark{
  flex:0 0 auto;
  width:14px;
  height:14px;
  border-radius:6px;
  background:linear-gradient(90deg, var(--cyan-2), var(--cyan), #8B5CFF);
  box-shadow:0 0 0 10px rgba(15,183,255,.10);
}

.brand-name{
  font-family:Montserrat,Inter,sans-serif;
  font-size:16px;
  font-weight:700;
  letter-spacing:.01em;
  white-space:nowrap;
}

.nav{
  display:flex;
  align-items:center;
  gap:26px;
}

.nav-link{
  font-size:14px;
  font-weight:700;
  color:rgba(244,247,255,.78);
  transition:color .18s ease;
}

.nav-link:hover{
  color:#fff;
}

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

.btn-header{
  white-space:nowrap;
}

.burger{
  display:none;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.04);
  cursor:pointer;
}

.burger span{
  display:block;
  width:18px;
  height:2px;
  margin:4px auto;
  border-radius:999px;
  background:#fff;
}

.mobile-nav{
  display:none;
  max-height:calc(100vh - 72px);
  overflow:auto;
  padding:0 16px 16px;
  border-top:1px solid rgba(255,255,255,.05);
  background:rgba(5,9,18,.92);
}

.mobile-link{
  display:block;
  padding:14px 10px;
  color:rgba(245,247,255,.88);
}

/* buttons */

.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:0 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-family:Montserrat,Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  font-weight:500;  /* Изменено с 800 на 500 */
  letter-spacing:.02em;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease,
    filter .18s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn:active{
  transform:translateY(0) scale(.985);
}

.btn-primary{
  color:#0A0F18;
  border-color:rgba(246,196,75,.55);
  background:
    linear-gradient(180deg, rgba(255,215,120,1) 0%, rgba(246,196,75,1) 55%, rgba(214,160,38,1) 100%);
  box-shadow:0 18px 44px rgba(246,196,75,.18);
  /* font-weight наследуется от .btn, отдельно не указываем */
}

.btn-primary:hover{
  box-shadow:0 22px 56px rgba(246,196,75,.22);
  border-color:rgba(255,230,150,.75);
  filter:saturate(1.05);
  color:#0A0F18;
}

.btn-secondary{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.12);
  color:#fff;
}

.btn-dark{
  border-color:rgba(255,255,255,.14);
  background:rgba(0,0,0,.28);
  color:rgba(244,247,255,.92);
  box-shadow:0 14px 36px rgba(0,0,0,.28);
}

.btn-large{
  min-height:56px;
  padding:0 24px;
  font-size:16px;
}

.btn-block{
  width:100%;
}

/* hero */

.hero{
  position:relative;
  padding:54px 0 0;
  overflow:hidden;
  background:transparent;
}

.hero-inner{
  position:relative;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
  align-items:start;
  padding-bottom:110px;
}

.hero-copy{
  position:relative;
  z-index:3;
}

.hero-flare{
  display:none !important;
}

.kicker{
  display:inline-flex;
  align-items:center;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.22);
  color:rgba(244,247,255,.70);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.14em;
}

.hero h1{
  margin:22px 0 42px;
  font-family:Montserrat,Inter,sans-serif;
  font-size:46px;
  line-height:1.02;
  letter-spacing:-.035em;
  text-shadow:0 10px 32px rgba(0,0,0,.48);
}

.lead{
  max-width:72ch;
  margin:0;
  font-size:15.5px;
  line-height:1.85;
  color:rgba(244,247,255,.74);
  text-shadow:0 8px 22px rgba(0,0,0,.35);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:56px;
}

.hero-points{
  margin-top:64px;
  display:grid;
  gap:16px;
  color:rgba(244,247,255,.80);
  font-size:15.5px;
  line-height:1.75;
}

.point{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.point-ico{
  width:10px;
  height:10px;
  border-radius:999px;
  margin-top:8px;
  background:rgba(22,224,201,.95);
  box-shadow:0 0 0 7px rgba(22,224,201,.12);
  flex:0 0 auto;
}

.hero-visual{
  position:relative;
  min-height:var(--hero-visual-minh);
  overflow:visible;
  background:transparent;
}

.hero-glow{
  position:absolute;
  left:50%;
  top:58%;
  width:620px;
  height:620px;
  transform:translate(-50%, -50%);
  border-radius:50%;
  pointer-events:none;
  z-index:4;
  opacity:.96;
  background:radial-gradient(circle at 50% 50%,
    rgba(255,255,255,.82) 0%,
    rgba(255,255,255,.34) 24%,
    rgba(255,255,255,.12) 46%,
    rgba(255,255,255,0) 72%);
  filter:blur(34px);
}

.hero-person{
  position:absolute;
  top:var(--person-top);
  right:var(--person-right);
  width:var(--person-width);
  height:auto;
  z-index:6;
  background:transparent;
  object-fit:contain;
  filter:
    drop-shadow(0 34px 70px rgba(0,0,0,.66))
    drop-shadow(0 10px 26px rgba(0,0,0,.40));
}

.hero-rail{
  position:relative;
  margin-top:-140px;
  padding-bottom:28px;
  z-index:12;
}

/* stats cards from screenshot */

.stats-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
  max-width:620px;
}

.stats-grid-hero{
  max-width:none;
}

.stat-item{
  padding:14px 14px 12px;
  border:1px solid rgba(120,200,255,.15);
  border-radius:20px;
  background:rgba(12,18,30,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 22px 70px rgba(0,0,0,.55);
  backdrop-filter:blur(18px) saturate(135%);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
}

.stat-number{
  display:block;
  font-size:22px;
  font-weight:800;
  color:#fff;
}

.stat-label{
  display:block;
  margin-top:4px;
  font-size:13px;
  color:var(--muted);
  line-height:1.4;
}

/* sections */

.section{
  position:relative;
  z-index:5;
  padding:56px 0;
}

.services-section{
  padding-top:34px;
  padding-bottom:34px;
}

.section-head{
  max-width:760px;
  margin:0 auto 18px;
  text-align:center;
}

.section-kicker{
  display:inline-block;
  margin-bottom:8px;
  color:rgba(245,247,255,.58);
  font-size:12px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.section h2,
.page-head h1{
  margin:0 0 8px;
  font-family:Montserrat,Inter,sans-serif;
  font-size:clamp(24px, 2.6vw, 34px);
  line-height:1.08;
  letter-spacing:-.03em;
}

.section-subtitle{
  max-width:720px;
  margin:0 auto;
  color:var(--muted);
  font-size:16px;
  line-height:1.75;
}

/* cards */

.cards3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:20px;
}

.card{
  position:relative;
  padding:26px;
  border:1px solid rgba(120,200,255,.15);
  border-radius:24px;
  background:rgba(12,18,30,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 22px 70px rgba(0,0,0,.55);
  backdrop-filter:blur(18px) saturate(135%);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
}

.card h3{
  margin:0 0 12px;
  font-size:22px;
  line-height:1.18;
  font-family:Montserrat,Inter,sans-serif;
}

.card p{
  margin:0;
  color:var(--muted);
  line-height:1.76;
}

.service-card{
  /* min-height удален - высота подстраивается под контент */
}

.service-card-top{
  display:block;
}

.service-emoji{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  margin-bottom:18px;
  border-radius:16px;
  border:1px solid rgba(140,231,255,.16);
  background:linear-gradient(180deg, rgba(140,231,255,.10), rgba(140,231,255,.04));
  color:#8ce7ff;
  font-size:22px;
  line-height:1;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 10px 30px rgba(34,216,255,.08);
}

.steps-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:20px;
}

.step-card{
  /* min-height удален - высота подстраивается под контент */
}

.step-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  height:34px;
  margin-bottom:18px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
}

.single-box,
.cta-box{
  padding:30px;
  border:1px solid rgba(120,200,255,.15);
  border-radius:28px;
  background:rgba(12,18,30,.55);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 22px 70px rgba(0,0,0,.55);
  backdrop-filter:blur(18px) saturate(135%);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
}

.single-box{
  max-width:900px;
  margin:0 auto;
  text-align:center;
}

#work{
  padding-top:22px;
}

#extra{
  padding-top:52px;
  padding-bottom:28px;
}

.single-box p,
.cta-copy p{
  margin:0;
  color:var(--muted);
  line-height:1.78;
}

.final-cta{
  padding-top:52px;
  padding-bottom:72px;
}

.cta-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

.cta-copy{
  max-width:700px;
}

.cta-actions{
  flex:0 0 auto;
}

/* footer */

.site-footer{
  padding:0 0 34px;
  background:transparent;
  backdrop-filter:none;
}

.footer-minimal{
  border-top:1px solid rgba(255,255,255,.06);
  padding-top:22px;
}

.footer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0 18px;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:Montserrat,Inter,sans-serif;
  font-weight:700;
}

.footer-devteam{
  color:rgba(245,247,255,.72);
  font-size:14px;
  font-weight:600;
}

.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.05);
  color:var(--muted-2);
  font-size:14px;
}

.footer-bottom a{
  color:var(--muted);
}

/* forms */

.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:100;
}

.modal.is-open{
  display:block;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,4,12,.72);
  backdrop-filter:blur(2px);
}

.modal-card{
  position:relative;
  width:min(680px, calc(100% - 24px));
  margin:70px auto 0;
  padding:28px;
  border-radius:26px;
  border:1px solid rgba(120,200,255,.16);
  background:rgba(12,18,30,.72);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:
    0 34px 110px rgba(0,0,0,.72),
    inset 0 1px 0 rgba(255,255,255,.10);
}

.modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border:none;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:22px;
  cursor:pointer;
}

.modal-title{
  margin:0 0 10px;
  font-family:Montserrat,Inter,sans-serif;
  font-size:30px;
}

.modal-form{
  margin-top:18px;
}

.field{
  display:block;
}

.field + .field{
  margin-top:16px;
}

.field span{
  display:block;
  margin-bottom:8px;
  font-size:14px;
  font-weight:600;
  color:#fff;
}

.field input,
.field textarea{
  width:100%;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#fff;
  outline:none;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.field input::placeholder,
.field textarea::placeholder{
  color:rgba(245,247,255,.38);
}

.field input:focus,
.field textarea:focus{
  border-color:rgba(34,216,255,.42);
  box-shadow:0 0 0 4px rgba(34,216,255,.14);
}

.field textarea{
  min-height:120px;
  resize:vertical;
}

.form-note{
  margin-top:12px;
  color:var(--muted-2);
  font-size:13px;
  line-height:1.5;
}

/* reveal */

.reveal-on-scroll{
  opacity:1;
  transform:none;
}

/* ===== НОВЫЕ СТИЛИ ДЛЯ КАРТОЧЕК УСЛУГ ===== */
.service-highlight {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 500;
}

.service-cta-hint {
  font-size: 14px;
  color: var(--gold-1);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.services-footer {
  text-align: center;
  margin-top: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.services-footer-text {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 16px;
}

/* Обновленные emoji для карточек */
.service-emoji {
  font-size: 32px !important;
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== ИСПРАВЛЕНИЕ ДЛЯ ПЛАШЕК ===== */
.hero-rail {
  margin-top: -140px;
  padding-bottom: 0 !important;
}

.stats-grid-hero {
  gap: 4px !important;
  margin-bottom: 0 !important;
}

/* ===== КОРРЕКТИРОВКА ВЫСОТЫ ПЛАШЕК ===== */
.stats-grid-hero .stat-item {
  padding: 12px 14px 10px !important;
  border-radius: 16px !important;
}

.stats-grid-hero .stat-number {
  font-size: 22px !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.stats-grid-hero .stat-label {
  font-size: 12px !important;
  line-height: 1.3 !important;
  margin-top: 4px !important;
}

/* responsive */
@media (max-width: 1180px){
  :root{
    --person-top:-10px;
    --person-right:-16px;
    --person-width:min(600px, 50vw);
    --hero-visual-minh:640px;
  }

  .hero h1{
    font-size:42px;
  }

  .hero-glow{
    width:560px;
    height:560px;
  }

  .hero-rail{
    margin-top:-110px;
  }
}

@media (max-width: 980px){
  .nav{
    display:none;
  }

  .burger{
    display:block;
  }

  .mobile-nav{
    display:block;
  }

  :root{
    --person-top:92px;
    --person-right:0px;
    --person-width:min(560px, 92vw);
    --hero-visual-minh:600px;
  }

  .hero-inner{
    grid-template-columns:1fr;
    gap:18px;
    padding-bottom:70px;
  }

  .hero-copy{
    order:2;
  }

  .hero-visual{
    order:1;
  }

  .hero-person{
    left:0;
    right:0;
    margin:0 auto;
  }

  .hero-glow{
    left:50%;
    top:44%;
    width:460px;
    height:460px;
  }

  .hero-rail{
    margin-top:-44px;
  }

  .stats-grid,
  .cards3,
  .steps-grid{
    grid-template-columns:1fr;
    max-width:100%;
  }

  .cta-box{
    flex-direction:column;
    align-items:flex-start;
  }

  .cta-actions{
    width:100%;
  }
}

@media (max-width: 640px){
  .container{
    width:min(var(--container), calc(100% - 20px));
  }

  .header-inner{
    min-height:70px;
  }

  .hero{
    padding-top:34px;
  }

  .kicker{
    font-size:11px;
    letter-spacing:.12em;
  }

  .hero h1{
    font-size:34px;
    margin:18px 0 28px;
  }

  .lead{
    font-size:15px;
    line-height:1.75;
  }

  .hero-actions{
    margin-top:36px;
  }

  .hero-points{
    margin-top:42px;
    gap:12px;
    font-size:14px;
    line-height:1.65;
  }

  .stat-item{
    min-height:auto;
  }

  .card{
    padding:22px;
    border-radius:20px;
  }

  .single-box,
  .cta-box{
    padding:24px 20px;
    border-radius:22px;
  }

  .section{
    padding:42px 0;
  }

  #extra{
    padding-top:42px;
    padding-bottom:22px;
  }

  .final-cta{
    padding-top:42px;
    padding-bottom:56px;
  }

  .footer-top,
  .footer-bottom{
    flex-direction:column;
    align-items:flex-start;
  }

  .modal-card{
    padding:22px;
    margin-top:4vh;
  }

  /* Мобильные стили для новых элементов */
  .service-highlight {
    font-size: 15px;
  }
  
  .service-cta-hint {
    font-size: 13px;
  }
  
  .services-footer {
    padding: 20px;
    margin-top: 30px;
  }
  
  /* Исправление для плашек на мобильных */
  .hero-rail {
    margin-top: -100px;
    padding-bottom: 0 !important;
  }
  
  .stats-grid-hero {
    gap: 2px !important;
  }
  
  .stats-grid-hero .stat-item {
    padding: 10px 12px 8px !important;
  }
  
  .stats-grid-hero .stat-number {
    font-size: 20px !important;
  }
  
  .stats-grid-hero .stat-label {
    font-size: 11px !important;
  }
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1f2e;
  padding: 32px;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-title {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
}

.modal-form {
  margin-top: 24px;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: #2a2f3e;
  border: 1px solid #3a3f4e;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: #0FB7FF;
}

.modal-form textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-form button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #FFD875, #F6C44B);
  border: none;
  border-radius: 12px;
  color: #000;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s;
}

.modal-form button:hover {
  transform: translateY(-2px);
}

.form-hint {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.form-hint a {
  color: #FFD875;
  text-decoration: none;
}

.form-hint a:hover {
  text-decoration: underline;
}

.hp {
  display: none;
}

/* Для мобильных */
@media (max-width: 640px) {
  .modal-card {
    padding: 24px;
    width: 95%;
  }
  
  .modal-title {
    font-size: 24px;
  }
}

/* Успешное сообщение в модальном окне */
.success-message {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: #0A0F18;
  font-size: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 30px rgba(246,196,75,0.3);
}

.success-message h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--text);
}

.success-message p {
  margin: 0 0 20px;
  color: var(--muted);
}

.success-message .btn {
  min-width: 200px;
}

/* fixed modal submit button */
.modal-form .btn,
.modal-form button,
.modal-form .btn.btn-primary {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.modal-form .btn:focus,
.modal-form button:focus,
.modal-form .btn.btn-primary:focus,
.modal-form .btn:active,
.modal-form button:active,
.modal-form .btn.btn-primary:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}


/* seo / accessibility */
.seo-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0, 0, 0, 0) !important;
  white-space:nowrap !important;
  border:0 !important;
}

img{
  height:auto;
}

html, body{
  width:100%;
}

body.menu-open{
  overflow:hidden;
}

.nav-link,
.mobile-link,
.btn,
button{
  touch-action:manipulation;
}

.card,
.single-box,
.cta-box,
.stat-item,
.modal-card{
  overflow-wrap:anywhere;
}

.hero-copy,
.section,
.page-head,
.site-footer{
  content-visibility:auto;
  contain-intrinsic-size:1px 800px;
}

@media (max-width: 980px){
  .header-inner{
    min-height:72px;
    gap:12px;
  }

  .brand-name{
    font-size:15px;
  }

  .btn-header{
    display:none;
  }

  .mobile-nav{
    padding-bottom:20px;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .page-actions .btn{
    width:100%;
  }

  .hero-visual{
    min-height:520px;
  }
}

@media (max-width: 768px){
  .hero-inner{
    gap:10px;
    padding-bottom:54px;
  }

  .hero-copy{
    text-align:left;
  }

  .hero h1{
    font-size:clamp(30px, 9vw, 40px);
    line-height:1.06;
    word-break:normal;
    hyphens:auto;
  }

  .hero-glow{
    width:min(82vw, 420px);
    height:min(82vw, 420px);
    filter:blur(26px);
  }

  .hero-person{
    width:min(520px, 94vw);
  }

  .stats-grid{
    gap:10px;
  }

  .stat-item{
    min-width:0;
  }

  .card h3{
    font-size:20px;
  }
}

@media (max-width: 640px){
  :root{
    --person-top:48px;
    --person-right:0px;
    --person-width:min(460px, 96vw);
    --hero-visual-minh:440px;
  }

  .site-header{
    backdrop-filter:blur(10px);
  }

  .brand{
    gap:10px;
  }

  .brand-mark{
    width:12px;
    height:12px;
  }

  .hero{
    padding-top:24px;
  }

  .hero-visual{
    min-height:430px;
  }

  .hero-glow{
    top:46%;
  }

  .hero-actions{
    gap:10px;
  }

  .btn{
    min-height:46px;
    padding:0 16px;
  }

  .stats-grid,
  .stats-grid-hero{
    grid-template-columns:1fr;
    gap:8px !important;
  }

  .hero-rail{
    margin-top:-46px;
  }

  .section h2,
  .page-head h1{
    font-size:clamp(24px, 7vw, 32px);
  }

  .footer-bottom,
  .footer-top{
    width:100%;
  }
}


/* === mobile navigation rebuild === */
.site-header{
  position:sticky;
  top:0;
  isolation:isolate;
}

@media (max-width: 980px){
  .site-header{
    background:rgba(4,8,16,.72);
    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(255,255,255,.05);
  }

  .mobile-nav[hidden],
  .mobile-nav-backdrop[hidden]{
    display:none !important;
  }

  .mobile-nav{
    position:fixed;
    top:0;
    right:0;
    width:min(360px, calc(100vw - 22px));
    height:100dvh;
    max-height:none;
    display:flex !important;
    flex-direction:column;
    gap:4px;
    padding:18px 16px 24px;
    overflow:auto;
    border-top:none;
    border-left:1px solid rgba(255,255,255,.08);
    border-radius:24px 0 0 24px;
    background:linear-gradient(180deg, rgba(8,14,26,.98) 0%, rgba(5,9,18,.96) 100%);
    box-shadow:-24px 0 80px rgba(0,0,0,.42);
    z-index:120;
  }

  .mobile-nav-backdrop{
    position:fixed;
    inset:0;
    background:rgba(3,7,14,.64);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
    z-index:110;
  }

  .mobile-nav-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:2px 0 18px;
    margin-bottom:6px;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .mobile-nav-title{
    font-family:Montserrat,Inter,sans-serif;
    font-weight:700;
    font-size:18px;
  }

  .mobile-nav-close{
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    background:rgba(255,255,255,.06);
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
  }

  .mobile-link{
    display:block;
    padding:16px 6px;
    font-size:22px;
    line-height:1.2;
    color:#f4f7ff;
    border-bottom:1px solid rgba(255,255,255,.06);
  }

  .btn-mobile-nav{
    width:100%;
    margin-top:14px;
    min-height:54px;
    font-size:18px;
  }

  .burger{
    position:relative;
    display:grid;
    place-items:center;
    width:52px;
    height:52px;
    border-radius:18px;
    background:rgba(255,255,255,.05);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  }

  .burger span{
    width:20px;
    transition:transform .22s ease, opacity .22s ease;
  }

  body.menu-open .burger span:nth-child(1){
    transform:translateY(6px) rotate(45deg);
  }

  body.menu-open .burger span:nth-child(2){
    opacity:0;
  }

  body.menu-open .burger span:nth-child(3){
    transform:translateY(-6px) rotate(-45deg);
  }

  .hero{
    padding-top:28px;
  }

  .hero-inner{
    gap:8px;
    padding-bottom:34px;
  }

  .hero-visual{
    min-height:380px;
  }

  .hero-person{
    width:min(430px, 94vw);
  }

  .hero-glow{
    width:min(74vw, 340px);
    height:min(74vw, 340px);
    top:42%;
  }

  .hero h1{
    max-width:12ch;
    margin:14px 0 20px;
    font-size:clamp(30px, 7.8vw, 40px);
    line-height:1.02;
    letter-spacing:-.04em;
    text-wrap:balance;
  }

  .lead{
    max-width:34ch;
  }

  .hero-points{
    margin-top:28px;
  }

  .hero-rail{
    margin-top:0;
    padding-bottom:12px !important;
  }

  .stats-grid-hero{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px !important;
  }
}

@media (max-width: 640px){
  .site-main{
    overflow-x:hidden;
  }

  .hero{
    padding-top:18px;
  }

  .hero-inner{
    padding-bottom:20px;
  }

  .hero-visual{
    min-height:340px;
  }

  .hero-person{
    width:min(390px, 94vw);
  }

  .hero-glow{
    width:min(68vw, 280px);
    height:min(68vw, 280px);
    top:40%;
    filter:blur(20px);
  }

  .hero h1{
    max-width:10ch;
    font-size:clamp(28px, 8vw, 36px);
    margin:10px 0 16px;
  }

  .lead{
    font-size:15px;
    line-height:1.65;
  }

  .hero-actions{
    gap:10px;
    margin-top:24px;
  }

  .hero-actions .btn{
    width:100%;
  }

  .hero-points{
    display:none;
  }

  .stats-grid-hero{
    grid-template-columns:1fr;
    gap:8px !important;
  }

  .stats-grid-hero .stat-item{
    padding:12px 14px 10px !important;
  }
}



/* === mobile hero overlap fix === */
@media (max-width: 980px){
  .hero-inner{
    grid-template-columns:1fr;
    align-items:start;
  }

  .hero-copy{
    order:1 !important;
    z-index:3;
  }

  .hero-visual{
    order:2 !important;
    min-height:auto !important;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    margin-top:10px;
    overflow:visible;
  }

  .hero-person{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    left:auto !important;
    margin:0 auto;
    width:min(420px, 92vw) !important;
    max-width:100%;
  }

  .hero-glow{
    top:38% !important;
  }

  .hero-rail{
    margin-top:20px !important;
  }
}

@media (max-width: 640px){
  .hero{
    padding-top:16px !important;
  }

  .hero-inner{
    gap:14px !important;
    padding-bottom:12px !important;
  }

  .hero-copy{
    text-align:left;
  }

  .kicker{
    max-width:100%;
    white-space:normal;
    line-height:1.35;
  }

  .hero h1{
    max-width:100% !important;
    margin:14px 0 18px !important;
    font-size:clamp(28px, 8.8vw, 38px) !important;
    line-height:1.04 !important;
    text-wrap:balance;
  }

  .lead{
    max-width:100% !important;
    font-size:14px !important;
    line-height:1.7 !important;
  }

  .hero-actions{
    margin-top:24px !important;
  }

  .hero-points{
    margin-top:24px !important;
  }

  .hero-visual{
    margin-top:4px !important;
  }

  .hero-person{
    width:min(360px, 92vw) !important;
  }

  .hero-glow{
    width:min(72vw, 260px) !important;
    height:min(72vw, 260px) !important;
    top:34% !important;
    filter:blur(18px) !important;
  }

  .stats-grid-hero{
    grid-template-columns:1fr !important;
    gap:8px !important;
  }

  .hero-rail{
    margin-top:16px !important;
    padding-bottom:8px !important;
  }
}



/* === mobile hide hero photo, keep desktop === */
@media (max-width: 768px){
  .hero-visual{
    display:none !important;
  }

  .hero-inner{
    grid-template-columns:1fr !important;
    padding-bottom:8px !important;
  }

  .hero-copy{
    order:1 !important;
    max-width:100%;
  }

  .hero-rail{
    margin-top:14px !important;
  }
}


/* ===== FORCE HIDE HERO IMAGE ON MOBILE ===== */
@media (max-width: 768px){

  .hero-visual{
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    min-height:0 !important;
    overflow:hidden !important;
  }

  .hero-person{
    display:none !important;
  }

  .hero-glow{
    display:none !important;
  }

  .hero-inner{
    grid-template-columns:1fr !important;
  }

}


/* ===== HARD HIDE HERO IMAGE ON TABLET + MOBILE ===== */
@media (max-width: 1024px){

  .hero-visual,
  .hero-person,
  .hero-glow{
    display:none !important;
    opacity:0 !important;
    visibility:hidden !important;
    pointer-events:none !important;
    width:0 !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    margin:0 !important;
    padding:0 !important;
    overflow:hidden !important;
    position:absolute !important;
  }

  .hero-inner{
    grid-template-columns:1fr !important;
    gap:14px !important;
    padding-bottom:12px !important;
  }

  .hero-copy{
    order:1 !important;
    max-width:100% !important;
  }

  .hero-rail{
    margin-top:14px !important;
  }
}


/* reviews page */
.reviews-head{
  padding:42px 0 12px;
}

.reviews-lead{
  max-width:840px;
  color:var(--muted);
  line-height:1.75;
}

.reviews-layout{
  display:grid;
  grid-template-columns:minmax(300px, 380px) minmax(0, 1fr);
  gap:24px;
  align-items:start;
}

.review-form-card{
  position:sticky;
  top:98px;
}

.review-form-text{
  margin-bottom:18px !important;
}

.review-form .field + .field{
  margin-top:14px;
}

.btn-block{
  width:100%;
}

.alert-box{
  margin:16px 0;
  padding:14px 16px;
  border-radius:16px;
  line-height:1.6;
  font-size:14px;
  border:1px solid rgba(255,255,255,.1);
}

.alert-success{
  background:rgba(54, 198, 116, .12);
  border-color:rgba(54, 198, 116, .24);
}

.alert-error{
  background:rgba(255, 90, 90, .12);
  border-color:rgba(255, 90, 90, .24);
}

.alert-warning{
  background:rgba(246,196,75,.10);
  border-color:rgba(246,196,75,.28);
}

.reviews-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:18px;
}

.meta-pill{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:var(--muted);
}

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

.review-card{
  min-height:100%;
}

.review-top{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}

.review-top h3{
  margin-bottom:6px;
  font-size:20px;
}

.review-username{
  color:#8ce7ff;
  font-weight:600;
}

.review-date{
  white-space:nowrap;
  color:var(--muted-2);
  font-size:13px;
}

.review-message{
  color:var(--text) !important;
  line-height:1.78;
}

.review-empty{
  grid-column:1 / -1;
}

.reviews-pagination{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}

.page-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:44px;
  padding:0 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  color:var(--text);
}

.page-btn.is-current{
  color:#0A0F18;
  border-color:rgba(246,196,75,.55);
  background:linear-gradient(180deg, rgba(255,215,120,1) 0%, rgba(246,196,75,1) 55%, rgba(214,160,38,1) 100%);
}

.page-btn.is-disabled{
  opacity:.45;
  pointer-events:none;
}

.hp{
  position:absolute !important;
  left:-9999px !important;
}

@media (max-width: 980px){
  .reviews-layout{
    grid-template-columns:1fr;
  }
  .review-form-card{
    position:static;
  }
}

@media (max-width: 700px){
  .reviews-grid-live{
    grid-template-columns:1fr;
  }
  .review-top{
    flex-direction:column;
    gap:8px;
  }
}

/* Единый цвет SVG-иконок в карточках услуг */
.service-emoji .service-icon-svg{
  width:30px;
  height:30px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  color:#8ce7ff;
}


/* Иконки услуг: фиксированный цвет без зависимости от кеша/currentColor */
.service-emoji .service-icon-svg,
.service-emoji .service-icon-svg *{
  fill:none !important;
  stroke:#8ce7ff !important;
  color:#8ce7ff !important;
}
