:root {
    --link-color: #012672;
    --primary-color: var(--bs-blue);
}

header {
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: rgb(200 200 255 / 80%);
}

header ul.nav a {
    color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
    text-decoration: none;
    padding: 4px 8px;
    margin-inline: 5px;
}

@media screen and (width >768px) {
    header .menu-button {
        display: none;
    }

    aside {
        display: none;
    }
}

@media screen and (width <=768px) {
    nav ul.nav {
        display: none;
    }
}

aside {
    position: fixed;
    inset: 0;
    z-index: 1;
    background-color: white;
    transition: 0.2s;
}

aside.hide {
    left: 100%;
}

aside ul.nav {
    flex-direction: column;
    gap: 20px;
    padding-inline: 20px;
}

aside li a {
    color: var(--link-color);
    text-decoration: none;
}

.background-image {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    color: white;
    min-height: 100vh;
    background-image: url("../img/generated/Picsart_25-10-03_16-07-56-309.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.background-image::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.exam .card {
    transition: 0.4s;
}

.exam .card svg {
    transition: 0.4s;
}

.exam .card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px gray;
}

.exam .card:hover svg {
    fill: var(--primary-color);
    translate: 0 -10px;
}

a:has(.card) {
    text-decoration: none;
}

.why .card {
    overflow: hidden;
    background: transparent;
    backdrop-filter: blur(30px);
}

.why .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.card-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    max-width: 100px;
    margin-block: 20px;
    margin-inline: auto;
}


.why-section {
    z-index: 0;
    color: white;
    background: url("../img/generated/Picsart_25-10-03_16-07-56-309.jpg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

.why-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
}

.why-section h2 {
    font-size: 50px;
    text-transform: uppercase;
}

.why-section p {
    color: white;
    text-align: center;
    font-size: 26px !important;
}

.accordion {
    padding-block: 20px;
}

.accordion h2 button {
    font-size: 18px !important;
}

.no-results {
    text-align: center;
    padding-block: 100px;
}

.pagination {
    margin-bottom: 40px;
}

.pagination li button {
    box-shadow: none !important;
}

.page-info {
    text-align: justify;
    background: #f1f1f1;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid #d7d7d7;
}

.contact-me-button {
    --color: white;
    color: var(--color);
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    line-height: 1;
    font-weight: 500;
    font-size: 20px;
    border: none;
    border-radius: 12px;
    padding: 6px 10px 8px 10px;
    backdrop-filter: blur(36px);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.4s;
}

.contact-me-button span {
    transition: 0.4s;
}

.contact-me-button:active {
    scale: 0.96;
}

.contact-me-button:hover svg {
    translate: 30px 0;
    width: 0;
}

.contact-me-button svg {
    fill: var(--color);
    width: 24px;
    height: 24px;
    margin-top: 2px;
    transition: 0.4s;
}

.contact-me-button:hover svg.first {
    translate: 0;
    width: 24px;
}

.contact-me-button svg.first {
    translate: -30px 0;
    width: 0;
}

footer {
    color: white;
    position: relative;
    z-index: 0;
    background-image: url("../img/generated/Picsart_25-10-03_16-07-56-309.jpg");
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.8);
}

footer a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

footer a:hover {
    color: gray;
}

footer li span {
    color: rgb(175 175 175);
}

footer svg.settings {
    position: absolute;
    right: 0;
    width: 20px;
    height: 20px;
    padding: 0px;
    fill: #afafaf;
    cursor: pointer;
}
/* Скрываем всю правую колонку с формой */
.contacts .row .column:last-child {
    display: none;
}
/* Растягиваем оставшуюся колонку на всю ширину */
.contacts .row .column:first-child {
    flex: 1 0 100%;
}
.glass-button {
    display: inline-block;
    padding: 8px 20px;
    font-size: 16px;
    background: transparent;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}