/* ÚČTO Svobodová
   Colors are taken from the logo. One recurring idea: the logo's forward slant
   (titles, photo edge, login button). Everything else stays quiet. */
:root {
  --blue: #04568e;        /* ÚČTO lettering */
  --blue-ink: #033f69;
  --blue-soft: #3c77a1;   /* "Svobodová" */
  --green: #39b167;       /* tallest bar */
  --rule: #bdcde4;        /* calculator body */
  --grid: #e7eef7;        /* squared paper */
  --ink: #1f2a36;
  --muted: #5a6878;
  --paper: #ffffff;
  --slant: 12deg;
  --wrap: 1120px;
  --gutter: max(20px, calc((100vw - var(--wrap)) / 2 - 8px));
  --sans: "Saira", "Segoe UI", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Source text is set in capitals; show it in sentence case without touching the words. */
.sc { display: inline-block; text-transform: lowercase; }
.sc::first-letter { text-transform: uppercase; }

/* ---------------------------------------------------------------- header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter) 18px;
  position: relative;
  z-index: 3;
}
.brand { display: block; line-height: 0; }
.brand img { width: 200px; }

.nav { display: flex; align-items: center; gap: 30px; font-family: var(--sans); font-size: 16px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--green); }

.nav a.login {
  margin-left: 6px;
  padding: 9px 26px 9px 22px;
  border: 0;
  color: #fff;
  background: var(--blue);
  font-weight: 600;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav a.login:hover { background: var(--blue-ink); color: #fff; }
.nav a.login svg { width: 16px; height: 16px; }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
  min-height: 360px;
  border-top: 1px solid var(--grid);
  /* squared accounting paper, fading out downwards */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
}
.hero-text {
  position: relative;
  z-index: 1;
  padding: 56px 56px 64px var(--gutter);
  align-self: center;
}
.hero-photo {
  position: relative;
  z-index: 2;
  margin: 0;
  /* left edge leans like the logo lettering */
  clip-path: polygon(calc(360px * 0.2126) 0, 100% 0, 100% 100%, 0 100%);
}
.hero-photo img {
  /* fills the frame without setting its height – the hero is as tall as its text */
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%; /* calculator, laptop and the writing hand */
}

.title {
  margin: 0 0 22px;
  font: italic 700 clamp(44px, 6vw, 76px)/1 var(--sans);
  letter-spacing: -.01em;
  color: var(--blue);
}
.hero-text p { margin: 0; max-width: 60ch; }

/* ---------------------------------------------------------------- content */
main { padding-bottom: 72px; }
.content { padding: 8px var(--gutter) 0; }
.measure { max-width: 68ch; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding: 10px 0 10px 40px;
  border-bottom: 1px solid var(--grid);
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 20px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 8.5l5 5L18 2' fill='none' stroke='%2339b167' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
strong { font-weight: 600; color: var(--blue-ink); }

/* home: software links */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 48px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.partners a { display: inline-flex; align-items: center; gap: 16px; font: 500 16px/1.3 var(--sans); text-decoration: none; }
.partners a:hover span { text-decoration: underline; }
.partners img { display: block; }

/* services: ledger layout — category on the left, entries on the right */
.ledger { border-top: 2px solid var(--blue); }
.ledger + .ledger { margin-top: 56px; }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 12px 48px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row > p { margin: 10px 0 0; font: 600 19px/1.35 var(--sans); }
.ledger-row > p strong { color: var(--blue); font-weight: 600; }
.ledger-row .ticks { max-width: 62ch; }

/* price + contact */
.section-title {
  margin: 0 0 20px;
  font: italic 700 40px/1.05 var(--sans);
  color: var(--blue);
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  margin-top: 16px;
  padding-top: 40px;
  border-top: 2px solid var(--blue);
}
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); }
.facts dt, .facts dd {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--grid);
}
.facts dt { padding-right: 24px; font: 500 16px/1.7 var(--sans); color: var(--muted); }
.facts dd { font-variant-numeric: tabular-nums; }
.facts .cont { grid-column: 2; }
.map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  background: var(--grid);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px var(--gutter) 34px;
  border-top: 1px solid var(--rule);
  font: 500 15px/1.5 var(--sans);
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer img { width: 34px; display: block; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 880px) {
  body { font-size: 17px; }
  .brand img { width: 160px; }
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--blue);
    cursor: pointer;
  }
  .nav-toggle-label svg { width: 26px; height: 26px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 20px 22px;
    background: var(--paper);
    border-bottom: 2px solid var(--blue);
    font-size: 19px;
  }
  .nav a.login { margin: 10px 0 0; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--blue); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 36px 20px 28px; }
  .hero-photo { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); height: 200px; order: -1; }
  .hero-photo img { min-height: 0; }
  .hero::after { display: none; }

  .ledger-row { grid-template-columns: 1fr; padding: 18px 0; }
  .ledger-row > p { margin-top: 0; }
  .contact { grid-template-columns: 1fr; gap: 32px; }
  .map iframe { height: 300px; }
}

@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { padding-bottom: 0; border-bottom: 0; }
  .facts .cont { grid-column: 1; }
}
