/* ==========================================================================
   NTC s.r.o. – styly webu
   Barvy a základní hodnoty jsou v proměnných níže (:root). Změnou proměnné
   se upraví všechna místa, kde se používá.
   ========================================================================== */

:root {
  --color-primary: hsl(353 99% 42%); /* červená NTC */
  --color-primary-hover: hsl(353 99% 42% / 0.9);
  --color-white: hsl(0 0% 100%);
  --color-text: hsl(0 0% 33%); /* běžný text */
  --color-dark: hsl(270 9% 8%); /* nadpisy, patička */
  --color-gray: hsl(0 0% 93%); /* šedé pozadí sekcí, rámečky */
  --color-gray-light: hsl(0 0% 93% / 0.35); /* světle šedé pozadí (Servis, Kariéra) */
  --color-primary-light: hsl(353 99% 42% / 0.07); /* světle červené pozadí ikon a štítků */

  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Breakpointy (šířka okna): 640px (sm), 768px (md), 1024px (lg), 1400px;
   hlavička navíc 1100px, kontakty servisu 1200px */

/* --------------------------------------------------------------------------
   Základ
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--color-gray);
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: Inter, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  line-height: inherit;
  background-color: var(--color-white);
  color: var(--color-text);
}

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

strong {
  font-weight: bolder;
}

img,
svg,
iframe {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

/* Ikony ze sady v index.html */
.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Pomocné třídy
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

.center {
  text-align: center;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

/* Užší obsah uprostřed (galerie) */
.narrow {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

/* Červené tlačítko */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 2rem;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  background-color: var(--color-primary);
  color: var(--color-white);
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.btn:hover {
  background-color: var(--color-primary-hover);
}

.btn:focus-visible,
.footer-link-button:focus-visible,
.dialog-close:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-primary);
}

/* Sekce stránky */
.section {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.section-gray {
  background-color: var(--color-gray);
}

.section-title {
  margin-bottom: 1rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: var(--color-dark);
}

.section-lead {
  max-width: 42rem;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Hlavička
   -------------------------------------------------------------------------- */

.site-header {
  padding: 1rem 0;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray);
}

/* Na mobilu pod sebou: logo, menu, kontakty (Facebook vpravo nahoře) */
.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-self: center;
}

.logo-ntc {
  width: auto;
  height: 2.5rem;
}

.header-nav {
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
}

.header-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 0 8px;
  border-bottom: 2px solid transparent;
  color: var(--color-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.header-nav-link:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header-nav-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.header-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  grid-column: 1;
  grid-row: 3;
  justify-self: center;
  max-width: 100%;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition: color 0.15s var(--ease);
}

.header-contact:hover {
  color: var(--color-primary);
}

.header-contact .icon {
  width: 1rem;
  height: 1rem;
}

.header-social {
  position: absolute;
  top: -2px;
  right: 0;
  justify-content: center;
  width: 44px;
  height: 44px;
}

/* Od tabletu: logo a kontakty v prvním řádku, menu pod nimi */
@media (min-width: 768px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 8px;
  }

  .header-brand {
    justify-self: start;
  }

  .header-nav {
    grid-column: 1 / -1;
  }

  .header-contacts {
    flex-wrap: nowrap;
    justify-content: normal;
    gap: 24px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: none;
  }

  .header-social {
    position: static;
    justify-content: normal;
    width: auto;
    height: auto;
  }

  .logo-ntc {
    height: 3rem;
  }

  .header-contact {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .header-contact .icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Od 1100 px: logo, menu a kontakty v jednom řádku */
@media (min-width: 1100px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .header-nav,
  .header-contacts {
    grid-column: auto;
    grid-row: auto;
  }
}

/* --------------------------------------------------------------------------
   Úvod (velká fotka a dlaždice)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
}

.hero-image {
  position: relative;
  height: 700px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: hsl(270 9% 8% / 0.7);
}

.hero-container {
  position: relative;
  z-index: 10;
  height: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 48rem;
  color: var(--color-white);
}

.hero-content h1 {
  margin-bottom: 1rem;
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 700;
}

.hero-content p {
  margin-bottom: 6rem;
  font-size: 1rem;
  line-height: 1.625;
}

.hero-tiles {
  position: relative;
  z-index: 20;
  margin-top: -5rem;
}

.tiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tile {
  display: block;
  padding: 1.5rem;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

/* Jen dlaždice, která je odkazem, reaguje na myš */
a.tile {
  transition: box-shadow 0.15s var(--ease);
}

a.tile:hover {
  box-shadow: var(--shadow-xl);
}

.tile-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.tile-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-weight: 700;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.tile .icon {
  color: var(--color-primary);
}

.tile h3 {
  font-weight: 600;
  color: var(--color-dark);
}

a.tile h3 {
  transition: color 0.15s var(--ease);
}

a.tile:hover h3 {
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .hero-image {
    height: 600px;
  }

  .hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    line-height: 1;
  }

  .hero-content p {
    margin-bottom: 0;
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .hero-tiles {
    margin-top: -4rem;
  }

  .tiles-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Prodej a Servis
   -------------------------------------------------------------------------- */

.locations {
  padding: 48px 0;
  background-color: var(--color-white);
}

.locations-service {
  background-color: var(--color-gray-light);
  border-top: 1px solid var(--color-gray);
}

.locations-heading {
  max-width: 1040px;
  margin: 0 0 32px;
}

.locations h2 {
  margin: 0 0 20px;
  color: var(--color-dark);
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.locations-intro {
  font-size: 1rem;
  line-height: 1.75;
}

.locations a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Údaje vlevo, mapa vpravo (na mobilu pod sebou) */
.overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.facts-box {
  padding: 24px;
  border: 1px solid var(--color-gray);
  border-left: 3px solid var(--color-primary);
  background-color: hsl(0 0% 93% / 0.2);
}

.facts {
  display: grid;
  gap: 20px;
}

.fact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.fact > .icon {
  flex: 0 0 20px;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 3px;
  color: var(--color-primary);
}

.fact dt {
  margin: 0 0 3px;
  color: var(--color-dark);
  font-size: 0.875rem;
  font-weight: 600;
}

.fact dd {
  font-size: 0.9375rem;
  line-height: 1.65;
}

.fact a:hover,
.contact-card a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.location-map {
  min-height: 220px;
  overflow: hidden;
  background-color: var(--color-gray);
  border: 1px solid var(--color-gray);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.team-title {
  margin: 40px 0 20px;
  color: var(--color-dark);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
}

/* Karty s kontakty na jednotlivé pracovníky */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray);
  border-top: 2px solid var(--color-primary);
}

.contact-name {
  color: var(--color-dark);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
}

.contact-role {
  margin-top: 5px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.contact-scope {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.65;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.contact-links a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  color: var(--color-dark);
  font-size: 0.875rem;
  line-height: 1.6;
}

.contact-links a[href^="tel:"] {
  font-weight: 600;
}

.contact-links .icon {
  flex: 0 0 16px;
  width: 1rem;
  height: 1rem;
  margin-top: 3px;
  color: var(--color-primary);
}

.contact-links span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Servisní středisko (bílý box) */
.branch {
  margin-top: 28px;
  padding: 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray);
  border-top: 3px solid var(--color-primary);
}

.branch-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}

.branch-title {
  color: var(--color-dark);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Štítek vedle názvu (NON STOP 24h) */
.branch-badge {
  flex-shrink: 0;
  padding: 7px 12px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.branch-contacts-label {
  margin: 28px 0 16px;
  color: var(--color-dark);
  font-size: 1rem;
  font-weight: 600;
}

.contact-grid-service {
  gap: 16px;
}

.contact-grid-service .contact-card {
  padding: 20px;
  border-top: 1px solid var(--color-gray);
  background-color: hsl(0 0% 93% / 0.13);
}

.branch-single-contact {
  margin-top: 24px;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    padding: 24px;
  }
}

@media (min-width: 768px) {
  .locations {
    padding: 72px 0;
  }

  .overview {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .facts-box {
    padding: 28px 32px;
  }

  .branch {
    padding: 32px;
  }

  .branch-header {
    flex-direction: row;
    align-items: center;
  }

  .location-map,
  .location-map iframe {
    min-height: 280px;
  }

  .branch-single-contact {
    max-width: 460px;
  }
}

@media (min-width: 1024px) {
  .overview {
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-grid-service {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .contact-grid-service {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Loga značek
   -------------------------------------------------------------------------- */

.brands {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #fff;
  filter: grayscale(100%);
  transition: all 0.3s var(--ease);
}

.brand:hover {
  filter: grayscale(0);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.brand img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: contain;
}

@media (min-width: 640px) {
  .brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Kariéra
   -------------------------------------------------------------------------- */

.careers {
  padding: 48px 0;
  background-color: var(--color-gray-light);
}

.careers-intro {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.careers-intro h2 {
  margin: 0 0 16px;
  color: var(--color-dark);
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.careers-intro p {
  font-size: 1rem;
  line-height: 1.75;
}

.careers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

/* Karta s jednou pracovní pozicí */
.job {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 4px 16px hsl(270 9% 8% / 0.04);
}

.job-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.job-icon {
  display: grid;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.job-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.job-category {
  margin: 0 0 4px;
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.job h3 {
  color: var(--color-dark);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
}

.job-description {
  margin: 20px 0 24px;
  font-size: 1rem;
  line-height: 1.75;
}

/* Červené tlačítko „Zobrazit nabídku" */
.job-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 12px 24px;
  color: var(--color-white);
  background-color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  transition: background-color 0.15s ease;
}

.job-link:hover {
  background-color: var(--color-primary-hover);
}

.job-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

.job-link .icon {
  width: 1.125rem;
  height: 1.125rem;
}

@media (min-width: 768px) {
  .careers {
    padding: 72px 0;
  }

  .careers-intro {
    margin-bottom: 36px;
  }

  .careers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .job {
    padding: 32px;
  }

  .job h3 {
    font-size: 1.5rem;
  }

  .job-description {
    margin: 22px 0 28px;
  }

  .job-link {
    width: auto;
  }
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Lehké ztmavení fotky po najetí myší */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: hsl(270 9% 8% / 0);
  transition: background-color 0.3s var(--ease);
}

.gallery-item:hover::after {
  background-color: hsl(270 9% 8% / 0.2);
}

@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item-large {
    grid-column: span 2 / span 2;
    grid-row: span 2 / span 2;
  }
}

/* --------------------------------------------------------------------------
   Přednosti HESTI GROUP
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature {
  text-align: center;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.feature-icon .icon {
  width: 2.5rem;
  height: 2.5rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: var(--color-dark);
}

.logo-hesti-large {
  width: auto;
  height: 4rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-hesti-large {
    height: 5rem;
  }
}

@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Patička
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 3rem 0;
  background-color: var(--color-dark);
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.footer-company {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.footer-company > * + * {
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.footer-links > * + * {
  margin-top: 0.5rem;
}

.footer-certificates {
  margin-bottom: 1rem;
}

.footer-subtitle {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.footer-certificates ul {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.footer-certificates li + li {
  margin-top: 0.25rem;
}

.footer-links a,
.footer-link-button {
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: left;
  text-underline-offset: 4px;
}

.footer-links a:hover,
.footer-link-button:hover {
  color: var(--color-primary);
  text-decoration-line: underline;
}

.footer-link-button {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  white-space: nowrap;
  font-weight: 500;
  transition: color 0.15s var(--ease);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsl(0 0% 100% / 0.2);
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   Okno GDPR
   -------------------------------------------------------------------------- */

.dialog {
  width: 100%;
  max-width: 56rem;
  max-height: 80vh;
  margin: auto;
  padding: 1.5rem;
  overflow-y: auto;
  border: 1px solid var(--color-gray);
  background-color: var(--color-white);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.dialog[open] {
  display: grid;
  gap: 1rem;
}

.dialog::backdrop {
  background-color: rgb(0 0 0 / 0.8);
}

.dialog-header {
  text-align: center;
}

.dialog-title {
  font-size: 1.125rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.dialog-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0.7;
  transition: opacity 0.15s var(--ease);
}

.dialog-close:hover {
  opacity: 1;
}

.dialog-close .icon {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .dialog-header {
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   Stránka 404
   -------------------------------------------------------------------------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 100vh;
  padding: 2rem 1rem;
  text-align: center;
}

.not-found .section-title {
  margin-bottom: 0;
}
