/* =========================================================
   Институт Ландшафта — версия v1
   Тёмно-зелёная палитра, serif-заголовки, ноль внешних ресурсов.
   ========================================================= */

:root {
  --ink:        #14231c;   /* почти чёрный зелёный */
  --ink-2:      #1d3329;
  --body:       #38473f;
  --muted:      #5a6a61;   /* был #6b7a71 — слишком светлый для мелкого текста */
  --line:       #e2e8e3;
  --bg:         #ffffff;
  --bg-alt:     #f5f7f4;
  --sand:       #c8a96a;   /* акцент */
  --sand-soft:  #e8d9b8;
  --green:      #2f7d5b;
  --green-lt:   #6fc79b;

  --wrap:       1200px;
  --hdr:        72px;
  --r:          4px;
  --r-lg:       10px;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', 'Segoe UI', Tahoma, Arial, sans-serif;

  --sh-1: 0 1px 3px rgba(20, 35, 28, .06), 0 8px 24px rgba(20, 35, 28, .06);
  --sh-2: 0 12px 40px rgba(20, 35, 28, .16);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}

a, button, input, textarea, label, select { touch-action: manipulation; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
}
.skip:focus { left: 0; color: #fff; }

/* ------------------------- шапка ------------------------ */

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--hdr);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.hdr-in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  white-space: nowrap;
}
.logo:hover { color: var(--ink); }

.logo-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--green-lt), var(--green));
}

.logo-txt {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: .01em;
}

.nav { margin-left: auto; }
.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 9px 13px;
  border-radius: var(--r);
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a.on { color: var(--ink); background: var(--bg-alt); }

.hdr-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
.hdr-phone:hover { color: var(--ink); border-color: var(--sand); background: #fffdf7; }
.hdr-phone svg { width: 16px; height: 16px; fill: var(--green); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.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); }

/* ------------------------ кнопки ------------------------ */

.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background-color .2s, color .2s, border-color .2s;
}

.btn-main {
  background: var(--sand);
  color: var(--ink);
}
.btn-main:hover {
  color: var(--ink);
  background: #d4b877;
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
}
.btn-main:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
}
.btn-ghost:hover { color: var(--ink); background: #fff; border-color: #fff; }

/* --------------------- первый экран --------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  min-height: 88dvh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 35, 28, .72) 0%, rgba(20, 35, 28, .38) 38%, rgba(20, 35, 28, .88) 100%);
}

.hero-in {
  padding-block: 64px 72px;
  color: #fff;
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand-soft);
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 16em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.hero-sub {
  margin: 0 0 34px;
  max-width: 44em;
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  color: rgba(255, 255, 255, .88);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 52px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 30px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-facts b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  color: #fff;
}
.hero-facts span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}

/* ------------------------ секции ------------------------ */

.sec { padding-block: clamp(56px, 8vw, 108px); }
.sec-alt { background: var(--bg-alt); }
.sec-dark { background: var(--ink); color: rgba(255, 255, 255, .82); }

/* Ссылки на тёмном фоне — светло-песочные.
   ВАЖНО: правило намеренно НЕ общее («.sec-dark a»). Внутри тёмной секции
   лежит белая карточка формы, и общее правило красило её ссылки в песочный
   по белому — их было не видно. Оно же перебивало по специфичности цвет
   телефонов (.tel) и кнопок мессенджеров (.msg), у которых класс без типа.
   Поэтому перечисляем только те блоки, где текст действительно на тёмном. */
.sec-dark .sec-lead a,
.sec-dark .steps a,
.sec-dark .area a { color: var(--sand-soft); }
.sec-dark .sec-lead a:hover,
.sec-dark .steps a:hover,
.sec-dark .area a:hover { color: #fff; }

.sec-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sand);
}

.sec-h {
  margin: 0 0 20px;
  max-width: 24em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}
.sec-dark .sec-h { color: #fff; }

.sec-lead {
  margin: 0 0 46px;
  max-width: 46em;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  color: var(--muted);
}
.sec-dark .sec-lead { color: rgba(255, 255, 255, .68); }

/* ---------------------- карточки услуг ------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.card {
  padding: 38px 32px;
  background: var(--bg);
  transition: background-color .25s;
}
.card:hover { background: #fbfdfa; }

.card-ico {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  color: var(--green);
}

.card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ink);
}
.card p { margin: 0; font-size: 15.5px; color: var(--muted); }

.all-services {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.all-services summary {
  padding: 18px 24px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.all-services summary::marker { color: var(--sand); }
.all-services ul {
  margin: 0;
  padding: 0 24px 24px 24px;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
.all-services li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: 15.5px;
  break-inside: avoid;
}
.all-services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
  background: var(--green-lt);
}

/* ------------------------- шаги -------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.steps li { position: relative; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .18); }

.step-n {
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--sand);
}
.steps h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}
.steps p { margin: 0; font-size: 15.5px; color: rgba(255, 255, 255, .7); }

/* ------------------------ галерея ----------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-auto-rows: 190px;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid .tall { grid-row: span 2; }
.grid .wide { grid-row: span 2; }

.grid a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #e6ebe7;
}
.grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 35, 28, 0) 40%, rgba(20, 35, 28, .55) 100%);
  opacity: 0;
  transition: opacity .3s;
}
.grid a:hover img, .grid a:focus-visible img { transform: scale(1.06); }
.grid a:hover::after, .grid a:focus-visible::after { opacity: 1; }

.works-more { margin: 26px 0 0; color: var(--muted); }

/* ------------------- текст + картинка -------------------- */

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.row:first-of-type { border-top: 0; padding-top: 0; }
.row-rev .row-txt { order: 2; }

.row h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  line-height: 1.2;
  color: var(--ink);
}
.row p { margin: 0 0 14px; }
.row p:last-child { margin-bottom: 0; }

.row-img img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}

/* ------------------------ контакты ---------------------- */

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* min-width:0 не даёт колонке распереть грид длинным содержимым */
.col-info, .col-form { min-width: 0; }

.area {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  margin-bottom: 32px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-left: 3px solid var(--sand);
  border-radius: var(--r);
}
.area svg { width: 26px; height: 26px; flex: 0 0 26px; fill: var(--sand); }
.area-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.area p {
  margin: 3px 0 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
}

.dept { margin-bottom: 30px; }
.dept h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--sand);
}

.tel {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.4;
  color: #fff;
  transition: color .2s;
}
.tel:hover { color: var(--sand-soft); }

.msgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s, filter .18s;
}
.msg svg { width: 16px; height: 16px; flex: 0 0 16px; fill: currentColor; }
.msg:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.msg.wa { background: #25d366; }
.msg.tg { background: #229ed9; }
.msg.ig { background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%); }
.msg.hz { background: #4dbc15; }

/* ------------------------- форма ------------------------ */

.form {
  padding: clamp(26px, 4vw, 40px);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  color: var(--body);
}
.form h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink);
}
.form-note { margin: 0 0 24px; font-size: 15px; color: var(--muted); }

.f { margin-bottom: 16px; }
.f label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.f label i { color: var(--sand); font-style: normal; }
.f label small { font-weight: 400; color: var(--muted); }

.f input[type="text"],
.f input[type="tel"],
.f input[type="email"],
.f textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  /* 16px обязательно: при меньшем Safari на iOS зумит страницу при фокусе */
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .2s, box-shadow .2s;
}
.f textarea { resize: vertical; min-height: 110px; }

.f input:focus, .f textarea:focus {
  outline: none;
  border-color: var(--sand);
  box-shadow: 0 0 0 3px rgba(200, 169, 106, .22);
}
.f input[aria-invalid="true"], .f textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}

.f-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 22px;
}
.f-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}
.f-check label { margin: 0; font-size: 14px; font-weight: 400; color: var(--muted); }
.f-check .err { grid-column: 2; }

.err {
  display: block;
  min-height: 17px;
  margin-top: 5px;
  font-size: 13px;
  color: #c0392b;
}

/* honeypot: за экраном, но не display:none — иначе боты его распознают */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form .btn-main { width: 100%; }

.status { margin: 14px 0 0; min-height: 22px; font-size: 15px; }
.status.ok { color: var(--green); font-weight: 600; }
.status.no { color: #c0392b; font-weight: 600; }

.form-alt { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ---------------- ссылки внутри обычного текста ---------------- */
/* Одного цвета мало: зелёный на белом рядом с серым текстом читается
   как просто текст. Подчёркивание и полужирный делают ссылку ссылкой. */
.works-more a,
.form-alt a,
.row-txt a,
.sec-lead a,
.f-check label a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.works-more a:hover,
.form-alt a:hover,
.row-txt a:hover,
.sec-lead a:hover,
.f-check label a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

/* ------------------------- подвал ----------------------- */

.ftr {
  padding-top: 44px;
  padding-bottom: calc(44px + env(safe-area-inset-bottom));
  background: #0d1712;
  color: rgba(255, 255, 255, .62);
}

.ftr-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px 40px;
  align-items: center;
}

.ftr-brand { display: flex; align-items: center; gap: 13px; }
.ftr-brand b { display: block; color: #fff; font-size: 17px; }
.ftr-brand span { display: block; font-size: 13.5px; }

.ftr-nav, .ftr-soc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ftr-nav a { color: rgba(255, 255, 255, .75); font-size: 15px; }
.ftr-nav a:hover { color: var(--sand); }

.ftr-soc a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background-color .2s;
}
.ftr-soc a:hover { background: rgba(255, 255, 255, .2); }
.ftr-soc svg { width: 17px; height: 17px; fill: #fff; }

.ftr-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px;
}

/* --------------- мобильная панель действий --------------- */

.bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}
.bar svg { width: 21px; height: 21px; fill: var(--green); }
.bar a + a { border-left: 1px solid var(--line); }

/* ----------------------- лайтбокс ----------------------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
           max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: rgba(9, 18, 13, .95);
  overscroll-behavior: contain;
}
.lb[hidden] { display: none; }

.lb figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}
.lb figure img {
  max-width: min(92vw, 1200px);
  max-height: 78vh;
  max-height: 78dvh;
  width: auto;
  border-radius: var(--r-lg);
}
.lb figcaption { color: rgba(255, 255, 255, .85); font-size: 15px; text-align: center; }

.lb-x, .lb-p, .lb-n {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s;
}
.lb-x:hover, .lb-p:hover, .lb-n:hover { background: rgba(255, 255, 255, .26); }
.lb-x { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 30px; }
.lb-p, .lb-n { top: 50%; width: 52px; height: 52px; margin-top: -26px; font-size: 34px; }
.lb-p { left: 18px; }
.lb-n { right: 18px; }

/* ------------------------ появление --------------------- */

.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s; }
.rv.in { opacity: 1; transform: none; }

/* ------------------------ адаптив ----------------------- */

@media (max-width: 1000px) {
  .hero-facts { grid-template-columns: 1fr; gap: 18px; }
  .hdr-phone span { display: none; }
  .hdr-phone { padding: 11px; }
}

@media (max-width: 900px) {
  .row, .cols { grid-template-columns: 1fr; }
  .row-rev .row-txt { order: 0; }
  .col-info { margin-bottom: 8px; }
}

@media (max-width: 820px) {
  .burger { display: flex; }
  .nav {
    position: absolute;
    top: var(--hdr);
    left: 0;
    right: 0;
    margin: 0;
    display: none;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-1);
    max-height: calc(100dvh - var(--hdr));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 14px 16px; }
  .nav a { display: flex; align-items: center; min-height: 48px; padding: 12px; font-size: 16px; }

  .hdr-phone { order: 3; }
  .hdr-in { gap: 12px; }

  /* нижняя панель показывается только на мобильных */
  .bar { display: flex; }
  body { padding-bottom: 58px; }
  .lb-p, .lb-n { width: 44px; height: 44px; margin-top: -22px; font-size: 28px; }
  .lb-p { left: 8px; }
  .lb-n { right: 8px; }

  .ftr-in { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 620px) {
  .wrap { padding-inline: 18px; }
  .hero { min-height: 92dvh; }
  .hero-in { padding-block: 40px 56px; }
  .card { padding: 30px 24px; }
  .all-services ul { columns: 1; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .steps { gap: 26px; }
}

@media (hover: none) {
  .btn-main:hover, .msg:hover, .card:hover, .tel:hover { transform: none; filter: none; }
  .grid a:hover img { transform: none; }
  .grid a:hover::after { opacity: 0; }
  .grid a:focus-visible::after { opacity: 1; }
  .ftr-nav a, .tel { display: flex; align-items: center; min-height: 44px; }
  .tel { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1; transform: none; }
}
