:root {
  --green: #2f9e2a;
  --green-bright: #3db836;
  --green-deep: #1f6b1c;
  --ink: #12140f;
  --ink-soft: #2a2e24;
  --paper: #e8e4d8;
  --paper-dim: #d4d0c4;
  --muted: #6b6f63;
  --steel: #8a9180;
  --danger-free: transparent;
  --radius: 2px;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, .brand {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 2.35rem;
  display: block;
}

.nav {
  display: none;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--green-deep);
}

.header-cta {
  flex-shrink: 0;
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--green);
  color: #fff;
}

.btn--primary:hover {
  background: var(--green-deep);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid color-mix(in srgb, #fff 55%, transparent);
}

.btn--ghost:hover {
  background: color-mix(in srgb, #fff 12%, transparent);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--ink-soft);
}

.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(100svh, 54rem);
  display: grid;
  align-items: end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* прижим с доской — в центре кадра */
  object-position: 62% 42%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 14, 8, 0.28) 0%, rgba(10, 14, 8, 0.05) 32%, rgba(10, 14, 8, 0.78) 100%),
    linear-gradient(90deg, rgba(10, 14, 8, 0.62) 0%, rgba(10, 14, 8, 0.15) 48%, rgba(10, 14, 8, 0.05) 100%);
}

.hero__content {
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem);
  max-width: 38rem;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 75%, var(--green-bright));
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-size: clamp(1.55rem, 4.2vw, 2.65rem);
  text-transform: none;
  max-width: 16ch;
  margin-bottom: 0.5rem;
}

.hero__product {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 600;
  opacity: 0.92;
  margin-bottom: 1.1rem;
}

.hero__slogan {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  max-width: 18ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-bottom: 1.35rem;
}

.hero__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__meta {
  font-size: 0.9rem;
  color: color-mix(in srgb, #fff 78%, transparent);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--dim {
  background: color-mix(in srgb, var(--paper-dim) 70%, var(--paper));
}

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}

.section--ink .section__label {
  color: var(--green-bright);
}

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
}

.section--ink .lead {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}

.note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}

.section--ink .note {
  color: var(--steel);
}

/* —— Split —— */
.split {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .split--rev > :first-child {
    order: 2;
  }
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(18, 20, 15, 0.18);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-frame--tall img {
  aspect-ratio: 3 / 4;
}

.media-frame--square img {
  aspect-ratio: 1;
}

.formula {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.35rem;
  align-items: center;
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
}

.formula span {
  padding: 0.35rem 0.65rem;
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: var(--green-deep);
}

.formula i {
  font-style: normal;
  color: var(--muted);
}

.section--ink .formula span {
  background: color-mix(in srgb, var(--green-bright) 18%, transparent);
  color: #fff;
}

.section--ink .formula i {
  color: var(--steel);
}

/* —— Steps —— */
.steps {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step {
  display: grid;
  gap: 0.85rem;
}

.step__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-deep);
}

.step h3 {
  font-size: 1.2rem;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.step .media-frame img {
  aspect-ratio: 5 / 4;
}

.steps-cta {
  margin-top: 2rem;
}

/* —— Gallery strip —— */
.work-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .work-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .work-grid .media-frame:first-child {
    grid-row: 1 / span 2;
  }

  .work-grid .media-frame:first-child img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 28rem;
  }
}

/* —— Specs —— */
.specs {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .specs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .specs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.spec {
  padding: 1.25rem 1.15rem;
  border-top: 2px solid var(--green);
  background: color-mix(in srgb, #fff 55%, var(--paper));
}

.section--ink .spec {
  background: color-mix(in srgb, #fff 6%, transparent);
  border-top-color: var(--green-bright);
}

.spec__value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.spec__label {
  font-size: 0.9rem;
  color: var(--muted);
}

.section--ink .spec__label {
  color: var(--steel);
}

.facts-visual {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 800px) {
  .facts-visual {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.facts-visual .media-frame {
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.facts-visual .media-frame img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  padding: 0.75rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(18, 20, 15, 0.12);
}

.facts-visual .media-frame--photo img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
  background: #e8e4d8;
  padding: 0;
}

.facts-visual .media-frame--drawing {
  background: transparent;
  box-shadow: none;
}

.facts-visual .media-frame--drawing img {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #fff;
  padding: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  box-shadow: none;
}

.facts-visual figcaption {
  margin-top: 0.55rem;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted);
  background: transparent;
}

/* —— Story / not-machine —— */
.prose {
  max-width: 40rem;
}

.prose p + p {
  margin-top: 1rem;
}

.prose strong {
  font-weight: 800;
}

/* —— FAQ —— */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

.faq details {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  padding: 1.1rem 0;
}

.faq summary {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--green-deep);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

/* —— Order —— */
.order {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}

@media (min-width: 800px) {
  .order {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.order__price {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  margin: 0.5rem 0 0.35rem;
}

.order__phone {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
  text-decoration: none;
  color: var(--green-deep);
}

.order__phone:hover {
  text-decoration: underline;
}

.order__ship {
  margin-top: 1rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.order__side {
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

/* —— Final —— */
.final {
  position: relative;
  min-height: 28rem;
  display: grid;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.final__media,
.final__shade {
  position: absolute;
  inset: 0;
}

.final__media {
  z-index: -2;
}

.final__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.final__shade {
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 14, 8, 0.82), rgba(10, 14, 8, 0.35));
}

.final__content {
  padding: clamp(3rem, 8vw, 5rem) 0;
  max-width: 28rem;
}

.final h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.final p {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* —— Footer —— */
.site-footer {
  padding: 1.75rem 0 2.25rem;
  background: var(--ink);
  color: var(--steel);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--green-bright);
}

.footer-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.footer-brand img {
  width: auto;
  height: 1.5rem;
  opacity: 0.95;
}

.footer-brand span {
  color: var(--steel);
  font-weight: 500;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
  font-size: 0.82rem;
}

.footer-legal a {
  font-weight: 500;
  color: var(--steel);
}

.footer-legal a:hover {
  color: var(--green-bright);
}

.home-articles {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .home-articles {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.home-article {
  display: grid;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1rem;
}

.home-article img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(18, 20, 15, 0.12);
}

.home-article:hover {
  color: var(--green-deep);
}

.cookie-banner {
  position: fixed;
  z-index: 100;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1rem;
  max-width: 36rem;
  margin-inline: auto;
  padding: 1rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--green-bright);
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner button {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
}

.cookie-banner__accept {
  background: var(--green);
  color: #fff;
}

.cookie-banner__accept:hover {
  background: var(--green-deep);
}

.cookie-banner__link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border: 1.5px solid color-mix(in srgb, #fff 40%, transparent);
  color: var(--paper) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* —— Motion —— */
@media (prefers-reduced-motion: no-preference) {
  .hero__content,
  .final__content {
    animation: rise 0.9s ease both;
  }

  .section .section__head,
  .split,
  .steps,
  .specs,
  .faq {
    animation: rise 0.7s ease both;
    animation-timeline: view();
    animation-range: entry 5% cover 25%;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
