/* ==========================================================================
   Healneo (HealTech s. r. o.) — communication-board design system
   Palette: #0F4C5C #187C81 #2A9D8F #A8DADC #E0F7F4 #F7FFFD
   ========================================================================== */
:root {
  --ink: #0F4C5C;
  --ink-soft: #2f6470;
  --deep: #187C81;
  --teal: #2A9D8F;
  --mist: #A8DADC;
  --foam: #E0F7F4;
  --paper: #F7FFFD;
  --card: #ffffff;
  --line: #0F4C5C;

  --radius: 18px;
  --radius-lg: 28px;
  --press: 6px;
  --maxw: 1240px;
  --font-display: 'Lexend', 'Atkinson Hyperlegible', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
  font-size: 112.5%;
}
html.text-xl { font-size: 131.25%; }
html.hi-vis { --ink: #000; --ink-soft: #000; --deep: #005a5f; --teal: #006b61; --mist: #7fd0d4; --foam: #c9f5ee; --paper: #fff; --line: #000; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
body {
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(15, 76, 92, .1) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
p { max-width: 64ch; overflow-wrap: break-word; }
:focus-visible { outline: 4px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 124px) 0; }
.section--band { background: var(--foam); border-block: 3px solid var(--line); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 800px; }
.section-head > p { font-size: 1.2rem; color: var(--ink-soft); margin-top: 16px; }
.section--ink .section-head > p { color: var(--mist); }

/* ---------- Tiles ---------- */
.tile {
  --fill: var(--card); --edge: var(--line);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  background: var(--fill); border: 3px solid var(--edge); border-radius: var(--radius);
  box-shadow: 0 var(--press) 0 var(--edge); color: var(--ink); text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease;
}
a.tile:hover, button.tile:hover, summary.tile:hover { transform: translateY(-2px); box-shadow: 0 calc(var(--press) + 2px) 0 var(--edge); }
a.tile:active, button.tile:active { transform: translateY(var(--press)); box-shadow: 0 0 0 var(--edge); }
.t-foam { --fill: var(--foam); --edge: var(--teal); }
.t-mist { --fill: var(--mist); --edge: var(--deep); }
.t-white { --fill: #fff; --edge: var(--line); }
.t-deep { --fill: var(--deep); --edge: var(--ink); color: #fff; }
.t-ink { --fill: var(--ink); --edge: #062f39; color: var(--paper); }
.t-teal { --fill: var(--teal); --edge: var(--ink); color: #fff; }

.kicker { font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 8px 16px; --press: 4px; border-radius: 12px; margin-bottom: 22px; max-width: 100%; }
.kicker svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; padding: 16px 28px; min-height: 60px; justify-content: center; cursor: pointer; white-space: nowrap; }
.btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn-primary { --fill: var(--deep); --edge: var(--ink); color: #fff; }
.btn-primary:hover { --fill: #136a6e; }
.btn-light { --fill: #fff; --edge: var(--line); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 3px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 16px; height: 84px; }
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 48px; height: 46px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.02em; white-space: nowrap; line-height: 1.15; }
.brand small { font-family: var(--font-body); font-weight: 400; font-size: .72rem; color: var(--ink-soft); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a { display: block; padding: 10px 12px; border-radius: 12px; font-family: var(--font-display); font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.nav-links a:hover { background: var(--foam); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 48px; height: 48px; --press: 4px; border-radius: 14px; justify-content: center; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: 0; }
.icon-btn[aria-pressed="true"] { --fill: var(--ink); color: #fff; }
.icon-btn svg { width: 22px; height: 22px; }
.nav-cta { padding: 12px 20px; min-height: 48px; --press: 4px; font-size: 1rem; }
.lang-select { position: relative; }
.lang-select summary { list-style: none; }
.lang-select summary::-webkit-details-marker { display: none; }
.menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 3px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 0 var(--line); padding: 8px; min-width: 170px; gap: 2px; z-index: 5; }
.lang-select[open] .menu { display: grid; }
.menu button { font: inherit; font-weight: 700; text-align: left; padding: 11px 14px; border-radius: 10px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.menu button:hover, .menu button[aria-current="true"] { background: var(--foam); }
.burger { display: none; }
@media (max-width: 1100px) { .nav-links, .nav-cta { display: none; } .burger { display: inline-flex; } }
.drawer { display: none; border-top: 3px solid var(--line); background: var(--paper); padding: 16px 24px 28px; }
.drawer.open { display: block; }
.drawer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.drawer-grid .tile { padding: 16px; font-family: var(--font-display); font-weight: 600; --press: 4px; justify-content: center; text-align: center; min-height: 60px; }
.drawer .btn { width: 100%; margin-top: 16px; }
.drawer-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: center; }
.drawer-langs button { font: inherit; font-family: var(--font-display); font-weight: 700; padding: 10px 14px; border: 2.5px solid var(--line); border-radius: 12px; min-width: 52px; background: #fff; color: var(--ink); cursor: pointer; }
.drawer-langs button[aria-current="true"] { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; }
.bubble { display: inline-block; position: relative; background: var(--deep); color: #fff; padding: 0 .22em .06em; border-radius: .32em; margin: 0 .04em; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.bubble::after { content: ''; position: absolute; left: .45em; bottom: -.36em; width: .42em; height: .42em; background: var(--deep); border-left: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: skewY(-35deg); border-bottom-left-radius: 4px; }
.hero-lead { font-size: clamp(1.2rem, 1.6vw, 1.38rem); margin-top: 32px; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; list-style: none; padding: 0; font-weight: 700; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 22px; height: 22px; color: var(--deep); }

/* Project board in the hero */
.board { background: #fff; border: 3px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 10px 0 var(--line); padding: 18px; }
.board-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding: 0 4px; }
.board-top b { font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.board-dots { display: flex; gap: 6px; }
.board-dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.board-dots i:nth-child(1) { background: var(--mist); } .board-dots i:nth-child(2) { background: var(--teal); } .board-dots i:nth-child(3) { background: var(--foam); }
.pboard { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ptile { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px; min-height: 170px; --press: 6px; border-radius: 20px; }
.ptile--wide { grid-column: span 2; min-height: 190px; }
.ptile svg { width: 44px; height: 44px; stroke: currentColor; fill: none; }
.ptile strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; }
.ptile--wide strong { font-size: 1.8rem; }
.ptile .state { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.85); color: var(--ink); border: 2px solid var(--ink); }
.ptile-row { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; gap: 12px; }
.board-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--paper); border: 3px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 14px; }
.board-strip .tile { padding: 6px 12px; --press: 3px; border-width: 2.5px; border-radius: 10px; font-family: var(--font-display); font-weight: 600; }

/* ---------- Facts ---------- */
.facts { border-block: 3px solid var(--line); background: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 32px 24px; border-right: 3px solid var(--line); min-width: 0; }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; font-weight: 700; }
.fact span { display: block; margin-top: 8px; font-weight: 700; color: var(--ink-soft); overflow-wrap: break-word; }

/* ---------- Projects ---------- */
.flagship { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: #fff; border: 3px solid var(--line); border-radius: 32px; box-shadow: 0 12px 0 var(--line); overflow: hidden; }
.flagship-body { padding: clamp(28px, 4vw, 52px); }
.flagship-body > * + * { margin-top: 18px; }
.flagship h3 { font-size: clamp(2rem, 4vw, 3rem); }
.flagship .tagline { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--deep); }
.flagship p { font-size: 1.1rem; }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; font-weight: 700; }
.checks li::before { content: ''; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 7px; border: 2.5px solid var(--line); background: var(--foam) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4C5C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.flagship-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 6px; }
.flagship-art { background: var(--mist); border-left: 3px solid var(--line); display: grid; place-items: center; padding: 32px; }
.flagship-art img { width: 100%; max-width: 380px; border-radius: 22px; border: 3px solid var(--line); box-shadow: 0 8px 0 var(--line); background: #fff; }
.badge { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 10px; padding: 6px 12px; border: 2.5px solid var(--line); }
.badge--live { background: var(--teal); color: #fff; border-color: var(--ink); }
.badge--soon { background: #fff; color: var(--ink); border-style: dashed; }

.upcoming { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.soon { flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(26px, 3.5vw, 40px); --press: 8px; border-radius: var(--radius-lg); }
.soon .soon-ico { width: 72px; height: 72px; display: grid; place-items: center; background: #fff; border: 3px solid var(--edge); border-radius: 18px; box-shadow: 0 5px 0 var(--edge); }
.soon .soon-ico svg { width: 36px; height: 36px; stroke: var(--ink); fill: none; }
.soon h3 { font-size: 1.7rem; }
.soon p { font-size: 1.08rem; }
.soon .meta { font-weight: 700; color: var(--ink-soft); }
.help-note { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; background: #fff; border: 3px dashed var(--line); border-radius: var(--radius); }
.help-note p { font-size: 1.12rem; font-weight: 700; }

/* ---------- Generic tile grids ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; --press: 6px; }
.card h3 { font-size: 1.32rem; }
.card p { opacity: .9; }
.card .ico { width: 60px; height: 60px; display: grid; place-items: center; background: #fff; border: 3px solid var(--edge); border-radius: 16px; box-shadow: 0 4px 0 var(--edge); margin-bottom: 6px; }
.card .ico svg { width: 30px; height: 30px; stroke: var(--ink); fill: none; }
.card .tag { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 8px; background: #fff; border: 2px solid var(--edge); }
.cycle > :nth-child(3n+1) { --fill: var(--foam); --edge: var(--teal); }
.cycle > :nth-child(3n+2) { --fill: var(--mist); --edge: var(--deep); }
.cycle > :nth-child(3n) { --fill: #fff; --edge: var(--line); }
.section--band .cycle > :nth-child(3n+1) { --fill: #fff; --edge: var(--teal); }

/* Gallery */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 320px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 26px; scrollbar-width: thin; }
.gallery figure { scroll-snap-align: start; border: 3px solid #fff; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: 0 8px 0 rgba(255,255,255,.25); }
.gallery img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-controls { display: flex; gap: 12px; margin-top: 6px; }

/* Devices */
.devices { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; }
.device { flex-direction: column; align-items: flex-start; gap: 14px; padding: 34px; --press: 8px; border-radius: var(--radius-lg); }
.device svg { width: 64px; height: 64px; stroke: currentColor; fill: none; }
.device h3 { font-size: 1.7rem; color: inherit; }
.device.t-deep h3 { color: #fff; }
.device .badge { background: #fff; color: var(--ink); }
.tip { margin-top: 26px; display: flex; gap: 16px; align-items: flex-start; padding: 22px 26px; background: #fff; border: 3px dashed var(--line); border-radius: var(--radius); font-size: 1.1rem; }
.tip svg { width: 30px; height: 30px; flex-shrink: 0; stroke: var(--deep); fill: none; }

/* CTA */
.cta { background: var(--deep); color: #fff; border: 3px solid var(--line); border-radius: 36px; box-shadow: 0 12px 0 var(--line); padding: clamp(36px, 6vw, 76px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.cta > * { min-width: 0; }
.cta h2 { color: #fff; }
.cta p { font-size: 1.22rem; margin-top: 18px; color: var(--foam); }
.stores { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-self: end; }
.stores a { display: block; background: #fff; border: 3px solid var(--line); border-radius: 16px; padding: 10px 16px; box-shadow: 0 5px 0 var(--line); transition: transform .14s, box-shadow .14s; }
.stores a:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--line); }
.stores img { height: 46px; width: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 34px; --press: 8px; border-radius: var(--radius-lg); }
.contact-card h3 { font-size: 1.6rem; }
.contact-card a.mail { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; color: var(--deep); text-underline-offset: 6px; overflow-wrap: anywhere; }
.company { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; font-size: 1.08rem; }
.company dt { font-weight: 700; color: var(--ink-soft); }
.company dd { margin: 0; font-weight: 700; }

/* Footer */
.footer { background: var(--ink); color: var(--foam); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.footer .brand span { color: #fff; }
.footer .brand small { color: var(--mist); }
.footer p { margin-top: 16px; color: var(--mist); }
.footer h4 { color: #fff; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer address { font-style: normal; color: var(--mist); line-height: 1.7; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 2px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .95rem; color: var(--mist); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .hero-grid, .flagship, .cta, .devices, .contact-grid { grid-template-columns: 1fr; }
  .flagship-art { border-left: 0; border-top: 3px solid var(--line); }
  .stores { justify-self: start; }
  .grid3, .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 3px solid var(--line); }
  .fact:nth-child(3) { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav-inner { height: 72px; gap: 8px; }
  .nav-tools { gap: 6px; }
  .icon-btn { width: 44px; height: 44px; }
  .brand { gap: 8px; } .brand img { width: 40px; height: 38px; } .brand span { font-size: 1.2rem; }
  .nav-tools .lang-select { display: none; }
  .grid3, .grid4, .upcoming { grid-template-columns: 1fr; }
  .pboard { gap: 10px; } .ptile { min-height: 140px; padding: 16px; } .ptile strong { font-size: 1.1rem; } .ptile--wide strong { font-size: 1.45rem; }
  .btn { white-space: normal; text-align: center; }
  .hero-actions .btn { width: 100%; }
  .fact { padding: 24px 14px; } .fact:nth-child(odd) { padding-left: 0; }
  .company { grid-template-columns: 1fr; gap: 2px; } .company dd { margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { #toggle-contrast { display: none; } }
.pboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ptile { min-width: 0; }
.ptile strong { overflow-wrap: break-word; hyphens: auto; }
.bubble { hyphens: none; }
@media (max-width: 680px) {
  h1 { font-size: 2.35rem; }
  .ptile .state { font-size: .68rem; letter-spacing: .06em; }
}
