/* Страница правил оказания услуг
   Подключается после promotion2.css. */

:root {
  --rules-bg: #fafafa;
  --rules-card: #ffffff;
  --rules-text: #273238;
  --rules-muted: #647177;
  --rules-accent: #ffd75e;
  --rules-accent-hover: #f3c942;
  --rules-border: #e8ecee;
  --rules-shadow: 0 12px 40px rgba(70, 84, 91, 0.10);
}

html {
  scroll-behavior: smooth;
}

body.body {
  margin: 0;
  background: var(--rules-bg);
  color: var(--rules-text);
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.section {
  min-height: 100vh;
  padding: 72px 24px 96px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 215, 94, 0.22), transparent 310px),
    var(--rules-bg);
}

.div-vert {
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 56px 64px 64px;
  background: var(--rules-card);
  border: 1px solid var(--rules-border);
  border-radius: 20px;
  box-shadow: var(--rules-shadow);
}

.h2 {
  max-width: 720px;
  margin: 0 0 44px;
  color: var(--rules-text);
  font-family: "PT Sans Caption", "PT Sans", Arial, sans-serif;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.h2::after {
  display: block;
  width: 88px;
  height: 8px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--rules-accent);
  content: "";
}

.list-2 {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rules;
}

.list-item-2 {
  position: relative;
  margin: 0;
  padding: 0 0 32px 64px;
  color: var(--rules-text);
  counter-increment: rules;
}

.list-item-2:not(:last-child) {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rules-border);
}

.list-item-2::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 44px;
  color: var(--rules-text);
  content: counter(rules);
  font-family: "PT Sans Caption", "PT Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  text-align: left;
}

.rules-subpoint {
  position: relative;
  margin-top: 24px;
  padding-left: 0;
}

.rules-subpoint-number {
  position: absolute;
  top: 0;
  left: -64px;
  width: 52px;
  color: var(--rules-text);
  font-family: "PT Sans Caption", "PT Sans", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.55;
}

.rules-subpoint-content p {
  margin: 0 0 16px;
}

.rules-conditions {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-conditions li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 24px;
}

.rules-conditions li:last-child {
  margin-bottom: 0;
}

.rules-conditions li::before {
  position: absolute;
  left: 0;
  content: "—";
}


.paragraph.rules {
  margin: 0 0 20px 64px;
  color: var(--rules-text);
}

.paragraph.rules:last-of-type {
  margin-bottom: 0;
}

.link-in-text {
  color: var(--rules-text);
  font-weight: 700;
  text-decoration-color: var(--rules-accent);
  text-decoration-line: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
  overflow-wrap: anywhere;
}

.link-in-text:hover,
.link-in-text:focus-visible {
  color: var(--rules-text);
  text-decoration-color: var(--rules-accent-hover);
}

.link-in-text:focus-visible {
  outline: 3px solid rgba(255, 215, 94, 0.55);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 767px) {
  body.body {
    font-size: 17px;
    line-height: 1.52;
  }

  .section {
    padding: 32px 16px 56px;
  }

  .div-vert {
    padding: 36px 24px 44px;
    border-radius: 16px;
  }

  .h2 {
    margin-bottom: 36px;
    font-size: clamp(30px, 9vw, 40px);
  }

  .h2::after {
    width: 72px;
    height: 7px;
    margin-top: 18px;
  }

  .list-item-2 {
    padding: 0 0 26px 48px;
  }

  .list-item-2:not(:last-child) {
    margin-bottom: 26px;
  }

  .list-item-2::before {
    width: 36px;
    font-size: 16px;
  }

  .rules-subpoint-number {
    left: -48px;
    width: 42px;
  }

  .paragraph.rules {
    margin-left: 48px;
  }
}

@media (max-width: 479px) {
  .section {
    padding: 0;
    background: var(--rules-card);
  }

  .div-vert {
    padding: 32px 18px 40px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .h2 {
    font-size: 30px;
  }

  .list-item-2 {
    padding-left: 0;
    padding-top: 48px;
  }

  .list-item-2::before {
    top: 0;
  }

  .rules-subpoint {
    padding-top: 38px;
  }

  .rules-subpoint-number {
    top: 0;
    left: 0;
  }

  .paragraph.rules {
    margin-left: 0;
  }
}

@media print {
  body.body,
  .section {
    background: #fff;
  }

  .section {
    padding: 0;
  }

  .div-vert {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .list-item-2 {
    break-inside: avoid;
  }
}
