:root {
    --main-color: #00A1D8;
    --main-color-hover: #44b5db;
}

html {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    margin: 0;
}

header {
    display: flex;
    position: fixed;
    width: 100vw;
    justify-content: space-around;
    background-color: rgba(10, 10, 10, 0.5);
    padding: 12px 0;
    z-index: 1000;
    height: 32px;
}

header nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 1200px;
}

table {
    border-collapse: collapse;
    color: #000;
    background-color: var(--main-color-hover);
}

tbody {
    background-color: rgba(255, 255, 255);
}

table tr:nth-child(even) {
    background-color: rgba(240, 240, 240);
}

th, td {
    border: 1px solid #aaa;
    padding: 6px 10px;
    text-align: left;
}

h1 {
    margin: 0;
}

h2 {
    margin-top: 0;
    color: var(--main-color);
}

h3 {
    color: var(--main-color);
}

footer {
    display: flex;
    justify-content: center;
    background: var(--main-color);
    padding: 12px 0;
}

footer p {
    width: fit-content;
    margin: 0;
    border-bottom: 2px dashed #999;

    &:hover {
        color: var(--main-color-hover);
    }
}

#quest-block3 input {
    font-size: 16px;
}

#quest-block3 button {
    font-size: 16px;
}

#nav-content {
    display: flex;
    align-items: center;
}

#nav-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 240px;
    gap: 16px;
}

#nav-contact a {
    color: inherit;
    text-decoration: none;
    color: var(--main-color);
}

#front {
    display: flex;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(0,0,0,.6), rgba(0,0,0,.6)),
        url("/static/photo/back/1.jpg") center / cover no-repeat;
}

#front-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 96px 40px 40px 40px;
    top: 150px;
}

#front-content button {
    font-size: 12px;
    padding: 10px 20px;
    border-radius: 12px;
    background-color: var(--main-color);
    font-weight: bold;
    color: #fff;

    &:hover {
        background-color: var(--main-color-hover);
    }
}

#front-block-overview {
    display: flex;
    justify-content: space-evenly;
    margin-top: 40px;
    width: 1200px;
}

#prices,
 #services {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 40px 0;
    background:
        linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)),
        url("/static/photo/back/2.jpg") center / cover no-repeat;
}

#prices-list,
 #services-list {
    display: flex;
    width: 1000px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--main-color);
}

#prices-list::-webkit-scrollbar,
 #services-list::-webkit-scrollbar {
    height: 8px;
    margin-top: 8px;
}

#prices-list::-webkit-scrollbar-track,
 #services-list::-webkit-scrollbar-track {
  background: transparent;
}


#prices-list::-webkit-scrollbar-thumb,
 #services-list::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 12px;
}


#nav-contact-media,
 #connection-one-main-media {
    display: flex;
    align-items: center;
    gap: 6px;
}


#prices-list img,
 #services-list img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    background-color: fuchsia;
    padding: 40px 0;

    background:
        linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)),
        url("/static/photo/back/3.jpg") center / cover no-repeat;

    img {
        width: 320px;
        border-radius: 20px;
    }
}


.front-block-overview-item img {
    padding: 10px;
    border: 10px solid var(--main-color);
    border-radius: 50px;
}

#about h2 {
    margin-bottom: 20px;
}

#about-content {
    display: flex;
    align-items: center;
    font-size: 20px;
    width: 1000px;
    gap: 60px;
    text-align: justify;
}

.swip-description {
    color: #fff;
    margin-top: 0;
    margin-bottom: 32px;
    display: none;
}

#questions {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 40px 0;
    background:
        linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)),
        url("/static/photo/back/7.png") center / cover no-repeat;
}

#contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 40px 0;
    background:
        linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)),
        url("/static/photo/back/8.jpg") center / cover no-repeat;
}

#contacts-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 40vw;
}

#contacts-one {
    width: 300px;
}

#connection-one-main {
    display: flex;
    align-items: center;
    gap: 20px;
}

#connection-one-main a {
    color: inherit;
    text-decoration: none;
}

#connection-one-main-phone {
    border-bottom: 2px dashed #999;
}

#policy {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 100vh;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
}

#policy-content {
    height: 600px;
    padding: 40px;
    background: #fff;
    overflow: auto;
    margin: 8%;
    border-radius: 12px;
}

#policy-button {
    display: flex;
    justify-content: flex-end;
}

#policy-off {
    width: 32px;
}

#modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 100vh;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
}

#modal-content h2 {
    font-size: 30px;
    color: #000;
}

#modal-content input {
    border: 2px solid var(--main-color);
    border-radius: 12px;
}

#modal-content button {
    background-color: var(--main-color);
    border-radius: 12px;
}

#modal-button {
    display: flex;
    justify-content: flex-end;
}

#modal-value {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#modal-off {
    width: 32px;
}

.colored {
    color: var(--main-color);
}

.hidden {
    display: none;
}

.prices-list-item,
 .services-list-item {
    display: flex;
    align-items: center;
    width: 280px;
    border-radius: 12px;
    background: #fff;
    flex-direction: column;
    padding: 20px;

    scroll-snap-align: start;
}

.prices-list-item {
    height: 400px;
}

.services-list-item {
    height: 500px;
}

.prices-list-item {
    text-decoration: none;
}

.prices-list-item-content-main p {
    color: #000;
}

.prices-list-item-content,
 .services-list-item-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 176px;
    padding: 12px;
    justify-content: space-between;
}

.prices-list-item-content h3,
 .services-list-item-content h3{
    margin-top: 0;
}

.prices-list-item-content p,
 .services-list-item-content p{
    width: 240px;
    margin: 0;
}

#reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 40px 0;
    background:
        linear-gradient(rgba(0,0,0,.8), rgba(0,0,0,.8)),
        url("/static/photo/back/6.png") center / cover no-repeat;
}


.arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    gap: 1100px;
    transform: translateY(-50%);
    top: 50%;
}

.arrow-left,
 .arrow-right {
    width: 40px;
}

#reviews-buttons,
 #questions-buttons {
    display: flex;
    width: 1300px;
    padding: 20px;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#reviews-buttons img,
 #questions-buttons img {
    width: 60px;
}

#reviews-content,
 #questions-content {
    display: flex;
    width: 1000px;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--main-color);
}

#reviews-content::-webkit-scrollbar,
 #questions-content::-webkit-scrollbar {
    height: 8px;
    margin-top: 8px;
}

#reviews-content::-webkit-scrollbar-track,
 #questions-content::-webkit-scrollbar-track {
  background: transparent;
}


#reviews-content::-webkit-scrollbar-thumb,
 #questions-content::-webkit-scrollbar-thumb {
  background: var(--main-color);
  border-radius: 12px;
}


.reviews-item {
    width: 450px;
    padding: 0 20px;
    border-radius: 12px;
    border: 2px solid var(--main-color);
    background: #fff;
    scroll-snap-align: start;
}

.reviews-item p {
    width: inherit;
}

.questions-item {
    width: 450px;
    padding: 0 20px;
    border-radius: 12px;
    border: 2px solid var(--main-color);
    background: #fff;
    scroll-snap-align: start;
}

.questions-item p {
    width: inherit;
}

.reviews-group,
 .questions-group {
    display: none;
}

.reviews-group.active,
 .questions-group.active {
    display: flex;
    justify-content: space-between;
    width: 1300px;
}


#modal-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: #fff;
    padding: 40px;
    gap: 8px;
    width: 300px;
}


@media (max-width: 1400px) {
    .reviews-group.active,
     .questions-group.active {
        width: 70vw;
    }

    .reviews-group,
     .questions-group {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    #reviews-buttons,
     #questions-buttons {
        width: 60vw;
    }
}

@media (max-width: 1200px) {
    .swip-description {
        display: block;
    }

    .reviews-group,
     .questions-group {
        width: 70vw;
    }

    .review-item {
        width: 30vw;
        height: auto;
    }

    #front-block-overview {
        display: flex;
        justify-items: center;
        width: 80vw;
        gap: 12px;
        margin-top: 80px;
        flex-direction: column;
        align-items: flex-start;
    }

    .front-block-overview-item-text {
        text-align: left;
    }

    #about img {
        width: 60vw;
    }

    #about-content {
        width: 90vw;
        flex-direction: column;
        gap: 20px;
    }

    #prices-list,
     #services-list {
        width: 90vw;
    }

    #contacts-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80vw;
    }

    #contacts-one {
        text-align: center;
    }

    #contacts-one p {
        margin-bottom: 0;
    }

    #connection-one-main {
        justify-content: center;
    }

    .prices-list-item,
     .services-list-item{
        display: flex;
        flex-direction: column;
        width: 200px;
        height: auto;
    }

    .prices-list-item-content {
        height: 260px;
    }

    .services-list-item-content {
        height: 400px;
    }

    .prices-list-item-content p,
     .services-list-item-content p {
        width: auto;
    }

    .questions-item {
        width: 80vw;
    }

    .questions-item-title {
        height: 10vh;
    }

    .questions-item-arrow {
        width: 6vw;
    }

    .front-block-overview-item {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        font-size: 20px;
    }

    #reviews-content, #questions-content {
        width: 90vw;
    }

    #front-content {
        width: 90vw;
    }

    .arrows {
        display: none;
    }
}

@media (max-width: 800px) {
    #nav-menu {
        display: none;
    }

    #front-content {
        padding: 20vw 10vw 10vw 10vw;
    }

    #policy-content {
        padding: 4vw;
    }

    #policy-content h1 {
        font-size: 6vw;
    }

    #policy-content p {
        font-size: 4vw;
    }

    .reviews-item {
        width: 80vw;
        height: auto;
        padding: 0 4vw;
    }

    .questions-item {
        width: 80vw;
        height: auto;
        padding: 0 4vw;
    }

    .prices-list-item,
     .services-list-item {
        width: auto;
     }

     #prices-list img,
      #services-list img {
        width: 76vw;
     }

    .prices-list-item-content,
     .services-list-item-content {
        height: auto;
        width: 76vw;
        padding: 0 2vw;
     }

    #modal-content {
        width: 80vw;
        padding: 5vw;
    }
}