/*
===================================
    Глобальные стили
=================================== 
*/

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  font-family: "Golos Text", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
}

header {
  flex: 0 0 auto;
}

main {
  flex: 1 0 auto;
}

footer {
  flex: 0 0 auto;
}

/* === Текст === */

p {
  margin: 0;
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

ul:not([class]),
ol:not([class]) {
  padding-left: 20px;
}

ul:not([class]) {
  list-style: disc;
}

ol:not([class]) {
  list-style: decimal;
}

ul:not([class]) li:not(:last-child),
ol:not([class]) li:not(:last-child) {
  margin-bottom: 12px;
}

sup,
sub {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

.block-center {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.list-disc {
  list-style-type: disc;
}

.list-decimal {
  list-style-type: decimal;
}

.list-disc li,
.list-decimal li {
  margin-left: 30px;
  margin-bottom: 10px;
}

.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1.5;
}

.note {
  padding: 24px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.2;
  border: 1px solid var(--blue);
  border-radius: 20px;
}

/* === Заголовки === */

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4 {
  width: 100%;
  font-family: "Commissioner", sans-serif;
  font-weight: 600;
}

h1,
.h1 {
  font-size: 52px;
  line-height: 1.2;
}

h2,
.h2 {
  font-size: 60px;
  line-height: 1.15;
}

h3,
.h3 {
  font-size: 28px;
  line-height: 1.2;
}

h4,
.h4 {
  font-size: 22px;
  line-height: 1.2;
}

/* === Контентный текст === */

.text {
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
}

.text p + p {
  margin-top: 24px;
}

.text a {
  color: var(--blue);
  line-height: 1.25;
}

.text h2 {
  margin-bottom: 32px;
  font-size: 40px;
}

.text :not(h2) + h2 {
  margin-top: 52px;
}

.text h3 {
  margin-bottom: 32px;
  font-size: 28px;
}

.text :not(h3) + h3 {
  margin-top: 32px;
}

.text ul,
.text ol {
  margin-top: 24px;
  margin-bottom: 24px;
  line-height: 1.25;
}

.text ul {
  list-style-type: disc;
}

.text ol {
  list-style-type: decimal;
}

.text li {
  margin-left: 12px;
  margin-bottom: 12px;
}

.text li:last-child {
  margin-bottom: 0;
}

.link {
  color: var(--blue);
  font-weight: 500;
  transition: color 0.3s ease;
}

.link:hover {
  color: var(--blue-dark);
}

/* === Бейджи === */

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 8px 14px;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  border: 1px solid var(--blue-soft);
  border-radius: 1000px;
}

.badge--feature {
  gap: 8px;
  padding: 8px 22px;
  font-size: 18px;
  border-color: var(--blue);
  color: var(--text-muted);
}

.badge__dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background-color: var(--blue);
  border-radius: 50%;
}

/* === Кнопки === */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

/* --- Размеры --- */

.button--small {
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  border-radius: 1000px;
}

.button--normal {
  padding: 20px 40px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 1000px;
}

.button--medium {
  padding: 13px 16px;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 10px;
}

.button--large {
  min-width: 240px;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 1000px;
}

/* --- Цвета --- */

.button--text-dark {
  color: var(--text);
}

.button--text-blue {
  color: var(--blue);
}

.button--text-blue:hover {
  color: var(--blue-dark);
}

.button--text-white {
  color: var(--white);
}

.button--bg-blue {
  color: var(--white);
  background-color: var(--blue);
}

.button--bg-blue:hover {
  background-color: var(--blue-dark);
}

.button--bg-white {
  background-color: var(--white);
}

.button--bg-yellow {
  color: var(--text);
  background-color: var(--yellow);
}

/* --- Границы --- */

.button--border-blue {
  border: 1px solid var(--blue);
}

.button--border-blue:hover {
  color: var(--white);
  background-color: var(--blue);
}

.button--border-light-blue {
  color: var(--text-muted);
  border: 1px solid var(--blue-medium);
}

.button--border-light-blue:hover {
  color: var(--white);
  background-color: var(--blue);
  border-color: var(--blue);
}

.button--border-gray {
  color: var(--text-muted);
  border: 1px solid var(--text-muted);
}

.button--border-gray:hover {
  color: var(--white);
  background-color: var(--blue);
  border-color: var(--blue);
}

/* --- Стрелки через CSS mask --- */

.button--icon {
  column-gap: 5px;
}

.button--icon::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.button--arrow-right::after {
  -webkit-mask-image: url("../images/icons/arrow-right.svg");
  mask-image: url("../images/icons/arrow-right.svg");
}

.button--arrow-up::after {
  -webkit-mask-image: url("../images/icons/arrow-up.svg");
  mask-image: url("../images/icons/arrow-up.svg");
}

.button--arrow-down::after {
  -webkit-mask-image: url("../images/icons/arrow-down.svg");
  mask-image: url("../images/icons/arrow-down.svg");
}

.button--arrow-plain-down::after {
  -webkit-mask-image: url("../images/icons/arrow-plain-down.svg");
  mask-image: url("../images/icons/arrow-plain-down.svg");
}

/* --- Группа кнопок --- */

.button-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1232px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 992px) {
  ul:not([class]),
  ol:not([class]) {
    padding-left: 12px;
  }

  h1,
  .h1 {
    font-size: 44px;
  }

  h2,
  .h2 {
    font-size: 34px;
  }

  h3,
  .h3 {
    font-size: 26px;
  }

  h4,
  .h4 {
    font-size: 20px;
  }

  .text h2 {
    margin-bottom: 30px;
    font-size: 32px;
  }

  .text :not(h2) + h2,
  .text :not(h3) + h3 {
    margin-top: 38px;
  }

  .text h3 {
    margin-bottom: 30px;
    font-size: 24px;
  }

  .container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 768px) {
  h1 br,
  .h1 br,
  h2 br,
  .h2 br,
  h3 br,
  .h3 br,
  h4 br,
  .h4 br {
    display: none;
  }
}

@media (max-width: 576px) {
  .note {
    padding: 18px;
    font-size: 16px;
    border-radius: 16px;
  }

  .badge {
    padding: 5px 10px;
    font-size: 15px;
  }

  .badge--feature {
    padding: 7px 16px;
    font-size: 14px;
  }

  .button--large {
    padding: 20px;
    font-size: 15px;
  }

  .button--normal {
    font-size: 15px;
  }

  .button--xs-width-100 {
    width: 100%;
  }

  .button-box {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .button-box .button {
    width: 100%;
  }

  .list-disc li,
  .list-decimal li {
    margin-left: 20px;
  }

  .subtitle {
    font-size: 16px;
  }

  .subtitle br {
    display: none;
  }

  h1,
  .h1 {
    font-size: 34px;
  }

  h2,
  .h2 {
    font-size: 28px;
  }

  h3,
  .h3 {
    font-size: 22px;
  }

  h4,
  .h4 {
    font-size: 18px;
  }

  .text p {
    font-size: 16px;
  }

  .text p + p {
    margin-top: 18px;
  }

  .text h2 {
    margin-bottom: 24px;
    font-size: 24px;
  }

  .text h3 {
    margin-bottom: 22px;
    font-size: 20px;
  }

  .text :not(h2) + h2,
  .text :not(h3) + h3 {
    margin-top: 34px;
  }

  .text ul,
  .text ol {
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
