/* =========================================================
   экоДизайн — светлая тема
   ========================================================= */

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

:root {
  --bg:        #f7f4ef;      /* тёплый песочный фон */
  --bg-soft:   #efe9e0;      /* мягкий блок */
  --surface:   #ffffff;      /* карточки */
  --line:      #e2dbd0;      /* границы */
  --text:      #2b2620;      /* основной текст */
  --muted:     #7a7168;      /* приглушённый */
  --accent:    #1f7a72;      /* смола — глубокий бирюзовый */
  --accent-2:  #b8892b;      /* латунь */
  --radius:    6px;
  --maxw:      1240px;
  --shadow:    0 10px 30px -18px rgba(43,38,32,.35);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 500; line-height: 1.15; letter-spacing: -0.015em; color: var(--text); }
h1, h2 { font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 500; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.1rem; font-family: "Inter", sans-serif; font-weight: 500; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}

.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

section { padding: clamp(72px, 10vw, 130px) 0; }
.section--soft { background: var(--bg-soft); }

/* ---------- ЛОГОТИП ---------- */
.logo {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  font-weight: 500;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background .25s, color .25s, border-color .25s;
  background: transparent;
}
.btn:hover { background: var(--text); color: var(--bg); }

.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: #17615b; border-color: #17615b; color: #fff; }

/* ---------- ХЕДЕР ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding: 20px 0;
  transition: background .3s, backdrop-filter .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
header.is-scrolled {
  background: rgba(247,244,239,.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.burger { display: none; width: 28px; height: 18px; position: relative; }
.burger i {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text);
  transition: transform .3s, opacity .3s;
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 8px; }
.burger i:nth-child(3) { top: 16px; }
.burger.is-open i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  /* светлый градиент — текст читается, фото остаётся видимым */
  background: linear-gradient(180deg,
              rgba(247,244,239,.55) 0%,
              rgba(247,244,239,.15) 35%,
              rgba(247,244,239,.85) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; margin-bottom: 26px; color: #241f1a; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { color: #4a423a; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 40px;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(43,38,32,.18);
}
.hero__meta div strong { display: block; font-size: 1.6rem; font-weight: 500; color: #241f1a; font-family: "Cormorant Garamond", serif; }
.hero__meta div span { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: #6b6158; }

/* ---------- PHILOSOPHY ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }

.split__media {
  position: relative; overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.split__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 1.2s ease; }
.split__media:hover img { transform: scale(1.04); }

.feature-list { list-style: none; margin-top: 34px; display: grid; gap: 22px; }
.feature-list li { padding-left: 26px; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 10px; height: 1px; background: var(--accent);
}
.feature-list strong { display: block; font-weight: 600; margin-bottom: 4px; }
.feature-list p { color: var(--muted); font-size: 0.92rem; }

/* ---------- ГАЛЕРЕЯ ---------- */
.section-head {
  display: flex; flex-wrap: wrap; gap: 24px;
  align-items: flex-end; justify-content: space-between;
  margin-bottom: 46px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  transition: all .22s;
}
.filter:hover { border-color: var(--muted); color: var(--text); }
.filter.is-active { background: var(--text); border-color: var(--text); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: opacity .35s, transform .35s, box-shadow .35s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card.is-hidden { display: none; }

.card__media { position: relative; overflow: hidden; }
.card__media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.3,1);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__badge {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
  border-radius: 100px;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}

.card__body { padding: 20px 20px 24px; }
.card__body h3 { margin-bottom: 6px; }
.card__body p { color: var(--muted); font-size: 0.86rem; }
.card__price {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.86rem;
}
.card__price b { font-weight: 600; color: var(--text); }
.card__price span { color: var(--muted); font-size: 0.78rem; }

/* ---------- ПРОЦЕСС ---------- */
.process {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 34px; margin-top: 54px; }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.step__num {
  position: absolute; top: -14px; left: 0;
  background: var(--bg-soft); padding-right: 12px;
  font-size: 0.74rem; letter-spacing: 0.2em; color: var(--accent-2);
  font-weight: 600;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- CTA / ФОРМА ---------- */
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 6vw, 80px); align-items: start; }

form {
  display: grid; gap: 18px;
  background: var(--surface);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

input, textarea, select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color .2s, background .2s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 0.78rem; color: var(--muted); }
.form-status { font-size: 0.86rem; color: var(--accent); min-height: 1.2em; font-weight: 500; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 34px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.foot-grid h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-weight: 600; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { color: var(--text); font-size: 0.92rem; opacity: .8; transition: opacity .2s, color .2s; }
.foot-grid a:hover { opacity: 1; color: var(--accent); }
.foot-bottom {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 0.78rem; color: var(--muted);
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 900px) {
  .split, .cta { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  .burger { display: block; z-index: 60; }
  .nav-links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    background: rgba(247,244,239,.98);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    transition: transform .4s cubic-bezier(.2,.8,.2,1);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { font-size: 1.1rem; color: var(--text); }
  .nav .btn { display: none; }
}

@media (max-width: 560px) {
  .hero__meta { gap: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}