/* RV Solutions — rv-solutions.sk
   One family (IBM Plex Sans, the same as the company's apps), condensed for display.
   Palette after the Danube: mineral paper, deep river ink, one petrol accent. */

@font-face {
  font-family: "Plex";
  src: url(/fonts/plex-sans-latin.woff2) format("woff2-variations");
  font-weight: 100 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  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: "Plex";
  src: url(/fonts/plex-sans-latin-ext.woff2) format("woff2-variations");
  font-weight: 100 700; font-stretch: 75% 100%; font-style: normal; font-display: swap;
  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;
}

:root {
  --paper: #F3F5F4;
  --ink: #0C2530;
  --danube: #0F6B6E;
  --danube-deep: #0A5457;
  --shallows: #D6E6E2;
  --stone: #4E6369;
  --rule: #C6D4D1;

  --font: "Plex", "IBM Plex Sans", system-ui, sans-serif;
  --step-0: 1.0625rem;                              /* 17px body */
  --step-1: 1.3125rem;                              /* 21px h3, lede */
  --step-2: clamp(2rem, 1.35rem + 2.4vw, 3rem);     /* h2 */
  --step-3: clamp(2.625rem, 1.4rem + 5vw, 5.25rem); /* h1 */

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font); font-stretch: 100%;
  font-kerning: normal; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--danube); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--danube-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--danube); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--shallows); color: var(--ink); }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--step-3); font-stretch: 82%; line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: var(--step-2); font-stretch: 86%; line-height: 1.08; letter-spacing: -.012em; }
h3 { font-size: var(--step-1); line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: 1em; }

.wrap { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }

.skip { position: absolute; left: 1rem; top: -4rem; padding: .5rem 1rem; background: var(--ink); color: #fff; z-index: 2; }
.skip:focus { top: 1rem; }

/* header */
.top { border-bottom: 1px solid var(--rule); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: 1.25rem; }
.brand img { height: 30px; width: auto; }
.top ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--danube); text-decoration: underline; }
/* phone: logo and language on the first line, the section links below; wide: one line */
.top nav { order: 2; flex-basis: 100%; }
.top .lang { order: 1; color: var(--stone); text-decoration: none; }
.top .lang:hover { color: var(--danube); text-decoration: underline; }

/* hero: the company's own mark sits as an app icon would, next to the claim */
.hero { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero-text { max-width: 44rem; }
.lede { margin-top: 1.75rem; max-width: var(--measure); font-size: var(--step-1); line-height: 1.5; color: var(--stone); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.button {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  background: var(--danube); color: #fff; font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--danube-deep); color: #fff; }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-quiet:hover { background: var(--ink); color: var(--paper); }

.hero-mark {
  justify-self: start; width: clamp(9rem, 30vw, 22rem); aspect-ratio: 1;
  padding: 14%; border-radius: 22%; background: var(--shallows);
}
.hero-mark svg { width: 100%; height: 100%; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; animation: draw 1.6s cubic-bezier(.65, 0, .35, 1) .3s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin: clamp(3.5rem, 2rem + 5vw, 6rem) 0 0; border-top: 1px solid var(--rule);
}
.facts div { padding: 1.25rem 1.5rem 1.5rem 0; }
.facts dt { color: var(--stone); font-size: .9375rem; }
.facts dd { margin: .25rem 0 0; font-weight: 600; }

/* sections */
.section { padding-block: var(--section); border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 4rem; }
.split-head p { margin-top: 1.25rem; max-width: var(--measure); color: var(--stone); }
.split-head p + p { margin-top: 1em; }

.practice { padding-block: 1.75rem; border-top: 1px solid var(--rule); }
.practice:first-child { border-top: 0; padding-top: 0; }
.practice p { margin-top: .75rem; max-width: var(--measure); }
.practice .detail { color: var(--stone); font-size: .9375rem; }

/* apps */
.apps { background: var(--shallows); border-top: 0; }
.apps-head p { margin-top: 1.25rem; color: var(--stone); max-width: var(--measure); }
.app-list { margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; padding: 0; list-style: none; }
.app {
  display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem 1.5rem; align-items: start;
  padding-block: 2rem; border-top: 1px solid #B5CCC7;
}
.app-icon { width: 4.5rem; height: 4.5rem; border-radius: 22%; box-shadow: 0 1px 2px rgb(12 37 48 / .12), 0 8px 24px -12px rgb(12 37 48 / .35); }
.app-body p { margin-top: .5rem; max-width: 40rem; }
.app-body .app-meta { color: var(--stone); font-size: .9375rem; }
.app-link { grid-column: 2; justify-self: start; font-weight: 600; }

/* company */
.registry { margin: 0; }
.registry div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .125rem 2rem; padding-block: .9rem; border-top: 1px solid var(--rule); }
.registry div:first-child { border-top: 0; padding-top: 0; }
.registry dt { color: var(--stone); }
.registry dd { margin: 0; }

/* contact: the address is the call to action, so it gets the display face */
.contact-lede { margin-top: 1.25rem; max-width: var(--measure); color: var(--stone); }
.email {
  display: inline-block; margin-top: 1.5rem; font-size: clamp(1.75rem, .9rem + 4.2vw, 4.25rem);
  font-weight: 600; font-stretch: 82%; letter-spacing: -.015em; line-height: 1.1; overflow-wrap: anywhere;
}
address { margin-top: 2rem; font-style: normal; color: var(--stone); }

/* footer */
.foot { border-top: 1px solid var(--rule); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 2rem 2.5rem; color: var(--stone); font-size: .9375rem; }
.foot p + p { margin-top: 0; }

/* privacy page */
.doc { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--section); }
.doc h1 { font-size: var(--step-2); font-stretch: 86%; }
.doc h2 { margin-top: 2.75rem; font-size: var(--step-1); font-stretch: 100%; line-height: 1.3; }
.doc p, .doc ul { max-width: var(--measure); }
.doc p { margin-top: 1rem; }
.doc ul { margin: 1rem 0 0; padding-left: 1.25rem; }
.doc li + li { margin-top: .4rem; }
.doc .updated { color: var(--stone); }

@media (min-width: 52rem) {
  .top nav { order: 1; flex-basis: auto; margin-left: auto; }
  .top .lang { order: 2; padding-left: 1.75rem; border-left: 1px solid var(--rule); }
  .hero-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .hero-mark { justify-self: end; }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split-head { position: sticky; top: 2rem; align-self: start; }
  .app { grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1.75rem 2.5rem; padding-block: 2.25rem; }
  .app-icon { width: 5.5rem; height: 5.5rem; }
  .app-link { grid-column: 3; align-self: center; }
  .registry div { grid-template-columns: 11rem minmax(0, 1fr); }
}

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