/* ============================================================
   Иконописная мастерская Юрия Анурина — стили лендинга
   1. Переменные и сброс
   2. Типовые элементы (кнопки, поля, контейнер)
   3. Шапка и навигация
   4. Секции: hero, преимущества, услуги, портфолио,
      оффер, этапы, форма, контакты
   5. Футер, плавающие кнопки, модальное окно
   6. Адаптив
   ============================================================ */

/* ---------- 1. Переменные и сброс ---------- */
:root {
  --green: #759454;
  --green-dark: #5e7a42;
  --gold: #e8c551;
  --gold-hover: #f2d46a;
  --ink: #101f2e;
  --text: #3c3c3c;
  --muted: #736e6e;
  --bg: #edf1e7;
  --white: #fff;
  --error: #dd4040;
  --line: rgba(117, 148, 84, 0.35);
  --radius-s: 12px;
  --radius-m: 20px;
  --radius-l: 24px;
  --radius-pill: 32px;
  --font-body: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --font-display: Cormorant, "Times New Roman", serif;
  --shell: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 7vw, 104px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: #242424;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg { display: block; max-width: 100%; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

input, textarea, button, select { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
}
.skip-link:focus {
  left: 12px; top: 12px;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius-s);
}

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

/* ---------- 2. Типовые элементы ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--white {
  background: var(--white);
  border-top: 1px solid rgba(117, 148, 84, 0.25);
  border-bottom: 1px solid rgba(117, 148, 84, 0.25);
}

.section__title {
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(27px, 3.6vw, 42px);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: pretty;
}

.section__lead {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
}
.section__lead--wide {
  max-width: 820px;
  margin-top: calc(clamp(32px, 4vw, 56px) * -1 + 8px);
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.subsection__title {
  margin: clamp(40px, 5vw, 64px) 0 clamp(18px, 2vw, 26px);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  color: var(--ink);
}
.note {
  margin-top: clamp(20px, 2.4vw, 28px);
  padding: 18px 22px;
  background: var(--white);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}
.link-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(94, 122, 66, 0.5);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); border-bottom-color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 36px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.btn--gold:hover { background: var(--gold-hover); color: var(--ink); }
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--outline {
  height: 52px;
  padding: 0 30px;
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green-dark);
  font-size: 15px;
}
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--wide { width: 100%; }

.badge {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid rgba(232, 197, 81, 0.55);
  border-radius: var(--radius-pill);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
}
.price__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- 3. Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--green);
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: 72px;
}
.logo { flex: 0 1 auto; min-width: 0; }
.logo__image {
  width: 100%;
  max-width: min(420px, 52vw);
  height: auto;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}
.nav__link {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav__link:hover { color: var(--gold); }
.header__phone {
  margin-left: auto;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.header__phone:hover { color: var(--gold); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.burger__line {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 74vh, 660px);
  background: var(--ink);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  max-width: none;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 31, 46, 0.88) 0%, rgba(16, 31, 46, 0.72) 45%, rgba(16, 31, 46, 0.42) 100%);
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(18px, 2.4vw, 28px);
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(48px, 7vw, 96px);
  max-width: min(var(--shell), 100%);
}
.hero__title {
  max-width: 760px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.08;
  color: var(--white);
  text-wrap: pretty;
}
.hero__lead {
  max-width: 600px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
}
.hero__facts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 600px;
}
.hero__fact {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.hero__fact::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ---------- Преимущества ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 2.6vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.card__num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}
.card--compact { gap: 12px; padding: clamp(22px, 2.2vw, 30px); }
.card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.card__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  text-wrap: pretty;
}

/* ---------- Услуги ---------- */
.service {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding: clamp(32px, 4vw, 48px) 0;
  border-bottom: 1px solid rgba(117, 148, 84, 0.28);
}
.service:first-of-type { padding-top: 0; }
.service:last-of-type { border-bottom: 0; padding-bottom: 0; }
.service--reverse .service__media { order: 2; }
.service__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.18);
}
.service__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.service__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.service__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--ink);
}
.service__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
}
.service__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.service__body .btn { height: 52px; padding: 0 32px; }

.price-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--bg);
  border: 1px solid rgba(117, 148, 84, 0.4);
  border-radius: var(--radius-l);
}
.price-cta__text {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}

/* --- Частые вопросы --- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 900px;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.faq__q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px clamp(18px, 2vw, 26px);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  margin-left: auto;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--green);
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__item[open] .faq__q { padding-bottom: 10px; }
.faq__a {
  padding: 0 clamp(18px, 2vw, 26px) 22px;
}
.faq__a p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
}

/* ---------- Портфолио ---------- */
.portfolio__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.portfolio__intro {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 700px;
}
.portfolio__intro .section__title { margin-bottom: 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(20px, 2.4vw, 28px);
}
.filter {
  height: 44px;
  padding: 0 22px;
  background: transparent;
  border: 1px solid rgba(117, 148, 84, 0.45);
  border-radius: var(--radius-pill);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.filter:hover { background: rgba(117, 148, 84, 0.12); }
.filter.is-active { background: var(--green); color: var(--white); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}
.gallery__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gallery__item[hidden] { display: none; }
.gallery__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.gallery__image {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery__hint {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px dashed rgba(117, 148, 84, 0.55);
  border-radius: var(--radius-m);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.gallery__hint small {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(115, 110, 110, 0.7);
}
/* фото ещё не загружено — вместо битой картинки подпись-подсказка */
.gallery__frame.is-empty .gallery__image { display: none; }
.gallery__frame.is-empty .gallery__hint { display: flex; }

/* --- Отзывы: слайдер на scroll-snap --- */
.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: clamp(40px, 5vw, 72px) 0 20px;
}
.reviews__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.reviews-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.reviews-arrow {
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(117, 148, 84, 0.45);
  border-radius: 50%;
  color: var(--green-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.reviews-arrow:hover { background: var(--green); color: var(--white); }
.reviews-arrow[disabled] { opacity: 0.35; cursor: default; }
.reviews-arrow[disabled]:hover { background: transparent; color: var(--green-dark); }

.reviews-slider { position: relative; }
.reviews {
  display: flex;
  gap: clamp(14px, 1.8vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.reviews::-webkit-scrollbar { display: none; }
.reviews:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.review {
  flex: 0 0 clamp(260px, 32%, 380px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.reviews-count {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}
.review__quote {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.6;
  color: var(--green);
}
.review__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
}
.review__author {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}
.review__name { font-weight: 700; color: var(--ink); }
.review__kind { color: var(--muted); }
.review__text { flex: 1 1 auto; }

/* ---------- Второй оффер ---------- */
.offer {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.offer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  text-align: center;
}
.offer__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.18;
  color: var(--white);
  text-wrap: pretty;
}
.offer__title em { font-style: normal; color: var(--gold); }
.offer__text {
  max-width: 700px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: pretty;
}
.offer__text strong { color: var(--white); }

/* ---------- Этапы ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}
.steps--materials {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 3px solid var(--green);
}
.step__num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.step__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  text-wrap: pretty;
}

/* ---------- Форма ---------- */
.form-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.form-section__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-section__intro .section__title { margin-bottom: 0; }
.form-section__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 460px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg);
}
.form-section__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.form-card {
  padding: clamp(22px, 2.8vw, 36px);
  background: var(--bg);
  border: 1px solid rgba(117, 148, 84, 0.4);
  border-radius: var(--radius-l);
}
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form__honeypot { position: absolute; left: -9999px; }
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field__req { font-weight: 500; color: var(--muted); }
.field__input {
  height: 52px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid rgba(117, 148, 84, 0.5);
  border-radius: var(--radius-s);
  font-size: 15px;
}
.field__input--area {
  height: auto;
  padding: 14px 16px;
  resize: vertical;
}
.field__input:focus { outline: none; border-color: var(--green); }
.field__input[aria-invalid="true"] { border-color: var(--error); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.consent__box {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
  flex-shrink: 0;
}
.consent__label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}

.form__error {
  font-size: 13px;
  font-weight: 600;
  color: var(--error);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  animation: fadeUp 0.35s ease;
}
.form-success[hidden] { display: none; }
.form-success__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--green);
  border-radius: 50%;
  color: var(--white);
  font-size: 24px;
}
.form-success__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.form-success__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.form-success .btn { height: 48px; padding: 0 26px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Контакты ---------- */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.contacts__body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contacts__body .section__title { margin-bottom: 0; }
.contacts__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contacts__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.contacts__phone {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: var(--ink);
}
.contacts__email {
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.contacts__phone:hover,
.contacts__email:hover { color: var(--green-dark); }
.contacts__text {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  text-wrap: pretty;
}
.contacts__media {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--white);
}
.contacts__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.socials__link {
  display: block;
  width: 50px; height: 50px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s;
}
.socials__link--square { border-radius: 12px; }
.socials__link:hover { transform: translateY(-2px); }
.socials__icon { width: 100%; height: 100%; }

/* ---------- 5. Футер ---------- */
.footer {
  background: var(--green);
  color: var(--white);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  padding-top: clamp(36px, 4.5vw, 56px);
  padding-bottom: clamp(36px, 4.5vw, 56px);
}
.footer__brand { max-width: min(420px, 100%); }
.footer__logo { width: 100%; height: auto; }
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__link,
.footer__phone,
.footer__email {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}
.footer__link:hover,
.footer__phone:hover,
.footer__email:hover { color: var(--gold); }
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
}
.footer__phone { font-size: 16px; font-weight: 700; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding: 18px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Плавающие кнопки ---------- */
.quick {
  position: fixed;
  right: clamp(12px, 2vw, 26px);
  bottom: clamp(12px, 2vw, 26px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick__link {
  display: block;
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s;
}
.quick__link--square { border-radius: 13px; }
.quick__link:hover { transform: translateY(-2px); }
.quick__icon { width: 100%; height: 100%; }

/* ---------- Модальное окно ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 31, 46, 0.72);
}
.modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(24px, 3vw, 36px);
  background: var(--white);
  border-radius: var(--radius-l);
  animation: fadeUp 0.25s ease;
}
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
}
.modal__close {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover { color: var(--ink); }
.modal__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
body.is-locked { overflow: hidden; }

/* ---------- 6. Адаптив ---------- */
@media (max-width: 899px) {
  .burger { display: flex; }
  .header__inner { flex-wrap: wrap; }
  .header__phone { margin-left: 0; }
  .nav {
    order: 3;
    width: calc(100% + var(--gutter) * 2);
    margin: 0 calc(var(--gutter) * -1);
    background: var(--green-dark);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .nav__list li + li { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }
  .logo__image { max-width: min(300px, 62vw); }
  .service--reverse .service__media { order: 0; }
}

@media (max-width: 599px) {
  .btn { width: 100%; }
  .hero__actions { width: 100%; }
  .portfolio__head .btn { width: 100%; }
  .service__body .btn { width: 100%; }
  .quick__link { width: 46px; height: 46px; }
  .review { flex: 0 0 100%; padding: 22px; }
  .price-cta .btn { width: 100%; }
  .price-cta { flex-direction: column; align-items: stretch; }
  .reviews-arrow { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .header, .quick, .modal, .filters, .hero__veil { display: none !important; }
  body { background: #fff; }
}

/* --- Ссылки в тексте --- */
.section__lead a,
.faq__a a,
.card__text a,
.service__text a {
  color: var(--green-dark);
  border-bottom: 1px solid rgba(94, 122, 66, 0.4);
}
.section__lead a:hover,
.faq__a a:hover,
.card__text a:hover,
.service__text a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
