:root {
    --color-light: #F7F8F9;
    --color-red: #E30613;
    --color-fiol: #1D1D53;
    --color-dark: #2a2a2d;
}

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

html {
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    font-family: "Lato", "Arial", sans-serif;
    color: var(--color-dark);

    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100%;

    background-color: #fff;
}

:target{
    scroll-margin-top: 110px;
}

.wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: calc(100 * var(--vh, 1vh));
}

.wrapper main {
    flex-grow: 1;
}

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;

  white-space: nowrap;

  border: 0;

  clip: rect(0 0 0 0);
  clip-path: inset(100%);
}


a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color .3s ease;
}

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

textarea {
    resize: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    margin: 0;

    appearance: none;
}

input[type="number"] {
    appearance: textfield;
}

select,
textarea,
input:matches([type="email"],
    [type="number"],
    [type="password"],
    [type="search"],
    [type="tel"],
    [type="text"],
    [type="url"]) {
    appearance: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    appearance: none;
}

@font-face {
    font-style: normal;
    font-weight: 400;
    font-family: "Lato";

    font-display: swap;
    src:
        url("../fonts/Lato-Regular.woff2") format("woff2"),
        url("../fonts/Lato-Regular.woff") format("woff");
}

@font-face {
    font-style: normal;
    font-weight: 500;
    font-family: "Lato";

    font-display: swap;
    src:
        url("../fonts/Lato-Medium.woff2") format("woff2"),
        url("../fonts/Lato-Medium.woff") format("woff");
}

@font-face {
    font-style: normal;
    font-weight: 600;
    font-family: "Lato";

    font-display: swap;
    src:
        url("../fonts/Lato-Semibold.woff2") format("woff2"),
        url("../fonts/Lato-Semibold.woff") format("woff");
}

@font-face {
    font-style: normal;
    font-weight: 700;
    font-family: "Lato";

    font-display: swap;
    src:
        url("../fonts/Lato-Bold.woff2") format("woff2"),
        url("../fonts/Lato-Bold.woff") format("woff");
}

.red {
    color: var(--color-red);
}

.title {
    font-weight: 700;
    font-size: 42px;
    line-height: 110%;
    margin: 0;
}

.container {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1023px) {
    .container {
        padding: 0 15px;
    }
}

.bg-img {
    background-image: url('/assets/theme/img/main-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.mt-110 {
    margin-top: 110px;
}

.mb-80 {
    margin-bottom: 80px;
}

@media (max-width: 767px) {
    .mb-80 {
        margin-bottom: 40px;
    }
    
    .mt-110 {
        margin-top: 90px;
    }
}

ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style-image: url('/assets/theme/img/arrow-icon.svg');
}

ul li {
    font: inherit;
    opacity: 0.8;
    margin-bottom: 15px;
}

ul li:last-child {
    margin: 0;
}

ol {
    counter-reset: num;
    list-style: none;
    padding: 0;
}

ol li {
    counter-increment: num;
}

ol li:before {
	content: "/" counter(num);
	color: var(--color-red);
    font-weight: 400;
    font-size: 0.8em;
    line-height: 120%;
    margin-right: 1em;
}

ol li:nth-child(-n+9):before {
	content: "/0" counter(num);
}

.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.col-2 {
    grid-column: auto /span 2;
}

@media (max-width: 539px) {
    .col-2 {
        grid-column: auto /span 1;
    }
}

.link-underline {
    text-decoration: underline;
    text-underline-offset: 5px;
}

@media (max-width: 1023px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 959px) {
    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 40px;
    border: none;
    outline: none;
    border: 1px solid var(--color-red);
    background-color: var(--color-red);
    border-radius: 12px;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    min-height: 40px;
}

.btn:hover,
.btn:focus {
    background-color: #fff;
    color: var(--color-red)
}

.btn--icon {
    padding: 0;
    width: 30px;
    height: 30px;
    min-height: 0;
}

.logo {
    position: relative;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo img {
    width: 210px;
    height: 47px;
}

.logo a:hover,
.logo a:focus {
    opacity: 0.5;
}

@media(max-width: 767px) {
    .logo img {
        width: 160px;
        height: 35px;
    }
}

.custom-input,
.custom-textarea {
    position: relative;
    flex: 1;

    display: flex;
    flex-direction: column;
    width: 100%;

    font-size: 16px;
    line-height: 18px;
    color: var(--color-navy);
}

.custom-input input,
.custom-textarea textarea {
    width: 100%;
    margin-left: auto;
    padding: 10px 20px;
    font: inherit;
    color: inherit;
    outline: none;
    background-color: transparent;
    transition: border 0.3s ease;
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: inherit;
    min-height: 49px;
    border: 1px solid var(--color-dark);
    border-radius: 12px;
}

.custom-input input::-webkit-input-placeholder,
.custom-textarea textarea ::-webkit-input-placeholder {
    color: #808080;
}

.custom-input input:hover,
.custom-textarea textarea:hover,
.custom-input input:focus,
.custom-textarea textarea:focus {
    border-color: rgba(0,0,0,0.5);
}

.custom-textarea textarea {
    height: 100px;
}

.custom-toggle {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 10px 15px;
    background: #fff;
    border-radius: 12px;
}

.custom-toggle input {
    position: absolute;
    
    width: 1px;
    height: 1px;
    margin: -1px;
    
    clip: rect(0 0 0 0);
 }

 .custom-toggle label {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;

    cursor: pointer;
 }

.custom-toggle__label {
    flex: 1;
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
}

.custom-toggle__icon {
    margin-right: 12px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C6C7C6;
    width: 30px;
    height: 30px;
    border: 1px solid #C6C7C6;
    border-radius: 12px;
}

.custom-toggle__icon  svg {
    width: 9px;
    height: 7px;
}

.custom-toggle label:hover .custom-toggle__icon,
.custom-toggle label:focus .custom-toggle__icon  {
    border-color: var(--color-red);
    color: var(--color-red);
}

.custom-toggle input:checked + .custom-toggle__icon {
    background-color: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
}

.arrow {
    opacity: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform-origin: 50% 50%;
    transform: translate3d(-50%, -50%, 0);
}

.arrow-first {
    animation: arrow-movement 2s ease-in-out infinite;
}
.arrow-second {
    animation: arrow-movement 2s 1s ease-in-out infinite;
}

.arrow:before,
.arrow:after {
    background: #fff;
    content: '';
    display: block;
    height: 3px; 
    position: absolute;
        top: 0;
        left: 0;
    width: 30px;
}

.arrow:before {
    transform: rotate(45deg) translateX(-23%);
    transform-origin: top left;
}

.arrow:after {
    transform: rotate(-45deg) translateX(23%);
    transform-origin: top right;
}


@keyframes arrow-movement {
    0% { 
        opacity: 0;
        top: 45%;
    }
    70% {
        opacity: 1;
    }
    100% { 
        opacity: 0;
    }
}

.nav {
    display: flex;
}

.nav__list {
    width: 100%;
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    gap: 30px;
}

.nav__item {
    margin: 0;
}

.nav__link {
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

.nav__link:hover,
.nav__link:focus {
    color: var(--color-red);
}

@media(max-width: 1239px) {
    .nav {
        margin-bottom: 20px;
    }

    .nav__list {
        flex-direction: column;
        gap: 15px;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 50;
} 

.header__bottom-menu {
    position:absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%,100%);
    width: 100vw;
    padding: 20px 0;
    background-color: var(--color-light);
    z-index: 10;
    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.header__menu.is-active  .header__bottom-menu{
    opacity: 1;
    visibility: visible;
}

.header__top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 0;
}

.header__wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header__menu {
    display: contents;
}

.header__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header__contact-title {
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    margin-bottom: 4px;
}

.header__contact-info {
    font-weight: 700;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
}

.header__contact.phones a {
    font-weight: 700;
    font-size: 17px;
    line-height: 20px;
    text-align: right;
}

.header__contact a:hover {
    color: var(--color-red);
}

.header__btn {
    min-height: 40px;
}

.header__btn  .btn__icon {
   display: none;
}

.header__btn  .btn__icon svg {
    width: 20px;
    height: 20px;
 }

.header__burger {
    position: relative;
    display: flex;
    outline: none;
    padding: 0;
    z-index: 50;
    cursor: pointer;
    color: #fff;
    width: 40px;
    height: 40px;
    background: var(--color-fiol);
    border: 1px solid var(--color-fiol);
    border-radius: 10px;
    flex-shrink: 0;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.header__burger:hover {
    color: var(--color-fiol);
    background-color: #fff;
}

.header__burger svg {
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    transition: opacity 0.3s ease;
}

.header__burger .icon-close {
    opacity: 0;
}

.header__burger.is-open .icon-close {
    opacity: 1;
}

.header__burger.is-open .icon-open {
    opacity: 0;
}

@media(max-width: 1239px) {
    .header__menu {
        position: fixed;
        top: 22px;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
        background-color: #fff;
        width: 100%;
        max-width: fit-content;
        height: auto;
        max-height: 100vh;
        overflow: auto;
        opacity: 0;
        visibility: hidden;
        z-index: 50;
        padding: 100px 50px 50px;
        border-radius: 12px;
        box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.12);
        transition: opacity 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
    }

    .header__bottom-menu {
        position:relative;
        transform: none;
        left: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        background-color: #fff;
        width: auto;
    }

    .header__menu.is-active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }
}

@media(max-width: 1023px) {
    .header__top {
        padding: 22px 0;
    }
}

@media(max-width: 767px) {
    .header__btn {
        padding: 0;
        width: 40px;
        height: 40px;
    }

    .header__btn  .btn__text {
        display: none;
    }
    
    .header__btn  .btn__icon {
        display: block;
    }
}

.swiper {
    z-index: 0;
}

.swiper-btn-next,
.swiper-btn-prev {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background-color: #fff;
    color: var(--color-fiol);
    cursor: pointer;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border-radius: 12px;
    transform: translateY(-50%);
    z-index: 20;
    position: absolute;
    top: 50%;
    user-select: none;
}

.swiper-btn-prev {
    left: 20px;
}

.swiper-btn-next {
    right: 20px;
}

.swiper-btn-next svg ,
.swiper-btn-prev svg {
    width: 39%;
    height: 39%;
}

.swiper-button-lock {
    display: none;
}

.swiper-btn-next:disabled,
.swiper-btn-prev:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.swiper-btn-next:hover,
.swiper-btn-prev:hover {
    background-color: var(--color-fiol);
    color: #fff;
}

.hero {
    padding: 40px 0;
}

.hero__wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

@media(max-width: 1023px) {
    .hero {
        padding: 20px 0;
    }
    
    .hero__wrap {
        grid-template-columns: 100%;
        gap: 20px;
    }
}

@media(max-width: 767px) {
    .hero {
        padding: 20px 0;
    }
}

.top{
    grid-column: 1 / -1;
}

.gallery {
    position: relative;
    padding: 40px 0;
    background-color: var(--color-fiol);
}

.gallery .swiper-slide {
    cursor: pointer;
}

.gallery__img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
} 

.gallery__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width: 767px) {
    .gallery {
        margin: 0 -15px 20px;
    }

    .gallery__img {
        width: 210px;
        height: 210px;
    } 
    
    .gallery .swiper-btn-prev,
    .gallery .swiper-btn-next {
        display: none;
    }
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    height: auto;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
}

.card__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
}

.card__decor {
    position: absolute;
    top: -10px;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card__img {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
}

.card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__text {
    font-weight: 700;
    font-size: 16px;
    line-height: 120%;
    margin-top: auto;
    padding-right: 40px;
}

.card .btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    transition: color 0.3s ease, background-color 0.3s ease;
    background-color: #fff;
    color: var(--color-red);
}

.card:hover {
    box-shadow: 0px 4px 20px rgba(29, 29, 83, 0.4);
}

.card:hover .btn {
    color: #fff;
    background-color: var(--color-red);
}

.card:hover .card__decor {
    opacity: 1;
}

@media(max-width : 767px) {
    .card {
        padding: 20px;
    }
    
    .card__img {
        width: 40px;
        height: 40px;
    }

    .card .btn {
        position: absolute;
        bottom: 20px;
        right: 20px;
    }
}

.top__title {
    font-weight: 700;
    font-size: 50px;
    line-height: 110%;
    margin: 0 0 10px;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-fiol);
}

.top__subtitle {
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-fiol);
}

.top__wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.top__block {
    display: contents;
}

.top__item {
    font-weight: 800;
    font-size: 24px;
    line-height: 120%;
}

.top__item img {
    flex-shrink: 0;
    width: 40px;
    height: 28px;
}

@media(max-width : 1023px) {
    .top__title {
        font-size: 40px;
    }
    
    .top__subtitle {
        font-size: 30px;
    }

    .top__item {
        font-size: 20px;
    }
    
    .top__item img {
        width: 30px;
        height: 24px;
    }
}

@media(max-width : 767px) {
    .top__title {
        font-size: 24px;
    }
    
    .top__subtitle {
        font-size: 20px;
    }
    .top__item {
        font-size: 14px;
    }
    
    .top__item img {
        width: 20px;
        height: 13px;
    }
}

@media(max-width : 539px) {
    .top__title {
        font-size: 20px;
    }
    
    .top__subtitle {
        font-size: 18px;
    }
    
    .top__wrap {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .top__block {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .top__block:last-child {
       display: none;
    }
}

 
.portfolio .title {
    margin-bottom: 40px;
    text-align: center;
}

.portfolio__slider {
    position: relative;
}

.portfolio-card {
    background: var(--color-light);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 20px;
}

.portfolio-card__info {
    flex:1;
    padding-bottom: 50px;
}

.portfolio-card__name {
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    margin-bottom: 28px;
}

.portfolio-card__text {
    font-size: 18px;
    line-height: 120%;
    opacity: 0.8;
    margin-bottom: 40px;
}

.portfolio-card__text p {
    margin: 0 0 20px;
}

.portfolio-card__text li {
    font-size: 18px;
    line-height: 120%;
    opacity: 0.8;
    margin-bottom: 14px;
}

.portfolio-card .btn {
    width: 100%;
    max-width: 325px;
    min-height: 60px;
}

.portfolio-card__photos {
    position: relative;
    flex: 1;
    aspect-ratio: 640 /512;
    border-radius: 12px;
    overflow: hidden;
}

.portfolio-card__photos .swiper {
    width: 100%;
    height: 100%;
}

.portfolio-card__photo {
    width: 100%;
    height: 100%;
}

.portfolio-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio .swiper-btns {
    position: absolute;
    left: 30px;
    bottom: 30px;
    z-index: 20;
    display: flex;
    gap: 22px;
}

.portfolio__slider .swiper-btns .swiper-btn-next,
.portfolio__slider .swiper-btns .swiper-btn-prev {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    background-color: rgba(29,29,83,0.2);
}
.portfolio__slider .swiper-btns .swiper-btn-next:hover,
.portfolio__sliders .swiper-btns .swiper-btn-prev:hover {
    background-color: var(--color-fiol);
}

@media(max-width: 1023px) {
    .portfolio-card {
        flex-direction: column-reverse;
    }

    .portfolio .swiper-btns {
        width: calc(100% - 60px);
        justify-content: space-between;
    }
}

@media(max-width: 767px) {
    .portfolio-card .btn {
        max-width: 100%;
    }
}

.advantages__wrap {
    display: flex;
    gap: 20px;
}

.advantages__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.advantages .title {
    margin-bottom: 20px;
}

.advantages__desc {
    font-size: 18px;
    line-height: 140%;
    opacity: 0.8;
    margin-bottom: 50px;
    max-width: 550px;
}

.advantages .btn {
    max-width: 325px;
}

.advantages__list {
    flex: 1;
    display: grid;
    background: rgba(29,29,83,1);
    border-radius: 12px;
    padding: 30px;
    gap: 20px;
}

.advantages--hero .advantages__list {
    padding: 20px;
    background: rgba(29,29,83,1);
}

.advantages__item {
    display: flex;
    background: #FFFFFF;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
    gap: 20px;
    padding: 10px;
    align-items: center;
}

.advantages--hero .advantages__item {
    gap: 15px;
    padding: 5px;
}

.advantages__item:hover {
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.12);
}

.advantages--hero  .advantages__item:hover {
    box-shadow: none;
}

.advantages__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--color-light);
    border-radius: 12px;
    flex-shrink: 0;
}

.advantages--hero .advantages__icon {
    width: 60px;
    height: 60px;
}

.advantages__icon img {
    width: 70px;
    height: 70px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.advantages__item:hover img {
    opacity: 1;
}

.advantages--hero  .advantages__icon img {
    width: 30px;
    height: 30px;
    opacity: 1;
}

.advantages__text {
    font-size: 18px;
    line-height: 140%;
    opacity: 0.8;
}

.advantages--hero  .advantages__text {
    font-size: 13px;
    line-height: 120%;
}

@media(max-width : 1023px) {
    .advantages__wrap {
        flex-direction: column;
    }
}

@media(max-width : 767px) {
    .advantages__list {
        padding: 20px;
    }

    .advantages__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .advantages--hero .advantages__item {
        flex-direction: row;
        align-items: center;
    }

    .advantages__icon {
        width: 60px;
        height: 60px;
    }

    .advantages__icon img {
        width: 30px;
        height: 30px;
    }

    .advantages__text {
        font-size: 14px;
    }

    .advantages--hero .advantages__list {
        grid-template-columns: 1fr;
    }
}

@media(max-width : 539px) {
    .advantages--hero  .advantages__item {
        flex-direction: column;
        align-items: flex-start;
    }
}

.services {
    padding: 40px 0;
}

.services--hero {
    padding: 0;
}

.services__top {
    display: flex;
    margin-bottom: 40px;
    gap: 40px;
    align-items: center;
}

.services__top .title {
    flex: 1;
}

.services__text {
    flex:1;
    font-size: 18px;
    line-height: 140%;
    opacity: 0.8;
}

.services__list {
    height: 100%;
    grid-auto-flow: row dense;
}

.service__title {
    font-weight: 700;
    font-size: 36px;
    line-height: 120%;
    color: #000;
    margin: 0 0 30px;
    text-align: center;
}

.service__desc {
    flex: 1;
    font-size: 18px;
    line-height: 120%;
    opacity: 0.8;
    margin-bottom: 30px;
    padding-left: 30px;
}

.service__slider {
    width: 50%;
}

.service__subtitle {
    font-weight: 700;
    font-size: 32px;
    line-height: 120%;
    text-align: center;
    margin: 0 0 20px;
}

.service__content {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 50px;
}

.service__item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.service__icon {
    width: 45px;
    height: 40px;
}

.service__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service__img {
    width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 12px;
    overflow: hidden;
}

.service__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media(max-width : 1023px) {
    .services__top {
        flex-direction: column;
        gap: 20px;
    }
    
    .service__content {
        flex-direction: column;
    }
    
    .service__slider {
        width: 100%;
    }
    
    .service__desc {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 20px;
        padding-left: 0;
    }
}

@media(max-width : 767px) {
    .services__list {
        grid-template-columns: 1fr 1fr;
    }
    
    .service__desc {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
        font-size: 14px;
    }

    .service__title {
        font-size: 24px;
        margin: 0 0 15px;
    }

    .service__slider {
        margin-bottom: 20px;
    }
    
    .service__subtitle {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 10px;
    }
}

@media(max-width : 539px) {
    .services__list {
        grid-template-columns: 1fr;
    }
    
    .service__desc {
        grid-template-columns: 1fr;
    }
}

.features__wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
}

.features__img {
    position:absolute;
    top: 0;
    left: 0;
    height: 100%;
    aspect-ratio: 480 / 550;
    border-radius: 12px;
    overflow: hidden;
    z-index: -1;
}

.features__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features__content {
    max-width: 940px;
    margin: 50px;
    margin-right: 0;
    background: rgba(247, 248, 249, 0.88);
    border: 1px solid #F7F8F9;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
}

.features .title {
    margin-bottom: 40px;
}

.features__list {
    display: grid;
    grid-template-columns:  1fr 1fr;
    gap: 40px 25px;
}

.features__item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.features__icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.features__icon svg,
.features__icon img {
    width: 24px;
    height: 24px;
}

.service .features__list {
    gap: 10px;
}

.service .features__item {
    gap: 12px;
    padding: 5px;
    border-radius: 12px;
    background: var(--color-fiol);
    color: #fff;
}

@media(max-width : 1023px) {
    .features__content {
        max-width: 540px;
    }

    .features__list {
        grid-template-columns:  1fr;
        gap: 20px;
    }
    
    .service .features__list {
       grid-template-columns:  1fr 1fr;
    }
}

@media(max-width : 767px) {
    .features__content {
        margin: 15px;
        padding: 15px;
    }

    .service .features__list {
        grid-template-columns:  1fr;
    }

    .features__item {
        align-items: flex-start;
        gap: 5px;
    }

    .features__text {
        font-size: 14px;
    }

    .features__icon {
        width: 30px;
        height: 30px;
    }
    
    .features__icon svg,
    .features__icon img {
        width: 12px;
        height: 12px;
    }
}


.feedback__wrap {
    background: var(--color-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
}

.feedback__info {
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.feedback__text {
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
    opacity: 0.8;
    margin-bottom: 20px;
}

.feedback .title {
    max-width: 610px;
    margin-bottom: 30px;
}
.feedback__list {
    margin-bottom: 40px;
}

.feedback__img {
    position: relative;
    width: 40%;
    aspect-ratio: 555 / 671;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.feedback__img img {
    width: 100%;
    height:100%;
    object-fit: cover;
}

.feedback__img-text {
    position: absolute;
    z-index: 2;
    font-weight: 700;
    font-size: 24px;
    line-height: 110%;
    color: #fff;
    top: 40%;
    left: 17%;
}

.feedback__img-text span:last-child {
    display: block;
    font-weight: 400;
    font-size: 18px;
    opacity: 0.6;
    transform: translateX(-26px);
}

@media(max-width : 1023px) {
    .feedback__wrap {
        flex-direction: column;
    }

    .feedback__img {
        align-self: flex-end;
    }
}

@media(max-width : 767px) {
    .feedback__img {
        width: 100%;
    }

    .feedback__info {
        padding: 20px;
    }
    
}

.form__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__accept {
    font-weight: 500;
    font-size: 12px;
    line-height: 14px;
    opacity: 0.6;
    min-height: 49px;
}

.form__accept a {
    text-decoration: underline;
    cursor: pointer;
}

.form__accept a:hover {
    text-decoration: none;
}

@media(max-width : 767px) {
    .form__wrap {
        grid-template-columns: 1fr;
    }
}

.contacts__wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.contacts__list {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--color-light);
    border-radius: 12px;
    padding: 30px;
    min-height: 433px;
    gap: 20px;
    overflow: hidden;
}

.contacts__title {
    margin-bottom: 20px;
    flex: 1;
}

.contacts__item  p {
    margin: 0;
    font-size: 18px;
    line-height: 140%;
}

.contacts__item  a {
    display: block;
    font-weight: 500;
    font-size: 26px;
    line-height: 140%;
    transition: opacity 0.3s ease;
}

.contacts__item  a:hover {
    opacity: 0.7;
}

.contacts__decor {
    position: absolute;
    top: -10px;
    right: 0;
    width: 77px;
    height: 108px;
}

.contacts__decor img {
    width: 100%;
    height:100%;
}

@media(max-width : 1239px) {
    .contacts__wrap {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width : 959px) {
    .contacts__wrap {
        grid-template-columns: 1fr;
    }

    .contacts__list {
        min-height: 0;
    }

    .contacts__title {
        flex: 0;
    }
}

@media(max-width : 767px) {
    .contacts__item  p {
        font-size: 16px;
    }
    
    .contacts__item  a {
        font-size: 20px;
    }
}

.map {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

@media(max-width : 767px) {
    .map {
        height: auto;
        aspect-ratio: 2 / 1;
    }
}

.footer {
    background-color: var(--color-dark);
    color: #fff;
    padding: 30px 0;
    z-index: 5;
}

.footer__wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer__item {
    font-size: 12px;
    line-height: 140%;
    color: #fff;
}

.footer__item a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer__item a:hover {
    color: var(--color-red);
}

@media(max-width : 1023px) {
    .footer {
        position: relative;
    }
}

.grecaptcha-badge {
    z-index: 100;
}
.accept {
    position: fixed;
    bottom: 30px;
    left: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    background-color: #fff;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.accept.active {
    opacity: 1;
    visibility: visible;
}

.accept__btn {
    margin-left: auto;
    width: 80px;
}

@media(max-width : 767px) {
    .accept {
        bottom: 15px;
        left: 15px;
        width: calc(100% - 30px);
        padding: 20px;
    }
}

.modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    transform: scale(1.2);
    visibility: hidden;
    opacity: 0;

    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;

    pointer-events: none;

    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal__wrapper {
    position: relative;

    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100%;
    padding: 40px;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(25, 38, 50, 0.82);
    cursor: pointer;
}

.modal__content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    padding: 40px;
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: opacityr 0.3s ease;
    background-color: var(--color-fiol);
    color: #fff;
}

.modal__close:hover,
.modal__close:focus {
    opacity: 0.6;
}

.modal.active {
    transform: scale(1);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

@media(max-width : 767px) {
    .modal__wrapper {
        padding: 40px 15px;
    }

    .modal__content {
        padding: 50px 15px 15px;
    }
}

.quiz__title {
    font-weight: 700;
    font-size: 32px;
    line-height: 110%;
    text-align: center;
    margin-bottom: 20px;
}

.quiz__content {
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: var(--color-fiol);
    border-radius: 12px;
    overflow: hidden;
    min-height: 304px;
}

.quiz__step {
    display: none;
}

.quiz__step.active {
    display: block;
}

.quiz__progress {
    position: relative;
    width: 100%;
    height: 25px;
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 20px;
}

.quiz__progressbar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--color-red);
    background-image: repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.4) 0,
      rgba(255,255,255,0.4) 10px,
      transparent 10px,
      transparent 20px
    );
    border-radius: 50px;
    transition: width 0.3s ease;
    overflow: hidden;
    z-index: 5;
}

.quiz__count {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    transform: translate(-50%, -50%);
    text-wrap: nowrap;
    font-weight: 700;
    font-size: 12px;
    line-height: 14px;
}

.quiz__step-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
}

.quiz__fieldset {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.quiz__bottom {
  display: flex;
  margin-top: auto;
  align-items: center;
  gap: 10px;
}

.quiz__btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz__bottom .btn {
  width: 200px;
  min-height: 50px;
}

.quiz__prev:disabled {
  display: none;
}

.quiz__next:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.quiz__note {
  margin-left: auto;
  font-size: 10px;
  line-height: 14px;
  text-align: right;
  color: #fff;
}

.quiz .custom-input input {
    background-color: #fff;
}

.quiz .custom-textarea {
  display: none;
}

.quiz .custom-textarea textarea {
    border: none;
    background-color: #fff;
    border-radius: 12px;
  }

.quiz .custom-textarea.show {
  display: block;
  grid-column: -2 / -1;

}

.quiz__finish {
  padding: 30px;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-fiol);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quiz__finish.active {
  z-index: 5;
  opacity: 1;
}

.quiz__finish .form__accept {
    color: #fff;
}

.quiz__finish .form__accept a {
    color: #fff;
}

@media (max-width : 1023px) {
  .quiz__wrap {
      display: block;
  }

  .quiz__img {
      display: none;
  }
}

@media (max-width : 767px) {
  .quiz__content {
      border: none;
      border-radius: 0;
      padding: 0;
  }

  .quiz__fieldset {
      grid-template-columns: 1fr;
      gap: 20px;
  }

  .quiz__bottom {
      flex-direction: column;
      align-items: stretch;
  }

  .quiz__btns {
      flex-direction: column-reverse;
  }
  
  .quiz__btns .btn{
      width: 100%;
  }
  
  .quiz__note {
      display: none;
  }

  .quiz__title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .quiz__content {
        padding: 20px;
    }
}

main:has(.thanks) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thanks__title {
    margin-bottom: 40px;
}

@media (max-width : 767px) {
    .thanks__title {
        font-size: 30px;
        margin-bottom: 20px;
    }
}