:root {
  --green: #2f5d50;
  --green-dark: #234a3f;
  --ochre: #c8773a;
  --ochre-dark: #a85f28;
  --bg: #faf8f4;
  --tint: #f0ece4;
  --card: #ffffff;
  --text: #1f2421;
  --muted: #5e655f;
  --line: #ddd7cb;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; color: var(--green); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--green); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 248, 244, .96);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; padding-bottom: 4px; }
.top__logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; padding: 10px 12px; min-height: 44px;
  text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--text);
  display: flex; align-items: center; border-radius: 8px;
}
.nav a:hover { background: var(--tint); color: var(--green); }

/* Кнопки */
.btns { display: flex; flex-direction: column; gap: 12px; }
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 68px; padding: 18px 32px;
  font-size: 1.3rem; font-weight: 700; text-decoration: none; text-align: center;
  border-radius: 14px; border: 2px solid transparent;
}
.btn--main { background: var(--ochre); color: #1c1208; }
.btn--main:hover { background: var(--ochre-dark); color: #fff; }
.btn--alt { background: transparent; color: var(--green); border-color: var(--green); }
.btn--alt:hover { background: var(--green); color: #fff; }

/* Первый экран */
.hero {
  padding: 56px 0 48px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(20, 38, 32, .78), rgba(20, 38, 32, .66)),
    url("картинки/спальня.jpg") center / cover no-repeat;
  background-color: var(--green-dark);
}
.hero h1 { font-size: 2.8rem; letter-spacing: -.015em; margin-bottom: 14px; color: #fff; }
.hero__lead { font-size: 1.2rem; margin-bottom: 26px; max-width: 34em; }
.hero__note { margin-top: 16px; color: #eef3f0; font-size: 1rem; }
.hero .btn--alt { color: #fff; border-color: #fff; }
.hero .btn--alt:hover { background: #fff; color: var(--green); }

/* Секции */
.sec { padding: 44px 0; }
.sec--tint { background: var(--tint); }
.sec h2 { font-size: 1.9rem; margin-bottom: 12px; }
.sec__lead { color: var(--muted); max-width: 40em; margin-bottom: 24px; }

/* Услуги */
.cards { display: grid; gap: 12px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-left: 5px solid var(--ochre); border-radius: var(--radius); padding: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.rooms { display: grid; gap: 12px; }
.rooms li { margin: 0; }
.rooms img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.rooms span { display: block; margin-top: 6px; font-weight: 600; color: var(--muted); font-size: .95rem; }

/* Цены */
.prices { display: grid; gap: 14px; margin-bottom: 20px; }
.pgroup { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pgroup h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pgroup dl { margin: 0; }
.pgroup dl > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.pgroup dl > div:first-child { border-top: 0; }
.pgroup dt { flex: 1; }
.pgroup dd { margin: 0; font-weight: 700; white-space: nowrap; color: var(--text); }
.terms { background: var(--green); color: #fff; border-radius: var(--radius); padding: 20px 18px; }
.terms h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.terms li { padding: 6px 0 6px 22px; position: relative; }
.terms li::before {
  content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px;
  background: var(--ochre); border-radius: 2px;
}

/* Калькулятор */
.calc {
  display: block; width: 100%; height: 1500px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #f5f4f0;
}

/* Этапы */
.steps { display: grid; gap: 12px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 18px 72px;
}
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--green); color: #fff; font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }

/* Контакты */
.contacts { display: grid; gap: 24px; }
.clist li { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px solid var(--line); }
.clist li:last-child { border-bottom: 1px solid var(--line); }
.clist span { font-size: .85rem; color: var(--muted); }
.clist a { font-size: 1.4rem; font-weight: 700; text-decoration: none; display: inline-block; padding: 6px 0; }

/* Подвал */
.foot { background: var(--green-dark); color: #e6efeb; padding: 22px 0; font-size: .95rem; }
.foot__in { display: flex; flex-direction: column; gap: 4px; }

/* Планшет и выше */
@media (min-width: 640px) {
  .btns { flex-direction: row; }
  .btns--col { flex-direction: column; align-self: end; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .rooms { grid-template-columns: repeat(3, 1fr); }
  .prices { grid-template-columns: repeat(2, 1fr); }
  .calc { height: 1000px; }
  .top__in { flex-direction: row; align-items: center; justify-content: space-between; }
  .top__logo img { height: 44px; }
  .foot__in { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 104px 0 96px; }
  .hero h1 { font-size: 3.6rem; }
  .sec { padding: 64px 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .calc { height: 900px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
