/* =========================================================
   2EASY — стилі сайту
   Токени взяті з брендбуку 2EASY (палітра, шрифти, капсульний
   текст, іконки-локалізатори, модульний дизайн, невагомі об'єкти)
   ========================================================= */

:root {
  /* --- Кольори (брендбук, стор. 15) --- */
  --c-white: #F7F5F5;      /* Perfect White */
  --c-stone: #E9E9E6;      /* Quartz Stone */
  --c-tan-1: #DDD9CF;
  --c-tan-2: #C9C1B4;      /* Warm Gray */
  --c-tan-3: #B4A899;
  --c-brown: #91795D;      /* Box Brown */
  --c-accent: #A3DC61;     /* Be Spontaneous */
  --c-accent-dark: #8dc94c;
  --c-ink: #3C3C3B;        /* Balsamic Reduction */
  --c-white-pure: #FFFFFF;

  /* --- Типографіка --- */
  /* NAMU 1930 — фірмовий шрифт заголовків з брендбуку.
     Файли шрифту не постачаються в комплекті (потрібне окреме
     завантаження за безкоштовною ліцензією CC BY-ND 4.0, див. README).
     Unbounded — тимчасова геометрична заміна зі схожим характером. */
  --font-display: 'Unbounded', 'Namu 1930', sans-serif;
  --font-body: 'Commissioner', 'Namu Body', sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 18px rgba(60, 60, 59, 0.07);
  --shadow-card-hover: 0 10px 28px rgba(60, 60, 59, 0.12);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--c-ink);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--c-brown);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.9em;
}

:focus-visible {
  outline: 3px solid var(--c-accent-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------
   Кнопки
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--c-accent);
  color: var(--c-ink);
  box-shadow: 0 6px 18px rgba(163, 220, 97, 0.45);
}
.btn-primary:hover { background: var(--c-accent-dark); }
.btn-dark {
  background: var(--c-ink);
  color: var(--c-white);
}
.btn-dark:hover { background: #262625; }
.btn-outline {
  background: transparent;
  border-color: var(--c-ink);
  color: var(--c-ink);
}
.btn-outline:hover { background: var(--c-ink); color: var(--c-white); }
.btn-outline-light {
  background: transparent;
  border-color: rgba(247,245,245,0.5);
  color: var(--c-white);
}
.btn-outline-light:hover { background: rgba(247,245,245,0.12); border-color: var(--c-white); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ---------------------------------------------------------
   Капсульний текст (брендбук стор. 17-19)
   --------------------------------------------------------- */
.capsule-line { display: block; }
.capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 0.18em 0.6em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.capsule--accent { background: var(--c-accent); color: var(--c-ink); }
.capsule--light { background: var(--c-white); color: var(--c-ink); }
.capsule--outline { background: transparent; border: 2px solid currentColor; }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-ink);
  flex: none;
}
.icon-badge svg { width: 55%; height: 55%; }
.capsule .icon-badge { background: var(--c-accent); }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 245, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(60,60,59,0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--c-ink);
}
.brand .logo-mark { color: var(--c-ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a.active { border-color: var(--c-accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 600; font-size: 0.92rem; display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: none; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (min-width: 860px) { .header-phone { display: inline; } }

@media (max-width: 859px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--c-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid rgba(60,60,59,0.08); }
  .nav-toggle { display: inline-flex; }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero__lead { font-size: 1.1rem; color: #5b5b5a; max-width: 46ch; margin-bottom: 1.6em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--c-accent);
  overflow: hidden;
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__art-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; margin: 0 auto; }
}

/* ---------------------------------------------------------
   Секції / модульний дизайн (стор. 23-26)
   --------------------------------------------------------- */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--stone { background: var(--c-stone); }
.section--dark { background: var(--c-ink); color: var(--c-white); }
.section--dark .eyebrow { color: var(--c-accent); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.section-head p { color: #6a6a68; max-width: 56ch; margin: 0; }
.section--dark .section-head p { color: #cfcfce; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tile-grid { grid-template-columns: 1fr; } }

.cat-tile {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--c-white-pure);
  padding: 26px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.cat-tile__icon {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-stone);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-tile__icon svg { width: 26px; height: 26px; color: var(--c-ink); }
.cat-tile__count {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--c-brown);
  font-weight: 600;
}
.cat-tile h3 { margin-bottom: 4px; }
.cat-tile p { color: #6a6a68; font-size: 0.92rem; margin: 0; }
.cat-tile--accent { background: var(--c-accent); }
.cat-tile--accent .cat-tile__icon { background: rgba(60,60,59,0.12); }
.cat-tile--accent p { color: rgba(60,60,59,0.75); }
.cat-tile--dark { background: var(--c-ink); color: var(--c-white); }
.cat-tile--dark .cat-tile__icon { background: rgba(247,245,245,0.14); }
.cat-tile--dark .cat-tile__icon svg { color: var(--c-white); }
.cat-tile--dark p { color: #c9c9c8; }

/* ---------------------------------------------------------
   Значення / переваги
   --------------------------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 780px) { .value-grid { grid-template-columns: 1fr; } }
.value-card {
  background: var(--c-white-pure);
  border-radius: var(--radius-md);
  padding: 26px;
}
.value-card .icon-badge { width: 44px; height: 44px; margin-bottom: 16px; }
.value-card h3 { margin-bottom: 6px; }
.value-card p { color: #6a6a68; margin: 0; font-size: 0.94rem; }

/* ---------------------------------------------------------
   Банер "не весь асортимент"
   --------------------------------------------------------- */
.note-banner {
  background: var(--c-tan-1);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.note-banner__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-white-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.note-banner__icon svg { width: 28px; height: 28px; color: var(--c-brown); }
.note-banner__text { flex: 1; min-width: 240px; }
.note-banner__text h3 { margin-bottom: 4px; }
.note-banner__text p { margin: 0; color: #5f5c56; }
.note-banner .btn { flex: none; }

/* ---------------------------------------------------------
   Каталог: фільтри + сітка товарів
   --------------------------------------------------------- */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-tab {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--c-white-pure);
  border: 2px solid var(--c-tan-1);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.15s ease;
}
.filter-tab:hover { border-color: var(--c-brown); }
.filter-tab.is-active { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-white); }

.search-box {
  position: relative;
  min-width: 240px;
  flex: 1 1 260px;
  max-width: 340px;
}
.search-box input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--c-tan-1);
  background: var(--c-white-pure);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.search-box input:focus { border-color: var(--c-accent-dark); outline: none; }
.search-box svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8c8c89;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1080px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.product-card {
  background: var(--c-white-pure);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.product-card__img {
  aspect-ratio: 1 / 1;
  background: var(--c-stone);
  overflow: hidden;
}
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.product-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card__cat { font-size: 0.72rem; color: var(--c-brown); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.product-card__name { font-size: 0.94rem; font-weight: 600; line-height: 1.3; margin: 0; flex: 1; }
.product-card__price { font-family: var(--font-display); font-weight: 600; color: var(--c-ink); font-size: 0.92rem; margin-top: 4px; }
.product-card__cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-pill);
  background: var(--c-stone);
  font-weight: 600;
  font-size: 0.84rem;
  transition: background 0.15s ease;
}
.product-card__cta:hover { background: var(--c-accent); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #6a6a68;
}

.load-more-wrap { text-align: center; margin-top: 36px; }

/* ---------------------------------------------------------
   Сторінка товару
   --------------------------------------------------------- */
.breadcrumbs { font-size: 0.86rem; color: #7a7a77; margin-bottom: 24px; }
.breadcrumbs a:hover { text-decoration: underline; }
.product-view {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 48px;
  align-items: flex-start;
}
@media (max-width: 820px) { .product-view { grid-template-columns: 1fr; gap: 28px; } }
.product-view__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-stone);
  aspect-ratio: 1 / 1;
}
.product-view__img img { width: 100%; height: 100%; object-fit: cover; }
.product-view__sku { color: #8c8c89; font-size: 0.88rem; margin-bottom: 6px; }
.product-view__price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 14px 0 20px;
}
.product-view__desc { color: #55534f; margin-bottom: 24px; line-height: 1.6; }
.product-view__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.spec-list { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--c-tan-1); }
.spec-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--c-tan-1); font-size: 0.92rem; }
.spec-list li span:first-child { color: #7a7a77; }

.related h2 { margin-bottom: 20px; }

/* ---------------------------------------------------------
   Форма / модалка заявки
   --------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60,60,59,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--c-stone);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal h3 { margin-bottom: 4px; }
.modal__sub { color: #6a6a68; margin-bottom: 20px; font-size: 0.92rem; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--c-tan-1);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--c-white-pure);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-accent-dark); }
.field textarea { resize: vertical; min-height: 80px; }
.form-note { font-size: 0.78rem; color: #8c8c89; margin-top: 10px; }
.form-status { margin-top: 14px; font-size: 0.9rem; font-weight: 600; display: none; }
.form-status.is-success { display: block; color: #4b7a1e; }
.form-status.is-error { display: block; color: #b23b3b; }

/* ---------------------------------------------------------
   Про компанію
   --------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } }
.story-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--c-tan-1);
}
.story-art img { width: 100%; height: 100%; object-fit: cover; }

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 28px; }
.stat-row__item .stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--c-ink); }
.stat-row__item .stat-label { font-size: 0.86rem; color: #6a6a68; }

/* ---------------------------------------------------------
   Контакти
   --------------------------------------------------------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 820px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-item { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-item .icon-badge { width: 46px; height: 46px; }
.contact-item h4 { margin: 0 0 2px; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; }
.contact-item p, .contact-item a { color: #55534f; margin: 0; font-size: 0.95rem; }
.contact-item a:hover { color: var(--c-brown); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; margin-top: 32px; border: 0; width: 100%; height: 260px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer { background: var(--c-ink); color: var(--c-white); padding: 56px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-accent); margin-bottom: 16px; }
.footer-col p { color: #cfcfce; font-size: 0.92rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #cfcfce; font-size: 0.92rem; }
.footer-col a:hover { color: var(--c-accent); }
.footer-legal {
  border-top: 1px solid rgba(247,245,245,0.14);
  padding-top: 24px;
  font-size: 0.8rem;
  color: #9c9c9a;
  line-height: 1.7;
}
.footer-legal strong { color: #cfcfce; }

/* ---------------------------------------------------------
   Утиліти
   --------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
