@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Benzin';
    src: url('../fonts/Benzin-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Serif Display';
    src: url('../fonts/DMSerifDisplay-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --main-font: 'Benzin', sans-serif;
    --secondary-font: 'Montserrat', sans-serif;
    --main-heading-font: 'DM Serif Display', sans-serif;
    --main-font-weight: 400;
    --main-font-color: #1B1C20;
    --secondary-font-color: #2E7290;
    --button-main-color: #CCF386;
}

body{
    margin: 0;
}

.container{
    padding: 0 15px;
    max-width: 1280px;
    margin: 0 auto;
}

h1{
    font-family: var(--main-heading-font);
    font-weight: 400;
    text-align: center;
    color: var(--main-font-color);
    font-size: 48px;
    line-height: 48px;
    max-width: 930px;
    margin: 0;
}

h2{
    font-family: var(--main-heading-font);
    font-weight: 400;
    text-align: center;
    color: var(--main-font-color);
    font-size: 48px;
    line-height: 48px;
    margin: 32px 0 48px 0;
}

h3{
    font-family: var(--main-heading-font);
    font-weight: 400;
    text-align: center;
    color: var(--main-font-color);
    font-size: 32px;
    line-height: 130%;
    margin: 0 0 32px 0;
}

.heading{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 48px 0 32px 0;
}

.hero-section {
    position: relative;
    overflow: hidden; /* Обрезаем всё, что выходит за границы */
    max-width: 100%;
}

/* Основная сетка */
.hero-section .hero-main {
    display: flex;
    align-items: center;
    position: relative;
    gap: 5px;
}

/* Левая и правая картинка */
.hero-section .hero-main .hero-image {
    width: 50%;
    height: 100%; /* Делаем высоту 100% от родителя */
    max-height: 428px;
    overflow: hidden; /* Обрезаем лишнее */
}

.hero-section .hero-main .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Обрезает изображение по размеру блока без искажений */
}

/* Центральный круг с логотипом */
.hero-main-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 40%;
    height: auto;
    z-index: 1;
}

@media (min-width: 475px) and (max-width: 1024px) {
    .hero-section .hero-main {
        flex-direction: row;
        gap: 2px;
    }

    .hero-section .hero-main .hero-image {
        width: 50%;
        max-height: 350px;
    }

    .hero-section .hero-main .hero-image img {
        height: 100%;
        object-fit: cover;
    }

    .hero-main-img {
        max-width: 35%;
        top: 50%;
    }
}


.grid-container {
    width: 100%;
    max-width: 1280px; /* ограничение, если нужно */
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 50%));
    gap: 30px;
}

.grid-item {
    background-color: #ffffff;
}

.grid-item p{
    font-family: var(--secondary-font);
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 32px 0;
    text-align: center;
    color: var(--main-font-color);
}

.right-column-content{
    padding: 48px 30px;
    background-color: #F6F7FA;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(187px, 1fr));
    gap: 30px;
    max-width: 100%;
    margin: auto;
}

.gallery-grid a {
    display: flex;
    overflow: hidden;
}

.gallery-grid img {
    width: 100%;
    height: 141px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.footer-full{
    background-color: var(--main-font-color);
    padding: 24px 15px;
    color: #E0E2E7;
    font-family: var(--secondary-font);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-full a{
    text-decoration: none;
    color: #FFBD59;
}

.container-thank-you {
    max-width: 930px;
    width: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 15px;
}

.container-thank-you-calndly{
    max-width: 930px;
    width: auto;
    margin: 0 auto;
    text-align: center;
    padding: 0 15px;
}

.thank-you-main-info h1{
    margin-bottom: 32px;
    line-height: 130%;
}

.thank-you-main-info p{
    margin: 0;
    font-size: 18px;
    font-family: var(--secondary-font);
    line-height: 150%;
}

.thank-you-image{
    padding: 32px 0 80px 0;
}

.form-main form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-main form p{
    margin: 0;
}

.form-main form br{
    display: none;
}

.form-main form input[type=text],
.form-main form input[type=email]{
    padding: 20px 15px;
    border: 1px solid #E0E2E7;
    font-family: var(--secondary-font);
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 32px 0;
    outline: none;
}

.form-main form input[type=text].full-name{
    margin: 0 0 12px 0;
}

.form-main form input[type=text]::placeholder,
.form-main form input[type=email]::placeholder{
    font-family: var(--secondary-font);
    font-size: 15px;
    font-weight: 600;
    color: #E0E2E7;
}

.form-main form input[type=text]:focus-visible,
.form-main form input[type=email]:focus-visible{
    border: 1px solid #FFBD59;
}

.form-main form label{
    position: relative;
    width: 100%;
    text-align: left;
    display: block;
}

.form-main form .intl-tel-input{
    margin: 0 0 32px 0;
}

.form-main form label .your-phone{
    font-family: var(--secondary-font);
    font-size: 11px;
    font-weight: 600;
    color: #595D6B;
    position: relative;
    background: #ffffff;
    left: 45px;
    top: 10px;
    z-index: 999;
}

.form-main form .submit-button-form input{
    padding: 16px 0;
    width: 100%;
    background: #FFBD59;
    font-family: var(--secondary-font);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1B1C20;
    border: none;
    cursor: pointer;
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }

    .gallery-grid img {
        height: 120px;
    }

    .footer-full{
        display: block;
        text-align: center;
    }

    .container-thank-you .thank-you-image img{
        width: 100%;
        height: auto;
    }
}

@media (max-width: 475px) {
    .hero-section .hero-main {
        flex-direction: column;
        gap: 0;
    }

    .hero-section .hero-main .hero-image {
        width: 100%;
        height: auto;
        max-height: 200px;
        display: flex;
    }

    .hero-section .hero-main .hero-image img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .hero-main-img {
        max-width: 60%;
        top: 45%;
    }

    h1{
        font-size: 32px;
        line-height: 130%;
    }

    .right-column-content{
        padding: 32px 15px;
    }

    h2{
        margin: 32px 0;
        font-size: 32px;
        line-height: 130%;
    }

    .form-main form .submit-button-form input{
        font-size: 12px;
    }
}