/* JTD — стили. Системные шрифты, без внешних ресурсов. */

:root {
  --bg: #faf8f3;          /* 米白 */
  --bg-alt: #f1efe9;      /* 浅灰米 */
  --surface: #ffffff;
  --ink: #2b2d2a;
  --ink-soft: #5e625c;
  --line: #dedcd4;
  --green: #8fb79a;       /* 浅绿点缀 */
  --green-deep: #4f7a5c;  /* 文字/按钮用的深一点的绿，保证对比度 */
  --green-tint: #e4eee7;
  --radius: 6px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, .96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand {
  font-weight: 700; font-size: 22px; letter-spacing: .14em; text-decoration: none;
}
.nav-toggle {
  display: none;
  font: inherit; font-size: 15px; color: var(--ink);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 7px 14px; cursor: pointer;
}
.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none; font-size: 15px; color: var(--ink-soft);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--green); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 18px;
}
.hero h1 { margin: 0 0 22px; font-weight: 600; line-height: 1.15; }
.hero-brand { display: block; font-size: 64px; letter-spacing: .16em; font-weight: 700; margin-bottom: 10px; }
.hero-tagline { display: block; font-size: 30px; color: var(--ink-soft); font-weight: 500; }
.hero-lead { color: var(--ink-soft); max-width: 34em; }

.hero-art {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
  aspect-ratio: 1 / 1; max-width: 420px; width: 100%; justify-self: end;
}
.hero-art .ph:first-child { grid-row: 1 / 3; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 0; }
.actions--center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  padding: 14px 26px; border-radius: var(--radius); border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { background: #3f6449; }
.btn-ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green-deep); color: var(--green-deep); }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-list li { padding: 22px 20px; border-left: 1px solid var(--line); }
.facts-list li:first-child { border-left: 0; padding-left: 0; }
.facts-list .k { display: block; font-size: 13px; color: var(--ink-soft); letter-spacing: .02em; }
.facts-list .v { display: block; font-size: 19px; font-weight: 600; margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
h2 { font-size: 34px; line-height: 1.2; font-weight: 600; margin: 0 0 18px; }
h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--green); margin-top: 14px; }
h3 { font-size: 19px; font-weight: 600; margin: 0; line-height: 1.3; }
.lead { color: var(--ink-soft); max-width: 40em; font-size: 18px; }
.note { color: var(--ink-soft); margin-top: 28px; font-size: 16px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.about-text p { color: var(--ink-soft); }
.about-facts { margin: 28px 0 0; border-top: 1px solid var(--line); }
.about-facts div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.about-facts dt { color: var(--ink-soft); font-size: 15px; }
.about-facts dd { margin: 0; font-weight: 500; }
.about-media { display: grid; gap: 16px; }
.about-media .ph { aspect-ratio: 16 / 10; }

/* ---------- Placeholder blocks (pure CSS) ----------
   .ph — контейнер-заглушка; поверх него лежит <img>.
   Если файл картинки есть, он перекрывает фон. Если файла нет, <img> скрывается (onerror), и виден цветной блок. */
.ph { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background-color: #e7e5dd; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ph--solid-a  { background: #e8e4d8; }
.ph--solid-b  { background: #d9ddd2; }
.ph--solid-c  { background: #ece9e1; background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 2px, transparent 2px 6px); }

.ph--marble-a { background: linear-gradient(115deg, #ecebe6 0%, #d8d8d2 38%, #f1f0ec 52%, #cfd1cb 100%); }
.ph--marble-b { background: linear-gradient(160deg, #e3e6df 0%, #f3f2ee 45%, #c9cec6 100%); }
.ph--marble-c { background: linear-gradient(70deg, #dedcd4 0%, #efeee9 55%, #d3d6cf 100%); }

.ph--floral-a { background: radial-gradient(circle at 25% 30%, #bcd3c2 0 14%, transparent 15%), radial-gradient(circle at 70% 65%, #cfe0d3 0 18%, transparent 19%), #f0eee6; }
.ph--floral-b { background: radial-gradient(circle at 60% 35%, #c4d8c9 0 20%, transparent 21%), radial-gradient(circle at 30% 75%, #dbe7de 0 14%, transparent 15%), #ebe9e0; }
.ph--floral-c { background: radial-gradient(circle at 40% 50%, #b3cdb9 0 24%, transparent 25%), #f3f1ea; }

.ph--geo-a { background-color: #ebe9e1; background-image: linear-gradient(45deg, #d9ddd2 25%, transparent 25%, transparent 75%, #d9ddd2 75%), linear-gradient(45deg, #d9ddd2 25%, transparent 25%, transparent 75%, #d9ddd2 75%); background-size: 40px 40px; background-position: 0 0, 20px 20px; }
.ph--geo-b { background-color: #f1efe9; background-image: radial-gradient(circle, #bcd3c2 0 6px, transparent 7px); background-size: 28px 28px; }
.ph--geo-c { background-color: #e6e4db; background-image: linear-gradient(#d3d6cf 1px, transparent 1px), linear-gradient(90deg, #d3d6cf 1px, transparent 1px); background-size: 24px 24px; }

.ph--stripe-a { background: repeating-linear-gradient(90deg, #e9e6dc 0 22px, #dde5dc 22px 44px); }
.ph--stripe-b { background: repeating-linear-gradient(90deg, #f0eee6 0 10px, #cfdcd2 10px 14px); }
.ph--stripe-c { background: repeating-linear-gradient(90deg, #e3e1d8 0 34px, #f2f0ea 34px 40px); }

.ph--abstract-a { background: linear-gradient(130deg, #dfe8e1 0%, #efede6 50%, #d6d9d0 100%); }
.ph--abstract-b { background: radial-gradient(ellipse at 20% 20%, #c8dccd 0 30%, transparent 31%), radial-gradient(ellipse at 80% 80%, #dad8cf 0 38%, transparent 39%), #f1efe8; }
.ph--abstract-c { background: conic-gradient(from 200deg at 60% 50%, #e4eee7, #e9e6dc, #d6d9d0, #e4eee7); }

.ph--factory-a { background: linear-gradient(180deg, #e7e9e3 0 60%, #cfd3cb 60% 100%); }
.ph--factory-b { background: linear-gradient(90deg, #e8e5db 0 33%, #dfe3da 33% 66%, #d6dad1 66% 100%); }

/* ---------- Collection cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.card-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.card-num { font-size: 14px; color: var(--green-deep); font-weight: 600; letter-spacing: .06em; }
.card p { color: var(--ink-soft); font-size: 16px; margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.tiles li:first-child { grid-column: 1 / 3; aspect-ratio: 16 / 10; }
.tiles li:not(:first-child) { aspect-ratio: 1 / 1; }

/* ---------- Production ---------- */
.prod-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.checklist li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist p { margin: 4px 0 0; color: var(--ink-soft); font-size: 16px; }
.mark { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green-tint); border: 1px solid var(--green); position: relative; margin-top: 3px; }
.mark::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 9px; border: solid var(--green-deep); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- Logistics ---------- */
.logi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.logi-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px 24px; }
.logi-item svg { width: 40px; height: 40px; fill: none; stroke: var(--green-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.logi-item p { margin: 6px 0 0; color: var(--ink-soft); font-size: 16px; }

/* ---------- Contacts ---------- */
.contact-box { background: var(--green-tint); border: 1px solid #cfe0d4; border-radius: 12px; padding: 56px 24px; text-align: center; }
.contact-box h2::after { margin-left: auto; margin-right: auto; }
.contact-box > p { max-width: 34em; margin-left: auto; margin-right: auto; color: var(--ink-soft); }
.loc { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; font-weight: 500; color: var(--ink) !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--ink-soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* ---------- Tablet / Mobile ---------- */
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid, .about-grid, .prod-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { justify-self: start; max-width: 360px; }
  .facts-list { grid-template-columns: 1fr 1fr; }
  .facts-list li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .logi { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 14px; }
  .js .site-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav li:last-child a { border-bottom: 0; }
  /* без JS меню просто переносится в строки */
  .site-nav ul { flex-wrap: wrap; gap: 4px 18px; }
  .header-inner { flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
  .js .header-inner { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .hero-brand { font-size: 52px; }
  .hero-tagline { font-size: 24px; }
  h2 { font-size: 28px; }
  .about-facts div { grid-template-columns: 1fr; gap: 2px; }
  .card { padding: 18px; }
  .btn { width: 100%; justify-content: center; }
  .actions--center .btn { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
