/* DERMA MB — vzdušná typografie, jemná tyrkysová a skutečné fotografie. */
:root {
  --teal: #28beb9;
  --light: #a3d6d6;
  --ink: #173d3b;
  --muted: #54716f;
  --paper: #f6faf9;
  --line: #dbe9e6;
  --deep: #08716e;
  --radius: 6px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 4px;
}
img {
  max-width: 100%;
  display: block;
}
picture {
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
h1 {
  font-size: clamp(42px, 4.9vw, 76px);
}
h2 {
  font-size: clamp(30px, 3vw, 46px);
}
h3 {
  font-size: 26px;
}
p {
  color: var(--muted);
}
.wrap {
  width: min(1280px, calc(100% - 100px));
  margin: auto;
}
.topline {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  z-index: 30;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1.1;
  flex-shrink: 0;
}
.brand b {
  font-size: 27px;
  letter-spacing: -0.07em;
  font-weight: 600;
}
.brand small {
  display: block;
  font-size: 9px;
  margin-top: 8px;
  letter-spacing: 0.06em;
}
.brand-symbol {
  color: var(--teal);
  font-size: 52px;
  line-height: 1;
}
.uploaded-logo {
  max-width: 175px;
  max-height: 65px;
  object-fit: contain;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 30px;
}
nav li {
  position: relative;
  display: flex;
  align-items: center;
}
nav li > a {
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 400;
  white-space: nowrap;
  padding: 22px 0;
}
nav li > a:hover {
  color: var(--deep);
}
nav li:last-child > a {
  color: var(--deep);
}
.has-submenu ul {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 20px;
  box-shadow: 0 20px 40px #173d3b12;
}
.has-submenu:hover > ul,
.has-submenu:focus-within > ul,
.has-submenu.submenu-open > ul {
  display: block;
}
.has-submenu ul li {
  display: block;
}
.has-submenu ul a {
  display: block;
  white-space: normal;
  padding: 10px 0;
}
.has-submenu ul ul {
  position: static;
  border: 0;
  box-shadow: none;
}
.submenu-toggle {
  border: 0;
  background: none;
  color: var(--ink);
  padding: 5px;
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 24px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 650px;
  background: var(--paper);
}
.hero-copy {
  padding: 90px 50px 35px max(50px, calc((100vw - 1280px) / 2));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.eyebrow {
  display: block;
  font-size: clamp(10px, 2vw, 20px);
  letter-spacing: 0.18em;
  color: var(--deep);
  font-weight: 700;
  margin-bottom: 25px;
}
.hero h1 {
  margin-bottom: 27px;
}
.hero-copy > p {
  max-width: 420px;
  font-size: 17px;
  line-height: 1.8;
}
.actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--deep);
  color: white;
  padding: 16px 23px;
  border: 1px solid var(--deep);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.2s, transform 0.2s;
}
.button:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--muted);
  color: white;
  padding: 16px 23px;
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  transition: background 0.2s, transform 0.2s;
}
.button-secondary:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.text-link {
  font-size: 13px;
  font-weight: 600;
  border: 0;
  background: none;
  padding: 0;
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 50px;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px #28beb922;
}
.hero-rule {
  width: 45px;
  height: 1px;
  background: var(--light);
  margin: 0 8px;
}
.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: var(--light);
}
.hero-visual picture {
  position: absolute;
  inset: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  animation: softZoom 20s ease-in-out infinite alternate;
}
.hero-photo-second {
  opacity: 0;
  animation: heroFade 18s ease-in-out infinite;
  object-position: 65% center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #173d3b55, transparent 55%);
}
.visual-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  border-top: 1px solid #ffffff66;
  padding-top: 22px;
}
.visual-caption > span {
  font-size: 34px;
}
.visual-caption strong {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.section {
  padding-top: 95px;
  padding-bottom: 95px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-end;
  margin-bottom: 42px;
}
.section-heading .eyebrow {
  margin-bottom: 14px;
}
.section-heading h2 {
  max-width: 650px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-image {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-radius: 8px;
}
.service-image img {
  width: 100%;
  aspect-ratio: 1.24;
  object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover img {
  transform: scale(1.04);
}
.service-number {
  position: absolute;
  left: 19px;
  top: 17px;
  background: white;
  border-radius: 30px;
  padding: 3px 10px;
  font-size: 11px;
}
.service-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: white;
  border-radius: 50%;
  font-size: 23px;
  color: var(--deep);
}
.service-copy {
  padding: 23px 0;
}
.service-copy h3 {
  font-size: 25px;
  margin-bottom: 12px;
  max-width: 300px;
}
.service-copy p {
  font-size: 14px;
  max-width: 340px;
}
.about-section {
  background: #edf5f2;
  padding: 80px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.about-art {
  position: relative;
  padding: 0 30px 30px 0;
}
.about-art picture {
  position: relative;
  z-index: 2;
}
.about-art img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  border-radius: 100px 8px 8px 8px;
}
.art-ring {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 180px;
  height: 180px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  z-index: 1;
}
.prose h2,
.prose h3,
.prose h4 {
  margin: 30px 0 18px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  margin: 0 0 18px;
}
.prose ul,
.prose ol {
  padding-left: 24px;
  color: var(--muted);
}
.prose li {
  margin-bottom: 12px;
}
.prose li::marker {
  color: var(--deep);
}
.prose a {
  color: var(--deep);
  text-decoration: underline;
}
.prose img {
  border-radius: 6px;
  margin: 24px 0;
  max-height: 600px;
  object-fit: contain;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  display: block;
  overflow-x: auto;
}
.prose td,
.prose th {
  border-bottom: 1px solid var(--line);
  padding: 16px 12px;
}
.prose .gallery img {
  margin: 0;
}
.team-list {
  display: grid;
  gap: 50px;
}
.team-member {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 45px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.team-member > picture img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}
.team-member h3 {
  margin-bottom: 20px;
  font-size: 32px;
}
.team-member .prose {
  font-size: 14px;
  columns: 2;
  column-gap: 35px;
}
.contact-cta {
  background: var(--light);
  overflow: hidden;
  position: relative;
}
.contact-cta .wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.contact-cta .eyebrow {
  margin-bottom: 14px;
}
.contact-cta h2 {
  margin-bottom: 15px;
  font-size: 44px;
}
.contact-cta p {
  max-width: 560px;
  color: var(--ink);
  font-size: 14px;
}
.button-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  z-index: 1;
  flex-shrink: 0;
}
.button-light:hover {
  color: #fff;
}
.cta-flower {
  font-size: 290px;
  position: absolute;
  right: 200px;
  bottom: -130px;
  color: #ffffff33;
  line-height: 1;
  pointer-events: none;
  animation: slowSpin 70s linear infinite;
}
.site-footer {
  background: var(--ink);
  color: #fff;
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 60px;
  padding-bottom: 50px;
  font-size: 13px;
}
.footer-brand {
  margin-bottom: 20px;
}
.footer-grid p {
  max-width: 270px;
  color: #c8dedb;
}
.footer-grid address {
  font-style: normal;
  color: #c8dedb;
}
.footer-grid a:hover {
  color: var(--light);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff22;
  padding: 20px 0;
  font-size: 11px;
  color: #c8dedb;
  gap: 20px;
}
.footer-bottom > div {
  display: flex;
  gap: 25px;
}
.footer-bottom button {
  color: inherit;
  background: none;
  padding: 0;
  border: 0;
  font-size: inherit;
}
.page-heading {
  position: relative;
  overflow: hidden;
  background: #edf5f2;
  padding: 60px 0 70px;
}
.breadcrumb {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  margin-bottom: 15px;
}
.page-heading h1 {
  font-size: clamp(36px, 5vw, 64px);
  max-width: 950px;
  position: relative;
  z-index: 1;
}
.heading-flower {
  position: absolute;
  right: 5%;
  top: 0;
  font-size: 300px;
  line-height: 1;
  color: #a3d6d64d;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 90px;
}
.article-layout .prose {
  font-size: 17px;
}
.side-note {
  align-self: start;
  background: var(--paper);
  padding: 35px;
  border-radius: 6px;
  position: sticky;
  top: 125px;
}
.side-note h2 {
  font-size: 30px;
  margin-bottom: 20px;
}
.side-note p {
  font-size: 14px;
  margin-bottom: 25px;
}
.price-content p {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  color: var(--ink);
}
.hours-list {
  margin-bottom: 40px;
}
.hours-list > div {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.hours-list strong {
  font-weight: 500;
}
.hours-list span {
  color: var(--muted);
  text-align: right;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
}
.contact-details {
  padding-bottom: 35px;
}
.contact-details > a:first-child {
  font-size: 36px;
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.contact-details > a {
  display: block;
  color: var(--deep);
  overflow-wrap: anywhere;
}
.contact-details p {
  margin: 25px 0 15px;
  color: var(--ink);
}
.contact-form-card {
  align-self: start;
  background: var(--paper);
  padding: 40px;
  border-radius: 8px;
}
.contact-form-card h2 {
  font-size: 35px;
  margin-bottom: 15px;
}
.contact-form-card > p {
  font-size: 13px;
  margin-bottom: 30px;
}
form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #c5d8d4;
  background: #fff;
  color: var(--ink);
  border-radius: 4px;
  padding: 12px;
  margin-top: 6px;
  max-width: 100%;
}
textarea {
  resize: vertical;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.checkbox {
  display: flex;
  gap: 12px;
  font-weight: 400;
  align-items: flex-start;
}
.checkbox input {
  width: 17px;
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: var(--deep);
}
.checkbox a {
  text-decoration: underline;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.notice {
  padding: 17px;
  background: #def0e9;
  border-left: 3px solid var(--deep);
  font-size: 14px;
  margin-bottom: 25px;
}
.notice.error {
  background: #fff0ed;
  border-color: #b83d28;
  color: #8d291c;
}
.button:disabled {
  background: #678581;
  border-color: #678581;
  cursor: not-allowed;
  transform: none;
}
.cookie-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: min(510px, calc(100% - 48px));
  z-index: 100;
  background: #fff;
  padding: 26px;
  box-shadow: 0 10px 80px #173d3b33;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.cookie-panel strong {
  font-size: 18px;
  font-weight: 500;
}
.cookie-panel p {
  font-size: 13px;
  margin: 9px 0;
}
.cookie-panel a {
  font-size: 12px;
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.cookie-actions .button {
  font-size: 11px;
  padding: 12px 16px;
  gap: 10px;
}
.button-outline {
  background: transparent;
  color: var(--deep);
}
.button-outline:hover {
  color: #fff;
}
.gallery-section {
  width: min(1180px, calc(100% - 60px));
  margin: 45px auto;
}
.gallery-section h2 {
  margin-bottom: 25px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item img {
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
}
.gallery.square img {
  aspect-ratio: 1;
}
.gallery-item span {
  font-size: 12px;
  display: block;
  margin-top: 8px;
}
.gallery-item {
  overflow: hidden;
}
#lightbox {
  max-width: 95vw;
  max-height: 95vh;
  padding: 20px;
  border: 0;
  background: #173d3b;
  border-radius: 6px;
}
#lightbox::backdrop {
  background: #000b;
}
#lightbox img {
  max-height: 85vh;
  max-width: 85vw;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  right: 5px;
  top: 5px;
  color: #fff;
  background: var(--deep);
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 25px;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  z-index: 999;
  background: #fff;
  padding: 15px;
}
.skip-link:focus {
  top: 20px;
}
.preview-note {
  background: #fff1bf;
  text-align: center;
  font-size: 11px;
  padding: 6px;
}
.reveal {
  transition: opacity 0.7s, transform 0.7s;
}
.reveal-pending {
  opacity: 0;
  transform: translateY(22px);
}
[hidden] {
  display: none !important;
}
@keyframes softZoom {
  to {
    transform: scale(1.07);
  }
}
@keyframes heroFade {
  0%,
  38%,
  100% {
    opacity: 0;
  }
  48%,
  88% {
    opacity: 1;
  }
}
@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1500px) {
  .hero-copy {
    padding-right: 70px;
  }
}
@media (max-width: 1150px) {
  .wrap {
    width: calc(100% - 60px);
  }
  .brand small {
    display: none;
  }
  .brand b {
    font-size: 24px;
  }
  .header-inner {
    gap: 15px;
  }
  nav ul {
    gap: 13px;
  }
  nav li > a {
    font-size: 11px;
  }
  .hero-copy {
    padding-left: 30px;
    padding-right: 30px;
  }
  .hero {
    min-height: 580px;
  }
  .hero-visual {
    min-height: 580px;
  }
  .about-grid,
  .article-layout,
  .contact-grid {
    gap: 45px;
  }
  .team-member .prose {
    columns: 1;
  }
}
@media (max-width: 950px) {
  .menu-toggle {
    display: block;
  }
  #main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 20px 30px;
    max-height: 75vh;
    overflow: auto;
  }
  #main-nav.open {
    display: block;
  }
  nav ul {
    display: block;
  }
  nav li {
    flex-wrap: wrap;
  }
  nav li > a {
    font-size: 15px;
    padding: 12px 0;
    flex: 1;
  }
  .has-submenu ul {
    position: static;
    box-shadow: none;
    border: 0;
    width: 100%;
    padding: 5px 20px;
    display: none;
  }
  .has-submenu:hover > ul {
    display: none;
  }
  .has-submenu.submenu-open > ul,
  .has-submenu:focus-within > ul {
    display: block;
  }
  .hero {
    min-height: 550px;
  }
  .hero-visual {
    min-height: 550px;
  }
  .hero-copy {
    padding-top: 60px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero .actions {
    gap: 20px;
  }
  .service-grid {
    gap: 20px;
  }
  .service-copy h3 {
    font-size: 23px;
  }
  .footer-grid {
    gap: 25px;
  }
  .footer-grid > div:last-child {
    overflow-wrap: anywhere;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .side-note {
    position: static;
  }
  .contact-grid {
    gap: 35px;
  }
  .contact-form-card {
    padding: 28px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .topline span {
    max-width: 62%;
    font-size: 10px;
  }
  .topline a {
    font-size: 11px;
  }
  .header-inner {
    min-height: 76px;
  }
  .brand-symbol {
    font-size: 42px;
  }
  .brand b {
    font-size: 25px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 52px 20px 30px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-copy > p {
    max-width: 430px;
  }
  .hero-bottom {
    padding-top: 40px;
  }
  .hero-visual {
    min-height: 340px;
  }
  .hero-photo {
    object-position: 75% center;
  }
  .visual-caption {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .section-heading {
    display: block;
    margin-bottom: 30px;
  }
  .section-heading > a {
    display: inline-block;
    margin-top: 20px;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-image img {
    aspect-ratio: 1.45;
  }
  .service-copy {
    padding: 20px 0 25px;
  }
  .service-copy h3 {
    font-size: 30px;
    max-width: none;
  }
  .service-copy p {
    max-width: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-section {
    padding: 50px 0;
  }
  .about-art img {
    aspect-ratio: 1.5;
  }
  .about-art {
    padding-right: 20px;
  }
  .team-member {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .team-member > picture img {
    max-width: 220px;
  }
  .team-member h3 {
    font-size: 30px;
  }
  .contact-cta .wrap {
    display: block;
    padding-top: 45px;
    padding-bottom: 45px;
  }
  .contact-cta .button {
    margin-top: 28px;
  }
  .contact-cta h2 {
    font-size: 38px;
  }
  .cta-flower {
    right: -60px;
    bottom: -50px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 30px;
  }
  .site-footer {
    padding-top: 40px;
  }
  .footer-bottom {
    display: block;
  }
  .footer-bottom > div {
    margin-top: 15px;
    flex-wrap: wrap;
  }
  .page-heading {
    padding: 35px 0 45px;
  }
  .page-heading h1 {
    font-size: 42px;
  }
  .heading-flower {
    font-size: 200px;
    right: -50px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-details > a:first-child {
    font-size: 32px;
  }
  .article-layout .prose {
    font-size: 16px;
  }
  .grid2 {
    gap: 12px;
  }
  .contact-form-card {
    padding: 25px 20px;
  }
  .cookie-panel {
    bottom: 15px;
    right: 15px;
    width: calc(100% - 30px);
    padding: 20px;
  }
  .cookie-actions {
    flex-wrap: wrap;
  }
  .cookie-actions .button {
    flex: 1;
  }
  .hours-list > div {
    gap: 15px;
    font-size: 13px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .side-note {
    padding: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-photo-second {
    display: none;
  }
  .reveal-pending {
    opacity: 1;
    transform: none;
  }
}

/* Přiložené logo DERMA MB v hlavičce i patičce, s původním poměrem stran. */
.site-header .brand .uploaded-logo {
  width: 180px;
  height: auto;
  max-width: 180px;
  max-height: none;
  object-fit: contain;
}
.footer-brand .uploaded-logo {
  width: 200px;
  height: auto;
  max-width: 200px;
  max-height: none;
  object-fit: contain;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .site-header .brand .uploaded-logo {
    width: 145px;
    max-width: 145px;
  }
}

/* Animace hlavního menu: 3px čára se při najetí vykreslí zleva doprava. */
#main-nav li > a {
  position: relative;
  transition:
    color 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

#main-nav li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

#main-nav li > a:hover,
#main-nav li > a:focus-visible {
  color: var(--deep);
}

#main-nav li > a:hover::after,
#main-nav li > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Čára zůstane u rodiče, když kurzor přejde do jeho podmenu. */
#main-nav .has-submenu:hover > a::after,
#main-nav .has-submenu:focus-within > a::after,
#main-nav .has-submenu.submenu-open > a::after {
  transform: scaleX(1);
  transform-origin: left center;
}

#main-nav .has-submenu ul a::after {
  bottom: 4px;
}

@media (min-width: 951px) {
  #main-nav .has-submenu:hover > ul,
  #main-nav .has-submenu:focus-within > ul,
  #main-nav .has-submenu.submenu-open > ul {
    animation: menuDropdownIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes menuDropdownIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 950px) {
  #main-nav li > a::after {
    bottom: 6px;
  }
  #main-nav .has-submenu ul a::after {
    bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #main-nav li > a,
  #main-nav li > a::after {
    transition: none;
  }
  #main-nav li > a:hover,
  #main-nav li > a:focus-visible {
    transform: none;
  }
}

/* Aktuální stránka a rodič jejího podmenu mají čáru trvale. */
#main-nav a[aria-current="page"],
#main-nav li.active-parent > a {
  color: var(--deep);
}

#main-nav a[aria-current="page"]::after,
#main-nav li.active-parent > a::after {
  transform: scaleX(1);
  transform-origin: left center;
}
