/* Common */

:root {
  /* цвета */
  --accent: #e91e63;
  --primary: #090104;
  --secondary: #f9b8ce;
  --accent2: #d60a55;
  --gray: #525050;
  --bg: #fef6f9;
  --dirty-white: #f1f1f1;
  --text: #090104;
  --lightgray: #d3d3d3;
  --warning: #ff0038;
  /* шрифт */
  --font-family: 'Montserrat', sans-serif;
  /* ширина контейнера */
  --maxWidthContainer: 1270px;
  --md1: var(--maxWidthContainer);
  --md2: 991.98px;
  --md3: 767.98px;
  --md4: 479.98px;
  /* дополнительное измерение */
  --sm: 575.98px;
  /* заголовки */
  --h1: clamp(2rem, 2.5rem, 3rem);
  --h2: clamp(1.5rem, 2rem, 2.5rem);
  --h3: clamp(1rem, 1.5rem, 2rem);
  --h4: clamp(1rem, 1.2rem, 1.5rem);
  --h5: clamp(0.8rem, 1rem, 1.2rem);
  --h6: 0.7rem;
  /* размер текста на сайте */
  --p: 1rem;
  /* тень */
  --boxShadow: rgba(0, 0, 0, 0.2) 0px 12px 28px 0px, rgba(0, 0, 0, 0.1) 0px 2px 4px 0px,
    rgba(255, 255, 255, 0.05) 0px 0px 0px 1px inset;
  /* transtion */
  --transition: all 0.3s ease-out;
}

/* States */

button:focus-visible,
input:focus-visible,
a:focus-visible {
  border: none;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.5);
}

html,
body {
  height: 100%;
  color: var(--text);
  scrollbar-gutter: stable;
  font-family: var(--font-family);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body._blocked {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

#root {
  height: 100%;
}

/* TODO Узнать, что будет в Битриксе вместо App */

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1 1 auto;
}

._container {
  max-width: var(--maxWidthContainer);
  padding-inline: 15px;
  margin: 0 auto;
}

.dark-bg {
  background-color: var(--primary);
}

h1 {
  font-size: var(--h1);
  letter-spacing: 0;
  font-weight: 700;
}

h2 {
  font-size: var(--h2);
  letter-spacing: 0;
  font-weight: 700;
}

h3 {
  font-size: var(--h3);
  font-weight: 700;
}

h4 {
  font-size: var(--h4);
  font-weight: 700;
}

h5 {
  font-size: var(--h5);
  font-weight: 400;
}

span {
  font-size: var(--p);
}

a {
  font-size: var(--p);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  padding: 5px;
}

@media (any-hover: hover) {
  a:hover {
    color: var(--accent);
  }
}

a._underline {
  text-decoration: underline;
  text-underline-offset: 0.5rem;
  color: var(--accent);
}
@media (any-hover: hover) {
  a._underline:hover {
    text-decoration: none;
  }
}

/* TODO проверить, нужны ли эти стили для ссылок */

._accent-italic {
  font-style: italic;
}

._accent-bold {
  font-weight: bold;
}

._accent-pink {
  color: var(--accent);
}

.text-link {
  color: var(--accent);
  transition: var(--transition);
}
@media (any-hover: hover) {
  .text-link:hover {
    text-decoration: underline;
  }
}

#link-accent {
  color: var(--accent);
  text-decoration: underline;
}
@media (any-hover: hover) {
  #link-accent:hover {
    text-decoration: none;
  }
}

p {
  font-size: var(--p);
  letter-spacing: normal;
  text-align: left;
}

li {
  font-size: var(--p);
  margin-top: 0.2rem;
  line-height: 1.5rem;
}

p,
table {
  line-height: 2.25;
  margin: 0;
}

/* неупорядоченный список - квадраты */

ul.custom__list.unordered__list,
ul.custom__list.unordered__list li.custom__list-item {
  list-style: square inside;
  text-decoration: none;
  line-height: 2rem;
  ::marker {
    color: var(--accent);
  }
}

/* упорядоченный список */

ol.custom__list.ordered__list,
ol.custom__list.ordered__list li.custom__list-item {
  list-style-position: inside;
  line-height: 2rem;
}

ol.custom__list.ordered__list {
  ::marker {
    color: var(--accent);
  }
}

.parent-list {
  display: block;
}

.parent-list:not(:last-child) {
  margin: 0px 0px 10px 0px;
}

.flex-list {
  display: flex;
  flex-wrap: wrap;
  padding: 30px 0;
  gap: 10px;
}

.flex-heading {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.flex-heading img {
  height: clamp(1.5rem, 2rem, 2.5rem);
  width: auto;
}

.page__title {
  color: var(--accent);
  letter-spacing: 0;
  font-weight: 700;
}
.page__title::before {
  content: '/ ';
}

.paragraph {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

/* оформление секций */

.section-title {
  font-weight: bold;
  font-size: clamp(26px, 36px, 36px);
  color: var(--primary);
  text-align: center;
}

.section-title_left {
  text-align: left;
}

.section-title_sub {
  text-align: center;
  font-size: clamp(18px, 24px, 24px);
  color: var(--accent);
  margin-bottom: 20px;
}

.section-subtitle {
  font-weight: bold;
  font-size: clamp(22px, 28px, 28px);
  color: var(--accent);
}

.section-subtitle_left {
  text-align: left;
}

.section-descr {
  color: var(--accent);
  text-align: center;
  font-size: clamp(16px, 22px, 22px);
  font-weight: bold;
}

.section-pb {
  padding-block: clamp(20px, 70px, 100px);
}

.section-pi {
  padding-inline: clamp(15px, 20px, 50px);
}

.section-inner {
  padding-block: clamp(20px, 40px, 60px);
}

.section-mb {
  margin-block: clamp(20px, 70px, 100px);
}

/* кнопки */

.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
  pointer-events: all;
  transition: var(--transition);
  border: 1px solid #e91e63;
}
._btn-primary {
  background-color: #e91e63;
  color: #f1f1f1;
}
._btn-outline {
  color: #e91e63;
}
@media (any-hover: hover) {
  ._btn-primary:hover {
    background-color: #090104;
    border-color: #090104;
  }
}
._btn-primary:not(:disabled):not(.disabled)._active:focus,
._btn-primary:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.5);
}
._btn-primary:not(:disabled):not(.disabled)._active,
._btn-primary:not(:disabled):not(.disabled):active {
  border-color: #d60a55;
  background-color: #090104;
  border-color: #090104;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
._btn-primary[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}
@media (any-hover: hover) {
  ._btn-outline:hover {
    color: #f1f1f1;
    background-color: #d60a55;
    border-color: #d60a55;
  }
}
._btn-outline:not(:disabled):not(.disabled)._active:focus,
._btn-outline:not(:disabled):not(.disabled):active:focus {
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.5);
}
._btn-outline:not(:disabled):not(.disabled)._active,
._btn-outline:not(:disabled):not(.disabled):active {
  color: #f1f1f1;
  background-color: #d60a55;
  border-color: #d60a55;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
._btn-outline[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

/* ссылки, оформленные в стиле кнопок */

.button-like {
  background-color: var(--accent2);
  padding: 10px 15px;
  color: var(--dirty-white);
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition);
}
.button-like::before {
  content: unset;
}
@media (any-hover: hover) {
  .button-like:hover {
    background-color: #090104;
  }
}
@media (any-hover: hover) {
  .button-like a:hover {
    color: var(--dirty-white);
  }
}
.button-like a:focus-visible {
  outline: none;
  box-shadow: none;
}
.button-like:focus-within {
  outline: none;
  background-color: var(--primary);
}

.content__list #link-accent {
  text-decoration: none;
}

.select__list {
  column-count: 2;
  column-width: 1fr;
}

.select__list-item {
  padding: 15px;
  display: block;
  background-color: var(--accent);
  cursor: pointer;
  margin-bottom: 15px;
}

/* обертка для изображений */
._pic {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

._pic img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
}

/* только для скринридеров */

._sr-only {
  position: absolute;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  overflow: hidden;
  bottom: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: -1px;
}

._warning {
  color: var(--accent2);
}

.centered {
  margin-block: 30px;
  text-align: center;
}

.display-b {
  display: block;
}

.margin-l {
  margin-left: 2rem;
}
