/* HADAF — public site styles. Mobile-first, tokens from docs/design.md. */

@font-face { font-family: Roboto; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/roboto-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/roboto-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/roboto-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Roboto; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/roboto-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --c-green-900: #042313;
  --c-green-800: #1d3c2c;
  --c-green-700: #0c4c2c;
  --c-gold: #dfcc84;
  --c-yellow: #ffc800;
  --c-gray-900: #111827;
  --c-gray-600: #4b5563;
  --c-gray-400: #9ca3af;
  --c-gray-200: #e5e7eb;
  --c-gray-100: #f3f4f6;
  --c-dark-900: #151718;
  --c-dark-800: #222527;
  --c-dark-700: #2e3335;
  --gold-gradient: linear-gradient(90deg, #927849 0%, #e7dd97 50%, #d9bd72 100%);
  --green-gradient: linear-gradient(90deg, #000f07 0%, #0c4c2c 50%, #000f07 100%);
  --radius: 8px;
  --gutter: 16px;
  --wrap: 480px; /* content column width, grows at the breakpoints below */
  --font: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 400 14px/1.5 var(--font); color: var(--c-gray-900); background: var(--c-green-900); }
/* Sticky footer: on short pages (big screen, zoomed out) <main> grows so the footer sits at
   the bottom of the window; on long pages nothing changes and the footer follows the content. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
#main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }

.sprite { display: none; }
.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.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; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Buttons ---------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 50px; font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.btn--gold { background: var(--gold-gradient); color: var(--c-green-700); }
.btn--gold:active { filter: brightness(.95); }
.btn--outline { background: transparent; color: #fff; border: 1px solid var(--c-gold); }
.btn--block { display: flex; width: 100%; }
.btn .i { width: 20px; height: 20px; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold-gradient); color: var(--c-green-900); }

/* ---- Header & menu ---------------------------------------------------- */
.site-header { background: var(--green-gradient); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding-top: 8px; padding-bottom: 8px; }
.site-header__logo img { width: 160px; height: auto; }
/* Burger stays pinned top-right while scrolling. At the top of the page it sits
   exactly where the header would put it: 12px = header padding (8) + centring (4),
   right edge = right edge of the content column. Below the open menu (z-index 50).
   The soft shadow keeps it visible over the light sections. */
.site-header__menu-btn { position: fixed; z-index: 40; top: calc(12px + env(safe-area-inset-top)); box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  right: max(calc(var(--gutter) + env(safe-area-inset-right)), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.site-nav { display: none; } /* desktop header menu, see the 1024px block */

.menu { display: none; position: fixed; inset: 0; z-index: 50; overflow-y: auto; background: var(--c-green-900); color: #fff; padding-bottom: 32px; }
.menu:target, .menu.is-open { display: block; }
.menu__top { display: flex; justify-content: flex-end; padding: 12px 0; }
.menu__links { list-style: none; padding: 0; margin: 0 0 24px; }
.menu__links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--c-dark-700); font-weight: 600; text-decoration: none; }
.menu__langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--c-gold); }
.menu__langs a { padding: 6px 12px; border: 1px solid var(--c-dark-700); border-radius: 50px; color: #fff; text-decoration: none; font-size: 13px; }
.menu__langs a.is-active { border-color: var(--c-gold); color: var(--c-gold); }
body.menu-open { overflow: hidden; }

/* ---- Hero ------------------------------------------------------------- */
.hero { background: var(--c-green-900); color: #fff; padding: 32px 0; border-top: 4px solid var(--accent); }
.hero .wrap > * + *, .hero__body > * + * { margin-top: 16px; }
.hero__media { position: relative; aspect-ratio: 370 / 280; border-radius: var(--radius); overflow: hidden; background: var(--c-green-700); display: grid; place-items: center; }
/* The photo fills the box (absolute, so the box keeps its aspect ratio) and is shown
   whole with contain — tall cartridges included; the white background fills the rest.
   The logo placeholder stays centred on the green. */
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.hero__media .hero__placeholder { position: static; width: 60%; height: auto; background: none; }
.hero__tag { display: flex; gap: 8px; align-items: flex-start; color: var(--c-gold); font-size: 12px; font-weight: 600; margin-top: 24px !important; }
.hero__dot { width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--c-gold); flex: none; }
.hero__title { font-size: 36px; line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
.hero__text { color: var(--c-gray-400); }
.notice { padding: 10px 12px; border-left: 3px solid var(--c-gold); background: rgba(223, 204, 132, .1); color: var(--c-gold); font-size: 13px; }

.pills { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px !important; }
.pill { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--c-gold); border-radius: var(--radius); background: var(--c-green-700); }
.pill__label { color: #d1d5db; font-size: 12px; font-weight: 700; line-height: 1.4; }
/* Solid light gold instead of gradient text: the gradient's dark end was hard to read on green,
   and browser night modes darken background-clipped text further (~8:1 contrast now). */
.pill__value { font-size: 15px; font-weight: 700; line-height: 1.3; color: #e7dd97; }
.hero .btn--block { margin-top: 24px; }

.hero--home { border-top: 0; min-height: 60vh; }
.wrap.wrap--wide { max-width: 1120px; } /* stronger than the .wrap breakpoints below */

/* ---- Home: category filter + product cards ---------------------------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; } }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 8px 16px; border: 1px solid var(--c-dark-700);
  border-radius: 50px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip[aria-current="page"] { border-color: var(--c-gold); color: var(--c-gold); background: rgba(223, 204, 132, .08); }
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--c-gold)); flex: none; }

.cards { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 24px !important; }
.card-item { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: #fff; color: var(--c-gray-900); border-top: 4px solid var(--cat, var(--c-gold)); transition: transform .15s ease, box-shadow .15s ease; }
.card-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.card-item:focus-within { outline: 3px solid var(--c-yellow); outline-offset: 2px; }
.card-item__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-green-700); }
.card-item__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; } /* see .hero__media */
.card-item__media .card-item__placeholder { inset: auto; top: 50%; left: 50%; width: 55%; height: auto; transform: translate(-50%, -50%); background: none; }
.card-item__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px; }
.card-item__category { display: flex; align-items: center; gap: 6px; color: var(--c-gray-600); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.card-item__title { font-size: 18px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; }
.card-item__title a { text-decoration: none; }
.card-item__title a:focus-visible { outline: none; }
.card-item__title a::after { content: ""; position: absolute; inset: 0; }
.card-item__text { color: var(--c-gray-600); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-item__more { margin-top: auto !important; padding-top: 4px; color: var(--c-green-700); font-weight: 700; }

/* ---- Sections ---------------------------------------------------------- */
.section { padding: 32px 0; }
.section--light { background: var(--c-gray-100); }
.section--dark { background: var(--c-dark-800); color: #fff; border-top: 1px solid var(--c-dark-700); }
.section--green { background: var(--c-green-800); color: #fff; }
.section--support { background: var(--c-green-900); color: #fff; padding: 48px 0; }
.eyebrow { font-size: 12px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: .04em; color: var(--c-gray-900); }
.eyebrow--yellow { color: var(--c-yellow); }
.eyebrow--gold { color: var(--c-gold); }
.section__title { margin: 6px 0 24px; font-size: 30px; line-height: 1.15; font-weight: 800; }
.section__lead { margin: -12px 0 24px; color: var(--c-gray-400); }

.cards { display: grid; gap: 16px; }
.card { padding: 20px; background: #fff; border: 1px solid var(--c-gray-200); border-radius: var(--radius); }
.card__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; border-radius: 4px; background: var(--c-green-700); color: var(--c-yellow); }
.card__icon .i { width: 20px; height: 20px; }
.card__title { font-size: 20px; line-height: 1.35; font-weight: 700; }
.card__text { margin-top: 12px; color: var(--c-gray-600); font-size: 13px; }
.card--warning { border-color: var(--c-gold); }
.card--warning .card__title { display: flex; gap: 10px; align-items: flex-start; color: #9a7b2c; }
.card--warning .card__title .i { color: #c9a227; margin-top: 3px; width: 20px; height: 20px; }

.steps { list-style: none; padding: 0; display: grid; gap: 24px; }
.step { display: flex; gap: 16px; }
.step__num { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--c-yellow); color: var(--c-dark-900); font-weight: 800; font-size: 18px; }
.step__title { font-size: 18px; line-height: 1.3; font-weight: 700; }
.step__text { margin-top: 4px; color: var(--c-gray-400); font-size: 13px; line-height: 1.4; }

.video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--c-green-700); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; }
.video__play .i { width: 28px; height: 28px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.specs { border-top: 1px solid var(--c-dark-700); }
.specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--c-dark-700); }
.specs dt { color: var(--c-gray-400); }
.specs dd { font-weight: 600; text-align: right; }
.tds { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
.tds__download { display: inline-flex; gap: 6px; align-items: center; color: var(--c-gold); font-size: 14px; }
.tds__download .i { width: 18px; height: 18px; }

/* ---- Support ----------------------------------------------------------- */
.contact { margin-bottom: 28px; padding: 16px; border: 1px solid var(--c-dark-700); border-radius: var(--radius); background: rgba(12, 76, 44, .48); }
.contact__title { margin-bottom: 12px; font-weight: 700; color: var(--c-gold); }
.contact__buttons { display: grid; gap: 10px; }
.form { display: grid; gap: 12px; }
.field { display: flex; gap: 12px; align-items: center; min-height: 48px; padding: 0 12px; border: 1px solid var(--c-dark-700); border-radius: 6px; background: rgba(255, 255, 255, .08); color: var(--c-gray-400); }
.field:focus-within { border-color: var(--c-gold); }
.field .i { width: 20px; height: 20px; }
.field input, .field textarea { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: transparent; color: #fff; font-size: 16px; outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--c-gray-400); }
.field--textarea { align-items: flex-start; }
.field--textarea .i { margin-top: 12px; }
.field textarea { resize: vertical; min-height: 96px; }
.form__submit { justify-self: center; min-width: 170px; }
.form__submit[disabled] { opacity: .6; }
.form__status { padding: 10px 12px; border-radius: 6px; background: rgba(223, 204, 132, .12); color: var(--c-gold); }
.form__status.is-error { background: rgba(200, 16, 46, .15); color: #ffb4b4; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--c-dark-800); color: #fff; padding: 32px 0; }
.site-footer__company { font-size: 20px; font-weight: 700; }
.site-footer__tagline { margin-top: 8px; color: var(--c-gray-400); font-size: 12px; }
.socials { margin-top: 24px; }
.socials__title { margin-bottom: 10px; font-weight: 700; }
.socials__list { display: flex; gap: 16px; }
.copyright { padding: 8px var(--gutter); background: var(--green-gradient); color: #fff; text-align: center; font-size: 13px; }

@media (min-width: 481px) {
  .hero__title { font-size: 40px; }
  .section__title { font-size: 32px; }
}

/* ---- Tablet (≥768px): wider column, two-column grids -------------------
   Everything below only adds to the mobile styles above, so phones keep
   exactly the same look. */
@media (min-width: 768px) {
  :root { --wrap: 720px; }

  .section .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .specs { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
  .contact__buttons { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

  .site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .site-footer .socials { margin-top: 0; }
}

/* ---- Desktop (≥1024px): horizontal menu, two-column hero and support ---- */
@media (min-width: 1024px) {
  :root { --wrap: 1120px; }
  .wrap--narrow { max-width: 864px; }

  /* Header: links + language switch instead of the burger menu */
  .site-header__inner { gap: 32px; }
  .site-header__menu-btn, .menu { display: none !important; }
  .site-nav { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 24px; }
  .site-nav__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; list-style: none; padding: 0; margin: 0; }
  .site-nav__links a { color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
  .site-nav__links a:hover { color: var(--c-gold); }

  .lang-switch { position: relative; flex: none; }
  .lang-switch summary { display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--c-gold);
    border-radius: 50px; color: var(--c-gold); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
  .lang-switch summary::-webkit-details-marker { display: none; }
  .lang-switch summary .i { width: 18px; height: 18px; }
  .lang-switch__list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; display: grid; min-width: 160px; padding: 6px;
    border: 1px solid var(--c-dark-700); border-radius: var(--radius); background: var(--c-green-900); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
  .lang-switch__list a { padding: 8px 12px; border-radius: 6px; color: #fff; font-size: 14px; text-decoration: none; }
  .lang-switch__list a:hover { background: var(--c-green-700); }
  .lang-switch__list a.is-active { color: var(--c-gold); }

  /* Product hero: image | text */
  .hero { padding: 64px 0; }
  .hero__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
  .hero .hero__inner > * + * { margin-top: 0; }
  .hero__body > :first-child { margin-top: 0 !important; }
  .hero__title { font-size: 48px; }
  .hero__text { font-size: 16px; }

  .section { padding: 64px 0; }
  .section__title { font-size: 40px; }
  .section .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { column-gap: 48px; }

  /* Support: text and contacts | form */
  .section--support { padding: 64px 0; }
  .support { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: start; }
  .support .contact { margin-bottom: 0; }
}
