/* IT-Куб. Майма — светлая тема */

:root{
  --bg:#f6f9fc;
  --surface:#ffffff;
  --ink:#0f1720;
  --muted:#65707f;
  --accent:#0bb4aa;
  --accent-deep:#07948c;
  --accent-2:#0693e3;
  --line:#e4ebf3;
  --radius:20px;
  --wrap:1180px;
  --shadow-1:0 10px 30px rgba(16,42,67,.06);
  --shadow-2:0 26px 60px rgba(16,42,67,.13);
  --font:"Inter","Segoe UI",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
}

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

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  font-family:var(--font);
  font-size:16px;
  line-height:1.75;
  color:var(--ink);
  background:var(--bg);
  overflow-x:hidden;
}

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

h1,h2,h3{
  margin:0 0 .5em;
  line-height:1.1;
  letter-spacing:-.03em;
  font-weight:800;
}

h2{font-size:clamp(26px,3.4vw,44px)}
h3{font-size:clamp(19px,2vw,23px);letter-spacing:-.02em}

p{margin:0 0 1em}
a{color:inherit;text-decoration:none}

.wrap{
  width:100%;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 24px;
}

/* ---------- Кнопки ---------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 26px;
  border-radius:999px;
  border:1px solid transparent;
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .22s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space:nowrap;
}

.btn-sm{padding:10px 20px;font-size:14px}

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg,var(--accent) 0%,var(--accent-2) 100%);
  box-shadow:0 10px 24px rgba(11,180,170,.28);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(11,180,170,.34)}

.btn-outline{
  color:var(--ink);
  background:rgba(255,255,255,.7);
  border-color:#cfdae6;
}
.btn-outline:hover{
  transform:translateY(-2px);
  border-color:var(--accent);
  color:var(--accent-deep);
  box-shadow:var(--shadow-1);
}

.btn-ghost{
  color:var(--ink);
  background:#fff;
  border-color:var(--line);
}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent-deep)}

.link-quiet{
  font-size:14px;
  font-weight:600;
  color:var(--muted);
  border-bottom:1px dashed #c3d0de;
  transition:color .2s ease,border-color .2s ease;
}
.link-quiet:hover{color:var(--accent-deep);border-color:var(--accent)}

a:focus-visible,button:focus-visible{
  outline:3px solid rgba(6,147,227,.45);
  outline-offset:3px;
  border-radius:8px;
}

/* ---------- Шапка ---------- */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.82);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.site-header::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,var(--accent) 0%,var(--accent-2) 55%,#7c5cff 100%);
}
.site-header.is-stuck{
  border-bottom-color:var(--line);
  box-shadow:0 6px 24px rgba(16,42,67,.06);
  background:rgba(255,255,255,.94);
}

.header-inner{
  display:flex;
  align-items:center;
  gap:24px;
  min-height:86px;
  transition:min-height .25s ease;
}
.site-header.is-stuck .header-inner{min-height:70px}

.brand{
  display:flex;
  align-items:center;
  gap:13px;
  flex:0 0 auto;
  min-width:0;
  border-radius:16px;
}

.brand-mark{
  display:grid;
  place-items:center;
  width:54px;
  height:54px;
  flex:0 0 auto;
  border-radius:16px;
  border:1px solid #e1ecf4;
  background:linear-gradient(155deg,#ffffff 0%,#eff5fb 58%,#e9f4f2 100%);
  box-shadow:0 6px 16px rgba(16,42,67,.07), inset 0 1px 0 #fff;
  transition:width .25s ease, height .25s ease, border-radius .25s ease, transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.brand-mark img{
  width:38px;
  height:38px;
  object-fit:contain;
  transition:width .25s ease, height .25s ease;
}
.brand:hover .brand-mark{
  transform:translateY(-2px) rotate(-4deg);
  border-color:#c9e4e1;
  box-shadow:0 12px 26px rgba(11,180,170,.2), inset 0 1px 0 #fff;
}

.brand-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.brand-name{
  font-size:17px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:-.025em;
  color:var(--ink);
  white-space:nowrap;
}
.brand-name i{
  font-style:normal;
  background:linear-gradient(120deg,var(--accent-deep) 0%,var(--accent-2) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.brand-sub{
  font-size:10px;
  font-weight:600;
  line-height:1.2;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  white-space:nowrap;
}

.site-header.is-stuck .brand-mark{
  width:46px;
  height:46px;
  border-radius:13px;
}
.site-header.is-stuck .brand-mark img{
  width:32px;
  height:32px;
}

.nav{
  display:flex;
  align-items:center;
  gap:26px;
  margin-left:auto;
  font-size:15px;
  font-weight:500;
}
.nav a{
  position:relative;
  padding:8px 12px;
  border-radius:10px;
  color:#33404f;
  transition:color .2s ease, background-color .2s ease;
}
.nav a::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:2px;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .28s cubic-bezier(.2,.8,.2,1);
}
.nav a:hover{color:var(--ink);background:rgba(11,180,170,.07)}
.nav a:hover::after{transform:scaleX(1)}

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

.burger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:44px;
  height:44px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
}
.burger span{
  display:block;
  height:2px;
  border-radius:2px;
  background:var(--ink);
  transition:transform .25s ease,opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ---------- Герой ---------- */

.hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:112px 0 132px;
  min-height:min(88vh,820px);
  display:flex;
  align-items:center;
  background:
    radial-gradient(1200px 620px at 50% -10%, #ffffff 0%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg,#ffffff 0%,#f2f8fb 58%,#eef6f9 100%);
}

#hero-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
}

.hero-glow{
  position:absolute;
  border-radius:50%;
  filter:blur(70px);
  opacity:.55;
  z-index:0;
  pointer-events:none;
  will-change:transform;
}
.hero-glow.g1{
  width:520px;height:520px;
  top:-160px;left:-90px;
  background:radial-gradient(circle at 35% 35%,rgba(11,180,170,.42),rgba(11,180,170,0) 70%);
  animation:drift1 22s ease-in-out infinite;
}
.hero-glow.g2{
  width:600px;height:600px;
  bottom:-220px;right:-140px;
  background:radial-gradient(circle at 60% 40%,rgba(6,147,227,.36),rgba(6,147,227,0) 70%);
  animation:drift2 26s ease-in-out infinite;
}
.hero-glow.g3{
  width:380px;height:380px;
  top:38%;right:26%;
  background:radial-gradient(circle at 50% 50%,rgba(155,81,224,.18),rgba(155,81,224,0) 70%);
  animation:drift3 30s ease-in-out infinite;
}

@keyframes drift1{
  0%,100%{transform:translate3d(0,0,0) scale(1)}
  50%{transform:translate3d(70px,50px,0) scale(1.12)}
}
@keyframes drift2{
  0%,100%{transform:translate3d(0,0,0) scale(1.05)}
  50%{transform:translate3d(-80px,-46px,0) scale(.94)}
}
@keyframes drift3{
  0%,100%{transform:translate3d(0,0,0)}
  33%{transform:translate3d(-54px,32px,0)}
  66%{transform:translate3d(38px,-28px,0)}
}

.hero-inner{
  position:relative;
  z-index:2;
  text-align:center;
  max-width:920px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin:0 0 26px;
  padding:8px 18px 8px 14px;
  border-radius:999px;
  border:1px solid rgba(11,180,170,.28);
  background:rgba(255,255,255,.72);
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  color:#2c4a52;
  box-shadow:0 6px 18px rgba(16,42,67,.05);
}
.badge .dot{
  width:8px;height:8px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 0 rgba(11,180,170,.6);
  animation:pulse 2.4s ease-out infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(11,180,170,.55)}
  70%{box-shadow:0 0 0 11px rgba(11,180,170,0)}
  100%{box-shadow:0 0 0 0 rgba(11,180,170,0)}
}

.hero-title{
  font-size:clamp(44px,8vw,96px);
  line-height:.98;
  letter-spacing:-.045em;
  margin:0 0 22px;
  font-weight:900;
}
.hero-title .grad{
  display:inline-block;
  font-size:.62em;
  letter-spacing:-.035em;
  background:linear-gradient(102deg,var(--accent-deep) 0%,var(--accent) 38%,var(--accent-2) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-sub{
  max-width:660px;
  margin:0 auto 34px;
  font-size:clamp(15px,1.5vw,18px);
  line-height:1.7;
  color:#4a5766;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  justify-content:center;
}

/* парящие плашки */
.float-chip{
  position:absolute;
  z-index:1;
  display:none;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:16px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(228,235,243,.9);
  box-shadow:var(--shadow-2);
  font-size:13px;
  font-weight:600;
  color:#2b3a47;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  pointer-events:none;
}
.float-chip .fc-ico{font-size:16px;line-height:1}
.fc-1{top:16%;left:-2%;animation:float 7s ease-in-out infinite}
.fc-2{bottom:16%;right:-3%;animation:float 8.5s ease-in-out infinite reverse}
@keyframes float{
  0%,100%{transform:translateY(-9px)}
  50%{transform:translateY(9px)}
}
@media (min-width:1180px){
  .float-chip{display:flex}
}

.scroll-hint{
  position:absolute;
  left:50%;
  bottom:26px;
  width:24px;
  height:38px;
  margin-left:-12px;
  border:2px solid rgba(101,112,127,.35);
  border-radius:14px;
  z-index:2;
}
.scroll-hint::after{
  content:"";
  position:absolute;
  left:50%;
  top:7px;
  width:4px;
  height:8px;
  margin-left:-2px;
  border-radius:2px;
  background:var(--accent);
  animation:wheel 1.8s ease-in-out infinite;
}
@keyframes wheel{
  0%{transform:translateY(0);opacity:1}
  60%{transform:translateY(12px);opacity:0}
  100%{transform:translateY(12px);opacity:0}
}

/* ---------- Полоса цифр ---------- */

.stats-band{
  position:relative;
  z-index:3;
  margin-top:-52px;
}
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  padding:0;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-2);
  overflow:hidden;
}
.stat{
  padding:26px 22px;
  text-align:center;
  border-right:1px solid var(--line);
}
.stat:last-child{border-right:0}
.stat b{
  display:block;
  font-size:clamp(24px,2.6vw,32px);
  font-weight:800;
  letter-spacing:-.03em;
  background:linear-gradient(120deg,var(--accent-deep),var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.stat span{font-size:13px;color:var(--muted)}

/* ---------- Секции ---------- */

.section{padding:96px 0}
.section-alt{
  background:linear-gradient(180deg,#ffffff 0%,#f2f8fb 100%);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.section-head{
  max-width:720px;
  margin:0 auto 52px;
  text-align:center;
}
.section-head .lead,
.lead{
  font-size:clamp(15px,1.4vw,17px);
  color:var(--muted);
  margin:0;
}

.eyebrow{
  display:inline-block;
  margin:0 0 14px;
  padding:6px 14px;
  border-radius:999px;
  background:rgba(11,180,170,.1);
  color:var(--accent-deep);
  font-size:12px;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
}

/* ---------- Мастер-классы ---------- */

.mk-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:26px;
}

.mk-card{
  position:relative;
  overflow:hidden;
  padding:34px 32px 30px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow-1);
  transition:transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.mk-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .35s cubic-bezier(.2,.8,.2,1);
}
.mk-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-2);
  border-color:#d3e3ea;
}
.mk-card:hover::before{transform:scaleX(1)}

.mk-num{
  position:absolute;
  top:14px;
  right:24px;
  font-size:76px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.06em;
  color:rgba(11,180,170,.1);
  user-select:none;
}

.mk-title{position:relative;z-index:1;padding-right:70px}
.mk-desc{color:var(--muted);font-size:15px;margin-bottom:20px;min-height:76px}

.mk-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  margin:0 0 26px;
  padding:0;
}
.chip{
  padding:6px 13px;
  border-radius:999px;
  background:#f1f7f9;
  border:1px solid #e2eef1;
  font-size:12px;
  font-weight:600;
  color:#3c5560;
}

.mk-actions{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

/* ---------- О центре ---------- */

.about-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}

.about-card{
  padding:30px 28px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-1);
  transition:transform .25s ease, box-shadow .25s ease;
}
.about-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-2)}
.about-card h3{margin-bottom:.45em}
.about-card p{margin:0;color:var(--muted);font-size:15px}

.ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  margin-bottom:18px;
  border-radius:14px;
  color:var(--accent-deep);
  background:linear-gradient(140deg,rgba(11,180,170,.14),rgba(6,147,227,.14));
}
.ico svg{width:24px;height:24px}
.ico-sm{width:42px;height:42px;margin:0;flex:0 0 auto}
.ico-sm svg{width:20px;height:20px}

/* ---------- Направления ---------- */

.dirs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  list-style:none;
  margin:0;
  padding:0;
}
.dir{
  display:flex;
  align-items:center;
  gap:14px;
  padding:20px 22px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  font-size:15px;
  transition:transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.dir:hover{
  transform:translateY(-3px);
  border-color:#cfe6e2;
  box-shadow:var(--shadow-1);
}
.dir-ico{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  flex:0 0 auto;
  border-radius:12px;
  color:var(--accent-deep);
  background:#eff8f9;
}
.dir-ico svg{width:21px;height:21px}

/* ---------- Контакты ---------- */

.contacts{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:44px;
  align-items:center;
}
.contact-copy h2{margin-bottom:.4em}
.contact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:28px;
}

.contact-card{
  padding:14px 26px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-2);
}
.contact-row{
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}
.contact-row:last-child{border-bottom:0}
.contact-row b{display:block;font-size:14px;letter-spacing:.01em}
.contact-row span:not(.ico){
  display:block;
  font-size:14px;
  color:var(--muted);
  line-height:1.55;
}

.route-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:2px;
  font-size:14px;
  font-weight:600;
  color:var(--accent-deep);
  text-decoration:none;
  transition:color .2s ease, gap .2s ease;
}
.route-link span{
  display:inline;
  font-size:14px;
  color:inherit;
  line-height:1.4;
  border-bottom:1px solid rgba(11,180,170,.35);
  padding-bottom:1px;
  transition:border-color .2s ease;
}
.route-link svg{
  width:15px;
  height:15px;
  flex:0 0 auto;
  transition:transform .2s ease;
}
.route-link:hover{color:var(--accent-2);gap:11px}
.route-link:hover span{border-color:rgba(6,147,227,.6)}
.route-link:hover svg{transform:translate(1px,-1px)}

/* ---------- Подвал ---------- */

.site-footer{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(62% 130% at 8% 0%, rgba(11,180,170,.22), transparent 62%),
    radial-gradient(52% 110% at 94% 6%, rgba(6,147,227,.20), transparent 64%),
    linear-gradient(180deg,#0e1a26 0%,#0a121b 100%);
  color:#c6d2de;
  padding:62px 0 0;
}
.site-footer::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2),#7c5cff);
}
.foot-inner{
  display:grid;
  grid-template-columns:1.6fr 1fr 1.15fr 1.15fr;
  gap:34px 38px;
  align-items:start;
  padding-bottom:46px;
}
.foot-logo{
  height:40px;
  width:auto;
  margin-bottom:16px;
  opacity:.96;
}
.foot-brand p{
  margin:0 0 20px;
  font-size:13.5px;
  line-height:1.7;
  color:#8ea0b3;
}
.foot-map{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 16px;
  border-radius:999px;
  border:1px solid rgba(95,224,214,.34);
  background:rgba(11,180,170,.12);
  color:#7cefe6;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
.foot-map svg{width:15px;height:15px}
.foot-map:hover{
  background:rgba(11,180,170,.22);
  border-color:rgba(95,224,214,.66);
  transform:translateY(-1px);
}

.foot-col{
  display:flex;
  flex-direction:column;
  gap:11px;
  font-size:14px;
  min-width:0;
}
.foot-title{
  margin:0 0 3px;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#5fe0d6;
}
.foot-col a{
  color:#c6d2de;
  text-decoration:none;
  align-self:flex-start;
  transition:color .2s ease, transform .2s ease;
}
.foot-col a:hover{color:#7cefe6;transform:translateX(3px)}
.foot-addr p{
  margin:0;
  font-size:13.5px;
  line-height:1.7;
  color:#8ea0b3;
}

.foot-bottom{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
  padding:18px 0 22px;
  border-top:1px solid rgba(255,255,255,.09);
  font-size:12.5px;
  color:#7b8ea1;
}
.foot-dot{
  width:3px;
  height:3px;
  border-radius:50%;
  background:#3e5567;
}
.foot-top{
  margin-left:auto;
  color:#8ea0b3;
  text-decoration:none;
  font-weight:600;
  transition:color .2s ease;
}
.foot-top:hover{color:#7cefe6}

/* ---------- Появление при скролле ---------- */

.reveal{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal.is-in{opacity:1;transform:none}

/* ---------- Адаптив ---------- */

@media (max-width:1024px){
  .brand-sub{display:none}
  .brand-name{font-size:16px}
  .nav{gap:14px;font-size:14px}
  .about-grid{grid-template-columns:1fr}
  .contacts{grid-template-columns:1fr;gap:32px}
  .foot-inner{grid-template-columns:1fr 1fr;gap:30px 32px}
}

@media (max-width:860px){
  .nav{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    margin:0;
    padding:10px 24px 18px;
    background:#fff;
    border-bottom:1px solid var(--line);
    box-shadow:0 18px 40px rgba(16,42,67,.1);
  }
  .nav.is-open{display:flex}
  .nav a{padding:13px 0;border-bottom:1px solid var(--line);font-size:15px}
  .nav a:last-child{border-bottom:0}
  .nav a::after{display:none}
  .burger{display:flex}
  .header-inner{gap:14px}
  .header-actions .btn-ghost{display:none}
  .site-header{position:sticky}
  .hero{padding:70px 0 110px;min-height:auto}
  .hero-sub{font-size:15px}
  .stats{grid-template-columns:repeat(2,1fr)}
  .stat:nth-child(2){border-right:0}
  .stat:nth-child(1),.stat:nth-child(2){border-bottom:1px solid var(--line)}
  .mk-grid{grid-template-columns:1fr}
  .mk-desc{min-height:0}
  .dirs{grid-template-columns:1fr 1fr}
  .section{padding:70px 0}
  .foot-inner{grid-template-columns:1fr}
  .scroll-hint{display:none}
}

@media (max-width:560px){
  .wrap{padding:0 18px}
  .brand{gap:10px}
  .brand-mark{width:44px;height:44px;border-radius:12px}
  .brand-mark img{width:30px;height:30px}
  .brand-name{font-size:15px}
  .brand-sub{display:none}
  .site-header.is-stuck .brand-mark{width:40px;height:40px;border-radius:11px}
  .site-header.is-stuck .brand-mark img{width:27px;height:27px}
  .hero{padding:54px 0 96px}
  .hero-actions .btn{width:100%}
  .dirs{grid-template-columns:1fr}
  .mk-card{padding:26px 22px}
  .mk-num{font-size:60px;right:18px}
  .contact-card{padding:8px 20px}
}

/* ---------- Уважение к настройкам системы ---------- */

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
  .reveal{opacity:1;transform:none}
}

/* ---------- Телефон ---------- */

.header-phone{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.78);
  color:var(--ink);
  font-size:14px;
  font-weight:600;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  transition:color .2s ease, border-color .2s ease, transform .18s ease, box-shadow .22s ease, background-color .2s ease;
}
.header-phone svg{
  width:15px;
  height:15px;
  flex:0 0 auto;
  color:var(--accent);
  transition:color .2s ease;
}
.header-phone:hover{
  color:var(--accent-deep);
  border-color:rgba(11,180,170,.5);
  background:#fff;
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(11,180,170,.16);
}
.header-phone:hover svg{color:var(--accent-2)}

.phone-link{
  display:inline-block;
  font-size:15px;
  font-weight:700;
  letter-spacing:.01em;
  color:var(--accent-deep);
  text-decoration:none;
  transition:color .2s ease;
}
.phone-link:hover{color:var(--accent-2)}

.foot-hours{
  margin:0;
  font-size:12.5px;
  line-height:1.6;
  color:#7d8fa3;
}
.foot-addr a[href^="tel:"]{font-weight:600;letter-spacing:.01em}

@media (max-width:860px){
  .header-phone{display:none}
}

/* --- блок «Выбери квест» (v7.0) --- */
.btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 16px;
  font-size: 16.5px;
}
.btn-lg svg { width: 19px; height: 19px; transition: transform .2s; }
.btn-lg:hover svg { transform: translateY(3px); }

.quest-lead { max-width: 640px; margin: 10px 0 0; font-size: 16px; line-height: 1.6; }

.quest-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 30px;
}

.quest-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 26px 26px;
  border-radius: 26px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(13, 42, 68, .09);
  background: linear-gradient(180deg, #ffffff, #f7fcff);
  box-shadow: 0 18px 44px rgba(13, 42, 68, .08);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.quest-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--qc, linear-gradient(90deg, #0bb4aa, #0693e3));
}
.quest-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -92px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--qc2, rgba(11, 180, 170, .18)), transparent 70%);
  transition: transform .3s;
}
.quest-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11, 180, 170, .35);
  box-shadow: 0 26px 60px rgba(13, 42, 68, .14);
}
.quest-card:hover::after { transform: scale(1.15); }
.quest-card.q1 { --qc: linear-gradient(135deg, #0bb4aa, #12e0c0); --qc2: rgba(11, 180, 170, .22); }
.quest-card.q2 { --qc: linear-gradient(135deg, #0693e3, #6f7bff); --qc2: rgba(6, 147, 227, .22); }

.quest-ico {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  background: var(--qc, linear-gradient(135deg, #0bb4aa, #0693e3));
  box-shadow: 0 12px 26px rgba(6, 147, 227, .26);
}

.quest-card h3 { margin: 0; font-size: 23px; letter-spacing: -.01em; }
.quest-card p { margin: 0; font-size: 15px; line-height: 1.55; color: #587089; }

.quest-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.quest-tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  color: #0a8f88;
  background: rgba(11, 180, 170, .10);
}

.quest-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #0a8f88; }
.quest-go svg { width: 18px; height: 18px; transition: transform .2s; }
.quest-card:hover .quest-go svg { transform: translateX(4px); }

@media (max-width: 560px) {
  .quest-card { padding: 24px 20px 22px; border-radius: 22px; }
  .quest-card h3 { font-size: 20px; }
}
