/*
  Beauty Landing Template — основной CSS-файл.

  Как менять дизайн:
  1. Цвета меняются в блоке :root.
  2. Размеры текста — в h1, h2, .hero-text, .card h3.
  3. Скругления — переменная --radius и отдельные border-radius.
  4. Ширина сайта — .container.
  5. Отступы между блоками — .section.
  6. Фотографии — классы .hero-photo, .gallery-item, .about-photo.

  Важно:
  Если сайт лежит в ISPmanager как статика, то структура должна быть такой:
  index.html
  css/style.css
  images/master.jpg
  images/work-1.jpg
*/

/* ================================
   1. ОБЩИЕ НАСТРОЙКИ ДИЗАЙНА
================================ */

:root {
  /* Основной фон сайта */
  --bg: #fff8f5;

  /* Основной цвет текста */
  --text: #2c2320;

  /* Вторичный цвет текста */
  --muted: #7d6f69;

  /* Главный акцентный цвет кнопок и важных элементов */
  --accent: #c78373;

  /* Тёмный акцент для hover и выделений */
  --accent-dark: #9f5f52;

  /* Фон карточек */
  --card: #ffffff;

  /* Мягкий декоративный фон */
  --soft: #f5e5df;

  /* Цвет рамок */
  --border: #ead5cd;

  /* Тень */
  --shadow: 0 18px 45px rgba(86, 50, 40, 0.12);

  /* Скругления */
  --radius: 28px;

  /* Максимальная ширина контента */
  --container: 1120px;
}

/*
  Быстрые варианты цветовой схемы:

  Нежно-розовый:
  --bg: #fff8f5;
  --accent: #c78373;
  --accent-dark: #9f5f52;

  Премиальный бежевый:
  --bg: #fbf4ec;
  --accent: #b98b5d;
  --accent-dark: #8a623d;

  Чёрно-золотой:
  --bg: #111111;
  --text: #f7f1e8;
  --muted: #c9bfb2;
  --accent: #c8a35f;
  --accent-dark: #a88445;
  --card: #1a1a1a;
  --soft: #242424;
  --border: #333333;
*/

/* ================================
   2. БАЗОВАЯ ВЁРСТКА
================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Общая ширина контента */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Общий отступ секций */
.section {
  padding: 72px 0;
}

/* ================================
   3. ШАПКА
================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 245, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 213, 205, 0.7);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.logo span {
  color: var(--accent-dark);
}

.menu {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.menu a:hover {
  color: var(--accent-dark);
}

/* ================================
   4. ГЛАВНЫЙ ЭКРАН
================================ */

.hero {
  padding-top: 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.badge {
  display: inline-flex;
  padding: 8px 14px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.8px;
}

.hero-text {
  max-width: 560px;
  margin: 22px 0 32px;
  color: var(--muted);
  font-size: 18px;
}

.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.buttons.center {
  justify-content: center;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(199, 131, 115, 0.28);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-light {
  background: transparent;
  border-color: var(--border);
  color: var(--accent-dark);
}

.btn-light:hover {
  background: var(--soft);
}

/* Главное фото */
.hero-photo {
  min-height: 520px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(135deg, #f4d4ca, #fff3ee);
  box-shadow: var(--shadow);
}

.hero-photo img,
.about-photo img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Заглушка для фото */
.photo-placeholder {
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  text-align: center;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 18px;
}

/* ================================
   5. ЗАГОЛОВКИ СЕКЦИЙ
================================ */

.section-title {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-title h2,
.about-content h2,
.contact-box h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -1px;
}

.section-title p,
.about-content p,
.contact-box p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* ================================
   6. УСЛУГИ
================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(86, 50, 40, 0.06);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.price {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
}

/* ================================
   7. ГАЛЕРЕЯ
================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f1d8d0, #fff1eb);
}

/* ================================
   8. О МАСТЕРЕ
================================ */

.about-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 36px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.about-photo {
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #efd1c8, #fff6f2);
}

.about-content p + p {
  margin-top: 18px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.features div {
  padding: 14px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

/* ================================
   9. КОНТАКТЫ
================================ */

.contact-box {
  padding: 56px 24px;
  border-radius: 38px;
  background: linear-gradient(135deg, #efd1c8, #fff5f0);
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-box p {
  max-width: 560px;
  margin: 0 auto 28px;
}

.contact-line {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 800;
}

/* ================================
   10. ПОДВАЛ
================================ */

.footer {
  padding: 34px 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

/* ================================
   11. АДАПТИВ ПОД ТЕЛЕФОНЫ
================================ */

@media (max-width: 900px) {
  .menu {
    display: none;
  }

  .section {
    padding: 52px 0;
  }

  .hero-grid,
  .about-box {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .about-photo {
    min-height: 420px;
  }

  .cards-grid,
  .gallery-grid,
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  .hero {
    padding-top: 46px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 16px;
  }

  .btn {
    width: 100%;
  }

  .hero-photo,
  .about-photo {
    min-height: 340px;
  }

  .contact-box {
    padding: 38px 18px;
  }
}