:root{
  --bg:#f4f6f8;
  --text:#14171a;
  --muted:#6b7280;
  --glass: rgba(255,255,255,.72);
  --line: rgba(20,23,26,.10);
  --shadow: 0 18px 45px rgba(0,0,0,.10);
  --dark: #1a1f24;
  --radius: 26px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 10% 10%, rgba(0,0,0,.06), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(0,0,0,.05), transparent 60%),
    var(--bg);
}

.container{ max-width: 1100px; margin: 0 auto; padding: 18px 16px; }
.muted{ color: var(--muted); }

.glass{
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.top{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(244,246,248,.70);
  border-bottom: 1px solid rgba(20,23,26,.08);
}
.top__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.brand{
  display:flex; align-items:center; gap:12px;
  text-decoration:none; color:inherit;
  font-weight:850;
}
.brand__logo{
  width:40px; height:40px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 12%;
  border: 1px solid rgba(0,0,0,.10);
  background:#fff;
}
.brand__text{ letter-spacing:.2px; }

.nav{
  display:flex; gap:16px; flex-wrap:wrap;
  font-weight:650;
}
.nav a{ text-decoration:none; color: rgba(20,23,26,.75); }
.nav a:hover{ color: rgba(20,23,26,1); }

.top__actions{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 750;
  text-decoration:none;
  border: 1px solid transparent;
  cursor:pointer;
  user-select:none;
  transition: transform .08s ease, filter .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn--dark{ background: var(--dark); color: #fff; }
.btn--light{ background: #fff; color: #111; border-color: rgba(0,0,0,.10); }
.btn--ghost{ background: transparent; border-color: rgba(0,0,0,.14); color: #111; }

/* ===== HERO (объединено в одну карточку) ===== */
.hero{ padding-top: 22px; }
.hero__combo{ padding: 14px; }

.hero__grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
}
@media (max-width: 980px){
  .hero__grid{ grid-template-columns: 1fr; }
}

.hero__card{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 22px;
}
.hero__kicker{ font-weight: 750; color: rgba(20,23,26,.70); }
.hero__title{
  margin: 10px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
}
.hero__sub{ margin: 0; color: rgba(20,23,26,.70); max-width: 60ch; }

.hero__cta{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-top: 18px;
  flex-wrap:wrap;
}
.mini-contacts{ display:flex; gap:18px; flex-wrap:wrap; }
.mini-contacts__item{ display:flex; flex-direction:column; gap:2px; font-size: 14px; }
.mini-contacts__item a{ text-decoration:none; color: inherit; font-weight: 750; }

.stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 620px){
  .stats{ grid-template-columns: 1fr; }
}
.stat{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 14px;
}
.stat__num{ font-size: 22px; font-weight: 900; }
.stat__txt{ font-size: 13px; color: rgba(20,23,26,.65); }

.hero__photo{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 14px;
  overflow:hidden;
}
.hero__photo img{
  width:100%;
  height: 390px;
  object-fit: cover;
  border-radius: 22px;
  display:block;
}
@media (max-width: 520px){
  .hero__photo img{ height: 280px; }
}

/* ===== Sections ===== */
.section{ padding-top: 26px; padding-bottom: 6px; }
.section__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap:wrap;
}
.section__head h2{ margin:0; font-size: 24px; }
.section__head p{ margin:0; }

.serviceGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}
@media (max-width: 980px){
  .serviceGrid{ grid-template-columns:1fr; }
}
.serviceText{ padding: 22px; }
.list{ margin: 12px 0 0; padding-left: 18px; color: rgba(20,23,26,.70); }
.cardsCol{ padding: 14px; display:grid; gap: 12px; }
.miniCard{
  background: rgba(26,31,36,.92);
  color:#fff;
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
}
.miniCard__title{ font-weight: 850; margin-bottom: 6px; }
.miniCard__text{ color: rgba(255,255,255,.72); }

/* ===== Каталог: по центру, больше фото, листаем кнопками (без скролла) ===== */
.catalog{
  padding: 18px;
  overflow: hidden;
}
.catalog__track{
  display:flex;
  gap: 18px;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  scroll-snap-type: none;
  padding-bottom: 0;
  transform: translateX(0);
  transition: transform .35s ease;
}

.workCard{
  min-width: 330px;
  max-width: 330px;
  border-radius: 22px;
  overflow:hidden;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.08);
}
.workCard__slider{ position: relative; overflow:hidden; }
.workCard__slides{
  display:flex;
  transition: transform .35s ease;
  will-change: transform;
}
.workCard__slides img{
  width: 100%;
  flex: 0 0 100%;
  height: 215px;               /* увеличили */
  object-fit: cover;
  object-position: center;     /* центр */
  display:block;
}
.navBtn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 24px;
  line-height: 36px;
  cursor:pointer;
}
.navBtn:disabled{ opacity:.45; cursor: default; }
.navBtn--prev{ left: 10px; }
.navBtn--next{ right: 10px; }
.dots{
  position:absolute;
  left:0; right:0;
  bottom: 10px;
  display:flex;
  justify-content:center;
  gap: 6px;
}
.dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.18);
  cursor:pointer;
}
.dot--active{ background: rgba(255,255,255,.95); }

.workCard__meta{ padding: 14px; }
.workCard__title{ font-weight: 900; }
.workCard__sub{ font-size: 13px; margin-top: 4px; }
.workCard__price{ margin-top: 10px; font-weight: 900; }

.catalog__bottom{
  margin-top: 12px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;
}
.catalog__nav{ display:flex; gap: 10px; }
.round{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor:pointer;
  font-size: 20px;
}

/* ===== Pay, steps, contacts ===== */
.payGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .payGrid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px){
  .payGrid{ grid-template-columns: 1fr; }
}
.payCard{ padding: 16px; }
.payCard__title{ font-weight: 900; margin-bottom: 6px; }

.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .steps{ grid-template-columns: 1fr; }
}
.step{
  padding: 16px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
}
.step__num{
  width: 40px; height: 40px;
  border-radius: 14px;
  background: rgba(26,31,36,.92);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}
.step__title{ font-weight: 900; margin-bottom: 4px; }

.contactGrid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}
@media (max-width: 980px){
  .contactGrid{ grid-template-columns: 1fr; }
}
.contactCard{ padding: 22px; }
.contactTitle{ margin: 0 0 6px; }
.form{ display:flex; flex-direction:column; gap: 10px; margin-top: 10px; }
.formRow{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px){
  .formRow{ grid-template-columns: 1fr; }
}
label{ font-size: 13px; color: rgba(20,23,26,.70); font-weight: 650; }
input, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.80);
  outline:none;
}
input:focus, textarea:focus{ border-color: rgba(0,0,0,.25); }
textarea{ min-height: 90px; resize: vertical; }
.fine{ font-size: 12px; }

.contactLine{ margin-top: 8px; display:flex; gap:8px; flex-wrap:wrap; }
.contactBtns{ display:flex; gap:10px; flex-wrap:wrap; margin-top: 14px; }

.footer{ padding-bottom: 36px; }

.toast{
  position: fixed;
  right: 14px;
  bottom: 14px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  display:none;
  font-weight: 700;
}
.toast--ok{ border-color: rgba(26,31,36,.18); }
.toast--err{ border-color: rgba(255,77,77,.35); }
