/* основные стили */

:root {
  --color-primary: #30BCAD;
  --color-text: #484848;
  --color-bg: #FFFFFF;
  --color-bg-block: #FFFFFF;
  --color-placeholder: #E0E0E0;
  --color-border: #EBEBEB;
  --color-muted: #6E6E6E;
  --color-heading: #404040;
  /* фон первого экрана под тон фото */
  --hero-bg: #D1C9C1;
  /* чуть приглушить снимок */
  --hero-photo-filter: contrast(0.98) saturate(0.97) brightness(1.01);
  --max-width: 1200px;
  --section-gap: 100px;
  --divider-gap: 70px;
  --title-gap: 12px;
  --subtitle-gap: 64px;
  --heading-text-gap: 12px;
  --text-gap: 14px;
  --block-gap: 28px;
  --divider-icon-size: 30px;
  --divider-icon-glyph: 14px;
  --header-height: 88px;
  --font-base: "PT Sans", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background-color: var(--color-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
  touch-action: none;
}

body.modal-open .chat-widget {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

body.modal-open .cookie-banner {
  visibility: hidden;
  pointer-events: none;
}

/* волны по бокам, к центру затухают */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.38;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'%3E%3Cg transform='rotate(45 140 140)' fill='none' stroke='%2330BCAD' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M-90 70 Q-10 42 70 70 T230 70 T390 70'/%3E%3Cpath d='M-90 210 Q-10 182 70 210 T230 210 T390 210'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 280px 280px;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) max(0px, calc(50% - 600px - 280px)),
    rgba(0, 0, 0, 0.22) max(0px, calc(50% - 600px - 210px)),
    rgba(0, 0, 0, 0.1) max(0px, calc(50% - 600px - 150px)),
    rgba(0, 0, 0, 0.04) max(0px, calc(50% - 600px - 90px)),
    rgba(0, 0, 0, 0.01) max(0px, calc(50% - 600px - 45px)),
    transparent max(0px, calc(50% - 600px - 30px)),
    transparent min(100%, calc(50% + 600px + 30px)),
    rgba(0, 0, 0, 0.01) min(100%, calc(50% + 600px + 45px)),
    rgba(0, 0, 0, 0.04) min(100%, calc(50% + 600px + 90px)),
    rgba(0, 0, 0, 0.1) min(100%, calc(50% + 600px + 150px)),
    rgba(0, 0, 0, 0.22) min(100%, calc(50% + 600px + 210px)),
    rgba(0, 0, 0, 0.45) min(100%, calc(50% + 600px + 280px)),
    rgba(0, 0, 0, 0.65) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.45) max(0px, calc(50% - 600px - 280px)),
    rgba(0, 0, 0, 0.22) max(0px, calc(50% - 600px - 210px)),
    rgba(0, 0, 0, 0.1) max(0px, calc(50% - 600px - 150px)),
    rgba(0, 0, 0, 0.04) max(0px, calc(50% - 600px - 90px)),
    rgba(0, 0, 0, 0.01) max(0px, calc(50% - 600px - 45px)),
    transparent max(0px, calc(50% - 600px - 30px)),
    transparent min(100%, calc(50% + 600px + 30px)),
    rgba(0, 0, 0, 0.01) min(100%, calc(50% + 600px + 45px)),
    rgba(0, 0, 0, 0.04) min(100%, calc(50% + 600px + 90px)),
    rgba(0, 0, 0, 0.1) min(100%, calc(50% + 600px + 150px)),
    rgba(0, 0, 0, 0.22) min(100%, calc(50% + 600px + 210px)),
    rgba(0, 0, 0, 0.45) min(100%, calc(50% + 600px + 280px)),
    rgba(0, 0, 0, 0.65) 100%
  );
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  /* клик уходит на ссылку-обёртку */
  pointer-events: none;
}

canvas.img-protect {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

iframe,
video,
embed,
object {
  max-width: 100%;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: filter 0.2s ease;
}

a:hover {
  filter: brightness(0.9);
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 1em;
}

/* секции */

.section {
  position: relative;
  padding: var(--section-gap) 0;
  background-color: var(--color-bg);
}

/* отступ между секциями с разделителем ~80px */
.section:has(+ .section-divider) {
  padding-bottom: 0;
}

.section-divider + .section {
  padding-top: 0;
}

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

/* разделитель */
.section-divider {
  position: relative;
  height: 1px;
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: var(--divider-gap) auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(48, 188, 173, 0.06) 15%,
    rgba(48, 188, 173, 0.2) 50%,
    rgba(48, 188, 173, 0.06) 85%,
    transparent 100%
  );
}

.section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--divider-icon-size);
  height: var(--divider-icon-size);
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330BCAD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='3.2'/%3E%3Ccircle cx='18' cy='12' r='3.2'/%3E%3Cpath d='M9.2 12h5.6M3 12H1.5M23 12h-1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: var(--divider-icon-glyph) var(--divider-icon-glyph);
  border: 1px solid rgba(48, 188, 173, 0.4);
  border-radius: 50%;
  box-sizing: border-box;
  opacity: 0.85;
}

.section__title {
  margin: 0 0 var(--title-gap);
  font-size: clamp(26px, 3.5vw, 32px);
  line-height: 1.25;
  font-weight: 700;
  text-align: left;
  color: var(--color-heading);
}

/* заголовок без подзаголовка (карта на главной) */
.section__title:has(+ .map-block),
.section__title:has(+ .price-table-wrap),
.section__title:has(+ .cards-grid),
.section__title:has(+ .cards-grid--salons) {
  margin-bottom: var(--subtitle-gap);
}

.section__subtitle {
  margin: 0 0 var(--subtitle-gap);
  max-width: 720px;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--color-muted);
}

.section__lead {
  margin: 0;
  max-width: 48ch;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text);
  text-align: left;
}

.section > .container > .section__title:first-child {
  margin-bottom: var(--subtitle-gap);
}

.section > .container > .section__title:first-child:has(+ .section__subtitle) {
  margin-bottom: var(--title-gap);
}

.section__title:has(+ .section__subtitle) {
  margin-bottom: var(--title-gap);
}

/* заголовок внутри секции без .section__title */
.section .container > h2:not(.section__title) {
  margin: 0 0 16px;
  text-align: left;
}

.section .container > h2:not(.section__title) + p {
  margin: 0 0 var(--text-gap);
  font-size: 17px;
  color: var(--color-muted);
  text-align: left;
}

.section .container > h2:not(.section__title) + p + :is(p, ul, .schedule__list) {
  margin-top: 0;
  text-align: left;
}

/* кнопки */

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 24px;
  cursor: pointer;
  transition:
    filter 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.btn:hover {
  filter: brightness(0.95);
}

.btn--primary {
  background: linear-gradient(180deg, #3ec9bb 0%, #30BCAD 52%, #2aab9d 100%);
  color: #fff;
  border-color: #2aab9d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 #24968a,
    0 6px 14px rgba(48, 188, 173, 0.35);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 0 #24968a,
    0 4px 10px rgba(48, 188, 173, 0.3);
}

.btn--primary:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.12),
    0 1px 0 #24968a;
}

.btn--outline {
  background: linear-gradient(180deg, #FFFFFF 0%, #f3fbfa 100%);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 0 rgba(48, 188, 173, 0.25),
    0 4px 10px rgba(48, 188, 173, 0.18);
}

.btn--outline:hover {
  background: linear-gradient(180deg, #3ec9bb 0%, #30BCAD 100%);
  color: #fff;
  border-color: #2aab9d;
  filter: none;
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 0 #24968a,
    0 4px 10px rgba(48, 188, 173, 0.3);
}

/* шапка */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #30BCAD;
  border-bottom: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.main {
  padding-top: var(--header-height);
  background-color: var(--color-bg);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-height);
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: nowrap;
}

.header__logo {
  flex-shrink: 0;
  display: block;
  line-height: 0;
  background: none;
  filter: none !important;
}

.header__logo img {
  display: block;
  height: 68px;
  width: auto;
  background: none;
  mix-blend-mode: normal;
  filter: none !important;
  opacity: 1;
}

.header__logo:hover,
.header__logo:focus,
.header a.header__logo:hover {
  filter: none !important;
  opacity: 1;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2px 4px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  border-radius: 16px;
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.nav__link:hover,
.nav__link--active {
  color: #FFFFFF;
  opacity: 1;
  filter: none;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.12);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  line-height: 1.2;
}

.header__phone {
  font-weight: 700;
  font-size: 16px;
  color: #FFFFFF;
  white-space: nowrap;
}

.header__phone:hover {
  color: #FFFFFF;
  opacity: 0.9;
  filter: none;
}

.header__email {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.header__email:hover {
  color: #FFFFFF;
  opacity: 0.9;
  filter: none;
}

/* кнопка «Аа» */
.a11y-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #eef9f7 100%);
  color: #1F7A71;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 0 rgba(32, 110, 102, 0.2),
    0 4px 10px rgba(0, 0, 0, 0.18);
  transition: opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.a11y-toggle:hover {
  opacity: 1;
  border-color: #FFFFFF;
  color: #1F7A71;
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 0 rgba(32, 110, 102, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.16);
}

.a11y-toggle[aria-pressed="true"] {
  background: linear-gradient(180deg, #3ec9bb 0%, #30BCAD 100%);
  border-color: #FFFFFF;
  color: #FFFFFF;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 2px 0 #24968a,
    0 4px 10px rgba(0, 0, 0, 0.2);
}

.a11y-toggle__icon {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

/* бургер */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 6px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.burger:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(1px);
}

.burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger--open .burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger--open .burger__line:nth-child(2) {
  opacity: 0;
}

.burger--open .burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* первый экран */

.hero {
  position: relative;
  padding: 28px 0 20px;
  background-color: var(--hero-bg);
  margin-top: 0;
  overflow: visible;
}

.hero + .section-divider {
  margin-top: 40px;
  margin-bottom: 40px;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.92fr);
  align-items: center;
  gap: var(--text-gap) 32px;
  width: 100%;
  min-height: 520px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  width: 100%;
  align-self: center;
  padding-bottom: 0;
  text-align: left;
}

.hero__title {
  margin: 0 0 12px;
  max-width: 700px;
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-heading);
  text-align: left;
}

.hero__subtitle {
  margin: 0 0 20px;
  max-width: 600px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-heading);
  text-align: left;
}

.hero__text {
  margin: 0 0 24px;
  max-width: 500px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-muted);
  text-align: left;
}

.hero__content .btn {
  margin-top: 0;
}

.hero__trust {
  margin: 16px 0 0;
  max-width: none;
  width: 100%;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-muted);
  text-align: left;
}

.license-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(48, 188, 173, 0.45);
  text-underline-offset: 2px;
}

.license-link:hover {
  color: #289E91;
  text-decoration-color: currentColor;
}

.hero__media {
  position: relative;
  display: block;
  width: min(470px, 100%);
  margin: -30px 0 0;
  line-height: 0;
  align-self: center;
  justify-self: end;
  transform: translateX(49px);
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  transition: transform 0.35s ease;
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 470px;
  object-fit: contain;
  object-position: center top;
  background-color: transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
}

.hero__media:hover {
  transform: translate(49px, -10px);
}

/* преимущества */

.advantages__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0;
  row-gap: 20px;
  position: relative;
  width: 100%;
  margin: 0;
  align-items: start;
}

.advantages__col {
  display: flex;
  min-width: 0;
}

.advantages__col--start {
  justify-content: flex-start;
  padding-right: 32px;
}

.advantages__col--end {
  justify-content: flex-end;
  padding-left: 32px;
  border-left: 1px solid rgba(48, 188, 173, 0.35);
}

.advantages__pack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
}

.advantage {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.advantages__col--end .advantages__pack {
  align-items: flex-start;
  width: auto;
  max-width: 100%;
}

.advantages__col--end .advantage {
  flex-direction: row;
  justify-content: flex-start;
  width: auto;
  max-width: 100%;
  text-align: left;
}

.advantage__icon {
  flex-shrink: 0;
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--color-primary);
  font-size: 0;
  line-height: 0;
}

.advantage__icon::before {
  content: "";
  display: block;
  width: 8px;
  height: 14px;
  margin: 1px 0 0 5px;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.advantage__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.advantage__text {
  display: none;
}

/* карта на главной */

.map-block {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-placeholder);
  border: 1px solid var(--color-border);
}

.yandex-map-iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  border-radius: inherit;
  background-color: #F5F5F5;
}

.map-block__notice {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: inherit;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.5;
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  background-color: var(--color-placeholder);
  border-radius: 4px;
  color: #777;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 24px;
}

.map-placeholder--tall {
  min-height: 400px;
}

/* карточки салонов и специалистов */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--block-gap);
}

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

.cards-grid--salons {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.cards-grid--salons .card__address,
.cards-grid--salons .card__hours,
.cards-grid--salons .card__phone,
.cards-grid--salons .card__meta {
  line-height: 1.4;
  width: 100%;
}

.cards-grid--salons .card__photo {
  height: 280px;
  background-color: #F5F5F5;
}

.cards-grid--salons .card__photo img {
  object-fit: cover;
  object-position: center;
}

.cards-grid--specialists .card {
  border: none;
  position: relative;
  z-index: 0;
  box-shadow:
    0 8px 24px rgba(48, 188, 173, 0.08),
    0 2px 10px rgba(58, 59, 59, 0.06);
}

.cards-grid--specialists .card__photo--portrait {
  height: 290px;
  aspect-ratio: auto;
  isolation: isolate;
}

.cards-grid--specialists .card__photo--portrait img {
  object-fit: cover;
  object-position: center top;
}

.cards-grid--specialists .card__photo--portrait-klimova img {
  object-position: center 16%;
  transform: none;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(48, 188, 173, 0.08),
    0 2px 10px rgba(58, 59, 59, 0.06);
}

.card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  margin: 0;
  flex-shrink: 0;
  background: #F5F5F5;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  position: relative;
  overflow: hidden;
}

.card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  pointer-events: none;
}

.card__photo--zoomable {
  cursor: zoom-in;
}

.card__photo--zoomable::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330BCAD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35M11 8v6M8 11h6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  box-shadow: 0 2px 10px rgba(58, 59, 59, 0.15);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card__photo--zoomable:hover::after,
.card__photo--zoomable:focus-visible::after {
  opacity: 1;
}

.card__photo--zoomable:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.card__photo::before {
  content: "";
  width: 48px;
  height: 48px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 48px 48px;
  opacity: 0.45;
  /* иконка-заглушка: здание */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330BCAD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 21v-6h6v6M9 10h.01M15 10h.01M9 14h.01M15 14h.01'/%3E%3C/svg%3E");
}

.card__photo--portrait::before {
  /* иконка-заглушка: очки */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2330BCAD' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='12' r='3.2'/%3E%3Ccircle cx='18' cy='12' r='3.2'/%3E%3Cpath d='M9.2 12h5.6M3 12H1.5M23 12h-1.5'/%3E%3C/svg%3E");
}

.card__photo--portrait {
  height: 290px;
  aspect-ratio: auto;
  min-height: 0;
}

.card__photo--portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.card__photo:has(img)::before {
  display: none;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 20px 20px;
  gap: 4px;
  text-align: left;
  align-items: flex-start;
}

.card__title {
  margin: 0;
  text-align: left;
}

.card__badge {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  background-color: rgba(48, 188, 173, 0.15);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 24px;
  width: fit-content;
}

.card__hours {
  margin: 0;
  font-size: 14px;
  color: #666;
  text-align: left;
}

.card__phone {
  margin: 0;
  font-size: 14px;
  text-align: left;
}

.card__phone a {
  color: var(--color-primary);
  font-weight: 700;
}

.card__meta {
  margin: 0;
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 700;
  text-align: left;
}

.card__text {
  margin: 0;
  flex: 1;
  font-size: 15px;
  color: #666;
  text-align: left;
}

.card__address {
  margin: 0;
  font-size: 14px;
  color: var(--color-text);
  text-align: left;
}

.card__action {
  margin-top: auto;
  padding-top: 12px;
  text-align: left;
  align-self: flex-start;
}

.section__action {
  margin-top: var(--subtitle-gap);
  text-align: center;
}

/* заголовок страницы */

.page-hero {
  position: relative;
  padding: 56px 0 var(--divider-gap);
  background-color: var(--color-bg);
  margin-top: 0;
}

.page-hero__title {
  margin: 0 0 var(--heading-text-gap);
}

.page-hero__text {
  margin: 0;
  max-width: 720px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-muted);
}

/* о нас */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--subtitle-gap);
  row-gap: 24px;
  align-items: start;
}

.about-grid__heading {
  margin: 0;
}

.about-grid > .about-grid__heading:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.about-grid > .about-grid__heading:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.section > .container.about-grid > .section__title {
  margin: 0;
}

.about-grid__col {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.about-grid > .requisites {
  grid-column: 2;
  grid-row: 2;
}

.about-intro__text {
  margin: 0;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  text-align: left;
}

.requisites {
  padding: 28px 32px 32px;
  background-color: var(--color-bg-block);
  border-radius: 8px;
  text-align: left;
}

.requisites__list {
  display: grid;
  gap: 18px;
  text-align: left;
}

.requisites__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  font-size: 15px;
}

.requisites__label {
  font-weight: 700;
  color: #666;
}

.schedule__list {
  display: grid;
  gap: 10px;
  max-width: 480px;
  margin: 0;
  text-align: left;
}

.schedule__item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 16px;
  text-align: left;
}

/* услуги и прайс */

.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.price-table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  background-color: var(--color-bg);
}

.price-table th,
.price-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.price-table td:first-child {
  line-height: 1.45;
  padding-right: 24px;
}

.price-table th {
  background-color: var(--color-bg-block);
  font-weight: 700;
  font-size: 15px;
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-primary);
}

.price-table th:last-child {
  color: var(--color-text);
}

.price-table tbody tr:hover {
  background-color: rgba(48, 188, 173, 0.06);
}

/* отзывы */

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

.reviews__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 var(--subtitle-gap);
}

.reviews__title {
  margin: 0;
  color: var(--color-heading);
}

.reviews__title-accent {
  color: var(--color-primary);
}

.reviews__filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews__filter {
  padding: 10px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background-color: var(--color-text);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.2s ease, background-color 0.2s ease;
}

.reviews__filter:hover {
  filter: brightness(0.9);
}

.reviews__filter--active {
  background-color: var(--color-primary);
}

.reviews__sources {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.reviews__source {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.reviews__source-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.reviews__source-icon--2gis {
  background-color: #18A057;
}

.reviews__source-icon--yandex {
  background-color: #FC3F1D;
}

.reviews__source.is-active .reviews__source-icon,
.reviews__source:hover .reviews__source-icon {
  filter: brightness(0.92);
  box-shadow: 0 0 0 2px rgba(48, 188, 173, 0.35);
}

.reviews__slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reviews__track-wrap {
  overflow: hidden;
  width: 100%;
}

.reviews__track {
  display: flex;
  gap: 20px;
  width: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}

.review-card.is-hidden {
  display: none;
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-card__avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.review-card__avatar--teal { background-color: #30BCAD; }
.review-card__avatar--blue { background-color: #4A90D9; }
.review-card__avatar--coral { background-color: #E57373; }
.review-card__avatar--mint { background-color: #26A69A; }
.review-card__avatar--violet { background-color: #7E57C2; }
.review-card__avatar--orange { background-color: #FFA726; }

.review-card__name {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}

.review-card__stars {
  font-size: 14px;
  letter-spacing: 1px;
  color: #F5C518;
  line-height: 1;
}

.review-card__text {
  flex: 1;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: #666;
  text-align: left;
}

.review-card__source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #1F7A71;
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.review-card__source::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
}

.review-card__source:hover {
  color: #30BCAD;
  text-decoration: underline;
  filter: none;
}

.reviews__nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

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

.reviews__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.reviews__note {
  margin: var(--block-gap) 0 0;
  font-size: 13px;
  color: #999;
  text-align: left;
}


/* контакты */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  grid-template-rows: auto;
  column-gap: var(--subtitle-gap);
  row-gap: 12px;
  align-items: stretch;
}

.contacts-info {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}

.contacts-info > h2 {
  margin: 0 0 var(--title-gap);
}

.contacts-info__list {
  display: grid;
  gap: var(--text-gap);
}

.contacts-info__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contacts-info__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--color-primary);
}

.contacts-info__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.contacts-info__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3A3B3B;
}

.contacts-info__label-icon {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contacts-info__value {
  font-size: 17px;
  color: #1F7A71;
}

.contacts-info__value a {
  color: #1F7A71;
}

.contacts-info__value a:hover {
  color: var(--color-primary);
}

.contacts-info__action {
  margin: var(--block-gap) 0 0;
}

.contacts-map-wrap {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.contacts-map {
  flex: 1 1 auto;
  width: 100%;
  min-height: 280px;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-placeholder);
  border: 1px solid var(--color-border);
}

/* политика */

.container.privacy-content {
  max-width: var(--max-width);
  width: 100%;
}

.privacy-content__title {
  color: var(--color-heading);
}

.privacy-content__lead {
  margin: 0 0 var(--subtitle-gap);
  font-size: 17px;
  color: #666;
  text-align: left;
}

.privacy-content h2 {
  margin-top: var(--block-gap);
  margin-bottom: var(--title-gap);
  font-size: 22px;
  text-align: left;
}

.privacy-content p,
.privacy-content li {
  margin-bottom: var(--text-gap);
  color: #444;
}

.privacy-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: var(--text-gap);
}

.privacy-content .placeholder {
  background-color: #fff8e1;
  padding: 0 4px;
  border-radius: 2px;
}

/* футер */

.footer {
  position: relative;
  padding: 48px 0 max(28px, env(safe-area-inset-bottom, 0));
  background-color: #30BCAD;
  color: #FFFFFF;
  border-top: none;
}

.footer a {
  color: #FFFFFF;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  color: #FFFFFF;
  opacity: 0.8;
  text-decoration: underline;
  filter: none;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1.15fr 1.4fr;
  gap: 28px 32px;
  align-items: start;
  margin-bottom: 28px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 12px;
  line-height: 0;
  background: none;
  filter: none !important;
}

.footer__logo img {
  display: block;
  height: 52px;
  width: auto;
  background: none;
  mix-blend-mode: normal;
  filter: none !important;
}

.footer a.footer__logo:hover {
  filter: none !important;
  opacity: 0.9;
  text-decoration: none;
}

.footer__text {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #FFFFFF;
}

.footer__text + .footer__text {
  margin-top: 4px;
}

/* карта в футере — по высоте блока контактов до Гагарина */
.footer__map {
  margin: 0;
  min-width: 0;
  grid-column: 4;
  grid-row: 1;
  padding-top: 0;
  align-self: start;
  /* заголовок + 6 строк контактов */
  height: calc(1.3em + 12px + 180px);
  font-size: 14px;
}

.footer__map-container {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #E8EEED;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer__contacts {
  font-size: 14px;
  grid-column: 3;
  grid-row: 1;
}

.footer__brand {
  grid-column: 1;
  grid-row: 1;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 1;
}

.footer__nav-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

.footer__nav-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, 30px);
  column-gap: 15px;
  row-gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.footer__nav-list > li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.footer__nav-link {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

.footer__contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  height: 30px;
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #FFFFFF;
}

.footer__contact-icon--vk,
.footer__contact-icon--yt,
.footer__contact-icon--tt {
  width: 18px;
  height: 18px;
  color: #FFFFFF;
}

.footer__contact a,
.footer__contact span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
}

.footer__contact a {
  color: #FFFFFF;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.footer__bottom-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-weight: 700;
}

.footer__bottom-social:hover {
  color: #FFFFFF;
  opacity: 0.9;
  filter: none;
}

.footer__bottom-social-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer__bottom a {
  color: #FFFFFF;
  font-weight: 700;
}

/* модалка с формой */

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(58, 59, 59, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal--open .modal__overlay {
  opacity: 1;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  background-color: var(--color-bg);
  border-radius: 16px;
  border: 1px solid #E0E0E0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.modal--open .modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal__dialog--dikidi {
  display: flex;
  flex-direction: column;
  max-width: min(420px, calc(100% - 32px));
  width: 100%;
  height: min(90dvh, 780px);
  max-height: min(90dvh, 780px);
  padding: 0 !important;
  overflow: hidden;
  border-radius: 16px;
  border: none;
  background-color: #F2F2F6;
}

.modal--dikidi.modal--open {
  align-items: center;
  justify-content: center;
}

.modal--dikidi .modal__overlay {
  background-color: rgba(58, 59, 59, 0.55);
}

.dikidi-modal__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  flex-shrink: 0;
  min-height: 88px;
  padding: 16px 48px 14px;
  background-color: #30BCAD;
  color: #FFFFFF;
  text-align: center;
}

.dikidi-modal__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
}

.dikidi-modal__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

.dikidi-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dikidi-modal__close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.dikidi-modal__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #F2F2F6;
}

.dikidi-modal__frame-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #F2F2F6;
  -webkit-overflow-scrolling: touch;
}

.dikidi-frame {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: calc(100% + var(--dikidi-crop-top, 52px));
  margin-top: calc(-1 * var(--dikidi-crop-top, 52px));
  border: 0;
  background: #F2F2F6;
}

.modal__dialog--dikidi .modal__close {
  display: none;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #3A3B3B;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  color: #30BCAD;
}

.photo-lightbox .modal__dialog--photo {
  max-width: min(960px, 96vw);
  max-height: calc(100vh - 40px);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-lightbox__image {
  display: block;
  flex: 0 1 auto;
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 6px;
}

.photo-lightbox .modal__close {
  z-index: 2;
}

/* модалка с лицензией (выписка) */

.license-modal .modal__dialog--license {
  display: flex;
  flex-direction: column;
  width: min(1040px, calc(100vw - 32px));
  max-width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 12px;
  overflow: hidden;
  background-color: #FFFFFF;
  border-radius: 10px;
  border: 1px solid #F0F0F0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.license-modal .modal__close {
  z-index: 2;
  top: 8px;
  right: 8px;
}

.license-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #FFFFFF;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.license-modal__content::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.license-modal__page {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background-color: #FFFFFF;
}

.license-modal__page + .license-modal__page {
  margin-top: 12px;
}

.license-modal__loading,
.license-modal__error {
  margin: 0;
  padding: 32px 16px;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-muted);
}

.license-modal__error a {
  color: var(--color-primary);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal__overlay,
  .modal__dialog {
    transition: none;
  }

  .modal__dialog {
    transform: none;
  }
}

/* плавающая кнопка VK */

.chat-widget {
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0));
  bottom: max(24px, env(safe-area-inset-bottom, 0));
  z-index: 1900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.chat-widget__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.chat-widget--open .chat-widget__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.chat-widget__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #0077FF;
  color: #FFFFFF;
  box-shadow:
    0 4px 14px rgba(0, 119, 255, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.chat-widget__link:hover {
  color: #FFFFFF;
  transform: scale(1.06);
  filter: brightness(0.95);
}

.chat-widget__vk-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.chat-widget__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #3ec9ba 0%, #30BCAD 55%, #28a99b 100%);
  box-shadow:
    0 6px 20px rgba(48, 188, 173, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-widget__toggle:hover {
  transform: scale(1.05);
}

.chat-widget__toggle:focus-visible {
  outline: 3px solid rgba(48, 188, 173, 0.55);
  outline-offset: 3px;
}

.chat-widget__toggle img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  pointer-events: none;
}

.chat-widget--open .chat-widget__toggle {
  box-shadow:
    0 4px 12px rgba(48, 188, 173, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* плашка про куки */

.cookie-banner {
  position: fixed !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100%;
  max-width: 100vw;
  z-index: 10000;
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0));
  background-color: #2A3F3D;
  color: #FFFFFF;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-banner:not(.cookie-banner--visible) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.cookie-banner__text a {
  color: #5DD4C7;
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: #FFFFFF;
  filter: none;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-banner__btn {
  min-height: 44px;
  padding: 10px 22px;
  border: none;
  border-radius: 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background-color: var(--color-primary);
  color: #FFFFFF;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.cookie-banner__btn:hover {
  filter: brightness(0.92);
}

.cookie-banner__btn:active {
  transform: translateY(1px);
}

body.cookie-banner-open .chat-widget {
  bottom: max(112px, calc(96px + env(safe-area-inset-bottom, 0)));
}

/* утилиты */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
