:root {
  --red: #d61620;
  --ink: #171719;
  --muted: #68686d;
  --line: #dedee1;
  --soft: #f3f3f4;
}

/* Základní typografie a společná hlavička */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.top {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 3.6vw;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.top nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 700;
}
.account-area {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.account-area .company-name {
  font-weight: 800;
}
.account-area .logout-link {
  color: var(--red);
  font-size: 12px;
}
.top .red {
  color: var(--red);
  border-bottom: 2px solid var(--red);
  padding-bottom: 10px;
}
.domains {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr)) minmax(90px, 0.65fr);
  background: var(--ink);
  color: #fff;
  padding: 0 2vw;
  overflow-x: auto;
}

/* Přepínač domén a levé menu aktivní sekce */
.domains button,
.domains > a {
  min-height: 74px;
  border: 0;
  border-right: 1px solid #343438;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 17px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.domains button strong {
  font-size: 13px;
}
.domains button small {
  color: #9e9ea4;
  font-size: 9px;
  margin-top: 5px;
}
.domains button:after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 4px;
  background: var(--red);
  transform: scaleX(0);
  transition: 0.2s;
}
.domains button:hover:after,
.domains button.active:after {
  transform: scaleX(1);
}
.domains button.active {
  background: #27272a;
}
.domains > a {
  align-items: center;
  font-size: 13px;
  font-weight: 800;
}
.mobile-menu {
  display: none;
}
.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}
.layout.no-sidebar {
  display: block;
}
aside {
  border-right: 1px solid var(--line);
  padding: 42px 28px 30px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 178px);
}
.side-title {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
aside nav {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}
aside nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 43px;
  color: #626267;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 1px solid #eee;
}
aside nav a span {
  opacity: 0;
  color: var(--red);
}
aside nav a:hover,
aside nav a.active {
  color: var(--ink);
}
aside nav a:hover span,
aside nav a.active span {
  opacity: 1;
}
aside nav a.active {
  border-left: 3px solid var(--red);
  padding-left: 10px;
}
.help {
  margin-top: auto;
  background: var(--soft);
  border-left: 3px solid var(--red);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.help small {
  color: var(--muted);
  font-size: 10px;
}
.help a {
  font-size: 12px;
  font-weight: 800;
}
.hero {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 48px clamp(38px, 7vw, 110px);
  background: linear-gradient(115deg, #f8f8f8 0, #eee 66%, #dadadd 66%);
}

/* Kompaktní úvod aktivní stránky */
.hero:after {
  content: "";
  position: absolute;
  width: 240px;
  height: 520px;
  right: 7%;
  top: -70px;
  background: var(--red);
  transform: skew(-21deg);
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 900;
  color: #55555b;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow:before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}
h1 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: -0.045em;
  max-width: 790px;
  margin: 0;
  text-transform: uppercase;
}
.lead {
  max-width: 610px;
  font-size: 15px;
  line-height: 1.6;
  color: #57575d;
  margin: 20px 0 25px;
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.actions a {
  min-height: 52px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #bdbdc1;
  background: #ffffffc7;
}
.actions .primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.huge-number {
  position: absolute;
  z-index: 3;
  right: 3.5%;
  bottom: 20px;
  font-size: 120px;
  color: #ffffff38;
  letter-spacing: -0.08em;
}
.services {
  padding: 58px clamp(35px, 6vw, 90px) 68px;
}

/* Tři malé karty navazujících služeb */
.services > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 45px;
}
.services h2 {
  font-size: 42px;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.04em;
}
.services > header > p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 440px;
  font-size: 14px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cards article {
  background: #f1f1f3;
}
.cards article {
  min-height: 180px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}
.cards article:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-5px);
}
.cards h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.cards p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}
.cards article:hover p {
  color: #b9b9bd;
}
.cards a {
  margin-top: auto;
  padding-top: 20px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.cards a span {
  float: right;
  color: var(--red);
}
.order {
  background: var(--red);
  color: #fff;
  padding: 60px clamp(35px, 6vw, 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Společná výzva k otevření poptávkového formuláře */
.order h2 {
  font-size: 36px;
  margin: 8px 0 12px;
  text-transform: uppercase;
}
.order span {
  color: #ffd8da;
}
.order > a {
  background: #fff;
  color: var(--ink);
  min-width: 205px;
  padding: 19px 22px;
  font-size: 12px;
  font-weight: 900;
}
@media (max-width: 1050px) {
  .layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  aside {
    padding: 30px 20px;
  }
  .hero:after {
    right: -110px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .cards article {
    min-height: 165px;
  }
}
@media (max-width: 760px) {
  .top {
    min-height: 78px;
    padding: 13px 18px;
  }
  .top nav {
    gap: 14px;
  }
  .top nav a:first-child {
    display: inline;
  }
  .top nav .contact-link {
    display: none;
  }
  .domains {
    grid-template-columns: repeat(8, 145px);
    padding: 0;
  }
  .domains button,
  .domains > a {
    min-height: 62px;
  }
  .mobile-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }
  .mobile-menu button {
    border: 0;
    background: var(--ink);
    color: #fff;
    padding: 9px 13px;
  }
  .layout {
    display: block;
  }
  aside {
    display: none;
    min-height: auto;
  }
  aside.open {
    display: flex;
  }
  .help {
    margin-top: 20px;
  }
  .hero {
    min-height: 0;
    padding: 40px 24px;
  }
  .hero:after {
    width: 180px;
    right: -150px;
  }
  h1 {
    font-size: 34px;
  }
  .lead {
    font-size: 15px;
  }
  .huge-number {
    font-size: 70px;
  }
  .services {
    padding: 60px 20px;
  }
  .services > header {
    display: block;
  }
  .services h2 {
    font-size: 34px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .order {
    align-items: flex-start;
    flex-direction: column;
    padding: 48px 22px;
  }
  .order h2 {
    font-size: 30px;
  }
}
[hidden] {
  display: none !important;
}
