/* ===== База и переменные ===== */
:root {
  --bg: #faf6f0;
  --bg-alt: #f1e9de;
  --text: #3a3430;
  --muted: #7a7168;
  --accent: #7d8a6a;
  --accent-dark: #5f6b4f;
  --dark: #2e2a26;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(58, 52, 48, 0.08);
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.25s, transform 0.25s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--white); }
.btn--small { padding: 10px 24px; font-size: 0.9rem; }
.btn--full { width: 100%; }

/* ===== Шапка ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s;
}
.header--scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { color: var(--text); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav__link:hover { color: var(--accent-dark); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; }
.burger--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--active span:nth-child(2) { opacity: 0; }
.burger--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Главный экран ===== */
.hero { padding: 160px 0 90px; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

.hero__label { color: var(--accent-dark); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 16px; }
.hero__title { font-family: var(--font-head); font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 500; line-height: 1.15; margin-bottom: 20px; }
.hero__subtitle { color: var(--muted); font-size: 1.1rem; max-width: 480px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__facts { display: flex; gap: 36px; list-style: none; flex-wrap: wrap; }
.hero__facts strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--accent-dark); }
.hero__facts li { font-size: 0.9rem; color: var(--muted); }

.hero__photo img,
.about__photo img,
.gallery__item img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--bg-alt); /* аккуратный блок, пока фото не загружено */
  min-height: 200px;
  object-fit: cover;
}
.hero__photo img { aspect-ratio: 3 / 4; width: 100%; }

/* ===== Секции ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark .section__title { color: var(--white); }

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 48px;
}
.about__text .section__title,
.contacts__info .section__title { text-align: left; }

/* ===== Обо мне ===== */
.about__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about__photo img { aspect-ratio: 4 / 5; width: 100%; }
.about__list { margin-top: 20px; padding-left: 20px; }
.about__list li { margin-bottom: 8px; }

/* ===== Услуги ===== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s;
}
.service-card:hover { transform: translateY(-6px); }
.service-card h3 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; }
.service-card p { color: var(--muted); flex-grow: 1; }
.service-card__meta { display: flex; justify-content: space-between; align-items: center; }
.service-card__meta strong { font-size: 1.3rem; color: var(--accent-dark); }
.service-card__meta span { color: var(--muted); font-size: 0.9rem; }
.service-card .btn { align-self: flex-start; }

/* ===== Шаги ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; list-style: none; counter-reset: step; }
.step { text-align: center; padding: 0 8px; }
.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* ===== Отзывы ===== */
.slider { max-width: 720px; margin: 0 auto; overflow: hidden; }
.slider__track { display: flex; transition: transform 0.5s ease; }
.review {
  min-width: 100%;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.review p { font-family: var(--font-head); font-size: 1.4rem; font-style: italic; margin-bottom: 20px; }
.review cite { color: var(--muted); font-style: normal; font-weight: 600; }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.slider__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.25s;
}
.slider__btn:hover { background: var(--accent); color: var(--white); }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); opacity: 0.4; cursor: pointer; border: none; }
.slider__dot--active { opacity: 1; background: var(--accent-dark); }

/* ===== Галерея ===== */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery__item img { aspect-ratio: 3 / 4; width: 100%; transition: transform 0.3s; }
.gallery__item:hover img { transform: scale(1.03); }

/* ===== Видео ===== */
.video__wrap { max-width: 400px; margin: 0 auto; }
.video__wrap video {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--dark);
}

/* Примечание под сеткой услуг */
.services__note { text-align: center; color: var(--muted); margin-top: 32px; }

/* ===== Контакты ===== */
.contacts__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contacts__links { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.contact-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s;
}
.contact-link:hover { color: var(--accent); }
.contacts__address { color: #cfc6bb; }

.form {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow);
}
.form label { font-weight: 600; font-size: 0.95rem; display: flex; flex-direction: column; gap: 6px; }
.form input,
.form select,
.form textarea {
  padding: 12px 16px;
  border: 1px solid #ddd3c7;
  border-radius: 10px;
  font: inherit;
  background: var(--bg);
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form__note { color: var(--accent-dark); font-size: 0.9rem; text-align: center; }

/* ===== Подвал ===== */
.footer { padding: 32px 0; background: var(--dark); color: #cfc6bb; border-top: 1px solid #443e38; }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__note { font-size: 0.85rem; }

/* ===== Анимация появления ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal--visible { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 900px) {
  .hero__inner,
  .about__inner,
  .contacts__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 120px; }
  .hero__photo { max-width: 420px; margin: 0 auto; }
  .services__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }

  .burger { display: flex; }
  .nav {
    position: fixed;
    top: 72px;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    width: min(320px, 85vw);
    height: calc(100vh - 72px);
    padding: 32px;
    gap: 20px;
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav--open { transform: translateX(0); }
}

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero__facts { gap: 20px; }
  .review { padding: 28px 20px; }
}
