@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-ExtraBold.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #0c00d5;
  --color-primary-hover: #2F23FF;
  --color-text: #000000;
  --color-muted-bg: #eef0f7;
  --color-white: #ffffff;

  --container-max: 1440px;
  --container-padding: 16px;

  --font-main: 'Montserrat', sans-serif;
}

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

html {
  box-sizing: border-box;
  font-size: 1rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.2;
  color: var(--color-text);
  background-color: var(--color-white);
}

body.dark {
    color: var(--color-white);
    background-color: #101014;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
  border: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  margin-bottom: 16px;
  padding-left: 30px;
}

li {
    margin-bottom: 10px;
}

.toolbar li {
    margin-bottom: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
figure {
  margin: 0;
}

h1 {
    margin-bottom: 44px;
    font-size: 6.25rem;
    font-weight: 600;
}

h1 {
    margin-bottom: 44px;
    font-size: 6.25rem;
    line-height: 1;
    font-weight: 600;
}

h2 {
    margin-top: 32px;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 500;
}

h3 {
    margin-top: 32px;
    margin-bottom: 30px;
    font-size: 1.375rem;
    line-height: 1.2;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.2;
    color: #666;
}

li {
    color: #666;
}

.dark p,
.dark li {
    color: #CFCFD0;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

textarea {
  resize: vertical;
}

[hidden],
.hidden {
  display: none !important;
}

@media(min-width: 768px) {
    .hidden-d {
        display: none !important;
    }
}

@media(max-width: 767px) {
    .hidden-m {
        display: none !important;
    }
}

/***Form***/
.form-item {
    margin-bottom: 24px;
}
.form-item label {
    display: block;
    margin-bottom: 14px;
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: 500;
}
.form-item .description {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-top: 18px;
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: 500;
}
.form-item .description:before {
    content: '';
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    background: url(../img/sprite.svg) no-repeat -4px -134px;
}
input[type=text],
input[type=tel],
input[type=email],
input[type=password] {
    width: 100%;
    padding: 0 0 14px;
    font-size: 1rem;
    line-height: 1.2;
    border: none;
    outline: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
}
/* Safari / старые браузеры */
input[type=text]::-webkit-input-placeholder,
input[type=tel]::-webkit-input-placeholder,
input[type=email]::-webkit-input-placeholder,
input[type=password]::-webkit-input-placeholder {
  color: #BDBDBD;
}

/* Firefox */
input[type=text]::-moz-placeholder,
input[type=tel]::-moz-placeholder,
input[type=email]::-moz-placeholder,
input[type=password]::-moz-placeholder {
  color: #BDBDBD;
}

/* IE */
input[type=text]:-ms-input-placeholder,
input[type=tel]:-ms-input-placeholder,
input[type=email]:-ms-input-placeholder,
input[type=password]:-ms-input-placeholder {
  color: #BDBDBD;
}

/* Safari / старые браузеры */
input[type=text].error::-webkit-input-placeholder,
input[type=tel].error::-webkit-input-placeholder,
input[type=email].error::-webkit-input-placeholder,
input[type=password].error::-webkit-input-placeholder {
  color: #FF0000;
}

/* Firefox */
input[type=text].error::-moz-placeholder,
input[type=tel].error::-moz-placeholder,
input[type=email].error::-moz-placeholder,
input[type=password].error::-moz-placeholder {
  color: #FF0000;
}

/* IE */
input[type=text].error:-ms-input-placeholder,
input[type=tel].error:-ms-input-placeholder,
input[type=email].error:-ms-input-placeholder,
input[type=password].error:-ms-input-placeholder {
  color: #FF0000;
}

.form-type-checkbox label,
.form-type-radio label {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
    cursor: pointer;
}
.form-type-checkbox label {
    font-size: 0.875rem;
}
.form-checkbox,
.form-radio {
    position: absolute;
    left: -9999px;
}
.form-checkbox + label:before,
.form-radio + label:before {
    content: '';
    display: inline-block;
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    background: url(../img/radio.svg) no-repeat center;
    cursor: pointer;
}
.form-checkbox:checked + label:before {
    background: url(../img/checkbox-check.svg) no-repeat center;
}
.form-radio + label:before {
    background: url(../img/radio.svg) no-repeat center;
}
.form-radio:checked + label:before {
    background: url(../img/radio-check.svg) no-repeat center;
}
.form-type-checkbox .description:before,
.form-type-radio .description:before {
    display: none;
}
.form-type-radio .description {
    margin-top: 0;
    padding-left: 36px;
    font-size: 0.875rem;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.6);
}
label.form-required:after {
    content: ' *';
    display: inline-block
}
.form-type-checkbox label.form-required:after {
    display: none;
}
.form-item--error-message {
    margin-top: 18px;
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: 500;
    color: #FF0000;
}
.form-item--error label {
    color: #FF0000;
}
input[type=text].error,
input[type=tel].error,
input[type=email].error,
input[type=password].error {
    color: #FF0000;
    border-color: #FF0000;
}
@media (max-width: 767px) {
    input[type=text], input[type=tel], input[type=email], input[type=password] {
        font-size: 0.875rem;
    }
}