/* ===== Палитра и базовые настройки ===== */
:root {
  --bg: #f9eee2;          /* кремовый фон */
  --ink: #5c0014;         /* бордовый — текст и акценты */
  --ink-hover: #8a2a3c;   /* бордовый посветлее для hover */
  --font-display: 'Comfortaa', sans-serif;  /* заголовки, логотип, кнопки */
  --font-body: 'Nunito', sans-serif;        /* основной текст */
  --container: 1100px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-hover); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }
h1 { font-size: clamp(32px, 6vw, 58px); line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 28px; }
h3 { font-weight: 600; font-size: 20px; margin-bottom: 12px; }
p { margin: 0; text-wrap: pretty; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding-block: 64px; }
.section--dark { background: var(--ink); color: var(--bg); }
.section--dark a { color: var(--bg); }

/* ===== Кнопки-пилюли ===== */
.pill {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.pill:hover { background: var(--ink); color: var(--bg); }
.section--dark .pill:hover, footer .pill:hover { background: var(--bg); color: var(--ink); }

.btn-primary {
  display: inline-block;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  padding: 18px 40px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); }
.section--dark .btn-primary { color: var(--ink); }

/* ===== Шапка ===== */
.header {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 28px; padding-top: 22px; padding-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.header .spacer { flex: 1; }
.header .phone {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  text-decoration: none; white-space: nowrap;
}
.nav { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Hero ===== */
.hero { padding-block: 72px 56px; text-align: center; }
.hero img { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 28px; }
.hero h1 { margin-bottom: 18px; }
.hero p { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.55; max-width: 640px; margin: 0 auto; }

/* ===== Галерея тканей ===== */
.gallery { padding-bottom: 64px; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.gallery__item {
  margin: 0; height: 300px; border-radius: var(--radius); overflow: hidden;
  background: rgba(92, 0, 20, .06);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 14px; font-size: 14px; font-weight: 700;
  background: linear-gradient(transparent, rgba(92, 0, 20, .7)); color: var(--bg);
}
.gallery__item { position: relative; }
/* Пустой слот, пока фото нет */
.gallery__item--empty {
  display: grid; place-items: center;
  border: 1.5px dashed rgba(92, 0, 20, .35);
  font-size: 14px; opacity: .6;
}

/* ===== О нас ===== */
.about__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px; align-items: center;
}
.about__grid h2 { margin-bottom: 16px; }
.about__grid p { font-size: 17px; line-height: 1.65; }
.about__cta { text-align: center; }
.about__cta p { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 20px; }

/* ===== Карточки (доставка) ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 28px; }
.card p { font-size: 16px; line-height: 1.6; }
.card p + p { margin-top: 10px; }

/* ===== Контакты ===== */
.contacts { padding-top: 0; }
.contacts__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px; align-items: start;
}
.contacts__list { display: grid; gap: 18px; font-size: 17px; }
.contacts__label {
  display: block; font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: .08em; opacity: .7; margin-bottom: 4px;
}
.contacts__list a { text-decoration: none; }
.contacts__list .phone { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.legal { font-size: 12px; line-height: 1.6; opacity: .65; }
.contacts__list .legal { margin-top: 14px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--ink); min-height: 340px; }
.map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ===== Подвал ===== */
.footer { background: var(--ink); color: var(--bg); }
.footer a { color: var(--bg); }
.footer__inner { padding-top: 56px; padding-bottom: 40px; display: grid; gap: 40px; }
.footer__row {
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  align-items: center; justify-content: space-between;
}
.footer__brand { display: grid; gap: 6px; }
.footer__brand strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.footer__brand a { text-decoration: none; font-size: 17px; }
.qr-row { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; }
.qr { display: grid; gap: 10px; justify-items: center; text-decoration: none; }
.qr span:first-child { background: var(--bg); border-radius: 14px; padding: 10px; }
.qr img { width: 130px; height: 130px; }
.qr span:last-child { font-size: 14px; font-weight: 700; }
.footer .legal { text-align: center; opacity: .7; }
