/*
 * Styly verejneho webu. Vzhled (rozmery, barvy, chovani) navazuje na puvodni 500km.cz,
 * tridy jsou vlastni a pojmenovane podle BEM: blok__prvek--varianta.
 * Bootstrap se na verejnych strankach nepouziva, jen v administraci.
 */
@font-face { font-display: fallback; font-family: Montserrat; font-weight: 400; src: url(../fonts/Montserrat-Regular.woff2) format('woff2'); }
@font-face { font-display: fallback; font-family: Montserrat; font-weight: 700; src: url(../fonts/Montserrat-Bold.woff2) format('woff2'); }
@font-face { font-display: fallback; font-family: Montserrat; font-weight: 900; src: url(../fonts/Montserrat-Black.woff2) format('woff2'); }

:root {
    --color-black: #000;
    --color-rgb-black: 0, 0, 0;
    --color-beige: #ffdeb1;
    --color-dark: #333;
    --color-rgb-dark: 51, 51, 51;
    --color-gray: #c4c4c4;
    --color-green: #04d37e;
    --color-red: #d11f22;
    --color-red-dark: #80050a;
    --color-white: #fff;
    --color-rgb-white: 255, 255, 255;
    --font-main: 'Montserrat', Verdana, Arial;
    --transition: cubic-bezier(.4, .7, .5, .9);
    font-size: 15px;
}

@media only screen and (min-width: 34rem) {
    :root { font-size: 16px; }
}

/* ---------- Zaklad: prvky bez trid ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--color-red); color: var(--color-white); }
img { height: auto; max-width: 100%; }
html { font-family: sans-serif; overflow-y: scroll; }

.button, body, button, input, select, textarea {
    font-family: var(--font-main);
    font-kerning: normal;
    text-rendering: optimizeLegibility;
}

.button, a, button, input[type=submit], select { cursor: pointer; }

body {
    background: var(--color-white);
    color: var(--color-black);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75;
    overflow: hidden;
    text-align: center;
}

body::-webkit-scrollbar { width: .95rem; }
body::-webkit-scrollbar-thumb { background: var(--color-red); border-left: 1px solid var(--color-white); border-radius: 2rem; }
body::-webkit-scrollbar-track { box-shadow: inset 0 0 5px rgba(var(--color-rgb-black), .25); }

a { color: var(--color-red); text-decoration: underline; transition: all .3s var(--transition); }
a:active, a:focus, a:hover { text-decoration: none; }

b, strong { font-weight: 700; }
h1, h2, h3, h4 { font-weight: 900; }
h1 { font-size: 2.25rem; line-height: 1.125; margin: 0 auto .3em; }
h2 { font-size: 1.875rem; line-height: 1.14; margin: 1.125em auto .33em; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1.5rem; line-height: 1.25; margin: 1em auto .5em; }
h2 + h3 { margin-top: -.4em; }
h4 { font-size: 1.25rem; line-height: 1.3; margin: .5em auto .33em; }
p { margin: 0 auto 1rem 0; }
p:last-child { margin-bottom: 0; }
p + ol, p + ul { margin-top: -.5em; }
ol, ul { margin: .25em auto 1em 1.5em; }

@media only screen and (min-width: 40rem) {
    h1 { font-size: 3.25rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.425rem; }
}

@media only screen and (min-width: 80rem) {
    h1 { font-size: 5rem; }
    h2 { font-size: 3.125rem; }
    h3 { font-size: 2rem; }
    h4 { font-size: 1.5rem; }
}

label { color: var(--color-white); cursor: pointer; display: block; font-size: 1.125rem; font-weight: 700; line-height: 1.48; margin-bottom: .5em; }

/* :where() drzi specificitu na nule, aby zakladni vzhled poli prebila jakakoli trida. */
:where(input[type=email], input[type=number], input[type=tel], input[type=text], select, textarea) {
    background: var(--color-white);
    border: none;
    border-radius: 0;
    border-top: 1px solid var(--color-red);
    color: var(--color-black);
    font-size: 1.125rem;
    font-weight: 700;
    height: 3.75rem;
    outline: 0;
    padding: 0 1rem;
    width: 100%;
}

textarea { height: 8rem; line-height: 1.75; overflow: auto; padding: .75rem 1rem; resize: vertical; }

@media only screen and (min-width: 40rem) {
    textarea { height: 11rem; }
}

input:focus, select:focus, textarea:focus { background: var(--color-beige); border-color: var(--color-green); }
input::placeholder, textarea::placeholder { color: rgba(var(--color-rgb-black), .55); }

table { border-collapse: collapse; margin: .5em 0 2.25rem; width: 100%; }
td, th { border-bottom: 1px solid rgba(var(--color-rgb-white), .17); padding: .5em .75em; text-align: left; vertical-align: middle; }
th { color: var(--color-gray); font-weight: 400; width: 35%; }

@media only screen and (min-width: 40rem) {
    td, th { padding: 1em 1.15em 1em .15em; }
}

/* Sekce se vysouvaji zleva, jakmile je videt ctvrtina (trida .is-revealed ze skriptu). */
html.js [data-animate=fade] { opacity: 0; transform: translateX(-3.75rem); transition: opacity .3s var(--transition), transform .6s ease-out; }
html.js .is-revealed[data-animate=fade] { opacity: 1; transform: translateX(0); }

.nowrap { white-space: nowrap; }

/* ---------- Tlacitko ---------- */

.button {
    backface-visibility: hidden;
    border: none;
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 3.5rem;
    outline: 0;
    min-width: 9.5rem;
    overflow: hidden;
    padding: 0 1.75rem;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: all .3s var(--transition);
    white-space: nowrap;
    z-index: 1;
}

.button::before {
    bottom: 0;
    content: '';
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity .2s var(--transition), width .33s var(--transition);
    width: 0;
    z-index: -1;
}

.button:active::before, .button:focus::before, .button:hover::before { opacity: 1; width: 102%; }
.button + .button { margin-top: 1rem; }
.button--red { background: var(--color-red); color: var(--color-white); }
.button--red:active, .button--red:focus, .button--red:hover { background: var(--color-white); color: var(--color-red); }
.button--red::before { background: var(--color-white); }
.button--white { background: var(--color-white); color: var(--color-black); }
.button--white:active, .button--white:focus, .button--white:hover { background: var(--color-red); color: var(--color-white); }
.button--white::before { background: var(--color-red); }

@media only screen and (min-width: 34rem) {
    .button { min-width: 11.625rem; padding: 0 2.25rem; }
    .button + .button { margin: 0 0 0 1rem; }
}

/* ---------- Kostra stranky ---------- */

.container { margin: 0 auto; max-width: 88rem; position: relative; text-align: left; width: 96%; }
.container--narrow { font-size: 1rem; max-width: 60rem; }

.page {
    box-shadow: 0 0 15px 5px rgba(var(--color-rgb-black), .25);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 120rem;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.page__main { background: var(--color-black); color: var(--color-white); position: relative; width: 100%; z-index: 3; }

/* Fotka pres celou sekci, za jejim obsahem. */
.background-image { bottom: 0; left: 0; pointer-events: none; position: absolute; right: 0; top: 0; user-select: none; z-index: -2; }
.background-image__img { display: block; height: 100%; left: 0; max-width: none; object-fit: cover; position: absolute; top: 0; width: 100%; }

/* Nadpis sekce s cervenou linkou presne na sirku textu. */
.section-heading { margin-bottom: 2rem; text-align: center; }
.section-heading__title { display: inline-block; margin: 0; padding-bottom: 6px; position: relative; }
.section-heading__title::before { background: var(--color-red); bottom: 0; content: ''; height: 4px; left: 0; position: absolute; right: 0; }

/* ---------- Hlavicka ---------- */

.site-header { left: 0; padding-top: .75rem; position: absolute; top: 0; transition: all .4s var(--transition); width: 100%; z-index: 999; }
.site-header__inner { align-items: center; display: flex; }
.site-header__logo { position: relative; }
.site-header__logo-link { display: inline-block; text-decoration: none; vertical-align: top; }
.site-header__logo-img { aspect-ratio: 220 / 171; display: block; max-height: 4rem; transition: all .3s var(--transition); }
.site-header__nav { margin-left: auto; position: relative; z-index: 2001; }

@media only screen and (min-width: 40rem) {
    .site-header { padding-top: 1rem; }
    .site-header__logo-img { max-height: 5rem; }
    /* Odkazy na sekce zastavi tesne pod pripnutou hlavickou (4rem), na mobilu az u okraje.
       Pouziva i posun ze skriptu v layout.html. */
    html { scroll-padding-top: 4rem; }
}

@media only screen and (min-width: 80rem) {
    .site-header { padding-top: 2.75rem; }
    .site-header__logo-img { max-height: 10.625rem; }
}

/* Pripnuta hlavicka az za zakladnimi velikostmi, aby jejich odsazeni prebila poradim. */
@media only screen and (min-width: 40rem) {
    .site-header--fixed { background: rgba(var(--color-rgb-dark), .99); box-shadow: 0 0 10px rgba(var(--color-rgb-black), .2); padding-top: 0; position: fixed; }
    .site-header--fixed .site-header__inner { height: 4rem; }
    .site-header--fixed .site-header__logo-img { max-height: 5rem; position: relative; top: 1rem; }
}

/* Tlacitko "Menu": tri cary, po otevreni krizek. */
.menu-toggle {
    align-items: center;
    background: 0 0;
    border: none;
    display: flex;
    justify-content: space-between;
    height: 3rem;
    outline: 0;
    padding: 0 1rem;
    position: relative;
    transition: all .3s var(--transition);
    z-index: 2;
}

.menu-toggle__label { color: var(--color-white); font-size: .875rem; font-weight: 700; text-align: right; text-transform: uppercase; transition: color .2s var(--transition); width: 3.75rem; }
.menu-toggle:hover .menu-toggle__label, .menu-toggle:focus .menu-toggle__label { color: var(--color-red); }
.menu-toggle--open .menu-toggle__label { color: var(--color-black); margin-left: 5px; margin-right: 23px; order: 2; }
.menu-toggle--open:hover .menu-toggle__label, .menu-toggle--open:focus .menu-toggle__label { color: var(--color-red); }
.menu-toggle__icon { height: 22px; margin-left: 23px; position: relative; width: 55px; }
.menu-toggle--open .menu-toggle__icon { margin-left: 26px; width: 25px; }
.menu-toggle__bars { background: var(--color-white); height: 2px; left: 0; position: absolute; right: 23px; top: calc(50% - 1px); transition: background .2s var(--transition); }
.menu-toggle:hover .menu-toggle__bars, .menu-toggle:focus .menu-toggle__bars { background: var(--color-red); }
.menu-toggle--open .menu-toggle__bars { background: 0 0; }
.menu-toggle__bars::after, .menu-toggle__bars::before { background: var(--color-white); content: ''; height: 2px; left: 0; position: absolute; transition-delay: .3s, 0s, 0s; transition-duration: .3s, .3s, .2s; }
.menu-toggle:hover .menu-toggle__bars::after, .menu-toggle:hover .menu-toggle__bars::before,
.menu-toggle:focus .menu-toggle__bars::after, .menu-toggle:focus .menu-toggle__bars::before { background: var(--color-red); }
.menu-toggle--open .menu-toggle__bars::after, .menu-toggle--open .menu-toggle__bars::before { background: var(--color-black); }
.menu-toggle--open:hover .menu-toggle__bars::after, .menu-toggle--open:hover .menu-toggle__bars::before { background: var(--color-red); }
.menu-toggle__bars::before { right: -23px; top: -8px; transition-property: top, transform, background; }
.menu-toggle--open .menu-toggle__bars::before { top: 0; transform: rotate(45deg); width: 20px; }
.menu-toggle__bars::after { bottom: -8px; right: -11px; transition-property: bottom, transform, background; }
.menu-toggle--open .menu-toggle__bars::after { bottom: 0; transform: rotate(-45deg); width: 20px; }

@media only screen and (min-width: 80rem) {
    .menu-toggle { display: none; }
}

/* Navigace: do 80rem bily panel vysunuty shora, od 80rem radek odkazu v hlavicce. */
.site-nav {
    background: var(--color-white);
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 0 10px rgba(var(--color-rgb-black), .25);
    max-width: 24rem;
    opacity: 0;
    padding: 5rem 3rem 2.5rem;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateY(-100%);
    transition: all .4s var(--transition);
    width: 100%;
    z-index: 1;
}

.site-nav--open { opacity: 1; pointer-events: all; transform: translateY(0); }
.site-nav__list { align-items: center; display: flex; flex-direction: column; height: 100%; justify-content: flex-start; list-style: none; margin: 0; text-align: left; }
.site-nav__item { position: relative; width: 100%; }
.site-nav__item + .site-nav__item { margin-top: .25rem; }
.site-nav__link { backface-visibility: hidden; color: var(--color-black); display: block; font-size: 1rem; line-height: 3; position: relative; text-decoration: none; text-transform: uppercase; }
.site-nav__link:active, .site-nav__link:focus, .site-nav__link:hover { color: var(--color-red); }
.site-nav__phone { font-size: 1rem; line-height: 3; padding-left: 2.5rem; position: relative; }
.site-nav__phone::before { background: currentColor; content: ''; height: 30px; left: 0; mask: url(../img/icons/phone.svg) center / 24px no-repeat; position: absolute; top: .5em; width: 30px; }
.site-nav__phone-link { backface-visibility: hidden; color: inherit; display: inline; font-size: 1rem; position: relative; text-decoration: none; }
.site-nav__cta { backface-visibility: hidden; color: var(--color-white); display: block; line-height: 3; margin-top: .5rem; width: 100%; }

@media only screen and (max-width: 79.99rem) {
    .site-nav__cta:active, .site-nav__cta:focus, .site-nav__cta:hover { background: var(--color-black); color: var(--color-white); }
    .site-nav__cta::before { background: var(--color-black); }
}

@media only screen and (min-width: 40rem) {
    .site-nav { padding-bottom: 3.25rem; padding-top: 7rem; }
}

@media only screen and (min-width: 80rem) {
    .site-nav { background: 0 0; border-radius: 0; box-shadow: none; margin-top: -2.5rem; max-width: none; opacity: 1; padding: 0; pointer-events: all; position: relative; right: auto; top: auto; transform: none; z-index: 1022; }
    .site-nav__list { flex-direction: row; height: auto; }
    .site-nav__item { width: auto; }
    .site-nav__item + .site-nav__item { margin-left: .2em; margin-top: 0; }
    .site-nav__link { color: var(--color-white); line-height: 3.5rem; padding: 0 1.5rem; }
    .site-nav__label { display: inline-block; position: relative; }
    .site-nav__label::before { background: var(--color-red); bottom: 0; content: ''; height: 2px; left: 0; position: absolute; transition: all .4s var(--transition); width: 0; }
    .site-nav__link:active .site-nav__label::before, .site-nav__link:focus .site-nav__label::before, .site-nav__link:hover .site-nav__label::before { width: 100%; }
    /* Telefon ma vlastni odstup, ne mezeru mezi polozkami - proto stejna specificita jako pravidlo vyse. */
    .site-nav__item + .site-nav__item--phone { color: var(--color-white); margin: 0 2rem 0 1rem; }
    .site-nav__cta { line-height: 3.5rem; margin-top: 0; padding: 0 1.5rem; width: auto; }
    .site-nav__cta:active, .site-nav__cta:focus, .site-nav__cta:hover { color: var(--color-red); }
    .site-header--fixed .site-nav { margin-top: 0; }
    .site-header--fixed .site-nav__cta { line-height: 3rem; }
}

/* ---------- Fotopasy s parallaxem ----------
   Pas ma pevnou vysku, fotka je vyssi a skript ji posouva vlastnosti top. */

.photo-band { height: 31.25rem; overflow: hidden; position: relative; z-index: 1; }
.photo-band__frame { height: 100%; transform: translateZ(0); width: 100%; }
/* top: 50 % je stred drahy - plati bez skriptu a pri prefers-reduced-motion. */
.photo-band__img { height: 160%; left: 0; max-width: none; min-width: 100%; object-fit: cover; position: absolute; top: 50%; transform: translateY(-46%); width: 100%; }
/* Vyrez fotek miri na motorku: vodorovne kvuli uzkym displejum, svisle aby nebyla useknuta kola. */
.photo-band--welcome .photo-band__img { object-position: 80% 80%; transform: translateY(-61%); }
.photo-band--info { margin-top: 3em; }
.photo-band--info .photo-band__img { object-position: 12% 80%; transform: translateY(-61%); }
.photo-band--contact .photo-band__img { object-position: 82% 50%; }
/* Spolecna fotka: lide jsou v dolni polovine, vyrez jde niz nez u ostatnich pasu. */
.photo-band--partners .photo-band__img { object-position: 50% 70%; transform: translateY(-58%); }

/* ---------- Uvodni fotka ---------- */

.hero { padding: 10rem 0 5rem; position: relative; z-index: 1; }
/* Odchylka od originalu: uvod vyplni cele okno, dalsi obsah je videt az po posunuti (na kazde vysce okna). */
.hero:not(.hero--compact) { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; }
.hero__text { text-align: center; text-shadow: 0 0 7px rgba(0, 0, 0, .7); }
.hero__title { display: inline-block; padding-bottom: 10px; position: relative; }
.hero__title::before { background: var(--color-red); bottom: 0; content: ''; height: 6px; left: 0; position: absolute; transition: all .6s var(--transition) .4s; width: 0; }
.hero__text.is-revealed .hero__title::before { width: 100%; }
html:not(.js) .hero__title::before { width: 100%; }
.hero__subtitle { font-weight: 700; }

@media only screen and (min-width: 40rem) {
    .hero { padding: 15rem 0 9rem; }
    /* Podstranky (registrace, chyby) maji nizsi uvodni fotku. */
    .hero--compact { padding: 12rem 0 5rem; }
}

@media only screen and (min-width: 80rem) {
    .hero { padding: 26rem 0 22rem; }
    .hero--compact { padding: 17rem 0 7rem; }
}

/* ---------- Uvod: oznameni a slovo poradatelu ---------- */

.welcome-section { padding: 2rem 0; }
.welcome-section__body { text-align: center; }
.welcome-section__cta { margin: -1rem 0 2rem; }
.welcome-section__countdown { color: var(--color-red); font-size: 1.5rem; font-weight: 900; margin: -1rem 0 2rem; }
.welcome-section__motto--left { margin-top: 3em; text-align: left; }
.welcome-section__motto--center { text-align: center; }
.welcome-section__motto--right { text-align: right; }
.welcome-section__motto--accent { color: var(--color-red); margin: 3em 0; text-align: center; }

/* ---------- Informace o akci ---------- */

.info-section { padding: 3rem 0 0; }

/* ---------- Vyzva k prihlaseni ---------- */

.signup-section { background: var(--color-red-dark); }
.signup-section__inner { background: var(--color-red); padding: 2rem .5rem 4.5rem; z-index: 1; }
.signup-section__text { padding: 3rem 1.5rem 2rem; text-shadow: 0 0 7px rgba(0, 0, 0, .7); }
.signup-section__title, .signup-section__subtitle { text-transform: uppercase; }
.signup-section__lead { max-width: 22rem; }
.signup-section__action { padding: 0 1.5rem; }
.signup-section__capacity { margin-bottom: 1.5rem; }

@media only screen and (min-width: 40rem) {
    .signup-section__inner { padding: 3rem 1.5rem 5rem; }
    .signup-section__text { padding: 4rem 4rem 2rem; }
    .signup-section__action { padding: 0 4rem; }
}

/* ---------- Galerie ---------- */

.gallery-section { padding: 4rem 0; }
.gallery-section__body { margin-top: 3rem; text-align: center; }

/* ---------- Kontakt ---------- */

.contact-section { padding: 0 0 3rem; }
.contact-section__heading { margin-top: 3rem; }
.contact-section__columns { text-align: center; }
.contact-section__details { margin-bottom: 2.5rem; }
.contact-section__line { padding-top: 2.5rem; position: relative; }
.contact-section__line::before { background: currentColor; content: ''; height: 30px; left: calc(50% - 15px); mask: center / 24px no-repeat; position: absolute; top: 0; width: 30px; }
.contact-section__line--address::before { mask-image: url(../img/icons/map-pin.svg); }
.contact-section__line--phone::before { mask-image: url(../img/icons/phone.svg); }
.contact-section__line--email::before { mask-image: url(../img/icons/mail.svg); }
.contact-section__link { color: var(--color-white); }
.contact-section__line--phone .contact-section__link { text-decoration: none; }
.contact-section__map-frame { aspect-ratio: 4 / 3; border: none; display: block; max-height: 85vh; width: 100%; }

@media only screen and (min-width: 40rem) {
    .contact-section__columns { display: flex; justify-content: space-between; text-align: left; }
    .contact-section__details { margin-bottom: 0; width: 30%; }
    .contact-section__line { padding-left: 2.5rem; padding-top: 0; }
    .contact-section__line::before { left: 0; }
    .contact-section__map { width: 65%; }
}

/* ---------- Partneri ---------- */

.partners-section { margin-bottom: 2rem; padding: 2rem 0; }
.partners-section__heading { margin-top: 2.5rem; }

.logo-grid { display: flex; justify-content: center; flex-wrap: wrap; }
.logo-grid__item { width: 32%; }
.logo-grid__link { backface-visibility: hidden; display: block; height: 0; overflow: hidden; padding-top: 64%; position: relative; width: 100%; }
.logo-grid__img { height: 100%; left: 0; object-fit: contain; position: absolute; top: 0; transition: all .3s var(--transition); width: 100%; }
.logo-grid__link:active .logo-grid__img, .logo-grid__link:focus .logo-grid__img, .logo-grid__link:hover .logo-grid__img { transform: scale(.975); }

@media only screen and (min-width: 40rem) {
    .logo-grid__item { width: 24%; }
}

@media only screen and (min-width: 60rem) {
    .logo-grid__item { width: 19%; }
}

@media only screen and (min-width: 80rem) {
    .logo-grid__item { width: 15%; }
}

/* ---------- Tlacitko pod chybovou strankou ---------- */

.page-actions { padding: 4rem 0; }

/* ---------- Paticka ---------- */

.site-footer { background: var(--color-black); color: var(--color-white); padding: 2rem 0; }
.site-footer__inner { text-align: center; }
.site-footer__social { margin-bottom: 2rem; }
.site-footer__facebook { display: inline-block; height: 52px; overflow: hidden; position: relative; text-indent: -9999em; transition: transform .3s var(--transition); width: 52px; }
.site-footer__facebook:active, .site-footer__facebook:focus, .site-footer__facebook:hover { transform: rotateY(360deg); }
/* Ctverec (::before) a pismeno f (::after) zvlast, aby se pri najeti dala zmenit obe barvy. */
.site-footer__facebook::before, .site-footer__facebook::after { content: ''; inset: 0; position: absolute; transition: background-color 0s linear .1s; }
.site-footer__facebook::before { background-color: var(--color-gray); border-radius: 6px; }
.site-footer__facebook::after { background-color: var(--color-black); mask: url(../img/icons/facebook.svg) 60% 100% / 40px no-repeat; }
.site-footer__facebook:active::before, .site-footer__facebook:focus::before, .site-footer__facebook:hover::before { background-color: #3c579e; }
.site-footer__facebook:active::after, .site-footer__facebook:focus::after, .site-footer__facebook:hover::after { background-color: var(--color-white); }
.site-footer__legal { color: rgba(var(--color-rgb-white), .75); font-size: .875rem; }
.site-footer__cookies { background: none; border: none; color: inherit; font-size: inherit; padding: 0; text-decoration: underline; }
.site-footer__cookies:active, .site-footer__cookies:focus, .site-footer__cookies:hover { color: var(--color-red); }

@media only screen and (min-width: 80rem) {
    .site-footer__inner { display: flex; justify-content: space-between; text-align: left; }
    .site-footer__social { order: 2; }
    .site-footer__legal { min-width: 70%; }
}

/* ---------- Nastaveni cookies ----------
   Obsahem odpovida dialogu originalu, vzhledem registraci: cerny panel s cervenou linkou nahore. */

.cookie-settings { background: var(--color-black); border: none; border-top: 4px solid var(--color-red); box-shadow: 0 0 40px rgba(var(--color-rgb-black), .6); color: var(--color-white); margin: auto; max-height: calc(100% - 2rem); max-width: min(38rem, calc(100% - 2rem)); padding: 2.5rem 1.75rem; text-align: left; }
.cookie-settings::backdrop { background: rgba(var(--color-rgb-dark), .85); }
.cookie-settings__close { background: none; border: none; color: var(--color-gray); height: 2.5rem; position: absolute; right: .75rem; top: .75rem; transition: color .2s var(--transition); width: 2.5rem; }
.cookie-settings__close::before { background: currentColor; content: ''; inset: 0; mask: url(../img/icons/x.svg) center / 1.75rem no-repeat; position: absolute; }
.cookie-settings__close:active, .cookie-settings__close:focus-visible, .cookie-settings__close:hover { color: var(--color-red); }
.cookie-settings__title { color: var(--color-white); font-size: 2rem; line-height: 1; margin: 0 0 1.25rem; text-align: center; }
/* Fokus po otevreni dostane nadpis, ne tlacitko: zamerene tlacitko by vypadalo jako pri najeti mysi. */
.cookie-settings__title:focus { outline: none; }
.cookie-settings__text { font-size: 1rem; line-height: 1.5; }
.cookie-settings__category { border: 1px solid var(--color-dark); margin: 2rem 0; padding: 1.5rem 1.75rem; }
.cookie-settings__category-title { font-size: 1.25rem; margin: 0 0 .5em; }
.cookie-settings__switch { align-items: center; display: flex; font-size: 1rem; gap: .75rem; margin: 1.25rem 0 0; }
.cookie-settings__switch-input { appearance: none; background: var(--color-dark); border-radius: .75rem; height: 1.5rem; margin: 0; position: relative; width: 2.75rem; }
.cookie-settings__switch-input::before { background: var(--color-white); border-radius: 50%; content: ''; height: 1.1rem; left: .2rem; position: absolute; top: .2rem; width: 1.1rem; }
.cookie-settings__switch-input:checked { background: var(--color-green); }
.cookie-settings__switch-input:checked::before { transform: translateX(1.25rem); }
.cookie-settings__note { color: var(--color-gray); font-size: .875rem; line-height: 1.5; }
.cookie-settings__actions { font-size: 1rem; line-height: 1.5; margin: 2rem 0 0; text-align: center; }

@media only screen and (min-width: 40rem) {
    .cookie-settings { padding: 3rem; }
}

/* ---------- Registrace ----------
   Cerny panel, bila pole s cervenou linkou nahore, bezova pri psani. */

.registration-section { padding: 3rem 0 4.5rem; }
.registration-section__heading { margin-bottom: 2rem; text-align: center; }
.registration-section__title { color: var(--color-red); font-size: 2.25rem; line-height: 1; }
.registration-section__accent { color: var(--color-beige); font-weight: 900; }
.registration-section__intro { margin-bottom: 2rem; text-align: center; }
.registration-section__intro strong { color: var(--color-beige); }
.registration-section__closed { text-align: center; }
.registration-section__closed p { margin: 0 auto 2rem; }

@media only screen and (min-width: 40rem) {
    .registration-section { padding: 3rem 0 5.5rem; }
    .registration-section__title { font-size: 3rem; }
}

@media only screen and (min-width: 80rem) {
    .registration-section__title { font-size: 4.625rem; }
}

.registration-form { display: flex; flex-wrap: wrap; justify-content: space-between; }
/* Past na skripty: mimo obrazovku, ne display: none - to by jednodussi skripty poznaly. */
.registration-form__trap { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }

/* Pole formulare: popisek, vstup, chyba. Bez varianty pres celou sirku. */
.field { margin: 0 0 1.5rem; width: 100%; }
.field__label--required::after { color: var(--color-red); content: '*'; margin-left: .15em; }
.field--invalid :is(input, select, textarea) { border-color: var(--color-red); box-shadow: inset 0 0 1px 3px var(--color-red); }
.field__error { color: var(--color-red); display: inline-block; font-size: .875rem; font-weight: 700; padding: 0 1rem; }

@media only screen and (min-width: 40rem) {
    .field--half { width: 48%; }
    .field--wide { width: 60%; }
    .field--narrow { width: 36%; }
}

.hint { color: var(--color-gray); font-size: .875rem; margin-top: .5rem; }

.consent { align-items: flex-start; display: flex; gap: .75rem; }
.consent__checkbox { accent-color: var(--color-red); flex: none; height: 1.25rem; margin-top: .3rem; width: 1.25rem; }
.consent__label { font-size: 1rem; font-weight: 400; }

.form-actions { margin-top: 1rem; text-align: center; width: 100%; }

.notice { line-height: 1.5; margin-bottom: 1.5rem; padding: .75em 2em; text-align: center; width: 100%; }
.notice--error { background: var(--color-red); color: var(--color-white); }
.notice--warning { background: var(--color-beige); color: var(--color-black); }

.order-total { margin-bottom: 1.5rem; text-align: center; width: 100%; }
.order-total__title { color: var(--color-red); margin: 1rem 0 0; }
.order-total__amount { color: var(--color-beige); font-size: 1.6rem; font-weight: 900; line-height: 1.25; }

@media only screen and (min-width: 40rem) {
    .order-total__amount { font-size: 1.85rem; }
}

@media only screen and (min-width: 80rem) {
    .order-total__amount { font-size: 2.1rem; }
}

/* Doplnky na prihlasce: seznam radku, kazdy s vyberem doplnku a jeho volbami. */
.order-lines__list { margin-top: 1rem; }
.order-line { border: 1px solid var(--color-dark); margin-bottom: 1rem; padding: 1rem; }
.order-line__head { display: flex; gap: .5rem; }
.order-line__remove { min-width: 0; padding: 0 1.5rem; }
.order-detail { margin-top: 1rem; }
.order-detail__description { color: var(--color-gray); font-size: .875rem; }
.order-detail__photos { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.order-detail__photo { border: 1px solid var(--color-dark); height: 7rem; object-fit: cover; width: 7rem; }
.order-detail__options { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .75rem; }
.order-detail__label { font-size: .875rem; }
.order-detail__select { width: 8rem; }
.order-detail__quantity { width: 6rem; }

/* ---------- Potvrzeni prihlasky ---------- */

.registration-code { color: var(--color-beige); font-size: 3rem; font-weight: 900; letter-spacing: 1px; line-height: 1.2; margin-bottom: 1rem; }
.summary-table__total > * { font-weight: 700; }
