/* Шрифт Gerbera отключён: файлов в fonts/ нет, а local() показывал его только тем,
   у кого он установлен. Когда файлы появятся — раскомментировать блок
   и поставить "Gerbera" первым в --font-body.
@font-face {
  font-family: "Gerbera";
  src:
    url("fonts/Gerbera.woff2") format("woff2"),
    url("fonts/Gerbera.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
*/

/* Шрифт Nunito — хранится на сайте (папка fonts/), с серверов Google не подгружается */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --g: #477b52;
  --gd: #315e3c;
  --c: #f7f4ed;
  --s: #e5ede0;
  --t: #c8785b;
  --gold: #c9a45c;
  --ink: #334037;
  --muted: #737b73;
  --line: #dedbd2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--c);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
}
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.top {
  background: var(--gd);
  color: white;
  font-size: 13px;
}
.top .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font: 24px Georgia;
  color: var(--gd);
  line-height: 1.05;
}
.logo small {
  display: block;
  font:
    9px "Nunito",
    Arial;
  letter-spacing: 0.08em;
  margin-top: 5px;
  color: #8b928b;
}
nav {
  display: flex;
  gap: 23px;
  margin-left: auto;
  font-size: 14px;
}
nav a:hover,
nav .active {
  color: var(--t);
}
.phone {
  font-weight: bold;
  color: var(--gd);
  white-space: nowrap;
}
.phone small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  font-weight: normal;
}
.hero,
.pagehero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(110deg, #f3efe6, #e3ecdf);
  padding: 70px 0;
}
.hero:before,
.hero:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.35;
}
.hero:before {
  width: 330px;
  height: 330px;
  background: #d3b46f;
  right: -120px;
  top: -120px;
}
.hero:after {
  width: 260px;
  height: 260px;
  background: #e3a38b;
  left: -120px;
  bottom: -130px;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  color: var(--t);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: bold;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  color: var(--gd);
}
h1 {
  font-size: 58px;
  line-height: 1.05;
  margin: 14px 0 20px;
}
h2 {
  font-size: 42px;
  margin: 0 0 15px;
}
.lead {
  font-size: 18px;
  line-height: 1.65;
  color: #69736b;
}
.actions {
  display: flex;
  gap: 12px;
  margin: 27px 0;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  border: 0;
  border-radius: 3px;
  padding: 15px 23px;
  font-weight: bold;
  cursor: pointer;
}
.primary {
  background: var(--t);
  color: white;
}
.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--gd);
}
.photo {
  height: 500px;
  background: linear-gradient(145deg, #cbd8c5, #efdbce);
  position: relative;
  overflow: hidden;
}
.photo:before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #fff8;
  filter: blur(25px);
  right: -90px;
  top: -90px;
}
.photo-card {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 25px;
  background: #fffffff0;
  padding: 22px;
}
.photo-card b {
  font: 22px Georgia;
  color: var(--gd);
}
.section {
  padding: 75px 0;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
  line-height: 1.65;
}
.sub {
  max-width: 700px;
  margin: 0 auto 35px;
}
.cards,
.reviews,
.prices,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card,
.review,
.price {
  background: white;
  border: 1px solid var(--line);
  padding: 27px;
}
.card h3,
.price h3 {
  font: 25px Georgia;
  color: var(--gd);
  margin: 15px 0 8px;
}
.stats {
  background: var(--gd);
  color: #fff;
  padding: 42px 0;
}
.statgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat {
  border-right: 1px solid #ffffff30;
}
.stat:last-child {
  border: 0;
}
.stat b {
  display: block;
  font: 40px Georgia;
}
.stat span {
  font-size: 12px;
  color: #dce7dd;
}
.soft {
  background: linear-gradient(135deg, #e5ede0, #f3ede2);
}
.step {
  border-top: 2px solid var(--t);
  padding-top: 15px;
}
.step b {
  color: var(--t);
  font-size: 12px;
}
.step h3 {
  font: 24px Georgia;
  color: var(--gd);
  margin: 10px 0;
}
.step p {
  color: var(--muted);
  line-height: 1.6;
}
.stars {
  color: var(--gold);
  letter-spacing: 2px;
}
.review p {
  font: 16px Georgia;
  line-height: 1.7;
  color: #59645b;
}
.price strong {
  font: 30px Georgia;
  color: var(--t);
}
.price li {
  color: var(--muted);
  margin: 10px 0;
}
.pagehero h1 {
  font-size: 48px;
}
.crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.crumb a {
  color: var(--t);
}
footer {
  background: #254a30;
  color: #dce7dd;
  padding: 48px 0;
}
.foot {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}
.foot h4 {
  color: white;
}
.foot a {
  display: block;
}
.foot a,
.foot p {
  font-size: 13px;
  line-height: 1.9;
  color: #c0d0c3;
}
.copy {
  border-top: 1px solid #ffffff20;
  margin-top: 28px;
  padding-top: 17px;
  font-size: 11px;
}
@media (max-width: 850px) {
  nav {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards,
  .reviews,
  .prices,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .statgrid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .top {
    display: none;
  }
  .nav {
    height: 70px;
  }
  .cards,
  .reviews,
  .prices,
  .steps,
  .statgrid,
  .foot {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 55px 0;
  }
}
.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
}
.about-text {
  max-width: 820px;
}
.about-text h2 {
  margin: 40px 0 15px;
}
.about-text h2:first-child {
  margin-top: 0;
}
.about-text p,
.about-text li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}
.about-text ol {
  padding-left: 22px;
}
.about-text li {
  margin: 8px 0;
}
.about-cards {
  padding-top: 0;
}

/* ===== Выравнивание карточек и кнопок ===== */
.card,
.price {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px 30px;
}
.card p,
.price ul {
  flex: 1;
}
.card .btn,
.price .btn {
  margin-top: 22px;
  align-self: flex-start;
}
.card h3,
.price h3 {
  margin-top: 0;
}
.price ul {
  padding-left: 18px;
}

/* ===== Более «дорогой» вид: типографика ===== */
h1,
h2 {
  letter-spacing: -0.01em;
}
.eyebrow {
  letter-spacing: 0.22em;
}
.btn {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  padding: 16px 28px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.primary:hover {
  background: #b5654a;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(200, 120, 91, 0.3);
}
.secondary:hover {
  border-color: var(--t);
  color: var(--t);
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ===== Карточки: золотая линия и мягкая тень при наведении ===== */
.card,
.review,
.price {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}
.card::before,
.price::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--t));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.card:hover,
.review:hover,
.price:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(49, 94, 60, 0.12);
  border-color: #d3cfc2;
}
.card:hover::before,
.price:hover::before {
  transform: scaleX(1);
}

/* ===== Навигация ===== */
nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--t);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}
header {
  transition: box-shadow 0.3s ease;
}
header.scrolled {
  box-shadow: 0 6px 24px rgba(49, 94, 60, 0.1);
}
.phone a {
  transition: color 0.25s ease;
}
.phone a:hover,
.foot a:hover,
.crumb a:hover {
  color: var(--t);
}
.foot a {
  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}
.foot a:hover {
  color: #fff;
  padding-left: 4px;
}

/* ===== Плавное появление ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.in:hover {
  transform: translateY(-4px);
}
.cards .reveal:nth-child(3n + 2),
.reviews .reveal:nth-child(3n + 2),
.prices .reveal:nth-child(3n + 2),
.steps .reveal:nth-child(3n + 2) {
  transition-delay: 0.1s;
}
.cards .reveal:nth-child(3n),
.reviews .reveal:nth-child(3n),
.prices .reveal:nth-child(3n),
.steps .reveal:nth-child(3n) {
  transition-delay: 0.2s;
}
.step.reveal.in:hover {
  transform: none;
}
.stat.reveal.in:hover {
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-grid > div:first-child,
.pagehero .wrap {
  animation: fadeUp 0.9s ease both;
}
.hero .photo {
  animation: fadeUp 1.1s ease 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== Шрифт и читаемость ===== */
.lead {
  font-size: 18px;
  line-height: 1.75;
  font-weight: 400;
}
.muted,
.card p,
.step p {
  line-height: 1.75;
}
.card p {
  font-size: 15px;
}
.btn,
.phone,
.eyebrow,
nav {
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
}
nav {
  font-weight: 500;
}
.btn {
  font-weight: 700;
}

/* ===== Блок «Свяжитесь с нами» внизу страниц ===== */
.cta {
  padding: 56px 40px;
  text-align: center;
}
.cta .actions {
  justify-content: center;
  margin-bottom: 0;
}
.cta p {
  max-width: 560px;
  margin: 0 auto;
}
.cta-section {
  padding-top: 20px;
}
.card .btn,
.price .btn {
  margin-top: 0;
}

/* ===== Мягкий и чуть более плотный шрифт ===== */
.lead {
  font-weight: 500;
}
.muted,
.card p,
.step p,
.price li {
  font-weight: 500;
}
.card p {
  font-size: 16px;
}
nav {
  font-weight: 600;
}
.btn {
  font-weight: 800;
}
.phone {
  font-weight: 800;
}

/* ===== Выравнивание текста ===== */
.card,
.price,
.review,
.step {
  text-align: left;
}
.card p,
.price p,
.review p {
  width: 100%;
  margin: 0;
}
.card h3,
.price h3 {
  margin: 0 0 14px;
}
.card,
.price {
  padding: 34px 32px;
}
p,
li,
.lead {
  text-wrap: pretty;
}
h1,
h2,
h3,
.cta p {
  text-wrap: balance;
}
.center,
.center h2,
.center .lead {
  text-align: center;
}

/* ===== Телефон: всё по центру относительно номера ===== */
.phone {
  text-align: center;
}
.phone small {
  text-align: center;
  letter-spacing: 0.02em;
}

/* ===== Фотографии =====
   Файлы кладутся в папку images/. Если файла нет, показывается мягкий фон. */
.ph {
  background-color: #dfe6d8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ph-hero {
  background-image: url("images/hero.jpg"), linear-gradient(145deg, #cbd8c5, #efdbce);
}
.ph-banner {
  background-image: url("images/banner.jpg"), linear-gradient(120deg, #315e3c, #8aa37f);
}
.ph-nanny {
  background-image: url("images/service-nanny.jpg"), linear-gradient(145deg, #e9dccd, #d6e0cf);
}
.ph-caregiver {
  background-image: url("images/service-caregiver.jpg"), linear-gradient(145deg, #d6e0cf, #eadfd2);
}
.ph-housekeeper {
  background-image:
    url("images/service-housekeeper.jpg"), linear-gradient(145deg, #eadfd2, #d9e3d2);
}
.ph-governess {
  background-image: url("images/service-governess.jpg"), linear-gradient(145deg, #d9e3d2, #ecdccf);
}
.ph-gardener {
  background-image: url("images/service-gardener.jpg"), linear-gradient(145deg, #cfdcc6, #e8e2d2);
}
.ph-other {
  background-image: url("images/service-other.jpg"), linear-gradient(145deg, #e8e2d2, #d6e0cf);
}
.ph-about1 {
  background-image: url("images/about-1.jpg"), linear-gradient(145deg, #cbd8c5, #efdbce);
}
.ph-about2 {
  background-image: url("images/about-2.jpg"), linear-gradient(145deg, #efdbce, #cbd8c5);
}
.photo:before {
  display: none;
}
.photo {
  box-shadow: 0 24px 50px rgba(49, 94, 60, 0.18);
}

/* Фото в карточках */
.card {
  overflow: hidden;
}
.card-photo {
  width: calc(100% + 64px);
  height: 190px;
  margin: -34px -32px 26px;
  transition: transform 0.8s ease;
}
.card:hover .card-photo {
  transform: scale(1.05);
}
.card::before {
  z-index: 2;
}

/* Баннер с фото */
.banner {
  position: relative;
  padding: 120px 0;
  color: #fff;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 58, 38, 0.82), rgba(30, 58, 38, 0.25));
}
.banner .wrap {
  position: relative;
}
.banner-text {
  max-width: 560px;
}
.banner h2 {
  color: #fff;
  font-size: 40px;
  margin: 12px 0 16px;
}
.banner .eyebrow {
  color: #f0c9b6;
}
.banner p {
  font-size: 18px;
  line-height: 1.7;
  color: #ffffffe6;
}

/* «О нас»: текст и фото рядом */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.about-photos {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
}
.about-photos .ph {
  height: 300px;
  box-shadow: 0 18px 40px rgba(49, 94, 60, 0.15);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-photos {
    position: static;
  }
  .banner {
    padding: 80px 0;
  }
  .banner h2 {
    font-size: 30px;
  }
}

/* «Ежедневно» в верхней полосе строго над номером телефона, по центру его блока */
.phone,
.top-hours {
  width: 240px;
  text-align: center;
  flex: none;
}

/* =====================================================
   ЕДИНАЯ ТИПОГРАФИКА — размеры задаются только здесь
   ===================================================== */
:root {
  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
  --fs-small: 14px; /* меню, подвал, подписи, цифры-пояснения */
  --fs-text: 17px; /* весь основной текст */
  --fs-lead: 19px; /* вводный текст под заголовками */
  --fs-h3: 24px; /* заголовки карточек, шагов, цен */
  --fs-h2: 40px; /* заголовки разделов */
  --fs-h1: 56px; /* главный заголовок */
  --fs-h1-page: 46px; /* заголовок внутренних страниц */
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-text);
  line-height: 1.7;
  font-weight: 500;
}

/* Заголовки: один шрифт, один вес, одинаковый межстрочный */
h1,
h2,
h3,
.logo,
.stat b,
.price strong,
.photo-card b,
.step h3 {
  font-family: var(--font-head);
  font-weight: 400;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.12;
}
.pagehero h1 {
  font-size: var(--fs-h1-page);
  line-height: 1.15;
}
h2,
.about-text h2,
.banner h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
}
h3,
.card h3,
.price h3,
.step h3,
.photo-card b {
  font-size: var(--fs-h3);
  line-height: 1.3;
}
.logo {
  font-size: 26px;
  line-height: 1.1;
}
.stat b {
  font-size: 42px;
  line-height: 1.1;
}
.price strong {
  font-size: 32px;
  line-height: 1.2;
}

/* Основной текст: везде один размер и один межстрочный */
p,
li,
.muted,
.card p,
.step p,
.review p,
.price li,
.price p,
.about-text p,
.about-text li,
.banner p,
.photo-card p {
  font-family: var(--font-body);
  font-size: var(--fs-text);
  line-height: 1.7;
  font-weight: 500;
}
.lead,
.sub {
  font-size: var(--fs-lead);
  line-height: 1.7;
}
.review p {
  font-style: normal;
  color: var(--muted);
}

/* Мелкий текст: один размер */
.top,
nav,
.crumb,
.foot a,
.foot p,
.foot li,
.stat span,
.phone small,
.copy,
.review b,
.step b {
  font-size: var(--fs-small);
  line-height: 1.5;
}
nav {
  font-size: 15px;
}
.logo small {
  font-size: 10px;
  letter-spacing: 0.12em;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  line-height: 1.4;
}
.phone {
  font-size: 18px;
  line-height: 1.3;
}
.phone small {
  font-size: 12px;
  font-weight: 500;
}
.foot h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
}

/* Кнопки: один размер */
.btn {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1;
  padding: 17px 26px;
}

/* Галочки в начале страницы */
.checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 0;
  margin: 28px 0 0;
}
.checks li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-small);
  color: var(--muted);
  white-space: nowrap;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--t);
  font-weight: 700;
}

/* Ритм отступов: заголовок → текст → кнопки */
h2 {
  margin: 0 0 14px;
}
h1 {
  margin: 14px 0 22px;
}
.lead {
  margin: 0 0 28px;
}
.actions {
  gap: 12px;
  margin: 0;
}
.cta .actions {
  margin-top: 28px;
}

@media (max-width: 900px) {
  :root {
    --fs-h1: 38px;
    --fs-h1-page: 34px;
    --fs-h2: 30px;
    --fs-h3: 22px;
    --fs-lead: 17px;
  }
}
@media (max-width: 560px) {
  :root {
    --fs-h1: 34px;
  }
}

/* ===== Подвал: выравнивание колонок по одной сетке ===== */
.foot {
  align-items: start;
}
.foot > div > .logo,
.foot > div > h4 {
  height: 56px;
  margin: 0;
}
.foot > div > h4 {
  padding-top: 6px;
  line-height: 1.4;
}
.foot > div > .logo {
  display: block;
}
.foot p {
  margin: 0;
}
.foot a + p {
  margin-top: 12px;
}

/* ===== Логотип в шапке ===== */
header .logo {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-img {
  display: block;
  height: 64px;
  width: auto;
  transition: transform 0.4s ease;
}
header .logo:hover .logo-img {
  transform: scale(1.06) rotate(-2deg);
}
.logo-text {
  display: block;
}
@media (max-width: 600px) {
  .logo-img {
    height: 52px;
  }
}

/* ===== Страница «Контакты» ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: start;
}
.contact-info h2 {
  font-size: calc(var(--fs-h2) * 0.9);
}
.contact-info p a {
  color: var(--gd);
  font-weight: 700;
}
.contact-box h3 {
  font-size: calc(var(--fs-h3) + 4px);
  color: var(--gd);
  margin: 0 0 12px;
}
@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Мобильная шапка и бургер-меню ===== */
.burger {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--gd);
  border-radius: 1px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease,
    top 0.25s ease;
}
.burger::before {
  top: 14px;
}
.burger span {
  top: 21px;
}
.burger::after {
  top: 28px;
}
header.menu-open .burger::before {
  top: 21px;
  transform: rotate(45deg);
}
header.menu-open .burger span {
  opacity: 0;
}
header.menu-open .burger::after {
  top: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 850px) {
  .nav {
    height: 68px;
    gap: 12px;
  }
  header .logo {
    gap: 10px;
    min-width: 0;
  }
  .logo-img {
    height: 48px;
  }
  .logo-text {
    font-size: 20px;
    white-space: nowrap;
  }
  .logo-text small {
    display: none;
  }
  .phone {
    width: auto;
    margin-left: auto;
    text-align: right;
    font-size: 16px;
  }
  .phone small {
    display: none;
  }
  .burger {
    display: block;
  }
  /* Выпадающее меню под шапкой */
  nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px 20px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(49, 94, 60, 0.14);
  }
  header.menu-open nav {
    display: flex;
  }
  nav a {
    padding: 13px 0;
    font-size: 17px;
    border-bottom: 1px solid #efede6;
  }
  nav a:last-child {
    border-bottom: 0;
  }
  nav a::after {
    display: none;
  }
}
@media (max-width: 560px) {
  .nav {
    height: 62px;
  }
  .logo-img {
    height: 42px;
  }
  .logo-text {
    font-size: 18px;
  }
  /* Номер прячется в иконку трубки, текст остаётся для чтения вслух */
  .phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 0;
    color: transparent;
    border: 1px solid var(--line);
    border-radius: 3px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23315e3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.6a2 2 0 0 1-.5 2.1L8 9.7a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.5c.8.3 1.7.6 2.6.7a2 2 0 0 1 1.7 2z'/></svg>");
  }
  nav {
    padding: 6px 14px 12px;
  }
}

/* ===== Страница цен: ссылка и кнопка к калькулятору ===== */
.pagehero .btn {
  margin-top: 8px;
}
.price-link {
  margin-top: 18px;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--t);
  transition: letter-spacing 0.3s ease;
}
.price-link:hover {
  letter-spacing: 0.04em;
}
html {
  scroll-behavior: smooth;
}
#calc {
  scroll-margin-top: 100px;
}

/* ===== Калькулятор ===== */
.calc-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(49, 94, 60, 0.1);
}
.calc-controls {
  padding: 40px;
}
.calc-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gd);
}
.calc-controls > .calc-label:not(:first-child) {
  margin-top: 32px;
}
.calc-group {
  margin: 18px 0 10px;
  font-size: var(--fs-small);
  color: var(--muted);
}
.calc-group:first-child {
  margin-top: 0;
}
.seg {
  display: inline-flex;
  padding: 4px;
  background: var(--c);
  border: 1px solid var(--line);
}
.seg button {
  border: 0;
  background: transparent;
  padding: 12px 26px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}
.seg button[aria-checked="true"] {
  background: var(--gd);
  color: #fff;
  box-shadow: 0 6px 16px rgba(49, 94, 60, 0.25);
}
.seg button:not([aria-checked="true"]):hover {
  color: var(--gd);
}
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--gd);
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.chip span {
  font-weight: 700;
}
.chip small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
.chip em {
  margin-top: auto;
  padding-top: 6px;
  font-style: normal;
  font-size: var(--fs-small);
  color: var(--t);
  font-weight: 700;
}
.chip:hover {
  border-color: var(--t);
  transform: translateY(-2px);
}
.chip[aria-pressed="true"] {
  border-color: var(--t);
  background: #fbf3ee;
  box-shadow: inset 0 0 0 1px var(--t);
}
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}
.stepper button {
  width: 48px;
  height: 48px;
  border: 0;
  background: #fff;
  font-size: 22px;
  color: var(--gd);
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.stepper button:hover:not(:disabled) {
  background: #f3f0e8;
}
.stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}
.stepper output {
  min-width: 64px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--gd);
}
.calc-result {
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  background: linear-gradient(160deg, #315e3c, #264c30);
  color: #fff;
}
.calc-result .eyebrow {
  color: #f0c9b6;
}
.calc-total {
  margin: 14px 0 10px;
  font-family: var(--font-head);
  font-size: 54px;
  line-height: 1.1;
  color: #fff;
}
.calc-total span {
  font-variant-numeric: tabular-nums;
}
.calc-sum {
  min-height: 3.4em;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: #d5e2d8;
}
.calc-notes {
  margin: 22px 0 26px;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.calc-notes li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: #e6eee8;
}
.calc-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f0c9b6;
  font-weight: 700;
}
.calc-result .actions {
  margin-top: auto;
  flex-direction: column;
  align-items: stretch;
}
.calc-result .btn {
  text-align: center;
}
.calc-result .btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.calc-result .btn.secondary:hover {
  background: #fff;
  color: var(--gd);
  border-color: #fff;
}

@media (max-width: 900px) {
  .calc {
    grid-template-columns: minmax(0, 1fr);
  }
  .calc-controls,
  .calc-result {
    padding: 28px 22px;
  }
  .calc-total {
    font-size: 44px;
  }
}

/* ===== Калькулятор: вкладки, разделы, надбавки ===== */
.seg-lg {
  display: flex;
  width: 100%;
}
.seg-lg button {
  flex: 1;
  padding: 14px 12px;
  font-size: 16px;
}
.seg-wrap {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
}
.seg-wrap button {
  flex: 1 1 auto;
  padding: 10px 12px;
  font-size: 15px;
  white-space: nowrap;
}
.calc-hint {
  margin-top: 10px;
  min-height: 1.4em;
  font-size: 13px;
  color: var(--muted);
}
.mod-group .calc-label {
  margin-top: 26px;
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--gd);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}
.pill b {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
}
.pill b.plus {
  color: #a4573b;
  background: #f7e4da;
}
.pill b.minus {
  color: #2f6a3f;
  background: #dcebdd;
}
.pill:hover {
  border-color: var(--t);
  transform: translateY(-1px);
}
.pill[aria-pressed="true"] {
  border-color: var(--t);
  background: #fbf3ee;
  box-shadow: inset 0 0 0 1px var(--t);
}
.calc-break {
  margin-top: 10px;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: #f0c9b6;
}
.calc-break:empty {
  display: none;
}
.calc-incl {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--fs-small);
  color: #e6eee8;
}
.calc-incl[hidden] {
  display: none;
}
.calc-incl summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-incl summary::-webkit-details-marker {
  display: none;
}
.calc-incl summary::after {
  content: "+";
  font-size: 20px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.calc-incl[open] summary::after {
  transform: rotate(45deg);
}
.calc-incl ul {
  margin: 12px 0 0;
  padding-left: 18px;
  line-height: 1.7;
}
.calc-incl li {
  font-size: var(--fs-small);
  line-height: 1.7;
}
.calc-notes {
  margin-top: 18px;
}
@media (max-width: 600px) {
  .seg-lg button {
    font-size: 14px;
    padding: 12px 6px;
  }
  .chips {
    grid-template-columns: 1fr;
  }
  /* Разделы сеткой по два, а не уходят за край */
  .seg-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .seg-wrap button {
    white-space: normal;
  }
}

/* ===== Ссылки на соцсети (Авито, Telegram-канал, ВК) ===== */
.top .wrap {
  align-items: center;
}
.top-social {
  display: flex;
  gap: 22px;
  justify-content: center;
}
.top-social:empty {
  display: none;
}
.top-social a {
  color: #dce7dd;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.top-social a:hover {
  color: #fff;
  text-decoration: underline;
}
.foot-social {
  margin-top: 6px;
}
.social-inline a {
  display: inline-block;
  margin-right: 18px;
  color: var(--t);
  font-weight: 700;
}
.social-inline a:hover {
  text-decoration: underline;
}

.about-text .reasons {
  list-style: none;
  padding-left: 0;
}
.about-text .reasons li {
  padding-left: 18px;
  border-left: 3px solid var(--t);
  margin: 14px 0;
}
.about-text .reasons b {
  color: var(--gd);
}
.calc-desc {
  margin-top: 14px;
}
.calc-desc .calc-incl {
  margin-top: 10px;
}
.calc-desc p {
  font-size: var(--fs-small);
  line-height: 1.7;
  margin: 12px 0 0;
}
.calc-desc h4 {
  margin: 14px 0 0;
  font-size: var(--fs-small);
}
.calc-desc li b {
  font-weight: 700;
}

/* ===== Исправления адаптивности ===== */

/* Шапка 851–1100: меню ещё видно, всё ужато в одну строку */
@media (min-width: 851px) and (max-width: 1100px) {
  .nav {
    gap: 18px;
  }
  header .logo {
    flex: none;
    gap: 10px;
  }
  .logo-img {
    height: 52px;
  }
  .logo-text {
    font-size: 21px;
    white-space: nowrap;
  }
  .logo-text small {
    display: none;
  }
  nav {
    gap: 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  .phone {
    width: auto;
    font-size: 16px;
  }
  .phone small {
    display: none;
  }
  .top-hours {
    width: auto;
  }
}

/* Верхняя полоса на планшете: без слогана, чтобы не переносилась */
@media (max-width: 850px) {
  .top .wrap > span:first-child {
    display: none;
  }
  .top-hours {
    width: auto;
  }
}

/* Узкие телефоны: название не залезает под кнопку телефона */
@media (max-width: 850px) {
  .logo-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 374px) {
  .nav {
    gap: 8px;
  }
  header .logo {
    gap: 8px;
  }
  .logo-img {
    height: 36px;
  }
  .logo-text {
    font-size: 16px;
  }
}

/* Статистика: разделитель только между соседями в ряду */
@media (max-width: 850px) {
  .stat {
    border-right: 0;
  }
  .stat:first-child {
    border-right: 1px solid #ffffff30;
  }
}
@media (max-width: 560px) {
  .stat:first-child {
    border-right: 0;
  }
}

/* Сенсорные экраны: эффекты наведения не «залипают» после тапа */
@media (hover: none) {
  .card:hover,
  .review:hover,
  .price:hover,
  .reveal.in:hover,
  .primary:hover,
  .secondary:hover,
  .chip:hover,
  .pill:hover,
  .card:hover .card-photo,
  header .logo:hover .logo-img {
    transform: none;
  }
  .card:hover,
  .review:hover,
  .price:hover,
  .primary:hover {
    box-shadow: none;
  }
  .card:hover::before,
  .price:hover::before {
    transform: scaleX(0);
  }
}
