:root {
  color-scheme: light;
  --ink: #111921;
  --paper: #f5f2e9;
  --line: #d8d3c8;
  --red: #a3312b;
  --light-red: #ef8d7e;
  --body: 'DM Sans', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.6 var(--body); color: var(--ink); background: var(--paper); }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
[hidden] { display: none !important; }
p { margin: 0; }
.shell { width: min(100% - 112px, 1280px); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: 10px; left: 10px; background: white; color: var(--ink); padding: 12px; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top, .hero, .contact, .footer { color: var(--paper); background: var(--ink); }
.top { border-bottom: 1px solid #ffffff24; }
.top-inner, .footer-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 400 31px/.95 var(--serif); white-space: nowrap; text-decoration: none; }
.mark { display: flex; align-items: center; gap: 2px; height: 28px; color: var(--light-red); }
.mark i { display: block; width: 2px; height: 25%; background: currentColor; }
.mark i:nth-child(2), .mark i:nth-child(4) { height: 48%; }
.mark i:nth-child(3) { height: 100%; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); }
nav a, .header-cta, .footer a:not(.brand) { font-size: .875rem; text-decoration: none; }
nav a:hover, .footer a:hover { color: var(--light-red); }
.header-cta { border: 1px solid #ffffff54; padding: .55em 1em; }
.header-cta:hover { background: #ffffff12; }
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-art { position: absolute; inset: 0 0 0 32%; z-index: -2; background: center 58% / cover no-repeat url('assets/poligraf.jpg'), #171c23; }
.hero::after { position: absolute; content: ''; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--ink) 19%, #111921f0 34%, #11192170 56%, transparent 83%), linear-gradient(0deg, #11192180, transparent 25%); }
.hero-inner { position: relative; min-height: clamp(570px, 48vw, 730px); padding-block: clamp(80px, 8vw, 125px) 90px; }
.eyebrow, .caption, .steps li > span, .date small { font: 500 .72rem/1.5 var(--mono); letter-spacing: .1em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { display: inline-block; width: 15px; height: 1px; background: var(--red); }
.hero .eyebrow span, .contact .eyebrow span { background: var(--light-red); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { max-width: 760px; font-size: clamp(56px, 6vw, 88px); line-height: 1.02; letter-spacing: -.034em; margin-block: 27px 28px; }
h1 em, .contact h2 em { color: var(--light-red); }
h2 { font-size: clamp(55px, 6.2vw, 96px); line-height: .91; letter-spacing: -.023em; margin-block: 18px 23px; }
h2 em { color: var(--red); }
.hero p, .contact p { color: #dedbd4; }
.hero p { max-width: 350px; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 32px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 17px; font-weight: 600; text-decoration: none; }
.red { background: var(--red); color: white; }
.red:hover { background: #bc3e34; }
.text-link { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; }
.caption { position: absolute; right: 0; bottom: 22px; color: var(--paper); background: #111921ce; padding: 4px 8px; font-size: .65rem; }
.section { padding-block: clamp(64px, 8vw, 112px); }
.split { display: grid; grid-template-columns: minmax(245px, .76fr) minmax(0, 1.24fr); column-gap: clamp(35px, 7vw, 110px); align-items: start; }
.section-intro { position: sticky; top: 36px; }
.section-intro > p, .bio p, .contact p { max-width: 38ch; }
.faq-search { margin-top: 29px; max-width: 330px; }
.faq-search label { font-size: .875rem; font-weight: 700; display: block; margin-bottom: 6px; }
.faq-search input { width: 100%; min-height: 48px; color: inherit; border: 1px solid #a39c90; border-radius: 0; background: #fffdf7; padding: 10px 14px; font: inherit; }
#search-status { font-size: .875rem; margin-top: 5px; color: #5e5348; min-height: 1.6em; }
details { border-top: 1px solid var(--line); }
.faq-list { border-bottom: 1px solid var(--line); }
summary { display: grid; grid-template-columns: 2em 1fr 1em; align-items: baseline; column-gap: 8px; padding: 15px 1px; font-size: clamp(.95rem, 1.52vw, 1.15rem); font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red); margin-left: auto; }
details[open] summary::after { content: "−"; }
summary span { font: 500 .68rem var(--mono); color: var(--red); }
details p { margin: 0 25px 15px 36px; color: #4b4b48; }
details p a { color: var(--red); }
.process { background: #eae5da; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 0; margin: 38px 0 0; list-style: none; }
.steps li { border-top: 1px solid #a79f90; padding-top: 16px; }
.steps li > span { color: var(--red); }
.steps h3 { font-size: 32px; line-height: 1.05; margin-block: 8px 12px; }
.bio-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 6vw, 90px); align-items: center; }
.date { color: var(--red); position: relative; display: grid; place-content: center; text-align: center; min-height: 300px; border: 1px solid var(--line); background: repeating-linear-gradient(0deg, transparent 0 19px, #a3312b1c 19px 20px), repeating-linear-gradient(90deg, transparent 0 19px, #a3312b1c 19px 20px), #eee8dd; padding: 20px; }
.date span { font: italic 400 clamp(85px, 13vw, 180px)/.85 var(--serif); letter-spacing: -.05em; }
.date small { margin-top: 16px; letter-spacing: .05em; }
.bio .text-link { margin-top: 20px; color: var(--red); }
.contact .button { margin-top: 24px; }
.contact-address { justify-self: start; border-left: 1px solid #ffffff42; padding-left: 24px; }
.contact-address > a:first-child { font-size: clamp(1.04rem, 2vw, 1.45rem); }
address { font-style: normal; color: #dedbd4; margin-block: 12px 18px; }
.navigation-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
.navigation-links a { padding-block: 5px; }
.footer { border-top: 1px solid #ffffff24; }
.socials { display: flex; flex-wrap: wrap; gap: 18px; }
.back-to-top {
  position: fixed;
  z-index: 3;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #ffffff50;
  border-radius: 28px;
  background: var(--red);
  color: white;
  box-shadow: 0 3px 14px #11192130;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.back-to-top:hover { background: #bc3e34; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  .top-inner { flex-wrap: wrap; gap: 0 12px; padding-top: 14px; }
  nav { order: 3; width: 100%; justify-content: space-between; gap: 8px; padding-block: 12px; }
  nav a { font-size: .8rem; }
  .hero-art { inset: 27% 0 0; background-position: 60% 60%; }
  .hero::after { background: linear-gradient(180deg, var(--ink) 18%, #111921da 46%, #11192155 75%, #1119218f), linear-gradient(90deg, #11192199, transparent); }
  .hero-inner { min-height: 565px; padding-block: 59px 76px; }
  h1 { font-size: clamp(42px, 11vw, 60px); }
  .hero-actions { align-items: flex-start; gap: 17px; flex-direction: column; }
  .split, .bio-grid, .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .section-intro { position: static; }
  .contact-address { padding-left: 16px; }
  .date { min-height: 210px; }
  .footer-inner { padding-block: 22px; flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.top-inner nav { flex-wrap: wrap; column-gap: clamp(14px, 2vw, 34px); }
.language-select {
  max-width: 100%;
  min-height: 40px;
  padding: 5px 8px;
  border: 1px solid #ffffff54;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
}
html[dir="rtl"] .hero-art { transform: scaleX(-1); inset: 0 0 0 32%; translate: -47% 0; }
html[dir="rtl"] .hero::after { transform: scaleX(-1); }
html[dir="rtl"] .back-to-top { right: auto; left: 16px; }
html[dir="rtl"] .contact-address { border-left: 0; border-right: 1px solid #ffffff42; padding-left: 0; padding-right: 24px; }
html[dir="rtl"] .hero h1 { font-family: var(--body); font-size: clamp(38px, 5.5vw, 78px); line-height: 1.2; }
html[dir="rtl"] .section h2 { line-height: 1.25; }
.blog-page {
  max-width: 760px;
  min-height: 55vh;
  padding-block: clamp(36px, 7vw, 88px);
  overflow-wrap: break-word;
}
.blog-page h1 { font-size: clamp(42px, 6vw, 76px); }
.blog-page h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 1em 0 .35em; }
.blog-page p + p { margin-top: 1em; }
.blog-page .article-lead { font-size: 1.2rem; }
.blog-page .article-source { font-size: .875rem; color: var(--red); }
.blog-page ul { padding-inline-start: 1.5em; }
.blog-page li + li { margin-top: .4em; }
.blog-card { border-block-start: 1px solid var(--line); }
.blog-card + .blog-card { margin-block-start: 2rem; }
.blog-page address { color: inherit; }
.blog-card .text-link { display: inline-block; margin-top: 1em; color: var(--red); }
.article-contact { margin-top: 2em; }
html[dir="rtl"] .blog-page h1, html[dir="rtl"] .blog-page h2 { font-family: var(--body); line-height: 1.25; }
@media (max-width: 980px) {
  .top-inner { flex-wrap: wrap; padding-top: 12px; }
  .top-inner nav { order: 4; width: 100%; flex-wrap: wrap; padding-block: 10px; }
}
@media (max-width: 680px) {
  html[dir="rtl"] .hero-art { inset: 27% 0 0; translate: none; }
}

.analytics-panel {
  position: fixed;
  z-index: 5;
  inset-inline-start: max(16px, env(safe-area-inset-left));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  width: min(400px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 3px 20px #11192126;
}
.analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.analytics-actions button {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.analytics-actions button:hover { background: #1119210c; }
.analytics-preferences {
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .24em;
  cursor: pointer;
}
.analytics-preferences:hover { color: var(--light-red); }
.analytics-panel:not([hidden]) ~ .back-to-top { visibility: hidden; }
