/* INPOST.KZ - one page. Sections alternate white and light grey. */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #ffffff;
  --grey: #ebebeb;
  --text: #000000;
  --muted: #5c5c5c;
  --dark: #1f1f1f;
  --whatsapp: #27d061;
  --whatsapp-text: #06240f;
  --line: #c9c9c9;
  --error: #b00020;
  --focus: #0b57d0;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.band { padding: 60px 0; }
.band-white { background: var(--white); }
.band-grey { background: var(--grey); }
.column { width: min(1160px, 100% - 40px); margin: 0 auto; }
.column.narrow { width: min(760px, 100% - 40px); }

/* Header */
.header { padding: 28px 0; border-bottom: 1px solid var(--grey); }
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand-name { font-size: 30px; font-weight: 600; line-height: 1.2; }
.brand-tagline { font-size: 26px; line-height: 1.3; }
.header-contacts { text-align: right; }
.header-contacts a, .footer a { text-decoration: none; }
.header-contacts a:hover, .footer a:hover { text-decoration: underline; }
.lang-switch { display: inline-block; margin-top: 6px; padding: 6px 14px; border: 2px solid var(--dark); border-radius: 4px; font-weight: 600; }

/* Hero */
.hero { text-align: center; padding-bottom: 30px; }
.uptitle { text-transform: uppercase; letter-spacing: 0.15em; font-weight: 500; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 600; line-height: 1.2; margin: 20px 0 50px; }
.hero-image { width: 100%; }
.hero-text { font-size: clamp(20px, 2.6vw, 26px); font-weight: 300; margin-top: 50px; }

h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; line-height: 1.25; text-align: center; margin-bottom: 36px; }

/* Publication cards */
.cards { padding-top: 0; }
.card { display: grid; grid-template-columns: 58% 1fr; gap: 40px; align-items: start; }
.card + .card { margin-top: 60px; }
.card-logo { width: 100%; background: var(--white); }
.card h2 { font-size: 26px; text-align: left; margin-bottom: 4px; }
.card-periodicity { font-weight: 600; }
.card-price-label { color: var(--muted); margin-top: 6px; }
.card-price { font-size: 22px; font-weight: 600; margin: 14px 0; }
.card-description { margin-bottom: 24px; }

/* Buttons */
.button {
  display: inline-block;
  min-height: 56px;
  padding: 15px 30px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button-dark { background: var(--dark); color: var(--white); }
.button-dark:hover { background: #000000; }
.button-whatsapp { display: block; background: var(--whatsapp); color: var(--whatsapp-text); font-size: 22px; }
.button-whatsapp:hover { background: #20b955; }
.button[disabled] { opacity: 0.6; cursor: progress; }

.electronic h2 { font-size: clamp(24px, 3.6vw, 34px); }

/* Order form */
form { display: grid; gap: 28px; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend, .field > label { display: block; padding: 0; margin-bottom: 8px; font-size: 20px; font-weight: 600; }
.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 16px;
  margin-top: 8px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--dark); }
.choice input { width: 26px; height: 26px; margin: 0; flex: none; accent-color: var(--dark); }
.term-price { font-weight: 600; white-space: nowrap; margin-left: -8px; }
.field input, .field textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 4px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { border-color: var(--dark); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { color: var(--muted); margin: 4px 0 8px; }
.field textarea + .hint { margin: 8px 0 0; }
.field-error { color: var(--error); font-weight: 600; margin-top: 8px; }
.total { font-size: 24px; }
.button-submit { width: 100%; font-size: 20px; }
.small { font-size: 16px; color: var(--muted); }
.small a { color: var(--text); }
.notice { padding: 20px 24px; margin-bottom: 28px; background: var(--white); border-left: 6px solid var(--dark); font-size: 20px; font-weight: 500; }
.notice-done { border-left-color: var(--whatsapp); font-size: 22px; }

/* The honeypot field: kept out of sight and out of the tab order. */
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* FAQ and policy */
.faq { padding-bottom: 20px; }
.accordion details { background: var(--white); border-bottom: 1px solid var(--grey); }
summary { padding: 20px 56px 20px 24px; font-weight: 600; cursor: pointer; position: relative; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 300; line-height: 1; }
details[open] > summary::after { content: "\2212"; }
.answer { padding: 0 24px 24px; white-space: pre-line; }

/* Footer */
.footer { text-align: center; }
address { font-style: normal; }
.legal { margin-top: 28px; }
.policy { margin-top: 40px; text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.policy summary { padding-left: 0; }
.policy-text { padding-bottom: 24px; overflow-wrap: anywhere; }
.policy-text h3 { font-size: 20px; margin: 24px 0 10px; }
.policy-text p { margin-bottom: 10px; }

@media (max-width: 640px) {
  .band { padding: 44px 0; }
  .header-row { flex-direction: column; align-items: flex-start; }
  .header-contacts { text-align: left; }
  .brand-name { font-size: 26px; }
  .brand-tagline { font-size: 22px; }
  .card { grid-template-columns: 1fr; gap: 20px; }
  .button { width: 100%; }
  .button-whatsapp { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
