:root{
  --w: 1120px;

  /* Фирменная палитра «Тёплый лес» */
  --bg: #F7F4EF;        /* фон страницы */
  --paper: #FFFFFF;    /* карточки */

  --text: #2A241E;     /* основной текст */
  --muted: #6F675E;    /* вторичный текст */
  --line: #DED7CD;     /* линии, рамки */

  --accent: #2F4F3E;   /* акцент / кнопки */

  /* Радиусы и тени */
  --r-lg: 22px;
  --r-md: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
  --shadow-soft: 0 6px 20px rgba(0,0,0,.05);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(0,0,0,.03), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(0,0,0,.03), transparent 55%),
              var(--bg);
}

a{ color:inherit; }
a:hover{ color: var(--accent); }
.wrap{ max-width: var(--w); margin: 0 auto; padding: 18px; }

/* Шапка */
header{
  position: sticky;
  top:0;
  z-index:10;
  background: rgba(251,250,248,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 750;
  letter-spacing: .2px;
}
.brand .mark{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(47,79,62,.18);

  /* “срез дерева”: коричневый + 3 кольца */
  background:
  radial-gradient(circle at 50% 50%,
    rgba(247,244,239,.65) 0 1px,   /* сердцевина */
    transparent 1px 5px,
    rgba(247,244,239,.45) 5px 6px, /* кольцо 1 */
    transparent 6px 9px,
    rgba(247,244,239,.40) 9px 10px, /* кольцо 2 */
    transparent 10px 13px,
    rgba(247,244,239,.35) 13px 14px, /* кольцо 3 */
    transparent 14px 17px,
    rgba(247,244,239,.30) 17px 18px, /* кольцо 4 */
    transparent 18px 21px,
    rgba(247,244,239,.25) 21px 22px, /* кольцо 5 */
    transparent 22px 100%
  ),
  radial-gradient(circle at 35% 35%,
    rgba(255,255,255,.10), transparent 55%
  ),
  #7A5A3A; /* основной “древесный” коричневый */
}

nav .links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
nav a{
  text-decoration:none;
  padding:8px 10px;
  border-radius: 12px;
  opacity:.9;
}
nav a:hover{
  background: rgba(0,0,0,.04);
  opacity:1;
}

/* Типографика */
h1{ margin:0 0 10px; font-size: 42px; line-height:1.06; letter-spacing:-.3px; }
h2{ margin:0 0 10px; font-size: 26px; letter-spacing:-.2px; }
h3{ margin:0; font-size: 18px; }
p{ margin: 8px 0; line-height:1.6; color: #2a2a2a; }
.muted{ color: var(--muted); font-size: 14px; }

/* Кнопки */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration:none;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn.primary{
  background: var(--accent);
  color:#fff;
  border-color: rgba(0,0,0,.25);
}
.btn.primary:hover{
  box-shadow: var(--shadow);
  filter: brightness(1.05);
}


/* Бейджи */
.badge{
  display:inline-flex;
  align-items:center;
  padding: 5px 10px;
  border:1px solid rgba(47,79,62,.18);
  border-radius: 999px;
  font-size: 12.5px;
  color: #4f4a43;
  background: rgba(247,244,239,.7); /* тёплый фон из палитры */
}

/* Карточки/сетки */
.section{ padding: 28px 0; }
.grid3{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(3, 1fr);
}
.card{
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  background: rgba(255,255,255,.9);
}

.card img{
  width:100%;
  height: 240px;
  object-fit: cover;          /* ВОТ ЭТО важно */
  object-position: center;    /* чтобы резало предсказуемо */
  border-radius: var(--r-md);
  border: 1px solid rgba(47,79,62,.18);
  background: #efe9e1;
}

.price{
  font-weight: 780;
  letter-spacing: .2px;
  margin: 10px 0 8px;
}

/* Панель фильтров */
.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin: 10px 0 18px;
}
select, input{
  padding:10px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.85);
  font: inherit;
  outline: none;
color: var(--text);
}
select:focus, input:focus{
  box-shadow: 0 0 0 4px rgba(0,0,0,.06);
}

/* Hero */
.hero{
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line);
}
.hero-grid{
  display:grid;
  gap:18px;
  grid-template-columns: 1.2fr .8fr;
  align-items:center;
}
.hero img{
  width:100%;
  height: 320px;
  object-fit:cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:#f1f1f1;
}
.hero p{ color:#3a3a3a; max-width: 52ch; }

/* Подвал */
footer{
  position: relative;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 90px 0 70px; /* ↑ делаем футер выше */
  color: var(--muted);
  overflow: hidden;
  background: none;
}

footer::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      rgba(247,244,239,.75),
      rgba(247,244,239,.88)
    ),
    url("img/mood.jpg") center/cover no-repeat;
  opacity: 1;
  z-index:0;
}

footer::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(
    120% 80% at 50% 100%,
    rgba(0,0,0,.18),
    transparent 60%
  );
  z-index:0;
}

footer .wrap{
  position: relative;
  z-index:1;
}

/* Мобилка */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  h1{ font-size: 34px; }
  .grid3{ grid-template-columns: 1fr; }
  .hero img{ height: 260px; border-radius: 22px; }
}

.inspire img{
  height: 200px;
}

.hr{
  height:1px;
  background: var(--line);
  border:0;
  margin: 18px 0;
}

/* Главная: комфортная ширина текста */
.page-text{
  max-width: 920px; /* под десктоп */
}

@media (max-width: 900px){
  .page-text{
    max-width: 100%;
  }
}

/* Главная: фото в истории */
.about-photo{
  height: 380px;
}

@media (max-width: 900px){
  .about-photo{
    height: 240px;
  }
}

/* Мобильные отступы для основного контента */
@media (max-width: 600px){
  main.wrap{
    padding-left: 22px;
    padding-right: 22px;
  }
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand-top{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color: var(--muted);
}

.brand-main{
  font-size:16px;
  letter-spacing:.02em;
}

/* На главной скрываем бренд, но сохраняем его место */
body.home .brand{
  opacity:0;
  pointer-events:none;
}
.toolbar{
  display:flex;
  justify-content:flex-end;
  margin: 10px 0 18px;
}

.filter{
  position:relative;
}

.filter-menu{
  position:absolute;
  right:0;
  top:42px;

  background:white;
  border:1px solid var(--line);
  border-radius:14px;

  padding:12px 14px;
  box-shadow: var(--shadow-soft);

  display:none;
  flex-direction:column;
  gap:8px;

  min-width:180px;
}

.filter-menu label{
  display:flex;
  gap:8px;
  cursor:pointer;
  font-size:14px;
}