/* Teren — sajt. Jedini vizuelni jezik: design/tokens.md. */

@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/ibm-plex-sans-latin-ext-400-normal.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: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 400;
  src: url(fonts/ibm-plex-sans-latin-400-normal.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: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(fonts/ibm-plex-sans-latin-ext-500-normal.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: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(fonts/ibm-plex-sans-latin-500-normal.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: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(fonts/ibm-plex-sans-latin-ext-600-normal.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: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 600;
  src: url(fonts/ibm-plex-sans-latin-600-normal.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: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(fonts/ibm-plex-sans-latin-ext-700-normal.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: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 700;
  src: url(fonts/ibm-plex-sans-latin-700-normal.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;
}

:root {
  --canvas: #EFEDE8;
  --card: #FFFFFF;
  --card-line: #ECE9E3;
  --field-line: #E5E1D8;
  --ink: #1A1A1A;
  --ink-2: #5F5B52;
  --ink-3: #A09A8E;
  --accent: #E8674A;
  --accent-deep: #C2410C;
  --tint-1: #F7E7DF;
  --tint-2: #F0C9B8;
  --ok: #166534;
  --ok-tint: #E4EDE2;
  --warn: #92400E;
  --warn-tint: #F6E8D8;
  --err: #991B1B;
  --err-tint: #F6E1DC;

  --shadow-card: 0 1px 3px rgba(26, 26, 26, 0.04), 0 6px 20px rgba(26, 26, 26, 0.05);

  --radius-card: 20px;
  --radius-hero: 24px;
  --radius-field: 16px;
  --gutter: 16px;
  --measure: 1160px;

  --motion-fast: 120ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: clip; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'IBM Plex Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding-inline: var(--gutter); }

.t-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--ink-2);
}
.lead { font-size: 18px; color: var(--ink-2); }
.meta { font-size: 13px; color: var(--ink-2); }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 8px; text-decoration: none; }

/* ---------------------------------------------------------------- chrome */

.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(239, 237, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-line);
}
.bar .wrap { display: flex; align-items: center; gap: 8px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { letter-spacing: 3px; font-size: 15px; }

.bar-end { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lang {
  color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.8px;
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
}
.lang:hover { background: var(--tint-1); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; border: 0; cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-standard),
              background var(--motion-fast) var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn--primary { background: var(--accent-deep); color: #fff; }
.btn--primary:hover { background: #A8360A; }
.btn--tertiary { background: var(--card); color: var(--ink); box-shadow: var(--shadow-card); }
.btn--tertiary:hover { background: var(--tint-1); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- layout */

section { padding: 48px 0; }
.card {
  background: var(--card); border-radius: var(--radius-card);
  padding: 20px; box-shadow: var(--shadow-card);
}
.grid { display: grid; gap: 12px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--tint-1); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.icon svg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- hero */

.hero { padding: 32px 0 48px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero h1 { margin: 10px 0 14px; }
.hero .lead { font-size: 19px; }
.hero .under { margin-top: 18px; font-size: 14px; color: var(--ink-2); }

.stage { position: relative; display: flex; justify-content: center; padding: 24px 0; }
.stage::before, .stage::after { content: ''; position: absolute; border-radius: 50%; z-index: 0; }
.stage::before { width: 300px; height: 300px; background: var(--tint-1); top: 0; right: 4%; }
.stage::after {
  width: 150px; height: 150px; background: var(--tint-2); opacity: 0.65;
  bottom: 24px; left: 6%;
}
.phone {
  position: relative; z-index: 1; width: 268px; max-width: 78%;
  border-radius: var(--radius-hero); overflow: hidden;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.06), 0 24px 60px rgba(26, 26, 26, 0.14);
}

/* ---------------------------------------------------------------- strip */

.strip { padding: 0 0 16px; }
.strip .grid { gap: 12px; }
.strip .card { display: flex; gap: 14px; align-items: flex-start; }
.strip .icon { margin: 0; flex: none; }
.strip h3 { font-size: 17px; }
.strip p { color: var(--ink-2); margin-top: 2px; font-size: 15px; }

/* ---------------------------------------------------------------- sample */

.sample { display: grid; gap: 24px; align-items: center; }
.sample-page {
  position: relative; display: flex; justify-content: center;
  align-items: center;
  background: var(--tint-1); border-radius: var(--radius-card); padding: 28px 20px;
}
.sample-page img {
  width: 100%; max-width: 340px; border-radius: 6px;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.06), 0 18px 40px rgba(26, 26, 26, 0.12);
}
.sample h2 { margin: 8px 0 10px; }
.sample .meta { margin-top: 12px; }

/* ---------------------------------------------------------------- faq */

.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  min-height: 56px; padding: 14px 20px; font-weight: 600; font-size: 16px;
  border-radius: var(--radius-card);
  transition: background var(--motion-fast) var(--ease-standard);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--tint-1); }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--motion-fast) var(--ease-standard);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }

/* ---------------------------------------------------------------- contact */

.contact .wrap > .card { display: grid; gap: 28px; }
.contact h2 { margin: 6px 0 10px; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--field-line); border-radius: var(--radius-field);
  min-height: 48px; padding: 12px 14px;
  transition: border-color var(--motion-fast) var(--ease-standard);
}
.field select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235F5B52' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--tint-1); }
.field input:user-invalid, .field textarea:user-invalid { border: 1.5px solid #B91C1C; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form .meta a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.strip .promise { margin-top: 28px; color: var(--ink); text-align: center; font-size: 18px; font-weight: 600; }
.sign { margin-top: 20px; }
.contact-aside .meta { margin-top: 16px; }
.mail { font-weight: 600; word-break: break-all; }
.next-steps { text-align: left; margin: 20px auto 0; max-width: 420px; padding-left: 20px; color: var(--ink-2); }
.next-steps li { margin-bottom: 6px; }
.questions .faq { margin-top: 12px; max-width: 760px; }

/* ---------------------------------------------------------------- notice pages */

.notice-page { padding: 64px 0 96px; }
.notice-page .card { max-width: 640px; margin: 0 auto; padding: 32px 24px; text-align: center; }
.notice-page .icon { margin: 0 auto 18px; width: 64px; height: 64px; }
.notice-page .icon svg { width: 30px; height: 30px; }
.notice-page .icon--ok { background: var(--ok-tint); color: var(--ok); }
.notice-page .icon--err { background: var(--err-tint); color: var(--err); }
.notice-page h1 { font-size: 28px; margin-bottom: 12px; }
.notice-page .cta { justify-content: center; }
.reason { display: none; }
.reason.is-shown { display: block; }

/* ---------------------------------------------------------------- prose */

.doc { padding: 32px 0 64px; }
.doc-head { max-width: 760px; margin-bottom: 24px; }
.doc-head h1 { margin: 8px 0 12px; }
.doc-body { display: grid; gap: 12px; max-width: 760px; }
.doc-body .card h2 { font-size: 20px; margin-bottom: 10px; }
.doc-body .card h3 { font-size: 16px; margin: 16px 0 6px; }
.doc-body ul { margin: 0 0 12px; padding-left: 20px; }
.doc-body li { margin-bottom: 6px; }
.doc-part { margin: 24px 0 0; }
.doc-part:first-child { margin-top: 0; }
.doc-index ol { margin: 8px 0 0; padding-left: 20px; }
.doc-index li { margin: 0; }
.doc-index li a { display: inline-flex; align-items: center; min-height: 44px; }
.table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.processors { width: 100%; border-collapse: collapse; font-size: 15px; }
.processors th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-2); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--card-line); }
.processors td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--card-line); vertical-align: top; }
.processors tr:last-child td { border-bottom: 0; }
.processors td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------------- footer */

footer { border-top: 1px solid var(--card-line); padding: 28px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
footer .footer-link { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
footer .meta { width: 100%; }

/* ---------------------------------------------------------------- medium */

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  section { padding: 72px 0; }
  .card { padding: 24px; }
  .contact .wrap > .card { padding: 32px; }
  .strip .grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .form .btn { width: auto; justify-self: start; }
  .doc-body .card { padding: 28px; }
  footer .meta { width: auto; margin-left: auto; }
}

@media (min-width: 1024px) {
  h1 { font-size: 52px; }
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 48px; }
  .phone { width: 300px; }
  .sample { grid-template-columns: 5fr 6fr; gap: 48px; }
  .contact .wrap > .card { grid-template-columns: 5fr 7fr; gap: 48px; padding: 40px; }
  .doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
  .doc-index { position: sticky; top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}


/* ---------------------------------------------------------------- video */

.section-head { max-width: 720px; margin-bottom: 24px; }
.section-head h2 { margin: 8px 0 10px; }
.video-card { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); background: var(--canvas); }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* ---------------------------------------------------------------- comparison */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-card { padding: 8px 12px 16px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 12px 6px; border-bottom: 1px solid var(--card-line); text-align: center; vertical-align: middle; }
.cmp thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-2); }
.cmp thead th.cmp-teren { color: var(--accent-deep); background: var(--tint-1); border-radius: 12px 12px 0 0; }
.cmp tbody th { text-align: left; font-weight: 500; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td.cmp-teren { background: var(--tint-1); }
.cmp tbody tr:last-child td.cmp-teren { border-radius: 0 0 12px 12px; }
.cmp-icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.cmp-icon--yes { color: var(--ok); }
.cmp-icon--part { color: #B45309; }
.cmp-icon--no { color: var(--ink-3); }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 6px 0; }
.cmp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cmp-legend .cmp-icon { width: 16px; height: 16px; }

@media (min-width: 768px) {
  .cmp-card { padding: 12px 24px 20px; }
  .cmp { font-size: 15px; }
  .cmp th, .cmp td { padding: 14px 12px; }
}

@media (min-width: 1024px) {
  .cmp-card { padding: 16px 32px 24px; }
  .cmp tbody th { width: 40%; }
}
