/* =========================================================
   POWER-WOOD — style.css
   ========================================================= */

/* ---------- Шрифт Uncage ---------- */
/* Папка fonts лежит рядом с папкой css. Регистр букв в именах файлов важен! */
@font-face {
  font-family: 'Uncage';
  src: url('../fonts/Uncage.woff2') format('woff2'),
       url('../fonts/Uncage.woff')  format('woff'),
       url('../fonts/Uncage.ttf')   format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Переменные ---------- */
:root {
  --gold: #c9a96e;
  --gold-dark: #9c7c42;

  --dark: #14110e;
  --dark-2: #1d1814;
  --light: #f5f1ea;
  --light-2: #ebe5da;

  --text-dark: #1c1814;
  --text-light: #f1ece3;

  /* Если в Uncage нет кириллицы, русские буквы возьмёт Manrope */
  --font: 'Uncage', 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 76px;
  --ease: .3s ease;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- Типографика ---------- */
/* font-synthesis: none отключает «поддельный» жирный шрифт,
   из-за которого портятся заголовки, когда у шрифта одно начертание */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--font);
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: .02em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: .6em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

strong, b { font-weight: 400; font-synthesis: none; }

.lead {
  max-width: 720px;
  margin: 0 auto 1.5em;
  font-size: 1.15rem;
  opacity: .8;
}

.text-center { text-align: center; }

/* ---------- Каркас ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 860px; }

.section {
  padding: 110px 0;
  background: var(--light);
  color: var(--text-dark);
}

.section-dark {
  background: var(--dark);
  color: var(--text-light);
}

/* Чтобы три тёмных блока подряд (отзывы, модели, гарантия)
   не сливались, у них слегка разные оттенки */
#reviews, #guarantee { background: var(--dark-2); }
#catalog { border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }

section[id] { scroll-margin-top: var(--header-h); }

/* Контент никогда не скрывается, даже если JS не сработал */
.fade-in { opacity: 1; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  font-family: var(--font);
  font-size: .9rem;
  line-height: 1.2;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  background: var(--gold);
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn:hover { background: transparent; color: var(--gold); }

.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: transparent; color: var(--gold); }

.btn-outline { background: transparent; color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--dark); }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(20, 17, 14, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--text-light);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Логотип: POWER-WOOD */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-light);
  white-space: nowrap;
}

/* Дефис выводится запасным шрифтом, поэтому виден всегда */
.logo-dash {
  display: inline-block;
  margin: 0 .12em;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--gold);
}

.logo-wood { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-light);
  opacity: .8;
  transition: color var(--ease), opacity var(--ease);
}

.main-nav a:hover { color: var(--gold); opacity: 1; }

.header-cta { padding: 11px 24px; font-size: .8rem; }

/* Бургер */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--text-light);
  transition: transform var(--ease), opacity var(--ease);
}

.burger.open span:nth-child(1),
.burger.active span:nth-child(1),
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }

.burger.open span:nth-child(2),
.burger.active span:nth-child(2),
.burger.is-open span:nth-child(2) { opacity: 0; }

.burger.open span:nth-child(3),
.burger.active span:nth-child(3),
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 100px;
  color: var(--text-light);
  background: var(--dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20,17,14,.88) 0%, rgba(20,17,14,.45) 65%, rgba(20,17,14,.25) 100%);
}

.hero-content { position: relative; z-index: 2; }

.hero h1 { max-width: 820px; margin-bottom: .45em; }

.hero-sub {
  max-width: 560px;
  margin-bottom: 2em;
  font-size: 1.2rem;
  opacity: .88;
}

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

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 22px;
  height: 38px;
  margin-left: -11px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 12px;
}

.scroll-down span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollDot 1.8s infinite;
}

@keyframes scrollDot {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- 2. Проблема ---------- */
#problem { text-align: center; }
#problem .lead { opacity: .8; }

/* ---------- 3. Философия ---------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
  background: var(--light);
  color: var(--text-dark);
}

/* Фото не обрезается криво: cover + центрирование.
   Если главный объект смещён, меняйте второе значение (например, center 30%) */
.split-image {
  min-height: 420px;
  background-color: var(--light-2);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  max-width: 640px;
}

.split-text p { font-size: 1.1rem; opacity: .85; }

/* ---------- 5. Дуб ---------- */
.oak-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: stretch;
}

.oak-photo {
  min-height: 440px;
  background-color: var(--light-2);
  background-size: cover;
  background-position: center;
}

.oak-points {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.oak-point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(128, 128, 128, .25);
}

.oak-point:last-child { border-bottom: 0; padding-bottom: 0; }

.oak-num {
  flex-shrink: 0;
  font-size: 1.1rem;
  letter-spacing: .08em;
  color: var(--gold-dark);
}

.oak-point h3 { margin: 0 0 6px; font-size: 1.25rem; }
.oak-point p  { margin: 0; line-height: 1.6; opacity: .8; }

/* ---------- 6. Процесс ---------- */
.process-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.process-step img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  background: var(--dark-2);
  margin-bottom: 14px;
}

.process-step p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.5;
  opacity: .8;
}

/* ---------- 7. Сравнение ---------- */
.table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th,
.compare-table td {
  padding: 18px 16px;
  border-bottom: 1px solid rgba(128, 128, 128, .25);
  vertical-align: top;
}

.compare-table th {
  font-weight: 400;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .7;
}

.compare-table th:nth-child(2) { color: var(--gold-dark); opacity: 1; }

.compare-table td:first-child { opacity: .7; }

.compare-table td.good {
  color: var(--gold-dark);
  background: rgba(201, 169, 110, .1);
}

/* ---------- 8. Отзывы ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.review-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
}

.review-card p { font-size: 1.05rem; line-height: 1.7; opacity: .9; }

.review-author {
  display: block;
  margin-top: 12px;
  font-size: .9rem;
  letter-spacing: .05em;
  color: var(--gold);
}

/* ---------- Каталог ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.model-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease);
}

.model-card:hover { transform: translateY(-4px); border-color: var(--gold); }

.model-img {
  height: 240px;
  background-color: #2a2420;
  background-size: cover;
  background-position: center;
}

.model-body { position: relative; padding: 28px; }

.model-count {
  position: absolute;
  top: -34px;
  right: 24px;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
}

.model-body h3 { margin: 0 0 8px; font-size: 1.4rem; }
.model-body p  { margin: 0 0 16px; line-height: 1.6; opacity: .8; }

.model-price {
  margin: 0 0 20px;
  font-size: 1.6rem;
  color: var(--gold);
}

.model-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: opacity var(--ease);
}

.model-link:hover { opacity: .7; }

/* Цвета */
.color-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin: 56px 0 32px;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.color-item small { opacity: .6; }

.color-dot {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
}

.color-natural { background: linear-gradient(135deg, #c9a373, #a9814f); }
.color-wenge   { background: linear-gradient(135deg, #3b2a22, #1f1511); }
.color-custom  { background: conic-gradient(#a9814f, #6d7b6a, #7a6a8a, #8a5a5a, #a9814f); }

.finish-note {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
  line-height: 1.6;
  opacity: .85;
}

.finish-note strong { color: var(--gold); }

.custom-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 40px;
  border: 1px solid var(--gold);
}

.custom-order h3 { margin: 0 0 8px; font-size: 1.5rem; }
.custom-order p  { margin: 0; max-width: 560px; line-height: 1.6; opacity: .8; }
.custom-order .btn { flex-shrink: 0; }

/* ---------- 10. Гарантия ---------- */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
  text-align: center;
}

.guarantee-item { padding: 12px 16px; }

.guarantee-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.guarantee-item h4 { margin-bottom: 6px; }
.guarantee-item p  { margin: 0; opacity: .75; }

/* ---------- Контакты и соцсети ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 20px;
  text-align: center;
  text-decoration: none;
  border: 1px solid rgba(128, 128, 128, .3);
  transition: border-color var(--ease), transform var(--ease);
}

a.contact-item:hover { border-color: var(--gold-dark); transform: translateY(-3px); }

.contact-icon { font-size: 1.8rem; line-height: 1; }
.contact-label { font-size: 1.1rem; letter-spacing: .03em; }

.social-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(128, 128, 128, .5);
  border-radius: 50%;
  text-decoration: none;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
}

/* ---------- 11. Форма заявки ---------- */
.section-form {
  background: var(--dark);
  color: var(--text-light);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  margin: 40px auto 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 15px 18px;
  color: var(--text-light);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 0;
  transition: border-color var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(241, 236, 227, .5); }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea { resize: vertical; min-height: 110px; }

.contact-form select {
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a96e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.contact-form select option { color: #1c1814; background: #fff; }

.contact-form .btn { width: 100%; margin-top: 8px; }

/* ---------- Подвал ---------- */
.site-footer {
  padding: 32px 0;
  background: var(--dark);
  color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-inner span { opacity: .65; }

/* =========================================================
   АДАПТИВ
   ========================================================= */

/* ---- Планшеты ---- */
@media (max-width: 960px) {
  .section { padding: 80px 0; }

  /* Меню */
  .burger { display: block; }
  .header-cta { margin-left: auto; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform var(--ease), visibility var(--ease);
  }

  .main-nav a {
    width: 100%;
    padding: 16px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }

  /* Меню открывается любым из этих классов */
  .main-nav.open, .main-nav.active, .main-nav.is-open, .main-nav.show,
  .site-header.open .main-nav, .site-header.active .main-nav,
  .site-header.menu-open .main-nav, .site-header.is-open .main-nav,
  body.menu-open .main-nav, body.nav-open .main-nav {
    transform: translateY(0);
    visibility: visible;
  }

  /* Философия */
  .split-section { grid-template-columns: 1fr; min-height: 0; }
  .split-image { min-height: 360px; }
  .split-text { padding: 56px 24px; max-width: none; }

  .oak-layout { grid-template-columns: 1fr; gap: 32px; }

  .process-strip { grid-template-columns: repeat(3, 1fr); }

  .reviews-grid,
  .model-grid,
  .guarantee-grid,
  .contacts-grid { grid-template-columns: 1fr; }

  .model-card { max-width: 520px; margin: 0 auto; width: 100%; }

  .custom-order {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }
}

/* ---- Телефоны ---- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }

  .logo { font-size: 1.2rem; }
  .header-cta { display: none; }
  .burger { margin-left: auto; }

  .hero {
    min-height: 92vh;
    min-height: 92svh;
    padding-bottom: 90px;
  }
  .hero-bg { background-position: 60% center; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(20,17,14,.6) 0%, rgba(20,17,14,.88) 100%);
  }
  .hero-sub { font-size: 1.05rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }

  .split-image { min-height: 280px; }
  .oak-photo { min-height: 260px; }
  .process-strip { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .model-img { height: 200px; }
  .color-row { gap: 24px; }
  .custom-order .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}
/* =========================================================
   ДОПОЛНЕНИЯ ПОД script.js
   ========================================================= */

/* ---- Плавное появление блоков ---- */
.js .fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.js .fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Для тех, у кого в системе отключены анимации */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Шапка: класс .scrolled ---- */
.site-header {
  background: rgba(20, 17, 14, .55);
  transition: background .3s ease, box-shadow .3s ease;
}

.site-header.scrolled {
  background: rgba(20, 17, 14, .94);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}

/* ---- Активный пункт меню: класс .active ---- */
.main-nav a { position: relative; }

.main-nav a.active {
  color: var(--gold);
  opacity: 1;
}

@media (min-width: 961px) {
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .3s ease;
  }
  .main-nav a.active::after { transform: scaleX(1); }
}

/* ---- Кнопка заявки в мобильном меню ---- */
.main-nav a.nav-cta { display: none; }

/* ---- Мобильное меню: плавное открытие без наезда на логотип ---- */
@media (max-width: 960px) {
  .burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
  .burger span { margin: 0; }

  .main-nav {
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav a.active { color: var(--gold); }
}

@media (max-width: 640px) {
  .main-nav a.nav-cta {
    display: block;
    margin-top: 20px;
    padding: 14px 0;
    text-align: center;
    color: var(--gold);
    border: 1px solid var(--gold);
  }
}
/* ===== 4. Что внутри ===== */
.inside-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
  align-items: stretch;
}

.inside-photo {
  min-height: 460px;
  background-color: var(--dark-2);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, .1);
}

.inside-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inside-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.inside-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.inside-num {
  flex-shrink: 0;
  font-size: 1.1rem;
  letter-spacing: .08em;
  color: var(--gold);
}

.inside-list h3 { margin: 0 0 6px; font-size: 1.25rem; }
.inside-list p  { margin: 0; line-height: 1.6; opacity: .8; }

@media (max-width: 960px) {
  .inside-layout { grid-template-columns: 1fr; gap: 32px; }
  .inside-photo  { min-height: 320px; }
}

@media (max-width: 640px) {
  .inside-photo { min-height: 260px; }
}
