@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --green: #1f4d2b;
  --green-dark: #163a20;
  --green-soft: #eef4ef;
  --white: #ffffff;
  --orange: #f26b1d;
  --orange-dark: #d85a10;
  --btn-bg: #b84a0c;
  --btn-bg-hover: #9a3d08;
  --text: #14231a;
  --muted: #55665b;
  --line: #dfe7e1;
  --radius: 16px;
  --head: "Montserrat", "Arial Black", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--body); font-weight: 600; font-size: 17px;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s;
}
.btn-call { background: var(--btn-bg); color: var(--white); }
.btn-call:hover { background: var(--btn-bg-hover); }
.btn-max { background: transparent; color: var(--white); border-color: var(--white); }
.btn-max:hover { background: var(--white); color: var(--green); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* шапка */
.header { position: sticky; top: 0; z-index: 10; background: var(--green); color: var(--white); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 56px; width: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; }
.header-contacts { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* главный экран */
.hero { background: var(--green); color: var(--white); padding: 56px 0 72px; }
.hero-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 600; color: #b9d6bf; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: 52px; margin-top: 14px; }
.lead { font-size: 20px; color: #dcebdf; margin-top: 18px; max-width: 34em; }

/* места под фото */
.photo-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-radius: var(--radius); background: repeating-linear-gradient(135deg, #2b5f38 0 14px, #275633 14px 28px);
  color: #b9d6bf; font-size: 14px; padding: 16px;
}
.hero-photo { aspect-ratio: 4 / 5; }

/* секции (задача 3) */
.section { padding: 72px 0; }
.section h2 { font-size: 36px; margin-bottom: 28px; }

/* нижняя панель на телефоне */
.mobile-bar { display: none; }

@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .header-row { min-height: 64px; }
  .brand img { height: 44px; width: auto; }
  .header-contacts .btn-max { display: none; }
  .header-phone { font-size: 15px; }
  .hero { padding: 36px 0 48px; }
  .hero-row { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 18px; }
  .buttons .btn { flex: 1 1 100%; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 28px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--white); box-shadow: 0 -4px 18px rgba(0, 0, 0, .12);
  }
  .mobile-bar .btn-max { color: var(--green); border-color: var(--green); }
}

/* блоки страницы */
.section-soft { background: var(--green-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 20px; margin-bottom: 10px; color: var(--green); }
.card p { color: var(--muted); }
.card-accent { border-top: 5px solid var(--orange); }
.note { margin-top: 22px; color: var(--muted); }
.small { margin-top: 14px; font-size: 14px; color: var(--muted); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 24px; }
.steps b { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--orange); color: var(--white); font-family: var(--head); font-size: 20px; margin-bottom: 14px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); }

.why { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why li { border-left: 4px solid var(--orange); padding: 6px 0 6px 16px; }
.why b { display: block; font-family: var(--head); font-size: 22px; color: var(--green); }
.why span { color: var(--muted); }

.price-list { list-style: none; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.price-list li:last-child { border-bottom: 0; }
.price-list b { color: var(--green); white-space: nowrap; }

.btn-max-dark { background: transparent; color: var(--green); border-color: var(--green); }
.btn-max-dark:hover { background: var(--green); color: var(--white); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }

.rating { font-size: 20px; margin-bottom: 20px; color: #e3a21a; }
.rating b { font-family: var(--head); font-size: 34px; color: var(--green); margin-right: 6px; }
.rating span { color: var(--muted); font-size: 17px; margin-left: 6px; }

.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lead-dark { font-size: 20px; color: var(--muted); }
.zone-photo { aspect-ratio: 4 / 3; }

details { background: var(--white); border-radius: 12px; border: 1px solid var(--line); padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--orange); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin-top: 12px; color: var(--muted); }

.cta { background: var(--green); color: var(--white); padding: 64px 0; text-align: center; }
.cta h2 { font-size: 34px; max-width: 20em; margin: 0 auto; }
.cta .buttons { justify-content: center; }

.footer { background: var(--green-dark); color: #cfe3d4; padding: 40px 0 28px; }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.footer-logo { height: 84px; width: auto; }
.footer-name { font-family: var(--head); font-weight: 800; color: var(--white); text-transform: uppercase; }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-contacts a { color: var(--white); font-weight: 600; text-decoration: none; }
.footer .small { color: #9db8a4; }

@media (max-width: 960px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .cards, .cards-3, .steps, .why, .zone { grid-template-columns: 1fr; }
  .price-list li { flex-direction: column; gap: 2px; padding: 14px 18px; }
  .price-list b { white-space: normal; }
  .cta { padding: 48px 0; }
  .cta h2 { font-size: 26px; }
  .footer-row { grid-template-columns: 1fr; text-align: left; }
  .footer-contacts { text-align: left; }
}

/* фото */
.hero-photo { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); max-height: 620px; }
.zone-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.before-after img, .gallery img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; }
.before-after figure { position: relative; }
.before-after figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(20, 35, 26, .82); color: #fff;
  font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 999px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .before-after { gap: 10px; }
  .before-after figcaption { font-size: 13px; left: 8px; bottom: 8px; padding: 4px 9px; }
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* услуги с фото */
.photo-services { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.photo-card { display: grid; grid-template-columns: 220px 1fr; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
.photo-card img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; display: block; }
.photo-card div { padding: 24px; }
.photo-card h3 { font-size: 22px; color: var(--green); margin-bottom: 10px; }
.photo-card p { color: var(--muted); }
@media (max-width: 960px) { .photo-services { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .photo-card { grid-template-columns: 1fr; }
  .photo-card img { min-height: 0; height: auto; aspect-ratio: 4 / 3; }
}

/* отзывы */
.review { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.review-stars { color: #e3a21a; letter-spacing: 2px; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { color: var(--text); }
.review figcaption { font-size: 15px; color: var(--muted); }
.review figcaption b { color: var(--green); }
.review figcaption a { color: var(--green); font-weight: 600; }

/* лента услуг */
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.services-head h2 { margin-bottom: 12px; }
.accent { color: var(--green); }
.services-head h2 { color: var(--text); }
.slider-nav { display: flex; gap: 10px; flex: none; }
.nav-btn { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--green); background: var(--white);
  color: var(--green); font-size: 22px; cursor: pointer; }
.nav-btn:hover { background: var(--green); color: var(--white); }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 3); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; min-height: 460px;
  display: flex; align-items: flex-end; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,14,.15) 0%, rgba(10,20,14,.55) 45%, rgba(10,20,14,.9) 100%); }
.slide-body { position: relative; z-index: 1; padding: 26px; color: var(--white); }
.slide-body h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; color: var(--white); }
.slide-body p { color: #e4efe6; margin-bottom: 18px; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); min-height: 46px; }
.btn-ghost:hover { background: var(--white); color: var(--green); }
@media (max-width: 960px) { .slides { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 767px) {
  .slider-nav { display: none; }
  .slides { grid-auto-columns: 82%; gap: 12px; }
  .slide { min-height: 400px; }
  .slide-body h3 { font-size: 20px; }
}


/* калькулятор-квиз */
.calc-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.quiz { padding: 28px; min-height: 380px; }
.quiz h3 { font-size: 24px; color: var(--text); margin: 6px 0 10px; }
.quiz-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.quiz-progress span { display: block; height: 100%; background: var(--orange); transition: width .2s; }
.quiz-step { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.quiz-hint { color: var(--muted); margin-bottom: 16px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.quiz-opt { text-align: left; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: var(--white);
  font: 600 16px var(--body); color: var(--text); cursor: pointer; }
.quiz-opt:hover, .quiz-opt:focus-visible { border-color: var(--green); background: var(--green-soft); }
.quiz-slider { display: flex; align-items: center; gap: 18px; margin: 18px 0; }
.quiz-slider input { flex: 1; accent-color: var(--green); height: 32px; }
.quiz-slider output { font-family: var(--head); font-size: 26px; color: var(--green); min-width: 90px; text-align: right; }
.quiz-nav { margin-top: 18px; }
.quiz-back { background: none; border: 0; color: var(--green); font: 600 16px var(--body); cursor: pointer; padding: 6px 0; }
.quiz-price { font-family: var(--head); font-size: 44px; color: var(--green); margin: 8px 0 10px; }

/* контакты */
.contacts-row { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.contacts-phone { display: inline-block; font-family: var(--head); font-size: 36px; color: var(--green); text-decoration: none; margin: 10px 0 4px; }
.contacts-logo { width: 320px; height: auto; }
.header-link { color: var(--white); text-decoration: none; font-weight: 600; }

@media (max-width: 767px) {
  .calc-row, .contacts-row { grid-template-columns: 1fr; gap: 24px; }
  .quiz { padding: 20px; min-height: 0; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-price { font-size: 36px; }
  .contacts-phone { font-size: 28px; }
  .contacts-logo { width: 220px; }
  .header-link { font-size: 14px; }
  .header-contacts { gap: 12px; }
  .header-phone { font-size: 14px; }
}
.quiz .quiz-price { color: var(--green); }

.contacts-email { display: block; color: var(--green); font-weight: 600; font-size: 18px; margin-bottom: 4px; }

/* кнопки и ссылки в шапке не переносятся по слогам */
.btn, .header-link, .header-phone { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 360px) {
  .header-phone { display: none; }
  .mobile-bar .btn { padding: 0 12px; font-size: 16px; }
}

/* окно «Отправить фото» */
.photo-dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(480px, calc(100% - 24px)); max-height: calc(100% - 24px); }
.photo-dialog::backdrop { background: rgba(10, 20, 14, .6); }
.photo-dialog form { position: relative; padding: 28px 24px 22px; display: grid; gap: 12px; }
.photo-dialog h3 { font-size: 24px; color: var(--green); padding-right: 36px; }
.photo-dialog label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.photo-dialog input[type=tel], .photo-dialog input[type=text], .photo-dialog textarea {
  font: 16px var(--body); padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; }
.photo-dialog input:focus, .photo-dialog textarea:focus { outline: none; border-color: var(--green); }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; color: var(--muted); cursor: pointer; }
.file-pick { cursor: pointer; }
.file-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pick span { display: block; text-align: center; padding: 16px; border: 2px dashed var(--green); border-radius: 12px; color: var(--green); background: var(--green-soft); }
.form-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.form-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.photo-dialog .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; color: var(--muted); }
.consent a { color: var(--green); }
.hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1em; }
.form-status.ok { color: var(--green); } .form-status.err { color: #b3261e; }
.photo-dialog .btn { width: 100%; }
.photo-dialog .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green); }
.photo-dialog { overflow-x: hidden; }
.photo-dialog { margin: auto; }

/* декор */
.hero { position: relative; overflow: hidden; padding-bottom: 150px; }
.hero::before { content: ""; position: absolute; width: 760px; height: 760px; right: -220px; top: -180px;
  background: url("decor/rings.svg") center/contain no-repeat; pointer-events: none; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px;
  background: url("decor/forest.svg") bottom center/1440px 100% repeat-x; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1::after { content: ""; display: block; width: 120px; height: 24px; margin-top: 16px;
  background: url("decor/branch.svg") left/contain no-repeat; }
.hero-media { position: relative; }
.hero-photo { box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.hero-media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid rgba(242, 107, 29, .7);
  border-radius: var(--radius); pointer-events: none; }
.hero-badge { position: absolute; left: -26px; bottom: 34px; z-index: 2; background: var(--white); color: var(--text);
  border-radius: 16px; padding: 12px 16px; box-shadow: 0 14px 30px rgba(0, 0, 0, .25); display: grid; gap: 2px;
  font-size: 15px; color: #e3a21a; }
.hero-badge b { font-family: var(--head); font-size: 26px; color: var(--green); }
.hero-badge small { color: var(--muted); font-size: 13px; }
.section-soft { background-image: url("decor/topo.svg"); background-size: 1440px auto; background-position: center; }
.section h2 { position: relative; }
.section:not(#services) h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin-top: 14px;
  background: linear-gradient(90deg, var(--orange) 0 60%, var(--green) 60% 100%); }
.steps li { position: relative; overflow: hidden; }
.steps li::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; bottom: -70px;
  background: url("decor/rings.svg") center/contain no-repeat; filter: invert(1); opacity: .35; }
.why li { transition: transform .2s; }
.slide img, .card { transition: transform .35s ease, box-shadow .35s ease; }
.slide:hover img { transform: scale(1.05); }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(20, 35, 26, .12); }
.cta { position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; top: -200px;
  background: url("decor/rings.svg") center/contain no-repeat; }
.cta .container { position: relative; }
.footer { position: relative; padding-top: 110px; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 90px;
  background: url("decor/forest.svg") bottom center/1440px 100% repeat-x; transform: scaleY(-1); filter: brightness(0) invert(1); opacity: 1; }
@media (max-width: 767px) {
  .hero { padding-bottom: 100px; }
  .hero::after { height: 70px; }
  .hero::before { width: 420px; height: 420px; right: -160px; top: -120px; }
  .hero-media::before { inset: 10px -8px -10px 10px; }
  .hero-badge { left: 10px; bottom: 14px; padding: 8px 12px; }
  .hero-badge b { font-size: 20px; }
  .footer { padding-top: 70px; }
  .footer::before { height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .slide img, .card { transition: none; } .slide:hover img, .card:hover { transform: none; } }

/* о себе */
.about-row { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about-photo { position: relative; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); position: relative; z-index: 1; }
.about-photo::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 2px solid var(--orange); border-radius: var(--radius); }
.about-photo::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -60px;
  background: url("decor/rings.svg") center/contain no-repeat; filter: invert(1); opacity: .5; }
#about p { margin-top: 14px; color: var(--muted); }
#about .lead-dark { color: var(--text); }
.about-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.about-facts li { background: var(--green-soft); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--muted); }
.about-facts b { color: var(--green); }
@media (max-width: 767px) {
  .about-row { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 300px; margin: 0 auto 0 18px; }
}
#about { overflow: hidden; }
.about-photo img { object-position: 70% center; }
.zone-text { grid-template-columns: 1fr; }
.footer-legal { display: grid; gap: 4px; color: #9db8a4; } .footer-legal a { color: #cfe3d4; }
