
@font-face {
  font-family: "Roboto";

  font-style: normal;

  font-weight: 400;

  font-display: swap;

  src: url("fonts/roboto-v51-latin_latin-ext_symbols-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";

  font-style: normal;

  font-weight: 900;

  font-display: swap;

  src: url("fonts/roboto-v51-latin_latin-ext_symbols-900.woff2") format("woff2");
}

@layer base, containers, bg-shapes, misc, team-contact, company-info, text, utils;

:root {
  --main-color: #ff9301;
  --bg-primary: #f7f7ff;
  --bg-secondary: #eeeeee;
  
  --text-dark: #0b0b15;
  --text-muted: #555555;
  --text-light: #eeeeee;
  
  --radius-sm: 0.3em;
  --radius-lg: 1em;
}

html  { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html  { scroll-behavior: auto; }
}

@layer base {
  body  { font-family: "Roboto", sans-serif; }

  header {
    position: relative;
    z-index: 10;
  }

  footer  { padding-block: 1em; }

  :focus-visible {
    outline: 3px solid var(--text-dark);
    outline-offset: 2px;
  }

  iframe:focus-visible  { outline: none; }
}

@layer containers {
  .wrapper {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 4vw;
  }

  .flex {
    display: flex;
    justify-content: space-between;
    gap: 1em;
  }

  .center        { align-items: center; }
  .column        { flex-direction: column; }
  .align-bottom  { align-items: end; }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1em;
  }

  .services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 1em;
  }

  .item-services {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    justify-items: start;
    align-items: start;
    gap: 0.5em;
    z-index: 0;
  }

  .item-services article  { display: contents; }

  .item-services h3 {
    margin-top: 1.7em;
    margin-bottom: 0;
  }

  .item-services p  { margin-top: 0; }

  .item-why-us  { flex: 1; }

  .exp-left {
    align-self: stretch;
    flex: 0 0 9em;
    align-items: start;
    justify-content: center;
    gap: 0.5em;
  }

  .item-history article {
    flex: 1;
    min-width: 0;
  }

  .contact-flex {
    padding-block: 0 2vw;
    gap: 0;
  }

  .contact-item {
    flex: 1 0 50%;
    justify-content: center;
  }

  .contact-item .box-1,
  .contact-item .box-2,
  .contact-item .box-3  { border: 1px solid #bbbbbb; }

  .contact-item .box-1  { flex: 1; }

  .contact-item .box-3 {
    height: 6em;
    resize: vertical;
  }
}

@layer bg-shapes {
  .header-bg-shape {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 50%;
    opacity: 0.5;
    z-index: -1;
  }

  .header-bg-shape circle  { fill: var(--main-color); }

  .top-cornr-circ:before {
    content: "";
    display: block;
    position: absolute;
    left: -35px;
    top: -55px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: var(--main-color);
    z-index: -1;
  }
}

@layer misc {
  .header-left {
    line-height: 15%;
    padding-block: 1vw;
  }

  #logo-right  { align-self: center; }

  #logo-left {
    display: none;
    margin-block: 1vw;
  }

  .logo {
    width: auto;
    height: clamp(50px, 10vw, 130px);
  }

  nav  { margin-top: 2vw; }

  .nav-item  { list-style: none; }

  .nav-item a  { text-decoration: none; }

  .nav-item a:hover {
    text-decoration: underline var(--main-color) solid 3px;
    text-underline-offset: 12px;
  }

  .nav-toggle,
  .nav-overlay  { display: none; }

  .lang-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
  }

  .lang-link svg {
    display: block;
    width: 27px;
    height: 18px;
    flex: none;
  }

  .nav-item a.lang-link:hover  { text-decoration: none; }

  .lang-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    background: var(--main-color);
    opacity: 0;
  }

  .lang-link:hover::after,
.lang-link:focus-visible::after  { opacity: 1; }

  #squigly-line {
    height: 3em;
    background-image: url("podklady/border-dark.png");
    background-repeat: repeat-x;
    background-size: 10em;
    background-position-y: bottom;
  }

  .service-link {
    display: block;
    margin-top: 0.75em;
    text-decoration: none;
  }

  .service-link:hover {
    text-decoration: underline var(--main-color) solid 3px;
    text-underline-offset: 4px;
  }

  .dv-line  { border-right: #55555552 solid 1px; }

  .fleet-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .custom-bullet {
    z-index: 0;
    position: relative;
    list-style: none;
    margin-block: 2em;
    padding-left: 3em;
  }

  .custom-bullet:before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: -0.5em;
    height: 2em;
    width: 2em;
    background-repeat: no-repeat;
    z-index: -1;
  }

  .custom-bullet.map-marker:before  { background-image: url("podklady/map-marker-alt-solid.svg"); }

  .custom-bullet.email:before {
    left: -0.4em;
    background-image: url("podklady/envelope-regular.svg");
  }

  .custom-bullet.tel:before  { background-image: url("podklady/mobile-alt-solid.svg"); }

  .custom-bullet a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
    text-decoration-skip-ink: none;
  }

  .custom-bullet a:hover {
    text-decoration: underline var(--main-color) solid 2px;
    text-underline-offset: 4px;
  }

  header h1 {
    text-decoration: underline var(--main-color) 4px solid;
    text-underline-offset: 0.15em;
    text-decoration-skip-ink: none;
  }

  .skip-link {
    position: absolute;
    top: 0.5em;
    left: 0.5em;
    z-index: 100;
    padding: 0.75em 1em;
    background: var(--text-dark);
    color: var(--text-light);
    border-radius: var(--radius-sm);
    transform: translateY(-300%);
  }

  .skip-link:focus  { transform: none; }

  .btn {
    border: none;
    cursor: pointer;
    width: fit-content;
  }

  .map {
    width: 100%;
    height: 15em;
    border: 3px solid var(--main-color);
    box-sizing: border-box;
  }

  .form-status {
    margin: 0.75rem 0 0;
    min-height: 2.25rem;        /* bylo 3.5rem */
    padding: 0.35rem 0.75rem;   /* přebije padding-box-sm */
    font-size: 0.9rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .form-status.is-visible  { opacity: 1; }

  @media (prefers-reduced-motion: reduce) {
    .form-status  { transition: none; }
  }

  .captcha-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .captcha-row img {
    border: 1px solid #ccc;
    max-width: 100%;
    height: auto;
  }

  #captcha-refresh {
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
  }
}

@layer team-contact {
  .team  { padding-bottom: 2vw; }

  .team-heading {
    text-decoration: underline var(--main-color) 2px solid;
    text-underline-offset: 0.3em;
    margin-bottom: 1.3em;
  }

  .team-card {
    position: relative;
    z-index: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
    padding: 1.25em 1.5em;
    scroll-margin-top: 2em;
    min-height: 9.2em;
  }

  .team-card::before {
    left: auto;
    right: -25px;
    top: -25px;
  }

  .team-card::after {
    content: "";
    position: absolute;
    top: 11px;
    right: 11px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #fff url("podklady/user-solid-dark.svg") no-repeat center / 50% auto;
    z-index: -1;
  }

  .team-card:target,
  .team-card.highlight {
    outline: 3px solid var(--main-color);
    outline-offset: 4px;
    animation: highlight-fade 0.6s ease 1s forwards;
  }

  @keyframes highlight-fade {
    to  { outline-color: transparent; }
  }

  .team-card .heading {
    width: max-content;
    background-color: var(--main-color);
  }

  .team-card ul  { margin: 0.5em 0 0; }

  .team-card .custom-bullet {
    display: flex;
    align-items: center;
    min-height: 1.6em;
    margin-block: 0.5em 0;
    padding-left: 2.2em;
  }

  .team-card .custom-bullet p  { margin: 0; }

  .team-card .custom-bullet:before {
    top: 50%;
    left: 0;
    width: 1.3em;
    height: 1.3em;
    transform: translateY(-50%);
    background-size: contain;
    background-position: center;
  }

  .team-card .custom-bullet.email:before  { left: 0; }
  #spedition                              { margin-top: 4vw; }
}

@layer company-info {
  .company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26em), 1fr));
    gap: 1em 3em;
  }

  .company-info {
    margin: 0;
    border-top: 1px solid #bbbbbb;
  }

  .company-info > div {
    display: grid;
    grid-template-columns: minmax(7em, 10em) 1fr;
    gap: 1em;
    padding-block: 0.9em;
    border-bottom: 1px solid #bbbbbb;
  }

  .company-info dt,
  .company-info dd  { margin: 0; }

  abbr[title]  { text-decoration: none; }

  @media (max-width: 749px) {
    .company-info > div {
      grid-template-columns: 1fr;
      gap: 0.2em;
    }
  }
}

@layer text {
  h1  { font-size: 6em; }

  .sub.heading {
    margin-block: 1.1em;
    font-size: 2.5em;
  }

  .text-normal {
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 400;
  }

  .heading {
    color: var(--text-dark);
    font-weight: 900;
  }

  h2.heading {
    text-decoration: underline var(--main-color) solid 3px;
    text-underline-offset: 5px;
    text-decoration-skip-ink: none;
  }

  .bold  { font-weight: 900; }
}

@layer utils {
  .no-margin        { margin: 0; }
  .no-padding       { padding: 0; }
  .padding-sides-x  { padding-block: 2vw; }
  .padding-box      { padding: 1em; }
  .padding-box-sm   { padding: 0.5em; }

  .border-box    { border-radius: var(--radius-sm); }
  .border-style  { border-radius: var(--radius-lg); }

  .clr-black    { color: var(--text-dark); }
  .clr-main     { color: var(--main-color); }
  .clr-primary  { color: var(--text-light); }

  .bg-main       { background: var(--main-color); }
  .bg-black      { background: var(--text-dark); }
  .bg-red        { background-color: red; }
  .bg-gray       { background: var(--text-muted); }
  .bg-primary    { background: var(--bg-primary); }
  .bg-secondary  { background: var(--bg-secondary); }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

@media (min-width: 750px) and (max-width: 1199px) {
  html  { font-size: small; }
}

@media (max-width: 959px) {
  .bio,
  .contact-flex  { flex-direction: column; }

  .services {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .item-services {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .team  { padding-bottom: 4vw; }
}

@media (max-width: 850px) {
  .header-text,
  #logo-right  { display: none; }
  #logo-left                    { display: block; }
  header .header-bg-shape       { display: none; }
}

@media (max-width: 749px) {
  html  { font-size: 80%; }

  .header-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nav-toggle {
    position: relative;
    margin-left: auto;
    z-index: 30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35em;
    width: 2.8em;
    height: 2.8em;
    padding: 0.7em;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: var(--text-dark);
    transition:
    transform 0.25s ease,
    opacity 0.2s ease;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1)  { transform: translateY(calc(0.35em + 3px)) rotate(45deg); }

  .nav-toggle[aria-expanded="true"] span:nth-child(2)  { opacity: 0; }

  .nav-toggle[aria-expanded="true"] span:nth-child(3)  { transform: translateY(calc(-0.35em - 3px)) rotate(-45deg); }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(11, 11, 21, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  nav {
    margin: 0;
    height: auto;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    margin: 0;
    z-index: 20;
    box-sizing: border-box;
    width: min(80vw, 18em);
    height: 100dvh;
    padding: 8em 1.5em 1.5em;
    flex-direction: column;
    justify-content: flex-start;
    line-height: normal;
    overflow-y: auto;
    background: var(--bg-primary);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    visibility: hidden;
    transition:
    transform 0.3s ease,
    visibility 0.3s;
  }

  .main-nav li {
    background-color: var(--main-color);
    background-color: rgb(from var(--main-color) r g b / 0.7);
    border-radius: var(--radius-sm);
  }

  .main-nav a {
    display: block;
    text-align: center;
    padding: 0.75em;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 15px;
  }

  .main-nav a.lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
  }

  .main-nav a.lang-link::after  { display: none; }

  .nav-open  { overflow: hidden; }

  .nav-open .main-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .why-us,
  .item-history,
  .contact-left,
  .footer-content  { flex-direction: column; }

  .item-why-us {
    flex-direction: row;
    justify-content: start;
  }

  .item-history .dv-line  { border: none; }

  .item-history .exp-left  { flex: none; }
}
