root {
    --base-text-color: #464646;
    --primary-text-color: #d62323;

    --dark-bg-color: #1b1b1b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-size: 1.05rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0;
}

h2 {
    font-size: 2.25rem;
    line-height: 1.15;
    margin: 0;
}

h3 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 0;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.3;
}

h5 {
    font-size: 1.1rem;
    line-height: 1.4;
}

h6 {
    font-size: 1rem;      /* 16px */
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: var(--base-text-color);
    transition: color 0.3s ease;
}

a:hover {
    color: #d62323;
}

.arrow_down {
    position: relative;
    width: 20px;
    height: 20px;
}

.arrow_down::before,
.arrow_down::after {
    content: '';
    position: absolute;
    top: 5px;
    width: 30px;
    height: 5px;
    background: black;
    border-radius: 5px;
}

.arrow_down :hover {
    background-color: black;
}

.arrow_down::before {
    left: 5px;
    transform: rotate(-45deg);
}

.arrow_down::after {
    right: 5px;
    transform: rotate(45deg);
}


img[data-src] {
    filter: blur(20px);
    transform: scale(1.05);
    transition: filter 0.5s ease, transform 0.5s ease;
}

img[data-src].loaded {
    filter: blur(0);
    transform: scale(1);
}

.wrapper {
    /* display: grid; */
    /* grid-template-columns: 300px 1fr; */
    min-height: 100vh;
    align-items: start;
    
}

.underline {
    text-decoration: underline;
}

.sidebar {
    position: sticky;
    background-color: #1b1b1b;
    color: white;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    align-self: start;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    display: flex;
    padding: 10px 0;
    flex-direction: column;
    justify-content: space-between;
}


main {
    padding: 0 10px;
}

.hero {
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.hero__photo {
    
    height: 500px;
    width: 500px;
    border-radius: 25px;
    overflow: hidden;
    
}

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

.hero__actions {
    /* margin-top: 150px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.cta_button {
    background-color: #1b1b1b;
    color: white;
    padding: 25px;
    font-size: 1.3rem;
    border-radius: 15px;
}

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 20px;
}

.about__photo {
    max-width: 1000px;
    width: 100%;
    border-radius: 60px;
    overflow: hidden;
}

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


.mgallery {
    padding: 30px;
}

.mini-gallery {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.mini-gallery img {
    border-radius: 25px;
}

.mini-gallery::-webkit-scrollbar {
    display: none; /* Chrome, Edge, Safari */
}

.mini-gallery > * {
    flex: 0 0 auto;
}


.reviews {
    margin: 40px;
    display: flex;
    flex-direction: column;
    
}

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

.review__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    background-color: #1b1b1b;
    color: white;
    padding: 20px;
    border-radius: 15px;
}

.card__content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
}

.review__card-avatar {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: white;
    color: black;
    overflow: hidden;
}

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

.card__content-text {
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.review__card-source {
    display: flex;
    flex-direction: column;
}

.review__card-source a,
.review__card-source p {
    margin: 0;
}

.friends_section {
    margin: 10px;
}

.friends_section_grid {
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
}

.gray {
    font-size: 0.7rem;
    color: rgb(185, 185, 185);
}


.price {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: #1b1b1b;
    color: white;
    padding: 30px;
    border-radius: 20px;
    gap: 20px;
}

.price__contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.price__form {
    width: 100%;
    max-width: 500px;
    
}

.price__form iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    border: 0;
    padding: 20px;
    border-radius: 15px;
    background: white;
}

.discount {
    text-align: center;
}

.as_header {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
}

summary {
    cursor: pointer;
}

.faq__question {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.faq__answer {
    margin: 20px 0;
    max-width: 600px;
    width: 100%;
}

.faq {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px;
    margin-bottom: 30px;
}


.footer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background-color: #1b1b1b;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    padding: 25px;
    color: white
}

.footer__column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.footer__hero {
    text-align: center;
    display: flex;
    align-items: start;
}


.social_links {
    display: flex;
    gap: 15px;
}

.go-v-vk {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}



@media (max-width: 768px) {

    .hero {
        height: 100%;
    }

    .hero__photo {
        height: 200px;
        width: 200px;
    }

    .about {
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        justify-content: start;
        /* align-items: center; */
    }

    .about__photo {
        width: 100%;
        max-width: 800px;
    }

    .mini-gallery img {
        height: 400px;
        border-radius: 20px;
    }

    .price {
        grid-template-columns: 1fr;
    }

    .reviews__grid {
        grid-template-columns: 1fr;
    }

    .footer {
        grid-template-columns: 1fr;
    }
}