:root{
  --bg:#0a1220;          /* чуть светлее */
  --panel:#101f36;
  --card:rgba(255,255,255,.06);
  --alt:rgba(255,255,255,.03);
  --text:#f2f6ff;
  --muted:rgba(242,246,255,.78);
  --line:rgba(242,246,255,.16);

  --accent:#ff7a00;      /* ярче */
  --accent2:#ffd08a;     /* подсветка */
  --shadow: 0 22px 80px rgba(0,0,0,.42);

  --radius: 18px;
  --radius2: 26px;
  --container: 1120px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,138,31,.20), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(255,178,92,.12), transparent 55%),
    linear-gradient(180deg, #07101d, var(--bg));
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{
  width:min(var(--container), calc(100% - 40px));
  margin-inline:auto;
}

.accent{color:var(--accent)}

.btn{
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  padding:12px 16px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.18)}
.btn:active{transform: translateY(0)}
.btn--primary{
  background: linear-gradient(180deg, var(--accent), #ff6f00);
  border-color: transparent;
  color:#0b1320;
}
.btn--primary:hover{filter: brightness(1.03)}
.btn--ghost{
  background: rgba(255,255,255,.03);
}
.btn--block{width:100%}

.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:600;
}

/* Topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(11,19,32,.62);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
}
.brand__mark{
  width:38px; height:38px;
  display:grid; place-items:center;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.brand__text{font-size:18px}
.brand--small .brand__text{font-size:16px}

.nav{
  display:flex;
  gap:18px;
  color:var(--muted);
  font-weight:700;
}
.nav a{padding:8px 6px; border-radius:10px}
.nav a:hover{background: rgba(255,255,255,.04); color:var(--text)}

.topbar__actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.phone{
  color:var(--muted);
  font-weight:800;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
}
.phone:hover{border-color: var(--line); color:var(--text)}

.burger{
  display:none;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
}
.burger span{
  display:block;
  height:2px;
  width:18px;
  background: currentColor;
  margin:4px auto;
  border-radius:4px;
}

/* Mobile nav */
.mobile{
  border-top:1px solid var(--line);
  background: rgba(11,19,32,.78);
}
.mobile__inner{
  padding:16px 0 20px;
  display:grid;
  gap:10px;
}
.mobile__inner a{
  padding:12px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  color:var(--text);
  font-weight:800;
}
.mobile__cta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:6px;
}

/* Hero */
.hero{padding:44px 0 28px}
.hero__grid{
  display:grid;
  grid-template-columns: 1.2fr .9fr;
  gap:22px;
  align-items:start;
}
.hero h1{
  margin:14px 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height:1.05;
  letter-spacing:-.5px;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:18px;
  line-height:1.5;
}
.hero__cta{display:flex; gap:10px; flex-wrap:wrap}
.hero__badges{
  margin-top:18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.badge{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:10px 12px;
  border-radius:14px;
  font-weight:800;
  color:var(--muted);
}
.badge__k{color:var(--text); margin-right:6px}
.note{margin:10px 0 0; color:rgba(232,238,252,.5); font-size:12px}

.hero__right{
  display:grid;
  gap:14px;
}
.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.glass{backdrop-filter: blur(16px)}
.card__title{
  padding:16px 18px 0;
  font-weight:900;
  font-size:16px;
}
.form{padding:14px 18px 18px; display:grid; gap:12px}
.field{display:grid; gap:6px}
.field span{color:var(--muted); font-weight:700; font-size:13px}
.field input,.field textarea{
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  color:var(--text);
  border-radius:14px;
  padding:12px 12px;
  outline:none;
  font-weight:700;
}
.field textarea{resize:vertical; min-height:88px}
.field input::placeholder{color: rgba(232,238,252,.45)}
.fineprint{margin:0; font-size:12px; color:rgba(232,238,252,.55); line-height:1.35}

.hero__media{
  border-radius: var(--radius2);
  border:1px solid var(--line);
  overflow:hidden;
  position:relative;
}
.hero__media img{height:260px; width:100%; object-fit:cover}
.media__tag{
  position:absolute;
  left:12px; bottom:12px;
  padding:8px 10px;
  background: rgba(11,19,32,.68);
  border:1px solid var(--line);
  border-radius:14px;
  font-weight:800;
  color:var(--text);
}

/* Sections */
.section{padding:46px 0}
.section--alt{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.section__head h2{
  margin:0;
  font-size: clamp(22px, 2.5vw, 30px);
}
.section__head p{
  margin:0;
  color:var(--muted);
  max-width: 560px;
  line-height:1.5;
}

/* Grid */
.grid{display:grid; gap:14px}
.grid--3{grid-template-columns: repeat(3, 1fr)}
.grid--2{grid-template-columns: repeat(2, 1fr)}

.service, .price{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding:16px 16px;
}
.service h3{margin:0 0 8px; font-size:18px}
.service p{margin:0 0 12px; color:var(--muted); line-height:1.5}
.list{margin:0; padding-left:18px; color:var(--muted); font-weight:650}
.list li{margin:6px 0}

.cta-strip{
  margin-top:16px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,138,31,.12), rgba(255,255,255,.02));
  border-radius: var(--radius2);
  padding:16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.muted{color:var(--muted)}

/* Before / After */
.before-after{
  position:relative;
  border-radius: var(--radius2);
  overflow:hidden;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  min-height: 320px;
}
.before-after__img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.before-after__img--after{
  clip-path: inset(0 0 0 55%);
}
.before-after__range{
  position:absolute;
  left:12px;
  right:12px;
  bottom:12px;
  width: calc(100% - 24px);
}
.before-after__labels{
  position:absolute;
  top:12px; left:12px; right:12px;
  display:flex;
  justify-content:space-between;
  font-weight:900;
  color: var(--text);
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}

.gallery{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.gallery img{
  border-radius: var(--radius2);
  border:1px solid var(--line);
  height:154px;
  object-fit:cover;
}

/* Prices */
.price__name{font-weight:900; font-size:16px}
.price__val{margin-top:8px; font-size:22px; font-weight:900}
.price__desc{margin:10px 0 12px; color:var(--muted); line-height:1.5}
.price--featured{
  background: linear-gradient(180deg, rgba(255,138,31,.18), rgba(255,255,255,.03));
  border-color: rgba(255,138,31,.35);
}

/* Steps */
.steps{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(5, 1fr);
}
.step{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding:14px 14px;
  display:flex;
  gap:10px;
  align-items:flex-start;
}
.step__n{
  width:34px; height:34px;
  border-radius:14px;
  display:grid; place-items:center;
  background: rgba(255,138,31,.16);
  border:1px solid rgba(255,138,31,.35);
  color: var(--accent2);
  font-weight:900;
}

/* Contacts */
.contact{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:14px;
  align-items:stretch;
}
.contact__card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius2);
  padding:16px;
}
.contact__row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid rgba(232,238,252,.08);
}
.contact__row:last-child{border-bottom:0}
.contact__label{color:var(--muted); font-weight:800}
.contact__value{font-weight:900}
.contact__buttons{margin-top:14px; display:flex; gap:10px; flex-wrap:wrap}

.contact__map{
  border:1px solid var(--line);
  border-radius: var(--radius2);
  overflow:hidden;
  background: rgba(255,255,255,.03);
}
.map__placeholder{
  height: 100%;
  min-height: 260px;
  display:grid;
  place-items:center;
  color:var(--muted);
}

/* Footer */
.footer{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}
.footer__left{display:flex; align-items:center; gap:12px}

/* Floating buttons */
.float{
  position:fixed;
  right:16px;
  bottom:16px;
  display:grid;
  gap:10px;
  z-index:60;
}
.float__btn{
  width:52px; height:52px;
  border-radius:18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  font-weight:900;
  box-shadow: var(--shadow);
}
.float__btn--primary{
  background: linear-gradient(180deg, var(--accent), #ff6f00);
  color:#0b1320;
  border-color: transparent;
}

/* Modal */
.modal{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
  z-index:80;
}
.modal[aria-hidden="true"]{display:none}
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}
.modal__dialog{
  position:relative;
  width:min(520px, 100%);
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(11,19,32,.92);
  box-shadow: var(--shadow);
  padding:18px;
}
.modal__dialog h3{margin:0 0 6px}
.modal__close{
  position:absolute;
  top:10px; right:10px;
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  cursor:pointer;
  font-size:22px;
  line-height:1;
}
.success{
  margin-top:10px;
  border:1px solid rgba(255,138,31,.35);
  background: rgba(255,138,31,.08);
  border-radius: var(--radius2);
  padding:14px;
}

/* Responsive */
/* ===== Mobile-first improvements for RemHub ===== */

/* Touch-friendly taps + prevent horizontal scroll */
html, body { overflow-x: hidden; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }

/* Better container on small screens */
@media (max-width: 980px){
  .container{
    width: min(var(--container), calc(100% - 28px));
  }

  /* Header */
  .nav{ display:none; }
  .burger{ display:block; }
  .topbar__actions .btn--primary{display:inline-flex}
  .phone{
    padding:10px 10px;
    font-size:14px;
    white-space:nowrap;
  }

  /* Hero layout */
  .hero{ padding:24px 0 18px; }
  .hero__grid{
    grid-template-columns: 1fr;
    gap:12px;
  }
  .pill{ font-size:12px; }
  .lead{ font-size:16px; }
  .hero__cta{
    display:grid;
    grid-template-columns: 1fr;
    gap:10px;
  }
  .hero__badges{
    gap:8px;
  }
  .badge{
    padding:10px 10px;
    border-radius:14px;
    font-size:14px;
  }

  /* Form card: make it fit */
  .card{ border-radius: 22px; }
  .card__title{ padding:14px 14px 0; }
  .form{ padding:12px 14px 14px; }
  .field input, .field textarea{
    padding:12px 12px;
    border-radius:14px;
    font-size:16px; /* важно: чтобы iOS не зумил при фокусе */
  }

  /* Sections */
  .section{ padding:32px 0; }
  .section__head{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    margin-bottom:14px;
  }
  .section__head p{ max-width: 100%; }

  /* Services grid */
  .grid--3{ grid-template-columns: 1fr; }
  .service{ padding:14px; border-radius:22px; }
  .service h3{ font-size:17px; }

  /* CTA strip stacks */
  .cta-strip{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:14px;
  }

  /* Portfolio */
  .grid--2{ grid-template-columns: 1fr; }
  .before-after{
    min-height: 240px;
    border-radius:22px;
  }
  .before-after__labels{ font-size:14px; }

  /* Gallery: two columns on mobile, consistent height */
  .gallery{
    grid-template-columns: repeat(2, 1fr);
    gap:10px;
  }
  .gallery img{
    height: 130px;
    border-radius:18px;
  }

  /* Steps: vertical list */
  .steps{
    grid-template-columns: 1fr;
    gap:10px;
  }
  .step{
    border-radius:22px;
    padding:12px;
  }

  /* Contacts */
  .contact{
    grid-template-columns: 1fr;
    gap:12px;
  }
  .contact__card{
    border-radius:22px;
    padding:14px;
  }
  .contact__row{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }
  .contact__value{ font-size:16px; }
  .contact__buttons{
    display:grid;
    grid-template-columns: 1fr;
    gap:10px;
  }

  .contact__map{ border-radius:22px; }
  .map__placeholder{ min-height: 200px; }

  /* Footer */
  .footer{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  /* Floating buttons: keep clear of browser bars */
  .float{
    right: 12px;
    bottom: 12px;
    gap:10px;
  }
  .float__btn{
    width: 50px;
    height: 50px;
    border-radius:18px;
  }
}

/* Extra-small phones */
@media (max-width: 420px){
  .container{
    width: min(var(--container), calc(100% - 22px));
  }
  .brand__text{ font-size:16px; }
  .phone{ font-size:13px; }
  .hero h1{
    font-size: 30px;
    line-height: 1.08;
  }
  .gallery img{ height: 118px; }
}

/* Mobile menu open state (optional: nicer animation feel) */
@media (max-width: 980px){
  .mobile__inner a{
    font-size:16px;
  }
}

/* Brighter background glow */
body{
  background:
    radial-gradient(1100px 650px at 15% -10%, rgba(255,122,0,.34), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(120,210,255,.18), transparent 55%),
    radial-gradient(700px 480px at 30% 110%, rgba(255,208,138,.16), transparent 55%),
    linear-gradient(180deg, #071022, var(--bg));
}

/* Make cards pop */
.card, .service, .price, .contact__card, .step, .before-after, .gallery img{
  background: rgba(255,255,255,.06);
  border-color: rgba(242,246,255,.18);
}

/* Stronger primary button */
.btn--primary{
  background: linear-gradient(180deg, #ff9a2a, #ff6a00);
  box-shadow: 0 14px 40px rgba(255,106,0,.28);
}
.btn--primary:hover{
  filter: brightness(1.05);
  box-shadow: 0 16px 44px rgba(255,106,0,.34);
}

/* Highlight headings a bit */
h1, h2, h3{
  text-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* Accent border for featured price */
.price--featured{
  border-color: rgba(255,122,0,.55);
  background: linear-gradient(180deg, rgba(255,122,0,.22), rgba(255,255,255,.05));
}

/* Fix <select> / <option> white background */
.field select{
  background-color: rgba(255,255,255,.03);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 12px;

  /* remove native look */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /* custom arrow */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* Some browsers render option list separately, but this helps on many */
.field select option{
  background-color: #0b1320;
  color: var(--text);
}

/* Focus style */
.field select:focus{
  outline: none;
  border-color: rgba(255,138,31,.45);
  box-shadow: 0 0 0 3px rgba(255,138,31,.12);
}