/*
Theme Name: Silence
Description: Аренда домов у озёр.
Version: 1.0
Author: _
*/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

:root {
    --header-bg: #1a1a1a;
    --base-text-color: #333b34;
    --main-bg: #f6f2e7;
    --footer-bg: #1a1a1a;
}

.fw-900 {
    font-weight: 900;
}

.fw-800 {
    font-weight: 800;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1.125rem;
    line-height: 150%;
    color: var(--base-text-color);
    font-family: "Montserrat", Sans-serif;
    background-color: var(--main-bg);
}

@media (min-width: 1400px) {
    .container {
        max-width: 1440px;
    }
}

.offcanvas,
.offcanvas-lg,
.offcanvas-md,
.offcanvas-sm,
.offcanvas-xl,
.offcanvas-xxl {
    --bs-offcanvas-width: 450px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.9em 2.2em 0.9em 2.2em;
    color: #121212;
    text-align: center;
    text-transform: uppercase;
    border: 2px solid #121212;
    background-color: #ffffff;
    font-weight: 600;
}

.button--transparent {
    background-color: transparent;
}

.button:hover {
    background-color: #121212;
    color: #ffffff;
}

/* header */
.header {
    color: #f6f2e7;
    background-color: var(--header-bg);
}

.home .header {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 10;
    background-color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.main-nav li {
    padding-left: 1rem;
    padding-right: 1rem;
}

.main-nav a {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1em;
    letter-spacing: 0.03em;
}

.main-nav a:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-right: 2rem;
    font-size: 1.5rem;
}

.social-links svg {
    display: block;
    fill: #f6f2e7;
}

.home .header .social-links {
    display: none;
}

.toggle {
    font-size: 2.5rem;
}

.aside-column {
    background-color: #f3f3ef;
}

.main {
    flex-grow: 1;
    padding-top: 5rem;
}

.single-page {
    padding-bottom: 5rem;
}

.home .main,
.single-flat .main {
    padding-top: 0;
}

/* aside nav */
.aside-nav {
    list-style: none;
    margin-bottom: 32px;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1em;
    letter-spacing: 0.03em;
}

.aside-nav a {
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
}

.aside-nav li:not(:last-child) {
    margin-bottom: 24px;
}

/* footer */
.footer {
    color: #f6f2e7;
    font-weight: 300;
    background-color: var(--footer-bg);
}

.footer__main {
    border-top: 1px solid #494949;
    border-bottom: 1px solid #494949;
}

.footer__pays-info {
    color: #f6f2e77a;
    font-size: 0.85rem;
}

@media (max-width: 767px) {
    .footer__pays-info {
        order: 1;
    }
}

.footer__pays-info *:last-child {
    margin-bottom: 0;
}

.footer__nav {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
}

.footer__nav li:not(:last-child) {
    margin-bottom: 1rem;
}

.footer__nav a {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.2em;
}

.copyright {
    margin-bottom: 0;
    color: #f6f2e7;
    font-weight: 200;
}

@media (max-width: 767px) {
    .copyright {
        text-align: center;
    }
}

.title {
    text-transform: uppercase;
    letter-spacing: 0.03rem;
}

.contacts-list li:not(:last-child) {
    margin-bottom: 0.5rem;
}

.map {
    display: block;
    width: 100%;
    min-height: 600px;
}

.entertainment-card {
    display: flex;
    background-color: #ffffff;
}

@media (max-width: 575px) {
    .entertainment-card {
        flex-direction: column;
    }
}

.entertainment-card__thumb-wrapper {
    flex-shrink: 0;
    width: 40%;
    overflow: hidden;
}

@media (max-width: 575px) {
    .entertainment-card__thumb-wrapper {
        width: 100%;
    }
}

.entertainment-card__thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition-duration: 0.3s;
    aspect-ratio: 16/9;
}

.entertainment-card__thumb-wrapper:hover img {
    transform: scale(1.1);
}

.entertainment-card__button {
    max-width: 400px;
}

/* form */
.form__item:not(:last-child) {
    margin-bottom: 1rem;
}

.form__field {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
    background-color: #ffffff;
    border: 1px solid #cccccc;
}

.form__field::placeholder {
    font-family: inherit;
    font-size: inherit;
}

textarea.form__field {
    height: 110px;
    resize: none;
}

.form__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9em 2.2em 0.9em 2.2em;
    color: #ffffff;
    text-transform: uppercase;
    border: 2px solid #121212;
    background-color: #121212;
    font-weight: 600;
}
.form__button:hover {
    background-color: #ffffff;
    color: #121212;
}

/* main hero */
.main-hero {
    position: relative;
    background-color: #212121;
}

.main-hero__container {
    position: absolute;
    left: 50%;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    transform: translateX(-50%);
}

.main-hero__slider {
    background-color: #212121;
}

.main-hero__slider .swiper-slide {
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.main-hero__title {
    max-width: 800px;
    margin-bottom: 0;
    color: #f6f2e7;
}

.single-flat .main-hero__title {
    max-width: 100%;
}

.main-hero__description {
    color: #f6f2e7;
    font-weight: 500;
    text-transform: uppercase;
}

.main-hero__button {
    margin-top: 0;
    border-color: #ffffff;
}

.main-hero__button:hover {
    border-color: #121212;
}

.main-hero__slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: scale(1);
    animation: kenBurnsZoom 9s ease-in-out forwards;
}

.main-hero__slider .swiper-slide-active img {
    animation: kenBurnsZoom 9s ease-in-out forwards;
}

@keyframes kenBurnsZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.15); /* zoom in */
    }
}

.single-flat .main-hero__thumb {
    height: calc(100vh - 88px);
    width: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.7;
}

.main-hero__slider .main-hero__thumb {
    opacity: 0.7;
}

.single-flat .main-hero {
    margin-bottom: 1rem;
}

.single-flat__price {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1em;
    letter-spacing: 0.03rem;
    color: #d1c7a3;
}

.single-flat__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    list-style: none;
}

.single-flat__features li {
    width: calc(100% / 3 - 2rem * 2 / 3);
}

@media (max-width: 767px) {
    .single-flat__features li {
        width: 100%;
    }
}

/* seo */
.seo {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: #f6f2e7;
}

@media (max-width: 768px) {
    .seo {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* card-item */
.rent {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 767px) {
    .rent {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

.card-item {
    background-color: #ffffff;
}

.card-item__thumb-wrapper {
    display: block;
    overflow: hidden;
}

.card-item__thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition-duration: 0.3s;
    aspect-ratio: 16/10;
}

.card-item__thumb-wrapper:hover img {
    transform: scale(1.1);
}

.card-item__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2.6em 2.6em 2.6em 2.6em;
}

@media (max-width: 767px) {
    .card-item__content {
        padding: 2em 1.6em 2em 1.6em;
    }
}

.card-item--horizontal .card-item__content {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 3rem;
}

@media (max-width: 991px) {
    .card-item--horizontal .card-item__content {
        padding: 0;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 991px) and (max-width: 1199px) {
    .card-item--horizontal .card-item__content {
        padding-left: 0;
        padding-right: 0;
        margin-top: 1rem;
    }
}

.card-item__title {
    color: #333b34;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1em;
    text-transform: uppercase;
}

.card-item--horizontal .card-item__title {
    margin-bottom: 3rem;
    font-size: 3rem;
    font-weight: 900;
}

@media (max-width: 767px) {
    .card-item--horizontal .card-item__title {
        font-size: 2rem;
    }
}

.card-item__price {
    color: #d1c7a3;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1em;
}

@media (max-width: 991px) {
    .card-item__price {
        order: 5;
    }
}

.card-item__description {
    width: 100%;
}

.card-item__button {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.9em 2.2em 0.9em 2.2em;
}

@media (max-width: 991px) {
    .card-item__button {
        order: 10;
        width: 100%;
    }
}

.card-item__actions .button:first-child {
    color: #ffffff;
    background-color: #121212;
}
.card-item__actions .button:first-child:hover {
    background-color: #ffffff;
    color: #121212;
}

.card-item__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 0;
    list-style: none;
}

.card-item__features li {
    width: calc(50% - 1rem);
}

@media (max-width: 767px) {
    .card-item__features li {
        width: 100%;
    }
}

.card-item__features li svg {
    vertical-align: middle;
    display: inline-block;
}

.home .features-list .features-list__label {
    display: none;
}

.home .card-item__features {
    order: 4;
    justify-self: flex-start;
    align-self: center;
}

.home .card-item__features li {
    width: auto;
}

.home .card-item__button {
    order: 5;
}

.people-counter {
    display: inline-flex;
    vertical-align: middle;
}

.card-item--horizontal .people-counter,
.single-flat__features .people-counter {
    display: none;
}

/* gallery-group */
.gallery-group__slider {
    margin-bottom: 16px;
}

.gallery-group__slider .gallery-group__thumb {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

.gallery-group__arrow svg {
    width: 2rem;
    height: 2rem;
    fill: hsla(0, 0%, 93.3%, 0.9);
}

.gallery-group .swiper-pagination-bullet {
    background-color: var(--base-text-color);
}

.gallery-group__item {
    display: flex;
    height: 400px;
    width: auto;
}

.gallery-group__link {
    display: flex;
}

.gallery-group__thumb {
    object-fit: cover;
}

@media (max-width: 767px) {
    .gallery-group__link {
        width: 100%;
    }
    .gallery-group__thumb {
        object-fit: cover;
        width: 100%;
    }
}

/* rent card */
.rent-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
}

.rent-card__thumb-wrapper {
    display: block;
    overflow: hidden;
}

.rent-card__thumb-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition-duration: 0.3s;
}

.rent-card__thumb-wrapper:hover img {
    transform: scale(1.1);
}

.rent-card__title {
    color: #333b34;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1em;
    text-transform: uppercase;
}

.rent-card__button {
    width: 100%;
    margin-top: auto;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.9em 2.2em 0.9em 2.2em;
}

.rent-card__button:hover {
    background-color: #121212;
    color: #ffffff;
}

.rent__banner {
    padding: 1.6rem 5rem 1.6rem 3.5rem;
    color: #f6f2e7;
    background-color: #333b34;
}

@media (max-width: 767px) {
    .rent__banner {
        padding: 1.6rem 1.6rem 1.6rem 1.6rem;
    }
}

/* Contact Form 7 */
.wpcf7-not-valid {
    border-color: #ff0000;
}

.wpcf7-not-valid-tip {
    font-size: 0.8em;
}

.wpcf7 form .wpcf7-response-output {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    font-size: 0.8em;
    line-height: 1.5em;
}

/* external gallery */
.external-gallery {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 767px) {
    .external-gallery {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* */
.site-content h2 {
    margin-bottom: 0.5em;
}
.site-content a {
    text-decoration: underline;
}
.site-content a:hover {
    text-decoration: none;
}
@media (max-width: 480px) {
    .igf-item:last-child {
        display: none;
    }
}
