:root {
  color-scheme: light;
  --ink: #1d2927;
  --muted: #65716e;
  --line: #dbe2de;
  --paper: #f7faf8;
  --white: #ffffff;
  --green: #1c6258;
  --green-deep: #123f39;
  --coral: #bc654a;
  --shadow: 0 12px 36px rgba(29, 41, 39, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.site-header {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
}
.brand { color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: 0; text-decoration: none; }
.brand span { color: var(--green); }
.header-center { display: grid; justify-items: center; gap: 7px; }
.site-tabs { display: flex; align-items: center; gap: 4px; min-width: 276px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
.site-tab { flex: 1; min-height: 34px; border: 0; border-radius: 4px; padding: 0 13px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 750; white-space: nowrap; }
.site-tab.is-active { background: var(--green-deep); color: white; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover { color: var(--ink); }
.cart-button {
  justify-self: end;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  min-height: 38px;
  padding: 0 13px;
  border-radius: 5px;
  font-size: 14px;
}
.cart-button span { color: var(--green); font-weight: 700; margin-left: 4px; }

main { max-width: 1240px; margin: 0 auto; padding: 0 28px 56px; }
.hero { position: relative; display: flex; align-items: center; min-height: 500px; overflow: hidden; padding: 70px 8%; border: 1px solid var(--line); background: #e5eee9; }
.hero-illustration { position: absolute; top: 14%; right: 9%; width: min(32vw, 360px); aspect-ratio: 1; border: 1px solid #b9cbc4; border-radius: 50%; }
.hero-illustration::before, .hero-illustration::after { content: ""; position: absolute; border: 1px solid #b9cbc4; }
.hero-illustration::before { inset: 15%; border-radius: 50%; }
.hero-illustration::after { top: 50%; right: -18%; width: 44%; height: 1px; border-width: 1px 0 0; }
.hero-copy { position: relative; z-index: 1; width: min(450px, 56%); }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 430px; margin-bottom: 18px; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; font-weight: 720; }
h2 { margin-bottom: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.hero-text { max-width: 380px; margin-bottom: 25px; font-size: 16px; line-height: 1.45; }
.primary-link { display: inline-flex; align-items: center; min-height: 44px; background: var(--green); color: white; text-decoration: none; padding: 0 18px; border-radius: 5px; font-weight: 650; }
.primary-link:hover { background: var(--green-deep); }

.catalog-section, .collections { padding: 82px 0 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.section-note { max-width: 295px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.filter-button { border: 0; border-bottom: 1px solid var(--green); background: transparent; color: var(--green); padding: 6px 0; font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card { background: var(--white); border: 1px solid var(--line); padding: 12px; }
.product-image { display: grid; aspect-ratio: 1 / 1; place-items: center; margin: 0; overflow: hidden; background: #e1e8e5; }
.product-image::before { content: "NORD HOME"; color: #416159; font-size: 12px; font-weight: 750; letter-spacing: 0.12em; }
.product-card:nth-child(2) .product-image { background: #eadbd4; }
.product-card:nth-child(3) .product-image { background: #e8dfcc; }
.product-card:nth-child(4) .product-image { background: #dfe4cf; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; margin: 15px 0 7px; color: var(--muted); font-size: 12px; }
h3 { margin-bottom: 16px; font-size: 17px; }
.add-button { width: 100%; min-height: 38px; border: 1px solid var(--green); background: transparent; color: var(--green); border-radius: 4px; font-size: 14px; }
.add-button:hover, .add-button.added { background: var(--green); color: white; }
.cart-message { min-height: 22px; margin: 18px 0 0; color: var(--green); font-size: 14px; }

.collection-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 280px; gap: 16px; }
.collection-card { position: relative; overflow: hidden; display: block; min-height: 0; color: white; text-decoration: none; background: var(--green-deep); }
.collection-card-tall { grid-row: span 2; }
.collection-card:nth-child(1) { background: #1c6258; }
.collection-card:nth-child(2) { background: #bc654a; }
.collection-card:nth-child(3) { background: #687b75; }
.collection-card::after { content: "NORD HOME"; position: absolute; top: 20px; left: 20px; color: rgba(255, 255, 255, 0.58); font-size: 11px; font-weight: 750; letter-spacing: 0.12em; }
.collection-copy { position: absolute; z-index: 1; right: 20px; bottom: 18px; left: 20px; display: grid; gap: 4px; }
.collection-copy small { font-size: 12px; opacity: 0.8; }
.collection-copy strong { font-size: 23px; line-height: 1.1; }
.collection-copy b { margin-top: 6px; font-size: 13px; font-weight: 650; }

.values { padding: 90px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 27px 0; }
.values-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.values-grid strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 17px; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr); gap: 54px; padding: 56px 7%; background: #e5eee9; }
.about p:last-child { align-self: end; margin: 0; color: #3a504a; font-size: 19px; line-height: 1.5; }
.mailing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 0.7fr); gap: 42px; padding: 68px 7%; background: var(--coral); color: white; }
.mailing .eyebrow { color: #ffe6d9; }
.mailing h2 { max-width: 480px; }
.mailing-form { align-self: center; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.mailing-form input { min-width: 0; min-height: 48px; border: 1px solid rgba(255, 255, 255, 0.75); border-radius: 4px; background: white; color: var(--ink); padding: 0 13px; }
.mailing-form button { min-height: 48px; border: 1px solid var(--green-deep); border-radius: 4px; background: var(--green-deep); color: white; padding: 0 16px; font-weight: 650; }
.mailing-message { grid-column: 1 / -1; min-height: 20px; margin: 3px 0 0; font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.files-hero { display: flex; justify-content: space-between; align-items: end; gap: 28px; min-height: 310px; padding: 86px 7% 52px; background: #e5eee9; }
.files-hero h1 { margin-bottom: 15px; }
.files-hero p:not(.eyebrow) { max-width: 470px; margin: 0; color: #3a504a; font-size: 17px; line-height: 1.5; }
.files-status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid #b9cec5; border-radius: 5px; color: var(--green-deep); background: rgba(255, 255, 255, 0.5); font-size: 13px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2b9b68; }
.transfer-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 16px; margin-top: 70px; }
.upload-panel, .transfer-note { border: 1px solid var(--line); background: var(--white); }
.upload-panel { padding: 14px; }
.drop-zone { min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; border: 1px dashed #98b1a9; background: #fbfdfc; color: var(--muted); text-align: center; cursor: pointer; }
.drop-zone strong { color: var(--ink); font-size: 20px; }
.drop-zone > span:not(.upload-symbol) { font-size: 14px; }
.drop-zone b { display: inline-flex; align-items: center; min-height: 36px; margin-top: 6px; padding: 0 13px; border-radius: 4px; background: var(--green); color: white; font-size: 14px; }
.upload-symbol { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #a6c2b7; border-radius: 50%; color: var(--green); font-size: 24px; line-height: 1; }
.upload-progress { margin: 15px 6px 2px; }
.progress-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 7px; color: var(--muted); font-size: 13px; }
.progress-meta span:first-child { min-width: 0; overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }
.progress-line { height: 5px; overflow: hidden; background: #dde8e3; }
.progress-line span { display: block; width: 0; height: 100%; background: var(--green); transition: width 260ms ease; }
.transfer-note { display: flex; flex-direction: column; justify-content: end; padding: 30px; background: var(--green-deep); color: white; }
.transfer-note .eyebrow { color: #b9d8cd; }
.transfer-note h2 { font-size: 31px; }
.transfer-note > p:not(.eyebrow) { margin-bottom: 30px; color: #d8e9e2; line-height: 1.5; }
.transfer-stats { display: flex; gap: 18px; border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 18px; color: #d8e9e2; font-size: 13px; }
.transfer-stats b { display: block; margin-bottom: 3px; color: white; font-size: 18px; }
.recent-files { padding: 78px 0 90px; }
.file-list { border-top: 1px solid var(--line); }
.file-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; min-height: 84px; border-bottom: 1px solid var(--line); }
.file-kind { width: 40px; min-height: 40px; display: grid; place-items: center; border-radius: 4px; font-size: 11px; font-weight: 800; }
.file-kind-pdf { background: #f6e4df; color: #9b452f; }
.file-kind-image { background: #d8ece6; color: #1c6258; }
.file-kind-doc { background: #e1e9f6; color: #385b8c; }
.file-kind-zip { background: #f3e8c9; color: #7a5a10; }
.file-row strong, .file-row small { display: block; }
.file-row strong { margin-bottom: 5px; font-size: 15px; }
.file-row small { color: var(--muted); font-size: 13px; }
.file-state { color: var(--green); font-size: 13px; }
.copy-file-button { min-height: 34px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--green); padding: 0 10px; font-size: 13px; }
.copy-file-button:hover { border-color: var(--green); }
.files-message { min-height: 20px; margin: 16px 0 0; color: var(--green); font-size: 14px; }
footer { max-width: 1240px; display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 24px 28px 30px; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .collection-card-tall { grid-row: span 1; grid-column: span 2; }
  .about, .mailing { grid-template-columns: 1fr; gap: 26px; }
  .transfer-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; min-height: 0; padding: 12px 18px 10px; }
  .header-center { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-items: stretch; }
  nav { display: none; }
  .site-tabs { width: 100%; min-width: 0; gap: 3px; }
  .site-tab { min-height: 38px; padding: 0 10px; font-size: 14px; }
  main { padding: 0 18px 42px; }
  .hero { min-height: 440px; height: 440px; padding: 48px 24px; }
  .hero-illustration { top: auto; right: 20px; bottom: -48px; width: 240px; }
  .hero-copy { width: calc(100% - 48px); }
  h1 { font-size: 39px; }
  .hero-text { font-size: 15px; }
  .catalog-section, .collections { padding-top: 62px; }
  .section-heading { align-items: start; flex-direction: column; }
  .product-grid { gap: 10px; }
  .product-card { padding: 9px; }
  h3 { min-height: 42px; font-size: 15px; }
  .product-meta { flex-direction: column; gap: 3px; }
  .collection-grid { grid-template-columns: 1fr; grid-auto-rows: 290px; gap: 10px; }
  .collection-card-tall { grid-column: auto; }
  .values { padding: 64px 0; }
  .values-grid { grid-template-columns: 1fr; gap: 22px; }
  .about, .mailing { margin: 0 -18px; padding: 46px 24px; }
  .about p:last-child { font-size: 17px; }
  .mailing-form { grid-template-columns: 1fr; }
  .files-hero { align-items: start; flex-direction: column; min-height: auto; margin: 0 -18px; padding: 56px 24px 42px; }
  .files-hero h1 { font-size: 40px; }
  .transfer-workspace { margin-top: 42px; }
  .drop-zone { min-height: 230px; }
  .transfer-note { min-height: 250px; }
  .recent-files { padding: 62px 0; }
  .file-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; padding: 13px 0; }
  .file-row small { line-height: 1.35; }
  .file-state { display: none; }
  .copy-file-button { grid-column: 2 / 3; justify-self: start; }
  footer { padding: 22px 18px 28px; }
}
