/* =========================================================
   ОБЩИЕ СТИЛИ САЙТА: цвета, шрифты, шапка, подвал, кнопки
   Используются на всех страницах
   ========================================================= */

:root {
  --dark:        #715446;
  --accent:      #FFDE59;
  --accent-2:    #84623C;
  --card-bg:     #F4F1ED;
  --warm-bg:     #FFF7DC;
  --text:        #3A302A;
  --muted:       #777870;
  --white:       #FFFFFF;

  --radius:      20px;
  --radius-sm:   12px;
  --shadow:      0 6px 24px rgba(58, 48, 42, .07);
  --shadow-hover:0 10px 32px rgba(58, 48, 42, .12);

  --font-head:   "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;

  --header-h:    68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { list-style: none; margin: 0; padding: 0; }

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

a { color: inherit; }

/* ---------- Раскладка ---------- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--light { background: var(--card-bg); }
.section--warm  { background: var(--warm-bg); }

.section__title {
  font-size: 38px;
  color: var(--dark);
  margin-bottom: 36px;
}

.overline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.overline--light { color: rgba(255, 255, 255, .65); }

.lead { font-size: 19px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 16px 34px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease,
              background-color .2s ease, color .2s ease;
}

.btn--accent {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 6px 20px rgba(255, 222, 89, .3);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 222, 89, .42);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--dark);
  color: var(--white);
}

.btn--dark:hover { transform: translateY(-2px); }

/* ---------- Декоративные пятна света ---------- */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.blob--yellow { background: rgba(255, 222, 89, .16); }
.blob--brown  { background: rgba(132, 98, 60,  .55); }

.blob--1 { width: 460px; height: 460px; top: -170px; right: -140px; }
.blob--2 { width: 320px; height: 320px; bottom: -150px; left: -100px; }

/* =========================================================
   ШАПКА С МЕНЮ
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
}

.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__list a {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255, 255, 255, .8);
  transition: color .2s ease;
}

.nav__list a:hover { color: var(--white); }

/* текущая страница — подчёркнута жёлтым */
.nav__list a[aria-current="page"] {
  color: var(--white);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Кнопка-бургер — видна только на телефоне */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: relative;
}

.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 5px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

/* =========================================================
   ОБЩАЯ ШАПКА-ОБЛОЖКА СТРАНИЦЫ
   ========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  padding: 76px 0;
}

.page-hero__inner { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: 46px;
  color: var(--white);
  max-width: 18ch;
}

.page-hero p {
  font-size: 19px;
  color: rgba(255, 255, 255, .82);
  max-width: 58ch;
}

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .8);
  padding: 56px 0 40px;
}

.site-footer h2 {
  font-size: 26px;
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer__contacts li { margin-bottom: 14px; }

.footer__label {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

.footer__contacts a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer__contacts a:hover { text-decoration: underline; }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
}

/* =========================================================
   Появление блоков при скролле
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
