/* =========================================================
   ПортерТакси — кардинальный редизайн
   ========================================================= */
:root{
  --accent: #ff6a00;
  --accent-2: #ff9d2e;
  --accent-grad: linear-gradient(135deg, #ff8a00, #ff5e00);
  --ink: #16120e;
  --ink-2: #4a443e;
  --muted: #8b847b;
  --bg: #ffffff;
  --bg-warm: #fbf6ef;
  --line: #efe7db;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(20,15,10,.10);
  --shadow-sm: 0 8px 26px rgba(20,15,10,.07);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden; /* защита от случайного горизонтального скролла */
}
img{ display: block; max-width: 100%; }
a{ text-decoration: none; color: inherit; }
.wrap{ width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn--lg{ padding: 16px 28px; font-size: 16px; border-radius: 14px; }
.btn--primary{ background: var(--accent-grad); color: #fff; box-shadow: 0 10px 26px rgba(255,94,0,.35); }
.btn--primary:hover{ transform: translateY(-3px); box-shadow: 0 16px 34px rgba(255,94,0,.45); }
.btn--ghost{ background: rgba(255,255,255,.08); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn--ghost:hover{ background: rgba(255,255,255,.16); transform: translateY(-3px); }
.btn--dark{ background: #16120e; color: #fff; }
.btn--dark:hover{ transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.btn--wa{ background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn--wa:hover{ transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37,211,102,.45); }

/* ---------- Header ---------- */
.hdr{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.hdr--scrolled{ box-shadow: 0 6px 24px rgba(20,15,10,.08); border-color: var(--line); }
.hdr__inner{ display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.hdr__logo{ display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 800; letter-spacing: -.3px; flex-shrink: 0; white-space: nowrap; }
.hdr__logo b{ color: var(--accent); font-weight: 800; }
.hdr__logo img{ border-radius: 10px; flex-shrink: 0; }
.hdr__nav{ display: flex; flex-wrap: nowrap; gap: 26px; margin: 0 auto; }
.hdr__nav a{ font-weight: 600; font-size: 15.5px; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.hdr__nav a::after{ content:''; position:absolute; left:0; bottom:0; width:0; height:2px; background: var(--accent-grad); transition: width .25s ease; border-radius: 2px; }
.hdr__nav a:hover{ color: var(--ink); }
.hdr__nav a:hover::after{ width: 100%; }
.hdr__actions{ display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.hdr__phones{ display: flex; flex-direction: column; line-height: 1.25; text-align: right; }
.hdr__phones a{ font-weight: 800; font-size: 15px; color: var(--ink); }
.hdr__phones a:hover{ color: var(--accent); }
.hdr__burger{ display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; }
.hdr__burger span{ width: 24px; height: 2.5px; background: var(--ink); border-radius: 3px; transition: .25s; }
.hdr__burger.active span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.hdr__burger.active span:nth-child(2){ opacity: 0; }
.hdr__burger.active span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #2a221a 0%, #15110d 60%);
  color: #fff;
}
.hero__glow{ position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.hero__glow--1{ width: 420px; height: 420px; background: #ff6a00; top: -120px; right: -80px; }
.hero__glow--2{ width: 360px; height: 360px; background: #ff3d00; bottom: -160px; left: -100px; opacity: .35; }
.hero__inner{ position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 70px 22px 80px; }
.hero__text, .hero__media{ min-width: 0; } /* не даём содержимому распирать сетку */
.hero__badge{ display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: #ffd9a8; background: rgba(255,138,0,.14); border: 1px solid rgba(255,157,46,.4); padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; }
.hero__title{ font-size: 56px; line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; margin: 0 0 22px; }
.hero__typed-wrap{ display: inline-flex; align-items: baseline; }
.hero__typed{ background: linear-gradient(135deg,#ffb24d,#ff6a00); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__caret{ color: var(--accent-2); font-weight: 400; animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink{ 50%{ opacity: 0; } }
.hero__lead{ font-size: 18px; line-height: 1.6; color: #cabfb2; max-width: 540px; margin: 0 0 32px; }
.hero__cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__chips{ display: flex; flex-wrap: wrap; gap: 20px; font-size: 14.5px; color: #b6ab9d; font-weight: 600; }
.hero__media{ position: relative; display: flex; justify-content: center; }
.hero__img{ width: 100%; max-width: 540px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); animation: float 6s ease-in-out infinite; }
@keyframes float{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }

/* ---------- Section heads ---------- */
.sec-head{ text-align: center; max-width: 680px; margin: 0 auto 50px; }
.sec-eyebrow{ display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); background: #fff1e3; padding: 7px 16px; border-radius: 999px; margin-bottom: 16px; }
.sec-title{ font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -1px; margin: 0 0 14px; }
.sec-title span{ color: var(--accent); }
.sec-sub{ font-size: 17px; color: var(--muted); margin: 0; }

/* ---------- Advantages ---------- */
.adv{ padding: 70px 0; background: var(--bg-warm); }
.adv__grid{ display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.adv__card{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.adv__card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); }
.adv__ico{ width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 15px; background: linear-gradient(135deg,#fff1de,#ffe0b8); margin-bottom: 18px; }
.adv__card h3{ font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.adv__card p{ font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55; }

/* ---------- Services ---------- */
.svc{ padding: 90px 0; }
.svc__grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.svc__card{ display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .28s ease, box-shadow .28s ease; }
.svc__card:hover{ transform: translateY(-8px); box-shadow: var(--shadow); }
.svc__img{ height: 196px; background-size: cover; background-position: center; transition: transform .5s ease; }
.svc__card:hover .svc__img{ transform: scale(1.07); }
.svc__body{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.svc__body h3{ font-size: 18px; font-weight: 700; margin: 0; }
.svc__price{ flex: none; font-weight: 800; font-size: 15px; color: var(--accent); background: #fff1e3; padding: 7px 14px; border-radius: 999px; }

/* ---------- Regions ---------- */
.reg{ padding: 90px 0; background: linear-gradient(180deg,#fff 0%, var(--bg-warm) 100%); }
.reg__grid{ display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.reg__card{ position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; overflow: hidden; }
.reg__card::before{ content:''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--accent-grad); }
.reg__card:hover{ transform: translateY(-8px); box-shadow: var(--shadow); border-color: #ffd29a; }
.reg__card--feat{ box-shadow: 0 20px 50px rgba(255,106,0,.18); }
.reg__top{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.reg__ico{ width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 16px; background: linear-gradient(135deg,#fff1de,#ffe0b8); }
.reg__badge{ font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #b86b00; background: #fff3dc; padding: 6px 12px; border-radius: 999px; }
.reg__name{ font-size: 23px; font-weight: 800; margin: 0 0 8px; }
.reg__cities{ font-size: 14px; color: var(--muted); margin: 0 0 20px; line-height: 1.5; }
.reg__list{ list-style: none; padding: 0; margin: 0 0 26px; }
.reg__list li{ position: relative; padding-left: 28px; font-size: 15px; color: var(--ink-2); margin-bottom: 11px; }
.reg__list li::before{ content:'✓'; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; font-size: 12px; line-height: 19px; text-align: center; color: #fff; background: var(--accent); border-radius: 50%; }
.reg__btn{ display: block; text-align: center; font-weight: 700; font-size: 15px; color: var(--ink); background: #ffca18; padding: 14px; border-radius: 12px; transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.reg__btn:hover{ background: #ffd23f; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255,165,0,.35); }
.reg__note{ text-align: center; color: var(--muted); margin: 40px auto 0; font-size: 15px; }

/* ---------- CTA band ---------- */
.cta{ padding: 70px 0; background: radial-gradient(900px 400px at 20% 0%, #2a221a, #15110d); color: #fff; }
.cta__inner{ display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta__inner h2{ font-size: 32px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 8px; }
.cta__inner p{ color: #c6bcae; margin: 0; font-size: 16px; }
.cta__btns{ display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.ftr{ background: #120f0b; color: #d9d1c6; padding: 60px 0 24px; }
.ftr__inner{ display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.hdr__logo--ftr{ color: #fff; margin-bottom: 16px; }
.ftr__about{ font-size: 14.5px; color: #968d80; max-width: 320px; line-height: 1.6; }
.ftr__col h4{ font-size: 15px; font-weight: 800; color: #fff; margin: 0 0 16px; }
.ftr__col a{ display: block; font-size: 15px; color: #c2b9ac; margin-bottom: 11px; transition: color .2s; }
.ftr__col a:hover{ color: var(--accent-2); }
.ftr__bottom{ margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; color: #7d7468; }

/* ---------- Floating buttons ---------- */
.fab{ position: fixed; right: 20px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 12px; }
.fab__btn{ width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .2s ease; }
.fab__btn img{ width: 30px; height: 30px; }
.fab__btn--wa{ background: var(--wa); }
.fab__btn--call{ background: #0a84ff; }
.fab__btn:hover{ transform: scale(1.08); }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1024px){
  .hero__title{ font-size: 46px; }
  .adv__grid{ grid-template-columns: repeat(2,1fr); }
  .svc__grid{ grid-template-columns: repeat(2,1fr); }
}

/* шапка сворачивается в бургер раньше, чтобы кнопки не наезжали на логотип */
@media (max-width: 1024px){
  .hdr__nav{ position: fixed; top: 74px; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 0; transform: translateY(-130%); transition: transform .3s ease; box-shadow: 0 16px 30px rgba(0,0,0,.1); }
  .hdr__nav.open{ transform: translateY(0); }
  .hdr__nav a{ padding: 15px 26px; font-size: 17px; }
  .hdr__nav a::after{ display: none; }
  .hdr__burger{ display: flex; }
}

@media (max-width: 860px){
  .hdr__phones{ display: none; }
  .hero__inner{ grid-template-columns: 1fr; text-align: center; padding: 50px 22px 60px; }
  .hero__media{ order: -1; }
  .hero__img{ max-width: 380px; animation: none; }
  .hero__lead{ margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__chips{ justify-content: center; }
  .hero__title{ font-size: 40px; }
  .reg__grid{ grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .sec-title{ font-size: 32px; }
}

@media (max-width: 560px){
  .svc__grid{ grid-template-columns: 1fr; }
  .adv__grid{ grid-template-columns: 1fr; }
  .hero__title{ font-size: 33px; }
  .hero__badge{ margin-bottom: 16px; }
  .ftr__inner{ grid-template-columns: 1fr; gap: 28px; }
  .cta__inner h2{ font-size: 26px; }
  .btn--lg{ width: 100%; }
  .hero__cta{ flex-direction: column; }
  .hero__cta .btn{ width: 100%; }
}

/* компактная версия для узких телефонов — без горизонтального скролла */
@media (max-width: 430px){
  .wrap{ padding: 0 16px; }
  .hdr__inner{ height: 64px; gap: 12px; }
  .hdr__logo{ font-size: 18px; gap: 9px; }
  .hdr__logo img{ width: 38px; height: 38px; }
  .hdr__nav{ top: 64px; }
  .btn{ padding: 11px 16px; font-size: 14px; }
  .btn--wa{ padding: 10px 14px; }

  .hero__inner{ padding: 38px 16px 46px; gap: 26px; }
  .hero__badge{ font-size: 12px; padding: 7px 12px; }
  .hero__title{ font-size: 29px; letter-spacing: -1px; }
  .hero__lead{ font-size: 15.5px; margin-bottom: 24px; }
  .hero__img{ max-width: 300px; }
  .hero__chips{ gap: 8px 16px; font-size: 13px; }

  .adv{ padding: 48px 0; }
  .svc, .reg{ padding: 56px 0; }
  .sec-title{ font-size: 27px; }
  .sec-sub{ font-size: 15px; }
  .sec-head{ margin-bottom: 34px; }

  .svc__body{ padding: 16px 18px; }
  .svc__body h3{ font-size: 16.5px; }
  .reg__card{ padding: 26px 22px; }
  .reg__name{ font-size: 21px; }

  .cta{ padding: 52px 0; }
  .cta__inner h2{ font-size: 23px; }
  .fab{ right: 14px; bottom: 16px; }
  .fab__btn{ width: 50px; height: 50px; }
  .fab__btn img{ width: 26px; height: 26px; }
}
