* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Circe', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #F8F8F8;
    color: #333333;
    line-height: 1.6;
    font-size: 1rem;
}

/* antispam */
input[name="message"] {
    display: none !important;
}

h1, h2 {
    font-size: 1.8rem;
    text-transform: uppercase;
    line-height: 1.3;
}

h3 {
    font-size: 1.7rem;
}

.input-error {
    border: 1px solid #dc2626 !important;
}

.radio-error label {
    color: #dc2626;
}

.file-error {
    color: #dc2626 !important;
}

.error-text {
    color: #dc2626;
    font-size: 13px;
    margin-top: 4px;
}


p {
    margin: 0.8rem 0;
}

.btn {
    background-color: #1aa6b7;
    color: #ffffff;
    padding: 14px 60px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sent {
    background-color: #ABABAB !important;
    cursor: default;
}

.btn:hover {
    background-color: #1797a6;
}

.btn:active {
    box-shadow: 0 1px 0 #148a98;
    transform: translateY(1px);
}


.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 30px;
}

section {
    text-align: left;
    padding: 60px 0;
}

.header {
    text-align: left;
}

.bg1 {
    background-image: url('./img/top.webp');
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    background-attachment: local;
}

.bg2 {
    background-image: url('./img/you.webp');
    background-size: contain;
    background-position: right bottom;
    background-repeat: no-repeat;
    background-attachment: local;
}

section.header {
    padding: 0;
}

section.ready {
    display: flex;
}

.ready-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ready-info {
    width: 60%;
    text-align: left;
}
.ready-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.ready-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.header h1 {
    margin-bottom: 2rem;
}

.header-top {
    padding: 20px 30px;
    background: white;
    display: flex;
    width: 100%;
    border-radius: 16px;
    margin-bottom: 50px;
    align-items: center;
    color: #33333399;
}

.left {
    margin-right: auto;
}

.header-top_ready {
    font-size: 0.9rem;
    display: inline-flex; /* Меняем на inline-flex */
    justify-content: center;
    margin-right: 50px;
    height: fit-content; /* Высота по содержимому */
    align-self: center; /* Центрируем в рамках flex-контейнера */
}

.header-top_button {
    font-size: 0.8rem;
    padding: 5px 20px;
    background: #333333;
    border-radius: 10px;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: fit-content; /* Высота по содержимому */
}

.header-top_geo {
    position: relative;
    margin-left: 50px;
    padding-left: 25px;
}

.header-top_geo:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: url('./img/icon-location.svg') 0 0 no-repeat;
    background-size: contain;
}

blockquote {
    padding-left: 30px;
    position: relative;
}

blockquote:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background: url('./img/icon-arrow.svg') 0 0 no-repeat;
    background-size: contain;
}

.header-info {
    width: 45%;
}

.about-info {
    padding-left: 50%;
}

.gradient {
    color: #FFFFFF;
    background: #367F96; /* Фолбэк для старых браузеров */
    background: linear-gradient(to right, #367F96, #73A9BC);
}

.footer {
    text-align: center;
}

#logo-bottom {
    margin-bottom: 40px;
}

.cards {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    font-size: 0.8rem;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card p {
    line-height: 1.5;
    margin-bottom: 16px;
    color: #374151;
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}


/* Анкета */

.form-section {
    background: #f5f5f5;
    padding: 40px 20px;
}

.form {
    margin: 0 auto;
    background: #fff;
    padding: 40px 20px;
}

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

.form-grid input {
    height: 50px;
    padding: 0 15px;
    border-radius: 8px;
    border: none;
    background: #F8F8F8;
    font-size: 16px;
}

.form-row {
    display: flex;
    gap: 80px;
    margin-bottom: 30px;
}

.form-group p {
    margin-bottom: 10px;
    font-weight: 500;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
}

.form-description {
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.5;
}

.form-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f3f3f3;
    border-radius: 6px;
    max-width: 500px;
}

.form-file__info {
    display: flex;
    flex-direction: column;
}

.form-file__label {
    font-weight: 600;
    margin-bottom: 4px;
}

.form-file__file-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-file__name {
    font-size: 14px;
    color: #666;
}

.form-file__btn {
    padding: 10px 20px;
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s ease;
}

.form-file__btn:hover {
    background: #15803d;
}

.form-file__remove {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #999;
    padding: 0;
}

.form-file__remove:hover {
    color: #dc2626;
}

/* Прогресс */

.progress-wrapper {
    margin-top: 15px;
}

.progress {
    width: 100%;
    height: 24px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease;
    position: relative;
}

.progress-text {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.progress-status {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
}

.message {
    margin-top: 15px;
}

.message.success { color: green; }
.message.error { color: red; }


#submit-btn {
    display: block; margin: 20px auto 0;
}


/* Мобильная версия */

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

    .header-top_ready {
        display: none;
    }
}

@media (max-width: 768px) {

    .header-top_geo {
        display: none;
    }

    .header-info {
        width: 100%;
        padding-bottom: 400px;
    }

    .bg1 {
        background-image: url('./img/top-mob.webp');
        background-size: contain;
        background-position: center bottom;
        background-repeat: no-repeat;
        background-attachment: local;
    }

    .about-info {
        padding-left: 0;
    }

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

    .ready-container {
        flex-direction: column; /* Меняем направление flex */
        text-align: center;
    }

    .ready-info {
        width: 100%;
        margin-bottom: 30px;
    }

    .ready-image {
        width: 100%;
        margin: 0 auto;
    }

    .ready-image img {
        max-width: 100%;
        height: auto;
    }

    /* Анкета */

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

    .form-row {
        flex-direction: column;
        gap: 30px;
    }

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