/*Обнуление*/
*,
b::before,
*::after {
    padding: 0;
    margin: 0;
    border: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: var(--color-link);
}

ul,
ol,
li {
    list-style: none;
}

img {
    vertical-align: top;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
    font-size: inherit;
}

html,
body {
    line-height: 1;
    font-family: var(--font-family-default);
    color: var(--color-default);
    font-size: var(--font-size-default);
    background-color: var(--color-background);
}

/* ------------------------------------------------------------------------------------ */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    box-sizing: content-box;
}

.ibg {
    position: relative;
}

.ibg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-weight: 500;
    font-size: var(--font-size-h1);
    margin: 30px 0px 40px;
    font-weight: 600;
}

h2 {
    line-height: 120%;
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

h1.title_up {
    margin: 0x 0px 5px;
    font-weight: 700;
    font-size: calc(var(--font-size-h1) * 1.75);
}

h2.title_up {
    font-weight: 500;
    font-size: var(--font-size-h1);
}




main {
    gap: var(--section-gap);
    display: flex;
    flex-direction: column;
}

.section__header {
    gap: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

@media (max-width: 630px) {
    .section__header {
        gap: 30px;
        align-items: start;
        flex-direction: column;
    }
}


@media (max-width: 430px) {
    .section__header {
        gap: 20px;
    }

    .section__header .button-link {
        width: 100%;
        min-width: auto;
    }
}



/* Button */

.button {
    gap: 10px;
    padding: 18px;
    display: flex;
    font-weight: 500;
    line-height: 100%;
    align-items: center;
    transition: 0.2s all;
    justify-content: center;
    color: var(--color-default);
    background: var(--color-white);
    border-radius: var(--border-radius);
    font-size: var(--font-size-default);
    border: 1px solid var(--color-border);
    font-family: var(--font-family-default);
}

.button.button_fill {
    border: none;
    font-weight: 600;
    color: var(--color-white);
    background: var(--button-fill);
}

.button.button_fill.button_white {
    color: var(--color-accent);
    background: var(--color-white);
}

.button.button_fill:hover {
    filter: brightness(1.1);
}

.button.button_fill.button_white:hover {
    filter: brightness(0.98)
}

.button-link {
    min-width: 300px;
}

.button-link button {
    width: 100%;
}

.button-link button::after {
    content: url('../public/common/link-arrow.svg');
    position: relative;
    top: 2px;
}

.button-link button.button_fill::after {
    content: url('../public/common/link-arrow-white.svg');
}

.button-link button:not(.button_fill):hover {
    color: var(--color-link);
    border-color: var(--color-link);
}


/* Slider */

.swiper-slider__wrapper {
    position: relative;
}

.swiper-button-next.button,
.swiper-button-prev.button {
    width: 55px;
    height: auto;
    aspect-ratio: 1;
    padding: 0px;
    background: none;
}

.swiper__arrow {
    width: 64px;
    height: auto;
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.1);
}

.swiper-button-prev.button {
    transform: rotate(180deg);
}

.swiper-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.slider__actions .swiper-button-next::after,
.slider__actions .swiper-button-prev::after {
    content: none;
}

.slider__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: absolute;
    top: 50%;
    left: -100px;
    width: calc(100% + 200px);
}

.slider__actions-wrapper_mobile {
    display: none;
}

.slider__actions > .button {
    position: static;
}

.swiper {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.swiper .swiper-button-next, 
.swiper .swiper-button-prev {
    margin-top: calc(-5px - (var(--swiper-navigation-size) / 2));
}

.swiper-slider__wrapper .swiper-pagination.swiper-pagination-horizontal {
    top: auto;
    bottom: -20px;
}

.swiper-slider__wrapper .swiper-pagination-bullet {
    border-radius: 2px;
    min-width: 25px;
    height: 5px;
    background: #e6e6e6;
    opacity: 1;
    transition: 0.2s all;
}

.swiper-slider__wrapper .swiper-pagination-bullet.swiper-pagination-bullet-active {
    width: 105px;
    background: linear-gradient(93.82deg, #1db550 -0.05%, #0280f8 137.73%);
}

@media (max-width: 1480px) {
    .slider__actions {
        left: -80px;
        width: calc(100% + 160px);
    }

    .swiper-slider__wrapper {
        max-width: calc(var(--container-width) - 160px);
        margin: 0 auto;
    }
}


@media (max-width: 1260px) {
    .swiper-slider__wrapper {
        max-width: none;
    }

    .slider__actions {
        justify-self: end;
        position: static;
        display: flex;
        gap: 10px;
        width: max-content;
        height: 55px;
        margin-top: 20px;
    }

    .slider__actions .button {
        margin-top: 0px
    }
}



/* Form */

.form__item {
    position: relative;
}
.form__label {
    color: var(--color-white);
}

.form__input {
    padding: 5px 0px;
    color: var(--color-white);
    background: none;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0px;
    font-size: var(--font-size-default);
    width: 100%;
    outline: none;
    transition: 0.2s all;
    caret-color: var(--color-white);
}

.form__item.form__item_checkbox label {
    gap: 15px;
    display: flex;
    cursor: pointer;
    max-width: max-content;
    align-items: start;
    border-radius: 3px;
    color: #363636;
}

.form__item.form__item_checkbox input[type="checkbox"] {
    top: 0px;
    left: 0px;
    position: absolute;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    min-height: auto;
    z-index: 1;
    display: none;
}

.form__item.form__item_checkbox input[type="checkbox"]:checked + .checkbox__custom {
    border: 1px solid var(--button-fill);
}

.form__item.form__item_checkbox input[type="checkbox"]:checked + .checkbox__custom svg {
    opacity: 1;
}

.form__item.form__item_checkbox input[type="checkbox"]:checked + .checkbox__custom::after {
    opacity: 1;
}

.form__item.form__item_checkbox .checkbox__input {
    position: relative;
    min-height: auto;
    width: 18px;
    height: 18px;
    min-width: 18px;
    aspect-ratio: 1;
    border: 1px solid var(--color-white);
    border-radius: 5px;
}

.form__item.form__item_checkbox .checkbox__label {
    font-weight: 500;
    font-size: 14px;
    line-height: 114%;
    color: rgba(255, 255, 255, 0.96);
}

.form__item.form__item_checkbox .checkbox__custom {
    background: none;
    display: flex;
    height: 18px;
    width: 18px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    z-index: 2;
    align-items: center;
    justify-content: center;
}

.form__item.form__item_checkbox .checkbox__custom svg {
    opacity: 0;
}

.form__item.form__item_checkbox.form__item_checkbox_disabled .checkbox__input {
    opacity: 0.5;
}

.form__item.form__item_checkbox.form__item_checkbox_disabled .checkbox__label {
    color: rgba(180, 171, 132, 0.35);
}

.form__item.form__item_checkbox a {
   text-decoration: underline; 
}

.form__item.form__item_checkbox a:hover {
    text-decoration: none;
}



input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

/* Для Firefox */
input[type="date"] {
    -moz-appearance: textfield;
    outline: none;
}

/* Для всех браузеров - скрываем стрелку вниз */
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
    display: none;
}

.form__item {
    gap: 5px;
    display: flex;
    flex-direction: column;
}

.form__item * {
    font-family: var(--font-family-default);
}

.form__item_select option {
    color: var(--color-default);
}

.form__item select,
.form__item input {
    font-weight: 600;
    font-size: 15px;
    line-height: 100%;
    color: var(--color-white);
}

.form__icon {
    border-radius: var(--border-radius);
    aspect-ratio: 1;
    width: 37px;
}

.form__icon img {
    object-fit: contain;
}

.form__item-content {
    gap: 5px;
    display: flex;
    flex-direction: column;
}

.show-more-button {
    margin: 40px auto;
    min-width: 300px;
}

.second-page__hero {
    gap: 30px;
    display: flex;
    flex-direction: column;
    margin-bottom: calc(-1 * var(--section-gap) + 35px);
}

.second-page__hero h1.title {
    margin: 0px;
}



@media (max-width: 380px) {
    .show-more-button,
    .button.news-button {
        min-width: auto;
        width: 100%;
    }
}
/* Place navigation halfway over carousel edges on tablet and mobile. */
@media (max-width: 1260px) {
    .swiper-slider__wrapper { padding-inline: 8px; }
    .slider__actions, .team .slider__actions {
        position: absolute;
        top: 50%;
        bottom: auto;
        left: -19.5px;
        width: calc(100% + 39px);
        height: auto;
        margin: 0;
        transform: translateY(-50%);
        z-index: 5;
        pointer-events: none;
    }
    .slider__actions .button { pointer-events: auto; margin: 0; }
}
