/* ============================================================
   МИР ЖАЛЮЗИ — design system (light & airy, 2026)
   tokens → base → layout → components → responsive
   ============================================================ */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #201d1a;
  --muted: #6f6a62;
  --line: #eae5dd;
  --accent: #c47b1f;
  --accent-strong: #a4621a;
  --accent-soft: #faf1e1;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 48px -28px rgb(32 29 26 / 0.28);
  --shadow-soft: 0 10px 30px -18px rgb(32 29 26 / 0.22);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1160px;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250 249 246 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-dot { color: var(--accent); padding-inline: 0.06em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav .nav-cta {
  color: var(--ink);
  background: var(--accent-soft);
  padding: 8px 16px;
  border-radius: 999px;
}

.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: #f3e3c6; }

.nav-toggle, .nav-burger { display: none; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 48px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 18px;
}

.hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

.hero-lead {
  margin-top: 20px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.hero-usps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 36px;
}

.hero-usps li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.hero-usps svg { width: 19px; height: 19px; color: var(--accent); flex: none; }

.hero-media { position: relative; }

.hero-media img {
  width: 100%;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  aspect-ratio: 740 / 473;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

/* entrance animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.hero-text > *, .hero-media { animation: rise 0.7s ease backwards; }
.hero-media { animation-delay: 0.12s; }
.hero-text > :nth-child(2) { animation-delay: 0.05s; }
.hero-text > :nth-child(3) { animation-delay: 0.1s; }
.hero-text > :nth-child(4) { animation-delay: 0.15s; }
.hero-text > :nth-child(5) { animation-delay: 0.2s; }

/* ---------- sections ---------- */

.section { padding: 40px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.section-link { font-weight: 700; color: var(--accent-strong); white-space: nowrap; }
.section-link:hover { color: var(--accent); }

/* ---------- product cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card-grid-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--accent-soft);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .card-media img { transform: scale(1.045); }

.card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }

.card-title { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }

.card-tagline { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }

/* ---------- feature cards (home) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.feature-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.feature-card div { padding: 20px 22px 24px; }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }

.feature-card p { color: var(--muted); font-size: 0.92rem; }

.feature-card-solid {
  background: linear-gradient(135deg, #2a2118, #4a3417);
  color: #fdf6ea;
  border: none;
}

.feature-card-solid p { color: rgb(253 246 234 / 0.72); }

.feature-arrow {
  display: inline-block;
  margin-top: 14px;
  font-size: 1.2rem;
  color: var(--accent-soft);
  transition: transform 0.25s ease;
}

.feature-card-solid:hover .feature-arrow { transform: translateX(6px); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 28px -14px rgb(196 123 31 / 0.65);
}

.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 16px 30px -14px rgb(164 98 26 / 0.7); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { background: var(--surface); border-color: #ddd5c9; }

/* ---------- page head / prose ---------- */

.page-head { padding: 56px 0 8px; }

.crumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--accent-strong); }

.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }

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

.prose { max-width: 72ch; display: grid; gap: 16px; }

.prose h3 { font-size: 1.18rem; margin-top: 14px; }

.prose p { color: #3c3831; }

/* ---------- product detail ---------- */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: start;
}

.gallery-main {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-text { display: grid; gap: 14px; align-content: start; }

.product-text h3 { font-size: 1.14rem; margin-top: 8px; }

.product-text p { color: #3c3831; }

.product-text .btn { margin-top: 14px; justify-self: start; }

.product-nav { padding-top: 8px; }

/* ---------- promos ---------- */

.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.promo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-weight: 700;
  font-size: 1.04rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

.promo-check {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

/* ---------- contacts ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.contact-card h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-card a:hover { color: var(--accent-strong); }

.contact-phone { font-weight: 700; font-size: 1.05rem; }

.contact-note { color: var(--muted); font-size: 0.85rem; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  line-height: 0;
}

.map-wrap iframe { width: 100%; border: 0; }

/* ---------- cta strip ---------- */

.cta { padding: 32px 0 64px; }

.cta-inner {
  background: linear-gradient(120deg, #2a2118, #4a3417);
  color: #fdf6ea;
  border-radius: calc(var(--radius) + 6px);
  padding: 46px 48px;
  display: grid;
  gap: 10px;
  justify-items: start;
}

.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.cta-inner p { color: rgb(253 246 234 / 0.72); }

.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }

.cta .btn-ghost { color: #fdf6ea; border-color: rgb(253 246 234 / 0.35); }
.cta .btn-ghost:hover { background: rgb(253 246 234 / 0.08); border-color: rgb(253 246 234 / 0.6); }

/* ---------- ribbon (marquee) ---------- */

.ribbon {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--accent-soft);
  padding: 12px 0;
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon-scroll 30s linear infinite;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: var(--accent-strong);
}

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

/* ---------- footer ---------- */

.site-footer {
  background: #171512;
  color: #b7b1a6;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-block: 52px 32px;
}

.footer-brand .brand { color: #f5efe4; display: inline-block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.92rem; }

.footer-col { display: grid; gap: 8px; align-content: start; }

.footer-col h4 {
  color: #f5efe4;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-col a:hover { color: #f5efe4; }
.footer-col a[href^="tel"], .footer-col a[href^="mailto"] { font-weight: 700; color: #e8e1d4; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgb(245 239 228 / 0.12);
  padding-block: 18px;
  font-size: 0.82rem;
}

.footer-bottom a:hover { color: #f5efe4; }

/* ---------- notes demo ---------- */

.notes { list-style: none; display: grid; gap: 10px; }
.notes li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; display: grid; gap: 2px; }
.notes .body { color: var(--muted); font-size: 0.92rem; }
.notes .empty, .prose .empty { color: var(--muted); }

.new-note { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.new-note input {
  flex: 1 1 200px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: var(--surface);
}

.new-note input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .card-grid, .feature-grid, .promo-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .hero { padding: 44px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner { padding: 34px 26px; }

  .card-grid, .card-grid-wide, .feature-grid, .promo-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  /* burger nav */
  .nav-burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 60;
  }

  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: "";
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.25s ease;
    position: relative;
  }

  .nav-burger span::before { position: absolute; top: -7px; }
  .nav-burger span::after { position: absolute; top: 7px; }

  .nav-toggle:checked ~ .nav-burger span { transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span::before { transform: rotate(90deg); top: 0; opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span::after { transform: rotate(90deg); top: 0; opacity: 0; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 22px;
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 40;
  }

  .nav-toggle:checked ~ .site-nav { transform: none; }

  .site-nav a { padding: 10px 4px; font-size: 1.02rem; }
  .site-nav .nav-cta { text-align: center; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
