/* =========================================================
   Dentální hygiena – Veronika Wiesner (Havlínová)
   ========================================================= */

:root {
  --red:         #ff2d54;
  --red-bright:  #ff0044;
  --red-link:    #ff0033;
  --ink:         #000;
  --ink-soft:    #333;
  --muted:       #666;
  --line:        #e2e2e2;
  --bg:          #fff;
  --bg-soft:     #fafafa;
  --dark:        #222;

  --font-head: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--red-link); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0 0 .5em;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: none;
}

/* ---------- Top bar ---------- */

.topbar {
  background: var(--red-bright);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}

.topbar__inner {
  display: flex;
  gap: 26px;
  align-items: center;
  min-height: 34px;
  flex-wrap: wrap;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
}
.topbar__item:hover { opacity: .85; }

/* ---------- Header / nav ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 80px;
}

.logo img { width: auto; height: 56px; }

.nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover { color: var(--red-link); }
.nav a.is-active { border-bottom: 2px solid var(--red-link); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn--outline {
  font-size: 22px;
  color: var(--red-link);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 25px;
  padding: 7px 26px;
}
.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--sm {
  font-size: 17px;
  padding: 4px 18px;
  border-width: 1px;
  border-color: var(--red-link);
}

.btn--white {
  font-size: 22px;
  color: var(--red-link);
  background: #fff;
  border: 2px solid #fff;
  border-radius: 30px;
  padding: 12px 34px;
}
.btn--white:hover {
  background: transparent;
  color: #fff;
}

.btn--block {
  display: block;
  width: 100%;
  border-width: 1px;
  border-color: var(--red-link);
  border-radius: 4px;
  font-size: 20px;
  padding: 12px 20px;
}

/* ---------- Hero ---------- */

.hero {
  padding: 60px 0 70px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: clamp(30px, 5vw, 41px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: .15em;
}

.hero__subtitle {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 400;
  margin-bottom: 1.2em;
}

.hero__lead {
  max-width: 520px;
  margin: 0 0 2em;
  font-size: 15px;
}

/* ---------- Sections ---------- */

.section-title {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(26px, 4vw, 38px);
  text-align: center;
  margin-bottom: .35em;
}

.section-title--accent {
  color: var(--red);
  text-align: right;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  margin: 0 0 46px;
}

/* ---------- Service cards ---------- */

.services {
  background: var(--bg-soft);
  padding: 60px 0 70px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 22px 26px;
  text-align: center;
  height: 100%;
}

.card:nth-child(2) { margin-top: 12px; }
.card:nth-child(3) { margin-top: 24px; }

.card__title {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 700;
  color: var(--red-link);
  margin-bottom: .7em;
}

.card__text {
  font-size: 13px;
  line-height: 1.75;
  text-align: left;
  margin: 0 0 1.4em;
}

/* ---------- Průběh vyšetření ---------- */

.procedure {
  padding: 70px 0;
  background: #fff;
}

.procedure__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.procedure__media img {
  width: 100%;
  object-fit: cover;
}

.procedure__list {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}
.procedure__list li { margin-bottom: .5em; }

/* ---------- Contact section (home) ---------- */

.contact-section {
  padding: 60px 0 80px;
  background: #fff;
}

.contact-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.contact-section__media img { width: 100%; }

/* ---------- Forms ---------- */

.form__row { margin-bottom: 14px; }

.form__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  background: #eee;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 13px 16px;
}
.form__input:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
.form__input.has-error { border-color: var(--red); background: #fdeef1; }

.form__input--area { resize: vertical; min-height: 140px; }

.form__row--captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 20px;
}

.form__captcha-label {
  font-family: var(--font-head);
  font-size: 15px;
  white-space: nowrap;
}

.form__input--captcha { width: 90px; }

.form__error {
  display: block;
  color: var(--red);
  font-size: 12px;
  margin-top: 4px;
}

/* Honeypot – hidden from humans, visible to naive bots. */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 14px;
  margin: 0 0 18px;
}
.alert--success { background: #e9f7ea; border: 1px solid #b9e0bd; }
.alert--error   { background: #fdeef1; border: 1px solid #f2b8c3; }

/* ---------- Page head ---------- */

.page-head { padding: 50px 0 10px; }

.page-head h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
}

.page-head--pricelist { padding-bottom: 30px; }

.page-head__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.page-head__inner h1 { margin: 0; }

.page-head__note {
  font-size: 14px;
  font-weight: 400;
}

/* ---------- About page ---------- */

.about { padding: 20px 0 70px; }

.about__inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 50px;
  align-items: start;
}

.about__name {
  color: var(--red);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
}

.about p { font-size: 15px; }

.quote {
  margin: 0 0 1.8em;
  padding-left: 16px;
  border-left: 4px solid var(--red);
  font-style: italic;
  font-weight: 600;
  font-size: 14px;
}

.about__photo { margin: 0 0 34px; }

.panel {
  border: 1px solid var(--line);
  padding: 22px 24px 20px;
  margin-bottom: 24px;
}

.panel__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: .8em;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-head);
  font-size: 15px;
}
.hours th,
.hours td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  font-weight: 500;
}
.hours td { text-align: right; }

.hours__note { font-size: 14px; margin: 14px 0 0; }

.accordion { border: 1px solid var(--dark); }

.accordion__summary {
  list-style: none;
  cursor: pointer;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::after {
  content: "⊕";
  color: var(--red-link);
  font-size: 18px;
}
.accordion[open] .accordion__summary::after { content: "⊖"; }

.accordion__body { padding: 20px; }
.accordion__body p { margin: 0 0 .6em; font-size: 15px; }

.address { font-weight: 600; }

.map { margin-top: 16px; }
.map iframe { display: block; width: 100%; border: 0; }

/* ---------- Price list ---------- */

.pricelist { padding: 10px 0 70px; }

.pricelist__table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
}

.pricelist__table th,
.pricelist__table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  vertical-align: middle;
  text-align: left;
}

.pricelist__table thead th {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
}

.pricelist__title {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.pricelist__desc {
  display: block;
  font-size: 15px;
  line-height: 1.6;
}

.pricelist__price {
  font-family: var(--font-head);
  font-size: 15px;
  white-space: nowrap;
  width: 160px;
}

/* ---------- Footer CTA ---------- */

.footer-cta {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 90px 0 80px;
  position: relative;
}

/* Slanted top edge, like the original. */
.footer-cta::before {
  content: "";
  position: absolute;
  top: -38px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--red);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.footer-cta__name {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: .5em;
}

.footer-cta__tagline {
  font-size: 15px;
  margin: 0 0 2.4em;
}

.footer-cta__details {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 12vw, 170px);
  flex-wrap: wrap;
  margin-bottom: 2.6em;
  font-size: 17px;
}
.footer-cta__details p { margin: 0; }
.footer-cta__details a { color: #fff; text-decoration: none; }
.footer-cta__details a:hover { text-decoration: underline; }

/* ---------- Site footer ---------- */

.site-footer {
  background: var(--dark);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  padding: 12px 0;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--red-link); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .card:nth-child(2),
  .card:nth-child(3) { margin-top: 0; }

  .procedure__inner,
  .contact-section__inner,
  .about__inner,
  .page-head__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-title--accent { text-align: left; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .nav li { border-top: 1px solid var(--line); }
  .nav a { display: block; padding: 12px 0; }

  .site-header__inner { position: relative; }
}

@media (max-width: 560px) {
  .topbar__inner { gap: 14px; font-size: 12px; padding-block: 6px; }
  .hero { padding: 40px 0 50px; }

  .pricelist__table thead { display: none; }
  .pricelist__table,
  .pricelist__table tbody,
  .pricelist__table tr,
  .pricelist__table td { display: block; width: 100%; }
  .pricelist__table tr { border-bottom: 1px solid var(--line); }
  .pricelist__table td { border: 0; padding: 12px 16px; }
  .pricelist__price {
    padding-top: 0 !important;
    font-weight: 600;
    color: var(--red-link);
  }
}
