/* ===== База ===== */
:root {
  --c-bg: #fdfbf7;
  --c-bg-alt: #f1ece2;
  --c-text: #2d2a26;
  --c-muted: #6b655c;
  --c-accent: #4a7c59;      /* спокойный зелёный */
  --c-accent-dark: #3a6247;
  --c-white: #fff;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(45, 42, 38, 0.08);
  --container: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; text-align: center; margin-bottom: 1.5em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 48px 0; }
.section--alt { background: var(--c-bg-alt); }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--c-accent);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  color: var(--c-accent);
  background: transparent;
  font-size: 1rem;
}
.btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
}
.btn--primary:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.btn--ghost:hover { background: var(--c-accent); color: var(--c-white); }
.btn--small { padding: 8px 18px; font-size: 0.9rem; }
.btn--wide { width: 100%; }

.messengers { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Хедер ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-bg-alt);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
}
.logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--c-text);
  white-space: nowrap;
}
.logo__accent { color: var(--c-accent); font-weight: 500; }

.nav {
  display: none; /* мобильное меню — через бургер */
}
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-bg);
  padding: 16px;
  gap: 12px;
  border-bottom: 1px solid var(--c-bg-alt);
  box-shadow: var(--shadow);
}
.nav a {
  text-decoration: none;
  color: var(--c-text);
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover { color: var(--c-accent); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* На мобильных кнопку в шапке прячем: CTA есть в hero, а бургер и логотип не сжимаются */
.header__actions .btn--small { display: none; }
.lang-switch {
  text-decoration: none;
  color: var(--c-muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.lang-switch:hover { color: var(--c-accent); }

.burger {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero { padding: 40px 0 48px; }
.hero__inner { display: flex; flex-direction: column; gap: 28px; }
.hero__sub { font-size: 1.05rem; color: var(--c-muted); }
.hero__cta { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 12px; }
.hero__note { font-size: 0.85rem; color: var(--c-muted); }

.portrait {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  height: auto;
}

.photo-placeholder {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--c-bg-alt), #ddd4c3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-weight: 600;
  margin: 0 auto;
}

/* ===== Карточки ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 0;
}

/* ===== Шаги ===== */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.step {
  counter-increment: step;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 22px 22px 22px 64px;
  position: relative;
  box-shadow: var(--shadow);
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Тариф ===== */
.price-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--c-white);
  border: 2px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-card__title { font-size: 1.2rem; }
.price-card__amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--c-accent);
  margin: 8px 0 20px;
}
.price-card__amount span { font-size: 1rem; font-weight: 500; color: var(--c-muted); }
.price-card__list {
  text-align: left;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.price-card__list li {
  padding: 8px 0 8px 30px;
  position: relative;
  border-bottom: 1px solid var(--c-bg-alt);
}
.price-card__list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--c-accent);
  font-weight: 700;
}
.price-card__note { font-size: 0.85rem; color: var(--c-muted); margin: 14px 0 0; }

/* ===== Обо мне ===== */
.about__inner { display: flex; flex-direction: column; gap: 28px; }
.about__creds { padding-left: 20px; color: var(--c-muted); }
.about__text h2 { text-align: left; }

.about__docs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.about__docs img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.about__docs a:hover img { transform: scale(1.02); }

/* ===== Лайтбокс ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 28, 25, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ===== Отзывы ===== */
.review cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 600;
  color: var(--c-muted);
  font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq__list { max-width: 720px; margin: 0 auto; display: grid; gap: 10px; }
.faq__item {
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 20px;
}
.faq__item summary {
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--c-accent);
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item > div { padding-bottom: 18px; color: var(--c-muted); }

/* ===== Форма ===== */
.contact__inner { display: flex; flex-direction: column; gap: 28px; }
.contact__text h2 { text-align: left; }

.form {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.form input[type="text"],
.form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #d8d2c6;
  border-radius: 10px;
  background: var(--c-bg);
  width: 100%;
}
.form input:focus, .form textarea:focus {
  outline: 2px solid var(--c-accent);
  border-color: transparent;
}
.form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__consent {
  display: flex !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400 !important;
  font-size: 0.85rem;
  color: var(--c-muted);
}
.form__consent a { color: var(--c-accent); }
.form__status { margin: 0; font-size: 0.9rem; color: var(--c-accent); min-height: 1.2em; }
.form__status.is-error { color: #b3403a; }

/* ===== Футер ===== */
.footer {
  background: var(--c-text);
  color: #cfc9bf;
  padding: 32px 0;
  font-size: 0.9rem;
}
.footer__inner { display: grid; gap: 12px; }
.footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__nav a { color: #cfc9bf; }
.footer__disclaimer { font-size: 0.8rem; opacity: 0.7; margin: 0; }

.footer__cities {
  font-size: 0.8rem;
  line-height: 1.9;
  opacity: 0.75;
}
.footer__cities span { margin-right: 4px; }
.footer__cities a {
  color: #cfc9bf;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 10px;
}
.footer__cities a:hover { color: var(--c-white); text-decoration: underline; }

/* ===== Плавающая кнопка ===== */
.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(45, 42, 38, 0.3);
  z-index: 90;
}
.fab:hover { background: var(--c-accent-dark); }

/* ===== Планшет ===== */
@media (min-width: 768px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .section { padding: 72px 0; }

  .header__actions .btn--small { display: inline-block; }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .hero__text { flex: 1.2; }
  .hero__photo { flex: 0.8; }
  .hero__cta { flex-direction: row; align-items: center; flex-wrap: wrap; }

  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .about__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }
  .about__photo { flex: 0 0 300px; }

  .contact__inner {
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
  }
  .contact__text, .form { flex: 1; }
}

/* Полное меню — только когда все пункты помещаются в одну строку */
@media (min-width: 900px) {
  .nav { display: flex; gap: 24px; }
  .burger { display: none; }
}

/* ===== Десктоп ===== */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .pains .cards, .reviews .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .reviews .cards { grid-template-columns: repeat(3, 1fr); }
}
