:root {
  color-scheme: light;
  --ink: #111719;
  --muted: #5d686b;
  --soft: #edf2f0;
  --surface: #f7faf8;
  --paper: #ffffff;
  --line: #d8e2de;
  --accent: #176b57;
  --accent-dark: #0d4237;
  --accent-soft: #dbece6;
  --warning: #8f4d19;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 28px 80px rgba(30, 59, 52, 0.12);
  --font-display: "Aptos Display", "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: "Aptos", "SF Pro Text", "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(23, 107, 87, 0.13), transparent 34rem),
    linear-gradient(135deg, #f7faf8 0%, #eef5f2 48%, #f8fbfa 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(17, 23, 25, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 23, 25, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(17, 23, 25, 0.08);
  background: rgba(247, 250, 248, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-dark);
  color: #f5fbf8;
  font-family: var(--font-mono);
  font-size: 14px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  color: #374144;
  font-size: 14px;
  white-space: nowrap;
}

.desktop-nav a,
.telegram-link,
.footer-links a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.telegram-link:hover,
.footer-links a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.telegram-link {
  color: #3e4c4f;
  font-size: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 740;
  line-height: 1;
  white-space: nowrap;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-dark {
  background: var(--accent-dark);
  color: #f6fbf9;
  box-shadow: 0 14px 34px rgba(13, 66, 55, 0.22);
}

.button-dark:hover {
  background: var(--accent);
}

.button-light {
  border-color: rgba(17, 23, 25, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 23, 25, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 10vw, 132px) 0;
}

.hero {
  display: grid;
  min-height: calc(100dvh - 72px);
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  padding-top: clamp(42px, 7vw, 76px);
}

.micro-label {
  display: inline-flex;
  margin: 0 0 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.01em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 88px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 68px);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.4vw, 32px);
}

p {
  color: var(--muted);
}

.hero-subcopy {
  max-width: 560px;
  margin-bottom: 28px;
  color: #354244;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel {
  position: relative;
  min-height: 560px;
}

.document-frame {
  position: absolute;
  inset: 0 8% 0 14%;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 25, 0.12);
  border-radius: var(--radius-lg);
  background: #dfe7e4;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.document-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.panel-card {
  position: absolute;
  z-index: 2;
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  padding: 18px;
}

.panel-card-top {
  top: 38px;
  left: 0;
}

.panel-card-bottom {
  right: 0;
  bottom: 70px;
}

.panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.panel-card strong {
  font-family: var(--font-mono);
  font-size: 20px;
}

.proof-strip {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 16px 44px rgba(30, 59, 52, 0.08);
}

.proof-strip div {
  padding: 22px;
}

.proof-strip div + div {
  border-left: 1px solid rgba(17, 23, 25, 0.09);
}

.proof-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.proof-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.section-copy {
  max-width: 790px;
}

.section-copy.narrow {
  max-width: 700px;
  margin-bottom: 36px;
}

.section-copy p {
  max-width: 66ch;
  font-size: 18px;
}

.supply-section {
  display: grid;
  grid-template-columns: 0.74fr 1fr;
  gap: clamp(34px, 6vw, 76px);
  align-items: start;
}

.supply-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.supply-card {
  min-height: 250px;
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  padding: 28px;
  box-shadow: 0 18px 54px rgba(30, 59, 52, 0.07);
}

.supply-card.tall {
  grid-row: span 2;
  background:
    linear-gradient(160deg, rgba(13, 66, 55, 0.94), rgba(23, 107, 87, 0.84)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 26rem);
  color: #f8fffc;
}

.supply-card.tall p,
.supply-card.tall .card-index {
  color: rgba(248, 255, 252, 0.78);
}

.supply-card.accent {
  background: var(--accent-soft);
}

.supply-card.image-backed {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.45)),
    repeating-linear-gradient(135deg, rgba(23, 107, 87, 0.12) 0 1px, transparent 1px 10px);
}

.card-index {
  display: block;
  margin-bottom: 44px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 740;
}

.catalog-section {
  width: min(1240px, calc(100% - 36px));
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  margin-bottom: 20px;
}

.search-field,
.rfq-form label {
  display: grid;
  gap: 8px;
}

.search-field span,
.rfq-form label > span {
  color: #263235;
  font-size: 14px;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(17, 23, 25, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 14px 14px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #778386;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(23, 107, 87, 0.14);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  min-height: 220px;
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.product-card:hover {
  border-color: rgba(23, 107, 87, 0.35);
  box-shadow: 0 16px 42px rgba(30, 59, 52, 0.1);
  transform: translateY(-3px);
}

.product-code {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 780;
}

.product-card h3 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.spec-line {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.doc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0;
}

.doc-row span {
  border: 1px solid rgba(23, 107, 87, 0.18);
  border-radius: 999px;
  background: rgba(219, 236, 230, 0.58);
  color: var(--accent-dark);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 720;
}

.product-card .button {
  align-self: end;
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

.empty-state {
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  padding: 30px;
  text-align: center;
}

.quality-section {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
}

.quality-visual {
  overflow: hidden;
  max-height: 640px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.quality-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.quality-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.quality-list div {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.quality-list strong {
  display: block;
  margin-bottom: 7px;
}

.quality-list span {
  color: var(--muted);
  font-size: 14px;
}

.process-section {
  width: min(1240px, calc(100% - 36px));
}

.process-track {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr 0.9fr;
  gap: 14px;
}

.process-card {
  min-height: 260px;
  border-radius: var(--radius-lg);
  background: rgba(13, 66, 55, 0.94);
  color: #f7fffc;
  padding: 24px;
}

.process-card:nth-child(even) {
  margin-top: 42px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.process-card p {
  color: currentColor;
  opacity: 0.74;
}

.shipping-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.shipping-card,
.shipping-rules,
.contact-note,
.compliance-block {
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 54px rgba(30, 59, 52, 0.07);
  padding: clamp(24px, 4vw, 42px);
}

.shipping-card {
  min-height: 380px;
  background:
    radial-gradient(circle at 85% 20%, rgba(23, 107, 87, 0.22), transparent 18rem),
    rgba(255, 255, 255, 0.72);
}

.shipping-rules ul {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.shipping-rules li {
  border-radius: var(--radius-sm);
  background: rgba(219, 236, 230, 0.56);
  padding: 12px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  padding: 0 20px;
}

summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 760;
}

details p {
  margin-bottom: 20px;
  max-width: 76ch;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.74fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 110px;
}

.contact-note {
  margin-top: 28px;
}

.contact-note strong,
.contact-note span {
  display: block;
}

.contact-note span {
  margin-top: 8px;
  color: var(--muted);
}

.rfq-form {
  border: 1px solid rgba(17, 23, 25, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 34px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.full-span {
  grid-column: 1 / -1;
}

.checkbox-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: #2e3a3d;
  font-size: 14px;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.error {
  display: none;
  color: #8d2d1f;
  font-size: 13px;
}

.is-invalid input,
.is-invalid select,
.is-invalid textarea {
  border-color: #a83b2a;
  box-shadow: 0 0 0 4px rgba(168, 59, 42, 0.12);
}

.is-invalid .error {
  display: block;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 720;
}

.compliance-block {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto clamp(80px, 10vw, 120px);
}

.compliance-block h2 {
  max-width: 800px;
}

.compliance-block p {
  max-width: 90ch;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid rgba(17, 23, 25, 0.11);
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #3e4c4f;
  font-size: 14px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #edf5f2;
    --muted: #a7b4b1;
    --soft: #17211e;
    --surface: #101815;
    --paper: #16211d;
    --line: #31413c;
    --accent: #5bc5a6;
    --accent-dark: #d8fff2;
    --accent-soft: rgba(91, 197, 166, 0.14);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  }

  body {
    background:
      radial-gradient(circle at 12% 10%, rgba(91, 197, 166, 0.13), transparent 34rem),
      linear-gradient(135deg, #101815 0%, #121d19 48%, #0e1513 100%);
  }

  .site-header,
  .proof-strip,
  .supply-card,
  .quality-list div,
  .shipping-card,
  .shipping-rules,
  details,
  .rfq-form,
  .contact-note,
  .compliance-block,
  .product-card,
  .empty-state {
    background: rgba(22, 33, 29, 0.78);
    border-color: rgba(237, 245, 242, 0.12);
  }

  .desktop-nav,
  .telegram-link,
  .footer-links,
  .hero-subcopy,
  .search-field span,
  .rfq-form label > span {
    color: #d4dfdc;
  }

  .button-dark {
    background: #d8fff2;
    color: #0d1714;
  }

  .button-dark:hover {
    background: #b4f3df;
  }

  .button-light,
  input,
  select,
  textarea,
  .menu-toggle {
    background: rgba(18, 29, 25, 0.86);
    color: var(--ink);
    border-color: rgba(237, 245, 242, 0.16);
  }

  .brand-mark {
    background: #d8fff2;
    color: #0d1714;
  }

  .panel-card {
    background: rgba(22, 33, 29, 0.82);
    border-color: rgba(237, 245, 242, 0.15);
  }

  .supply-card.tall,
  .process-card {
    background: rgba(216, 255, 242, 0.9);
    color: #0d1714;
  }

  .supply-card.tall p,
  .supply-card.tall .card-index {
    color: rgba(13, 23, 20, 0.7);
  }

  .process-card:nth-child(even),
  .supply-card.accent,
  .shipping-rules li {
    background: rgba(91, 197, 166, 0.15);
  }
}

@media (max-width: 1040px) {
  .desktop-nav,
  .telegram-link,
  .header-actions .button {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    border-top: 1px solid rgba(17, 23, 25, 0.1);
    padding-top: 14px;
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    border-radius: var(--radius-sm);
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
  }

  .hero,
  .supply-section,
  .quality-section,
  .shipping-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-panel {
    min-height: 520px;
  }

  .contact-copy {
    position: static;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section {
    width: min(100% - 28px, 1180px);
    padding: 68px 0;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-panel {
    min-height: 430px;
  }

  .document-frame {
    inset: 0 4% 0 5%;
  }

  .panel-card {
    min-width: 170px;
    padding: 14px;
  }

  .panel-card strong {
    font-size: 16px;
  }

  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .proof-strip div:nth-child(odd) {
    border-left: 0;
  }

  .proof-strip div:nth-child(n + 3) {
    border-top: 1px solid rgba(17, 23, 25, 0.09);
  }

  .supply-grid,
  .catalog-toolbar,
  .quality-list,
  .form-grid,
  .process-track,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .supply-card.tall {
    grid-row: auto;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .process-card:nth-child(even) {
    margin-top: 0;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
