/**
 * Демо «dental»: многостраничный сайт стоматологии «Ясный день».
 *
 * Палитра, шрифты и скругления те же, что у прежней одностраничной
 * версии: сайт вырос, но узнаётся с первого взгляда. Мобильная вёрстка
 * первая, медиазапросы собраны у своих блоков.
 */

/*
 * Светлая клиническая палитра. Текст #17303d на #f4f8fa даёт 11.2 : 1,
 * приглушённый #4d6673 - 5.6 : 1, белый на #2f7d95 - 4.6 : 1.
 */
body.dl {
  --dl-bg: #f4f8fa;
  --dl-surface: #ffffff;
  --dl-text: #17303d;
  --dl-muted: #4d6673;
  --dl-blue: #2f7d95;
  --dl-deep: #235f73;
  --dl-line: #d6e4ea;
  --dl-soft: #e6f2f6;
  --dl-danger: #b42318;
  /* Поля по краям: не меньше 1rem, а на широком экране - столько, чтобы
     содержимое не расползалось шире 76rem. */
  --dl-pad: max(1rem, calc((100% - 76rem) / 2));
  background-color: var(--dl-bg);
  color: var(--dl-text);
}

/* Якорь не должен прятаться под липкой шапкой. */
body.dl [id] {
  scroll-margin-top: 5.5rem;
}

/* ------------------------------------------------------------------------
   Шапка и меню
   ------------------------------------------------------------------------ */

.dl-sentinel {
  display: block;
  height: 1px;
}

.dl-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgb(244 248 250 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.dl-header.is-stuck {
  border-bottom-color: var(--dl-line);
  box-shadow: 0 6px 24px rgb(23 48 61 / 0.06);
}

.dl-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding-inline: var(--dl-pad);
}

.dl-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Солнце на голубом небе: «ясный день» без картинки. */
.dl-logo__mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd27a 0 30%, transparent 31%), var(--dl-blue);
}

.dl-nav {
  display: none;
  gap: 0.25rem;
}

.dl-nav__link {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--dl-muted);
  font-size: 0.9375rem;
  transition:
    color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out);
}

.dl-nav__link:hover,
.dl-nav__link[aria-current="page"] {
  color: var(--dl-text);
  background-color: var(--dl-soft);
}

.dl-nav__link[aria-current="page"] {
  font-weight: 600;
}

.dl-header__phone {
  display: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dl-header__cta {
  display: none;
}

.dl-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--dl-line);
  border-radius: 999px;
  background-color: var(--dl-surface);
}

/*
 * Меню лежит под шапкой (z-index ниже), поэтому кнопка закрытия всегда
 * сверху. Отступ сверху с запасом на плашку демо над шапкой.
 */
.dl-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  overflow-y: auto;
  padding: 7.5rem var(--dl-pad) 2.5rem;
  background-color: var(--dl-bg);
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.dl-menu.is-open {
  opacity: 1;
  transform: none;
}

.dl-menu__inner {
  display: grid;
  gap: 0.25rem;
}

.dl-menu__link {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--dl-line);
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.dl-menu__link[aria-current="page"] {
  color: var(--dl-blue);
}

.dl-menu__phone {
  margin: 1.5rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

@media (min-width: 560px) {
  .dl-header__cta {
    display: inline-flex;
  }
}

@media (min-width: 960px) {
  .dl-nav {
    display: flex;
  }

  .dl-burger,
  .dl-menu {
    display: none;
  }
}

@media (min-width: 1180px) {
  .dl-header__phone {
    display: inline;
  }
}

/* ------------------------------------------------------------------------
   Кнопки и общие детали
   ------------------------------------------------------------------------ */

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background-color: var(--dl-blue);
  color: #ffffff;
  font-weight: 600;
  transition: transform var(--dur-fast) var(--ease-out);
}

.dl-btn:hover {
  transform: translateY(-2px);
}

.dl-btn:active {
  transform: scale(0.98);
}

.dl-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.dl-btn--ghost {
  border: 1px solid #cfe0e7;
  background-color: transparent;
  color: var(--dl-text);
}

.dl-btn--small {
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

.dl-btn--light {
  background-color: #ffffff;
  color: var(--dl-deep);
}

.dl-lead {
  margin-top: 1.25rem;
  max-width: 46ch;
  color: var(--dl-muted);
  font-size: 1.0625rem;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.dl-more {
  color: var(--dl-blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.dl-note {
  margin-top: 1.5rem;
  max-width: 60ch;
  color: var(--dl-muted);
  font-size: 0.9375rem;
}

.dl-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dl-line);
}

.dl-fact {
  display: grid;
  gap: 0.125rem;
  align-content: start;
}

.dl-fact__value {
  color: var(--dl-blue);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dl-fact__label {
  color: var(--dl-muted);
  font-size: 0.875rem;
}

/* ------------------------------------------------------------------------
   Секции
   ------------------------------------------------------------------------ */

.dl-section {
  padding: 4rem var(--dl-pad);
}

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

.dl-section--round {
  border-radius: 32px 32px 0 0;
}

.dl-section--flush {
  padding-top: 0;
}

.dl-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 2rem;
}

.dl-title {
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.1;
}

.dl-section__head .dl-title {
  margin-bottom: 0;
}

/* Первый экран главной */

.dl-hero {
  display: grid;
  gap: 2.5rem;
  padding: 3rem var(--dl-pad) 3.5rem;
}

.dl-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 7vw, 4rem);
  line-height: 1.05;
}

.dl-hero__photo {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  aspect-ratio: 6 / 5;
}

.dl-values {
  display: grid;
  gap: 1.5rem;
  padding: 0 var(--dl-pad) 4rem;
}

.dl-values h2 {
  font-size: 1.25rem;
}

.dl-values p {
  margin-top: 0.5rem;
  max-width: 38ch;
  color: var(--dl-muted);
  font-size: 0.9375rem;
}

/* Начало внутренней страницы */

.dl-page-head {
  padding: 2.5rem var(--dl-pad);
}

.dl-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  color: var(--dl-muted);
  font-size: 0.875rem;
}

.dl-crumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: #9db4bf;
}

.dl-crumbs a {
  text-decoration: underline;
  text-decoration-color: #b9ced7;
  text-underline-offset: 3px;
}

/* «Профессиональная» в 36 px шире экрана в 320 px: слово переносится,
   а не распирает страницу вбок. */
.dl-page-head__title {
  max-width: 18ch;
  margin-top: 1rem;
  font-size: clamp(2rem, 7vw, 3.75rem);
  line-height: 1.05;
  overflow-wrap: break-word;
  hyphens: auto;
}

.dl-intro {
  display: grid;
  gap: 2rem;
}

.dl-intro .dl-facts,
.dl-intro .dl-actions {
  margin-top: 0;
}

.dl-intro__photo {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  aspect-ratio: 2 / 1;
}

/* Разделы услуг */

.dl-services {
  display: grid;
  gap: 1rem;
}

.dl-service {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem;
  border-radius: 20px;
  background-color: var(--dl-bg);
}

.dl-service:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgb(23 48 61 / 0.08);
}

.dl-service__title {
  font-size: 1.25rem;
}

.dl-service__text,
.dl-service__list {
  color: var(--dl-muted);
  font-size: 0.9375rem;
}

.dl-service__list li {
  position: relative;
  padding-left: 1rem;
}

.dl-service__list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--dl-blue);
}

.dl-service__price {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--dl-blue);
  font-size: 1.125rem;
  font-weight: 700;
}

/* Шаги */

.dl-steps {
  display: grid;
  gap: 1.5rem;
}

.dl-step {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding-top: 1.25rem;
  border-top: 2px solid var(--dl-line);
}

.dl-step__title {
  font-size: 1.1875rem;
}

.dl-step__text {
  color: var(--dl-muted);
  font-size: 0.9375rem;
}

/* Врачи */

.dl-doctors__grid {
  display: grid;
  /* На телефоне два врача в ряд: по одному страница вытягивалась вчетверо. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr));
  gap: 1.5rem 1rem;
}

.dl-doctor {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.dl-doctor img {
  width: 100%;
  margin-bottom: 0.625rem;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 1;
}

.dl-doctor__name {
  font-size: 1.0625rem;
  font-weight: 600;
  transition: color var(--dur-fast) var(--ease-out);
}

.dl-doctor:hover .dl-doctor__name {
  color: var(--dl-blue);
}

.dl-doctor__role,
.dl-doctor__exp {
  color: var(--dl-muted);
  font-size: 0.875rem;
}

.dl-profile {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--dl-line);
}

.dl-profile:first-child {
  padding-top: 0;
}

.dl-profile:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.dl-profile__photo {
  width: 100%;
  max-width: 22rem;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 1;
}

.dl-profile__body {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  justify-items: start;
}

.dl-profile__name {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.dl-profile__role {
  color: var(--dl-blue);
  font-weight: 600;
}

.dl-profile__about {
  max-width: 52ch;
}

.dl-profile__meta,
.dl-legal {
  display: grid;
  gap: 0.75rem;
}

.dl-profile__meta {
  margin-bottom: 0.75rem;
}

.dl-profile__meta dt,
.dl-legal dt {
  color: var(--dl-muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dl-legal {
  max-width: 44rem;
}

.dl-legal div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dl-line);
}

/* Цены */

.dl-pricelist__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.dl-pricelist__nav a {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background-color: var(--dl-bg);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.dl-pricelist__nav a:hover {
  background-color: var(--dl-soft);
}

.dl-pricelist__group + .dl-pricelist__group {
  margin-top: 3rem;
}

.dl-pricelist__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  max-width: 52rem;
  margin-bottom: 0.5rem;
}

.dl-pricelist__title {
  font-size: 1.5rem;
}

.dl-rows {
  max-width: 52rem;
}

.dl-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--dl-line);
}

.dl-row__price {
  flex: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ------------------------------------------------------------------------
   Запись на приём
   ------------------------------------------------------------------------ */

.dl-booking {
  display: grid;
  gap: 2rem;
}

.dl-booking__intro .dl-title {
  margin-bottom: 0;
}

.dl-form {
  display: grid;
  gap: 2rem;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--dl-line);
  border-radius: 28px;
  background-color: var(--dl-surface);
}

/* У fieldset ширина по умолчанию не меньше содержимого: без min-width
   лента дней растянула бы форму и всю страницу вбок. */
.dl-form__step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.dl-form__legend {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
}

.dl-form__num {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: var(--dl-blue);
  color: #ffffff;
  font-size: 0.875rem;
}

.dl-form__hint {
  margin: -0.5rem 0 0.75rem;
  color: var(--dl-muted);
  font-size: 0.875rem;
}

.dl-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0.625rem;
}

/* Поле выбора спрятано внутри подписи. Без position фокус на нём
   прокручивал бы страницу туда, где оно оказалось бы без опоры. */
.dl-choice,
.dl-day,
.dl-time {
  position: relative;
  display: block;
  cursor: pointer;
}

.dl-choice__box,
.dl-day__box,
.dl-time__box {
  display: grid;
  border: 1.5px solid var(--dl-line);
  background-color: var(--dl-bg);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.dl-choice__box {
  gap: 0.125rem;
  height: 100%;
  padding: 0.875rem 1rem;
  border-radius: 16px;
}

.dl-choice__title {
  font-weight: 600;
}

.dl-choice__note {
  color: var(--dl-muted);
  font-size: 0.8125rem;
}

.dl-choice:hover .dl-choice__box,
.dl-day:hover .dl-day__box,
.dl-time:hover .dl-time__box {
  border-color: #a9c9d5;
}

.dl-choice input:checked + .dl-choice__box {
  border-color: var(--dl-blue);
  background-color: var(--dl-soft);
  box-shadow: inset 0 0 0 1px var(--dl-blue);
}

.dl-choice input:focus-visible + .dl-choice__box,
.dl-day input:focus-visible + .dl-day__box,
.dl-time input:focus-visible + .dl-time__box {
  outline: 2px solid var(--dl-blue);
  outline-offset: 2px;
}

.dl-days {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0.125rem 0.75rem;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.dl-day {
  flex: none;
  scroll-snap-align: start;
}

.dl-day__box {
  justify-items: center;
  width: 4.25rem;
  padding: 0.625rem 0.25rem;
  border-radius: 16px;
}

.dl-day__weekday,
.dl-day__note {
  color: var(--dl-muted);
  font-size: 0.75rem;
}

.dl-day__date {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
}

.dl-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.5rem;
}

.dl-time__box {
  place-items: center;
  padding: 0.625rem 0;
  border-radius: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.dl-day input:checked + .dl-day__box,
.dl-time input:checked + .dl-time__box {
  border-color: var(--dl-blue);
  background-color: var(--dl-blue);
  color: #ffffff;
}

.dl-day input:checked + .dl-day__box span {
  color: inherit;
}

.dl-day input:disabled + .dl-day__box,
.dl-time input:disabled + .dl-time__box {
  border-style: dashed;
  background-color: transparent;
  color: var(--dl-muted);
  cursor: not-allowed;
}

.dl-day input:disabled + .dl-day__box {
  opacity: 0.6;
}

.dl-time input:disabled + .dl-time__box {
  font-weight: 400;
  text-decoration: line-through;
}

.dl-fields {
  display: grid;
  gap: 1rem;
}

.dl-field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.dl-field input,
.dl-field textarea {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1.5px solid var(--dl-line);
  border-radius: 12px;
  background-color: var(--dl-bg);
  resize: vertical;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.dl-field input:focus-visible,
.dl-field textarea:focus-visible {
  border-color: var(--dl-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgb(47 125 149 / 0.25);
}

.dl-field [aria-invalid="true"] {
  border-color: var(--dl-danger);
}

.dl-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  cursor: pointer;
}

.dl-consent input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: var(--dl-blue);
}

.dl-consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-error {
  margin-top: 0.375rem;
  color: var(--dl-danger);
  font-size: 0.8125rem;
  font-weight: 600;
}

.dl-form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dl-line);
}

.dl-form__summary {
  flex: 1 1 16rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------------
   Отзывы, вопросы, контакты
   ------------------------------------------------------------------------ */

/*
 * Отзывы лентой вбок: карточки одной высоты, прилипают к краю при
 * листании. Край ленты выходит за поля страницы, как у витрины.
 */
.dl-reviews {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 22rem);
  gap: 1rem;
  margin-inline: calc(-1 * var(--dl-pad));
  padding: 0 var(--dl-pad) 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: var(--dl-pad);
  scroll-snap-type: x mandatory;
}

.dl-reviews:focus-visible {
  outline: 2px solid var(--dl-blue);
  outline-offset: 4px;
}

.dl-review {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 20px;
  background-color: var(--dl-bg);
}

.dl-review__text {
  line-height: 1.6;
}

.dl-review__author {
  display: grid;
  margin-top: auto;
  font-weight: 600;
}

.dl-review__topic {
  color: var(--dl-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}

/* Главная: заголовок вопросов слева, список справа. */
@media (min-width: 900px) {
  .dl-faq-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    column-gap: 3rem;
  }
}

/*
 * Сколько стоит под ключ: три случая карточками. В каждой - состав
 * строками с ценой и итог крупно синим внизу.
 */
.dl-packages__grid {
  display: grid;
  gap: 1rem;
}

.dl-package {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--dl-line);
  border-radius: 20px;
  background-color: var(--dl-surface);
}

.dl-package__title {
  font-size: 1.375rem;
}

.dl-package__note {
  color: var(--dl-muted);
}

.dl-package__rows {
  display: grid;
  gap: 0.5rem;
  margin-block: 0.5rem;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}

.dl-package__rows li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.dl-package__price {
  flex: none;
  color: var(--dl-muted);
  white-space: nowrap;
}

.dl-package__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--dl-line);
}

.dl-package__total b {
  color: var(--dl-deep);
  font-family: var(--font-display);
  font-size: 1.75rem;
  white-space: nowrap;
}

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

.dl-faq {
  display: grid;
  gap: 0.625rem;
  max-width: 52rem;
}

.dl-faq__item {
  border-radius: 16px;
  background-color: var(--dl-surface);
}

.dl-faq__item summary {
  position: relative;
  padding: 1.125rem 3rem 1.125rem 1.25rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.dl-faq__item summary::-webkit-details-marker {
  display: none;
}

.dl-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  color: var(--dl-blue);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform var(--dur-fast) var(--ease-out);
}

.dl-faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.dl-faq__answer {
  max-width: 64ch;
  padding: 0 1.25rem 1.25rem;
  color: var(--dl-muted);
}

.dl-contacts__grid {
  display: grid;
  gap: 2rem;
}

.dl-contacts__info {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.dl-contacts__address {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.3;
}

.dl-contacts__way {
  display: grid;
  gap: 0.5rem;
  color: var(--dl-muted);
}

.dl-contacts__way li {
  position: relative;
  padding-left: 1.25rem;
}

.dl-contacts__way li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--dl-blue);
}

.dl-hours {
  display: grid;
  max-width: 26rem;
}

.dl-hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--dl-line);
}

.dl-hours__row dd {
  flex: none;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dl-contacts__links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
}

.dl-contacts__phone {
  color: var(--dl-blue);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.dl-map {
  display: grid;
  gap: 0.5rem;
}

.dl-map svg {
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.dl-map figcaption {
  color: var(--dl-muted);
  font-size: 0.8125rem;
}

/* Полоса с призывом. Белый на #235f73 даёт 7.1 : 1. */
.dl-band {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding: 2rem;
  border-radius: 28px;
  background-color: var(--dl-deep);
  color: #ffffff;
}

.dl-band__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
}

.dl-band__text {
  max-width: 50ch;
  margin-top: 0.5rem;
  color: rgb(255 255 255 / 0.85);
}

.dl-band :focus-visible,
.dl-footer :focus-visible {
  outline-color: #ffffff;
}

/* ------------------------------------------------------------------------
   Подвал
   ------------------------------------------------------------------------ */

.dl-footer {
  padding: 3.5rem var(--dl-pad) 2rem;
  background-color: var(--dl-text);
  color: #e3eef2;
}

.dl-footer__grid {
  display: grid;
  gap: 2rem;
}

.dl-footer__brand p {
  max-width: 30ch;
  margin-top: 0.875rem;
  color: rgb(227 238 242 / 0.75);
  font-size: 0.9375rem;
}

.dl-footer__heading {
  margin-bottom: 0.875rem;
  color: rgb(227 238 242 / 0.6);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dl-footer__list {
  display: grid;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.dl-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-footer .dl-hours__row {
  border-bottom-color: rgb(227 238 242 / 0.15);
  font-size: 0.9375rem;
}

.dl-footer__legal {
  display: grid;
  gap: 0.375rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(227 238 242 / 0.15);
  color: rgb(227 238 242 / 0.65);
  font-size: 0.8125rem;
}

.dl-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-footer__studio {
  margin-top: 0.5rem;
}

.dl-footer__studio a {
  color: #ffffff;
}

/* ------------------------------------------------------------------------
   Ширина от планшета
   ------------------------------------------------------------------------ */

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

  .dl-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .dl-fields {
    grid-template-columns: 1fr 1fr;
  }

  .dl-field--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  body.dl {
    --dl-pad: max(3rem, calc((100% - 76rem) / 2));
  }

  .dl-hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding-block: 4rem 5rem;
  }

  .dl-values {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .dl-section {
    padding-block: 5rem;
  }

  .dl-section--flush {
    padding-top: 0;
  }

  .dl-form {
    padding: 2rem;
  }

  .dl-profile {
    grid-template-columns: 16rem 1fr;
    gap: 2.5rem;
  }

  .dl-footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .dl-contacts__grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
    gap: 3rem;
  }

  /* Без схемы сведения о дороге и часах сами встают в две колонки. */
  .dl-contacts__grid--plain {
    grid-template-columns: 1fr;
  }

  .dl-contacts__grid--plain .dl-contacts__info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }

  .dl-band {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 2.5rem 3rem;
  }
}

@media (min-width: 1024px) {
  .dl-doctors__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 1.25rem;
  }

  .dl-services {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .dl-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1100px) {
  .dl-booking {
    grid-template-columns: 20rem 1fr;
    align-items: start;
    gap: 3rem;
  }

  .dl-booking__intro {
    position: sticky;
    top: 6rem;
  }
}
