a:focus,
a:active,
button:focus,
button:active,
.image-wrapper:focus,
.image-wrapper:active {
    outline: none;
}

* {
    padding: 0px;
    margin: 0px;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

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

/* Links */

a,
a:link,
a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-size: inherit;
    font-weight: inherit;
}

ul,
ul li {
    list-style: none;
}

img {
    vertical-align: top;
}

img,
svg {
    max-width: 100%;
    height: 100%;
}

address {
    font-style: normal;
}

/* favorite */
.favorite {
    position: absolute;
    display: none;
    text-align: center;
    justify-content: center;
    top: 10px; /* Отступ сверху */
    right: 10px; /* Отступ справа */
    width: 30px;
    height: 30px;
    padding-top: 4px;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    z-index: 2;
}
.favorite.active {
    display: flex;
}
.favorite.active svg path {
    fill: #b82f36;
    stroke: #b82f36;
}
@media screen and (max-width: 480px) {
    .favorite {
        display: block;
        top: 5px; /* Отступ сверху */
        right: 5px; /* Отступ справа */
        background: none; /* Убираем фон */
        border: none; /* Убираем границы */
        padding: 0; /* Убираем внутренние отступы */
        margin: 0; /* Убираем внешние отступы */
        width: 30px;
        height: 30px;
    }
}
/* Form */

input,
textarea,
button,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
    display: none;
}

button,
input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
    outline: none;
}

button::-moz-focus-inner {
    padding: 0;
    border: 0;
}

label {
    cursor: pointer;
}

legend {
    display: block;
}

@media screen and (max-width: 480px) {
    * {
        /* overflow-x: hidden; */
    }
}
a,
button,
input,
select,
h1,
h2,
h3,
h4,
h5,
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: none;
    background: none;
    color: inherit;
    -webkit-font-smoothing: antialiased;
}
h1 {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 600;
}
menu,
ol,
ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* Скрыть горизонтальный скролл */
    max-width: 100%; /* Ограничить ширину контента */
}
.header,
.header * {
    box-sizing: border-box;
}

.hidden {
    transform: translateY(-100%);
}
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header--hidden {
    transform: translateY(-100%);
}
.header {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    flex-shrink: 0;
    height: fit-content;
    position: relative;
    border-bottom: 1px solid var(--border_gray);
    top: 0;
}
.header-main-line {
    grid-column: 2/12;
    background: #ffffff;
    border-style: solid;
    border-color: #ffffff;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}
.header-main-line-left {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}
main {
    padding-top: 70px; /* чтобы контент не залазил под фиксированную шапку */
}
.logo {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    height: 83px;
    width: 116px;
}
.logo img {
    height: 46px;
    width: 110px;
}
.logo_name {
    color: var(--primary);
    text-align: center;
    font-family: "PlayfairDisplay";
    font-size: 34px;
    font-weight: 700;
    position: relative;
    line-height: 0.9;
}
.header-main-line-right {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    position: relative;
}
.navig_line {
    display: flex;
    flex-direction: row;
    gap: 25px;
}
.nav_active {
    color: var(--primary);
    text-align: left;
    font-family: "Roboto-Medium", sans-serif;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}
.nav {
    color: #000000;
    text-align: left;
    font-family: "Roboto-Medium", sans-serif;
    font-size: 16px;
    font-weight: 500;
    position: relative;
}
.nav:hover {
    color: var(--primary);
}
.header-main-line-right a {
    display: flex;
    text-align: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    height: fit-content;
    width: fit-content;
}
.akar-icons {
    fill: black;
    cursor: pointer;
    transition: 0.3s;
}
.akar-icons:hover {
    fill: var(--primary);
}
.main_container {
    display: grid;
    margin-top: 20px;
    flex-direction: column;
    grid-template-columns: repeat(12, 1fr);
    align-items: start;
    background: white;
    height: fit-content;
}
.content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: start;
    grid-column: 2/12;
    height: fit-content;
}

.hamburger_menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.hamburger_menu ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

/* Стили для бургер-иконки */
.burger {
    display: none; /* Скрыто по умолчанию */
    flex-direction: column;
    cursor: pointer;
    width: fit-content;
    height: fit-content;
    gap: 3px;
}

.gap {
    margin-block: 30px;
}
.gap-mini {
    margin-block: 15px;
}
.gap_line {
    width: 100%;
    height: 2px;
    background-color: var(--border_gray);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Тень */
    margin: 10px 0;
}
.title_center {
    width: 100%;
    height: auto;
    color: #000000;
    text-align: center;
    font-family: "Commissioner-SemiBold", sans-serif;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    align-self: stretch;
    margin-bottom: 67px;
}
@media (max-width: 480px) {
    .main_container {
        margin-top: 0px;
    }
    .content {
        grid-column: 1/13;
        padding-inline: 10px;
    }
    main {
        padding-top: 40px; /* чтобы контент не залазил под фиксированную шапку */
    }
    .title_center {
        width: 100%;
        height: auto;
        color: #000000;
        text-align: center;
        font-family: "Commissioner-SemiBold", sans-serif;
        font-size: 20px;
        font-weight: 600;
        position: relative;
        align-self: stretch;
        margin-bottom: 30px;
    }
    .hamburger_menu {
        position: fixed;
        top: 0;
        right: -100%; /* Меню скрыто за пределами экрана */
        width: fit-content;
        height: 100vh;
        background: white;
        border-right: 2px solid var(--border_gray);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .hamburger_menu.active {
        right: 0; /* Меню появляется */
    }

    .hamburger_menu ul {
        padding: 35px;
        flex-direction: column;
        gap: 30px;
    }
    .hamburger_menu ul li {
        color: #000000;
    }
    .hamburger_menu ul li a {
        color: #000000;
        text-align: center;
        font-family: "Commissioner-SemiBold", sans-serif;
        font-size: 20px;
        font-weight: 600;
    }
    .hamburger_menu ul li a:hover {
        color: var(--primary);
    }

    .burger {
        display: flex; /* Показываем бургер на мобильных устройствах */
    }
    .burger span {
        width: 16px;
        height: 3px;
        background: black;
        transition: all 0.3s ease;
    }

    /* Анимация бургер-иконки */
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px) scale(0.8);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px) scale(0.8);
    }
}
.relinker {
    display: flex;
    justify-content: space-between;
    color: #ffffff;
    font-weight: 600;
    font-size: 30px;
    align-items: center;
    padding: 25px;
    height: fit-content;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.5); /* полупрозрачный черный */
    background-blend-mode: overlay;
    margin-block: 30px;
}
@media screen and (max-width: 480px) {
    .relinker {
        display: flex;
        justify-content: space-between;
        color: #ffffff;
        font-weight: 600;
        font-size: 20px;
        align-items: center;
        padding: 10px;
        border-radius: 0px;
        margin-top: 0px;
        margin-bottom: 10px;
        width: 100svw;
        margin-left: 50%;
        transform: translateX(-50%);
    }
    .relinker .button {
        height: 100%;
        width: fit-content;
        padding: 2px;
        font-weight: 600;
        font-size: 12px;
    }
    .navig_line {
        display: none;
    }
    .header {
        height: fit-content;
        padding: 5px 10px;
    }
    .header-main-line {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        grid-column: 1/13;
        height: fit-content;
    }
    .logo {
        font-size: 16px;
    }
    .akar-icons {
        transform: scale(0.8);
    }
    .logo_name {
        display: none;
    }
    .logo img {
        height: 23px;
        width: 55px;
    }
    .gap {
        margin-block: 5px;
    }
}
/* footer */
svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}
.footer {
    background-color: #fff; /* Белый фон */
    color: black; /* Чёрный текст */
    text-align: left;
    justify-content: end;
    border-top: 2px solid var(--b82f36);
    margin-top: 30px;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.footer-title {
    font-size: 20px;
    font-weight: bold;
}

.footer-contact {
    font-size: 16px;
    margin-top: 5px;
}

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

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-line {
    margin: 20px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.footer-copyright {
    font-size: 14px;
    color: #666;
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 20px;
    }
}

/* fination */
/* Основной контейнер пагинации */
.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    font-family: "Poppins-SemiBold", sans-serif;
}

/* Список элементов пагинации */
.pagination-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 5px; /* Расстояние между элементами */
}

/* Элементы пагинации (кнопки) */
.pagination-list a li {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.pagination-list li {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--border_gray);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.pagination-list a li:hover {
    background-color: var(--primary);
}
.pagination-list li.disabled {
    cursor: none;
}
.pagination-list li.disabled:hover {
    background-color: var(--border_gray);
    color: black;
    cursor: not-allowed;
}
/* Ссылки внутри элементов */
.pagination-list a {
    text-decoration: none;
    color: #333;
}
.pagination-list a li:hover {
    text-decoration: none;
    color: #f9f9f9;
}

/* Активная страница */
.pagination-list a li.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination-list li.active span {
    color: #fff;
}

/* buttons */
.buttons {
    width: 100%;
    margin-top: auto;
    display: flex;
    gap: 25px;
    flex-direction: row;
    object-fit: cover;
}
.buttons_mobile {
    display: none;
}

.button {
    display: inline-flex;
    background-color: var(--border_gray);
    color: #000000;
    height: 40px;
    border-radius: 8px;
    min-width: 150px;
    width: 400px;
    text-align: center;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 16px;
    line-height: 16px;
    font-weight: 500;
    transition: 0.3s;
    font-family: "Poppins-Medium", sans-serif;
    margin: 0 auto;
    z-index: 2;
}
.button svg {
    transition: 0.3s;
}

.button:hover {
    background-color: var(--primary);
    color: #ffffff;
}
.button:hover svg {
    fill: #ffffff !important;
}

@media screen and (max-width: 480px) {
    .logo {
        height: fit-content;
        width: fit-content;
    }
    /* pagination */
    /* Основной контейнер пагинации */
    .pagination {
        display: flex;
        justify-content: center;
        margin: 20px 0;
        font-family: "Poppins-SemiBold", sans-serif;
    }

    /* Список элементов пагинации */
    .pagination-list {
        list-style: none;
        padding: 0;
        display: flex;
        gap: 5px; /* Расстояние между элементами */
    }

    /* Элементы пагинации (кнопки) */
    .pagination-list a li {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: #f9f9f9;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    .pagination-list li {
        padding: 8px 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background-color: var(--border_gray);
        cursor: pointer;
        transition: background-color 0.3s ease;
    }
    .pagination-list a li:hover {
        background-color: var(--primary);
    }
    .pagination-list li.disabled {
        cursor: none;
    }
    .pagination-list li.disabled:hover {
        background-color: var(--border_gray);
        color: black;
        cursor: not-allowed;
    }
    /* Ссылки внутри элементов */
    .pagination-list a {
        text-decoration: none;
        color: #333;
    }
    .pagination-list a li:hover {
        text-decoration: none;
        color: #f9f9f9;
    }

    /* Активная страница */
    .pagination-list a li.active {
        background-color: var(--primary);
        border-color: var(--primary);
    }

    .pagination-list li.active span {
        color: #fff;
    }
    .buttons {
        display: none;
        order: 3;
        margin-block: 15px;
    }

    .buttons_mobile {
        max-width: 100%;
        margin-top: auto;
        display: flex;
        margin-block: 17px;
        gap: 25px;
        flex-direction: row;
        object-fit: cover;
    }
    .button {
        display: inline-flex;
        background-color: var(--border_gray);
        color: #000000;
        height: 40px;
        border-radius: 8px;
        min-width: 60px;
        max-width: 100%;
        text-align: center;
        justify-content: center;
        align-items: center;
        gap: 5px;
        cursor: pointer;
        font-size: 16px;
        line-height: 16px;
        font-weight: 500;
        transition: 0.3s;
        font-family: "Poppins-Medium", sans-serif;
        margin: 0 auto;
    }
}

/* text-field */
.text-field {
    margin-bottom: 1rem;
}

.text-field__label {
    display: block;
    margin-bottom: 0.25rem;
}

.text-field__input {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;

    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #bdbdbd;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    /* border: 1px solid #d88c8c; */
}
.text-field__input_invalid {
    display: block;
    width: 100%;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: black;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d30505;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    /* border: 1px solid #d88c8c; */
}

.text-field__input_invalid::placeholder {
    color: #d30505;
    opacity: 0.4;
}

.text-field__input_invalid:focus {
    color: #212529;
    background-color: #fff;
    border-color: #b12e2e;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

.text-field__input::placeholder {
    color: #212529;
    opacity: 0.4;
}

.text-field__input:focus {
    color: #212529;
    background-color: #fff;
    border-color: #bdbdbd;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(158, 158, 158, 0.25);
}

.text-field__input:disabled,
.text-field__input[readonly] {
    background-color: #f5f5f5;
    opacity: 1;
}
.emailStatus {
    font-family: "Commissioner-SemiBold", sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-block: 10px;
    color: black;
    width: fit-content;
    padding: 0.375rem 0.375rem;
    border: 1px solid #d30505;
    border-radius: 10px;
}
