:root {
  --brand-dark: #172e35;
  --brand-green: #678a15;
  --brand-blue: #4ba6c2;
  --ink: #173039;
  --muted: #61747b;
  --paper: #f6f8f5;
  --card: #ffffff;
  --line: #d7e0de;
  --soft-green: #edf2df;
  --soft-blue: #e4f2f5;
  --danger: #9f2d25;
  --shadow: 0 18px 50px rgba(23, 46, 53, .12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Arial, sans-serif; }
body, input, select, textarea, button { font-family: Arial, sans-serif; }
img { max-width: 100%; }
a { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select, summary, [href] { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 12px 18px; background: white; color: var(--brand-dark); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; z-index: 20; top: 0; color: white; background: rgba(23, 46, 53, .96); backdrop-filter: blur(10px); }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; }
.brand img { width: 180px; height: auto; filter: brightness(0) invert(1); }
nav { display: flex; gap: 24px; margin-left: auto; }
nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; color: #e8f1f3; }
nav a:hover { color: white; }
.button { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 10px; padding: 12px 22px; background: var(--brand-green); color: #071006; font-weight: 800; text-decoration: none; transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.button:hover { background: #789c20; box-shadow: 0 8px 24px rgba(103, 138, 21, .26); }
.button:disabled { cursor: wait; opacity: .55; box-shadow: none; }
.button-small { min-height: 44px; padding: 9px 16px; }
.button-secondary { color: var(--brand-dark); background: var(--soft-blue); }
.button-full { width: 100%; }
.hero { position: relative; overflow: hidden; color: white; background: var(--brand-dark); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 25, 31, .95) 0%, rgba(7, 25, 31, .78) 52%, rgba(7, 25, 31, .24) 100%); }
.hero-media { position: absolute; inset: 0; background: url("https://optim.tildacdn.com/tild3831-3664-4661-a633-623139373334/-/resize/1200x/-/format/webp/Seryoga.jpg.webp") center right / cover no-repeat; filter: saturate(.75); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 60px; align-items: center; min-height: 650px; padding-block: 72px; }
.eyebrow { margin: 0 0 12px; color: #287d98; font-size: 13px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero .eyebrow, .conditions-section .eyebrow { color: var(--brand-blue); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(42px, 6vw, 74px); line-height: 1.02; letter-spacing: -.035em; }
h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.025em; }
h3 { line-height: 1.2; }
.lead { max-width: 740px; color: #dbe6e8; font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-block: 30px; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; color: white; font-weight: 700; text-underline-offset: 5px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 0; list-style: none; color: #dbe6e8; }
.hero-facts li::before { content: "✓"; margin-right: 8px; color: #a9c75d; font-weight: 800; }
.hero-card { padding: 30px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); background: rgba(23, 46, 53, .84); box-shadow: var(--shadow); }
.hero-card > strong { display: block; margin-top: 24px; font-size: 42px; line-height: 1; }
.hero-card > p { color: #dbe6e8; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; color: #c8df84; font-weight: 700; }
.status-dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #a9c75d; box-shadow: 0 0 0 5px rgba(169, 199, 93, .13); }
.hero-card dl { margin: 26px 0 0; }
.hero-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.15); }
.hero-card dt { color: #b7c8cd; }
.hero-card dd { margin: 0; font-weight: 700; text-align: right; }
.section { padding-block: 92px; }
.section-copy { max-width: 680px; color: var(--muted); font-size: 18px; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.benefit-grid article { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.benefit-grid span { color: #287d98; font-size: 14px; font-weight: 800; }
.benefit-grid h3 { margin: 54px 0 12px; font-size: 22px; }
.benefit-grid p { margin: 0; color: var(--muted); }
.conditions-section { color: white; background: var(--brand-dark); }
.conditions-section .section-copy { color: #c7d5d8; }
.two-column { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: center; }
.tier-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tier-list article { padding: 26px 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.06); }
.tier-list small { display: block; color: #9dc8d4; font-weight: 800; }
.tier-list strong { display: block; margin: 20px 0 8px; font-size: 26px; }
.tier-list p { margin: 0; color: #c7d5d8; font-size: 14px; }
.tier-featured { border-color: #8bad38 !important; background: rgba(103, 138, 21, .22) !important; }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 32px; }
.section-heading > p { max-width: 540px; color: var(--muted); }
.catalog-toolbar { display: grid; grid-template-columns: 1fr 280px 180px; gap: 16px; align-items: end; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.selected-toggle { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.selected-toggle input { width: 22px; min-height: 22px; margin: 0; }
.selected-toggle span { margin: 0; }
label > span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #aebdbc; border-radius: 9px; background: white; color: var(--ink); font-size: 16px; }
textarea { resize: vertical; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; margin-top: 24px; }
.catalog-status { padding: 14px 4px; color: var(--muted); }
.product-list { display: grid; gap: 10px; }
.load-more { width: 100%; margin-top: 14px; }
.product-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 18px; align-items: center; min-height: 106px; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.product-name { margin: 0 0 4px; font-size: 17px; }
.product-meta { margin: 0; color: var(--muted); font-size: 13px; }
.product-photo { min-height: 44px; display: inline-flex; align-items: center; color: #287d98; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
.quantity-field { width: 120px; }
.quantity-field input { text-align: center; font-weight: 700; }
.quantity-field input[aria-invalid="true"] { border-color: var(--danger); background: #fff5f3; }
.quantity-error { min-height: 18px; display: block; margin-top: 4px; color: var(--danger); font-size: 12px; }
.summary-card { position: sticky; top: 92px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.summary-row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid #edf1f0; }
.summary-row span { color: var(--muted); }
.summary-row strong { text-align: right; }
.summary-total { margin-top: 8px; padding: 18px 0; font-size: 22px; }
.summary-total span { color: var(--ink); font-weight: 800; }
.minimum-status { margin: 18px 0; padding: 12px; border-radius: 9px; background: #fff1e8; color: #7a3821; font-size: 14px; font-weight: 700; }
.minimum-status.is-valid { background: var(--soft-green); color: #3f5a0d; }
.buyer-section { background: white; }
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.process-list { display: grid; grid-template-columns: 36px 1fr; gap: 18px 14px; margin-top: 34px; }
.process-list span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--soft-blue); color: var(--brand-dark); font-weight: 800; }
.process-list p { margin: 0; }
form { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.billing-fieldset { min-width: 0; margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.billing-fieldset legend { padding-inline: 6px; font-weight: 800; }
.billing-help { color: var(--muted); font-size: 14px; }
.field-grid > * { min-width: 0; }
.comment-field { display: block; }
.preview-buyer { overflow-wrap: anywhere; }
.consent-row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin-block: 22px; min-height: 44px; }
.consent-row input { width: 22px; min-height: 22px; margin: 2px 0 0; }
.consent-row span { font-weight: 400; }
.form-message { min-height: 24px; margin-bottom: 10px; color: var(--danger); font-weight: 700; }
.field-error { display: block; color: var(--danger); margin-top: 4px; font-size: 13px; }
.field-grid [aria-invalid="true"] { border-color: var(--danger); }
.error-summary { margin-bottom: 20px; padding: 16px; border: 2px solid var(--danger); border-radius: 9px; color: var(--danger); background: #fff5f3; overflow-wrap: anywhere; }
.error-summary p { margin-bottom: 8px; font-weight: 700; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 6px; }
.honeypot-field { display: none; }
.submission-result { padding: 16px; background: var(--soft-blue); border-radius: 9px; overflow-wrap: anywhere; }
#save-calculation { margin-top: 12px; }
[hidden] { display: none !important; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.faq-layout { display: grid; grid-template-columns: .55fr 1.45fr; gap: 70px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 18px; font-weight: 800; }
.faq-list summary::after { content: "+"; color: var(--brand-blue); font-size: 24px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 30px 22px 0; color: var(--muted); }
footer { padding-block: 34px; color: #d7e3e6; background: var(--brand-dark); }
.footer-inner { display: flex; gap: 20px 40px; align-items: center; }
.footer-inner a { margin-left: auto; color: white; display: inline-flex; align-items: center; min-height: 44px; }
dialog { width: min(760px, calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.32); }
dialog::backdrop { background: rgba(7, 25, 31, .72); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; color: white; background: var(--brand-dark); }
.dialog-header h2 { margin: 0; font-size: 26px; }
.dialog-header button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: white; font-size: 30px; }
#order-preview { padding: 26px; overflow: auto; }
.preview-lines { width: 100%; border-collapse: collapse; }
.preview-lines th, .preview-lines td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.preview-lines td:last-child, .preview-lines th:last-child { text-align: right; }
.dialog-actions { display: flex; gap: 12px; padding: 0 26px 26px; }

@media (max-width: 1023px) {
  nav { display: none; }
  .hero-grid, .two-column, .form-layout, .faq-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; min-height: auto; }
  .hero-card { max-width: 600px; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .order-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .selected-toggle { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header .button-small { display: none; }
  .header-inner { min-height: 62px; }
  .brand img { width: 160px; }
  .hero::after { background: linear-gradient(180deg, rgba(7, 25, 31, .92), rgba(7, 25, 31, .84)); }
  .hero-media { background-position: 60% center; }
  .hero-grid { padding-block: 54px; }
  h1 { font-size: 42px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-link { justify-content: center; }
  .section { padding-block: 64px; }
  .benefit-grid, .tier-list, .catalog-toolbar, .field-grid { grid-template-columns: 1fr; }
  .selected-toggle { grid-column: auto; }
  .benefit-grid article { min-height: 220px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .product-card { grid-template-columns: minmax(0, 1fr) 112px; gap: 12px; }
  .product-photo { grid-column: 1; }
  .quantity-field { grid-column: 2; grid-row: 1 / span 2; width: 112px; }
  form { padding: 20px; }
  .field-wide { grid-column: auto; }
  .footer-inner { align-items: start; flex-direction: column; }
  .footer-inner a { margin-left: 0; }
  .dialog-actions { flex-direction: column; }
}

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

@media print {
  body > *:not(dialog[open]) { display: none !important; }
  dialog[open] { position: static; width: 100%; max-height: none; box-shadow: none; }
  .dialog-header button, .dialog-actions { display: none; }
}
