/* Сайт-визитка «Тёплый лофт» */

:root {
  --bg: #F5EFE6;
  --accent: #B3552E;
  --accent-dark: #96431F;
  --graphite: #1F1B18;
  --text: #3A3530;
  --card: #FFFDF9;
  --soft: #EDE4D6;
}

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

body {
  font-family: system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  color: var(--graphite);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--graphite);
  margin-bottom: 28px;
}

img { max-width: 100%; }

/* ---------- Промо-бегущая строка ЭТрН (временная) ---------- */

.promo {
  background: var(--accent);
  color: #fff;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
  padding: 13px 0;
}

.marquee-track span {
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  padding-right: 80px;
}

.marquee-track a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.marquee-track a:hover { color: var(--soft); }

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; padding-left: 20px; }
}

/* ---------- Шапка ---------- */

.header {
  background: var(--graphite);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  color: #F5EFE6;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  color: #D8CFC2;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover { color: #fff; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 10px;
  transition: background 0.2s;
}

.btn:hover { background: var(--accent-dark); }

.btn-small { padding: 8px 18px; font-size: 0.9rem; }

.btn-ghost {
  background: transparent;
  color: var(--graphite);
  border: 2px solid var(--graphite);
}

.btn-ghost:hover { background: var(--graphite); color: var(--bg); }

.btn-light { background: #fff; color: var(--graphite); }

.btn-light:hover { background: var(--soft); }

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-ghost-light:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  padding: 60px 0 70px;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 1.2; min-width: 260px; }

.hero-tag {
  display: inline-block;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 1.15rem;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-photo { flex: 0.8; }

.hero-photo img {
  width: 100%;
  border-radius: 18px;
  display: block;
  box-shadow: 0 18px 40px rgba(31, 27, 24, 0.25);
}

/* ---------- Секции ---------- */

.section { padding: 70px 0; }

.section-soft { background: var(--soft); }

.section-dark {
  background: var(--graphite);
  color: #E8E0D4;
}

.section-dark h2 { color: #fff; }

.section-cta {
  background: var(--accent);
  color: #fff;
  text-align: center;
}

.section-cta h2 { color: #fff; }

/* ---------- Форма заявки ---------- */

.lead-form {
  max-width: 460px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.lead-form input[type="text"],
.lead-form textarea {
  background: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  width: 100%;
}

.lead-form textarea { resize: vertical; }

.lead-form input::placeholder,
.lead-form textarea::placeholder { color: #A39A8F; }

.lead-form input:focus,
.lead-form textarea:focus { outline: 2px solid var(--graphite); }

.lead-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #7A7168;
}

/* ---------- Карточки ---------- */

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

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 14px rgba(31, 27, 24, 0.07);
  display: flex;
  flex-direction: column;
}

.card h3 {
  color: var(--graphite);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.card p { margin-bottom: 8px; }

.card .price,
.price {
  margin-top: auto;
  padding-top: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.card-accent {
  border: 2px solid var(--accent);
}

.tariff-for {
  font-size: 0.9rem;
  color: #7A7168;
  font-weight: 600;
}

/* ---------- Обо мне ---------- */

.about-inner {
  display: flex;
  gap: 44px;
  align-items: center;
}

.about-photo {
  width: 280px;
  border-radius: 16px;
  flex-shrink: 0;
}

.about-inner p { margin-bottom: 14px; }

/* ---------- Как работаем ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  counter-reset: step;
}

.steps li {
  background: var(--card);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 14px rgba(31, 27, 24, 0.07);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.steps strong { color: var(--graphite); }

/* ---------- FAQ ---------- */

details {
  background: var(--card);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(31, 27, 24, 0.05);
}

summary {
  font-weight: 600;
  color: var(--graphite);
  cursor: pointer;
}

details p { margin-top: 10px; }

/* ---------- Отзывы ---------- */

.reviews-note {
  margin: -16px 0 24px;
  color: #7A7168;
}

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

.review {
  background: var(--card);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(31, 27, 24, 0.07);
}

.review img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.review figcaption {
  font-size: 0.85rem;
  color: #7A7168;
  padding: 10px 6px 4px;
}

/* ---------- Футер ---------- */

.footer {
  background: var(--graphite);
  color: #9A9186;
  padding: 36px 0 22px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer p { margin-bottom: 6px; }

.footer a {
  color: #D8CFC2;
  text-decoration: none;
}

.footer a:hover { color: #fff; }

.pd-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: #7A7168;
  max-width: 320px;
}

.copyright {
  border-top: 1px solid #3A342E;
  padding-top: 16px;
  font-size: 0.85rem;
}

/* ---------- Адаптив ---------- */

@media (max-width: 800px) {
  .hero-inner { flex-direction: column-reverse; }
  .hero-photo { max-width: 320px; }
  .about-inner { flex-direction: column; }
  .about-photo { width: 200px; }
  .nav { display: none; }
}