/* Общие стили */
.project {
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.6;
}

/* Заголовок */
.project__title {
    font-size: 2em;
    font-weight: 700;
    color: #222;
    margin: 0;
    padding-top: 1em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 1024px) {

    .project__title {
        padding-top: 3em;
    }
}

/* Основная строка */
.project__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.875em;
    padding-bottom: 5em;

}

/* Фото */
.project__photo {
    flex: 0 0 65%;
    max-width: 65%;
}

.project__photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2em;
    box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1); /* 4px 8px */
}

/* Форма */
.project__form {
    flex: 0 0 30%;
    max-width: 30%;
    background: #fff;
    border-radius: 2em;
    padding: 2em;
    height: fit-content;
}

.c-form__group {
    margin-bottom: 1em; /* 16px */
}

.c-form__group label {
    display: block;
    font-size: 0.875em; /* 14px */
    color: #555;
    margin-bottom: 0.3125em; /* 5px */
}

.c-form__input {
    width: 100%;
    padding: 1em;
    font-size: 1em;
    border: 0.0625em solid rgba(0, 0, 0, .1);
    border-radius: 0.625em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.c-form__input:focus {
    border-color: #007bff;
    outline: none;
}

textarea.c-form__input {
    min-height: 6.25em; /* 100px */
    resize: vertical;
}

.c-form__button {
    padding-top: 1em;
}

.c-form__submit {
    width: 100%;
    padding: 1em 0.75em;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 0.625em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.c-form__submit:hover {
    background: #0056b3;
}

/* Описание и характеристики */
.project__caption {
    flex: 0 0 100%;
    max-width: 100%;
    background: #fff;
    padding: 2em;
    border-radius: 2em;
    box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.1);
}

.project__price {
    font-size: 1.5em; /* 24px */
    font-weight: 700;
    color: #222;
    margin-bottom: 1em; /* 16px */
}

.project__price .icon-rub {
    font-size: 0.675em;
    transform: translateY(-.2em);
}

.project__feature {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1.25em;
}

.project__feature-item {
    font-size: 0.9375em; /* 15px */
    width: calc(50% - .75em);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project__feature-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-bottom: 1px dotted rgba(0, 0, 0, .1);
}

.project__feature-item strong {
    color: #222;
    position: relative;
    background: #FFF;
    padding-right: .5em;
}

.project__feature-item span {
    position: relative;
    background: #FFF;
    padding-left: .5em;
}

.project__info-title {
    font-size: 1.25em; /* 20px */
    font-weight: 600;
    color: #222;
    margin-bottom: 0.625em; /* 10px */
}

.project__info-text {
    font-size: 1em; /* 16px */
    color: #666;
    margin-bottom: 0.9375em; /* 15px */
}

.project__info-list {
    list-style: none;
    padding: 0;
}

.project__info-list li {
    font-size: 0.9375em; /* 15px */
    color: #555;
    position: relative;
    padding-left: 1.25em; /* 20px */
    margin-bottom: 0.625em; /* 10px */
}

.project__info-list li:before {
    content: "•";
    color: #007bff;
    position: absolute;
    left: 0;
}

.project__form-title {
    padding-bottom: 1em;
    font-size: 1.2em;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 48em) {
    /* 768px */
    .project__photo {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .project__form {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .project__title {
        font-size: 1.5em; /* 24px */
        padding-bottom: 1em;
    }

    .project__price {
        font-size: 1.25em; /* 20px */
    }

    .project__info-title {
        font-size: 1.125em; /* 18px */
    }
}

@media (max-width: 30em) {
    /* 480px */
    .container {
        padding: 0.9375em; /* 15px */
    }

    .project__feature {
        grid-template-columns: 1fr;
    }

    .project__feature-item {
        width: 100%;
    }
}


.c-project__row {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    justify-content: center;
    padding: 2em;
}

.c-project__column {
    flex: 1 1 calc(33.333% - 2em);
    max-width: calc(33.333% - 2em);
    background: #fff;
    border-radius: 2em;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: none;
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.1);
}

.c-project__column:hover {
    transform: translateY(-0.5em);
    box-shadow: 0 1em 2em rgba(0, 0, 0, 0.15);
}

@media (max-width: 64em) {
    .c-project__column {
        flex: 1 1 calc(50% - 2em);
        max-width: calc(50% - 2em);
    }
}

@media (max-width: 48em) {
    .c-project__column {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .quiz__container {
        width: 100vw;
        height: fit-content;
        border: 0;
    }

    .quiz__row {
        padding: 4em 2em;
        box-sizing: border-box;
        width: 100%;
    }

    input.quiz__form-input {
        width: 100%;
    }

    form.quiz__form button {
        max-width: 100%;
        width: 100%;
        padding: 1em;
    }

}

.c-project__photo {
    width: 100%;
    height: 14em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.c-project__photo img {
    width: 100%;
    height: 14em;
    object-fit: cover;
    border-top-left-radius: 2em;
    border-top-right-radius: 2em;
}

.no-photo {
    text-align: center;
    color: #999;
    font-size: 1.1em;
}

.c-project__caption {
    padding: 1.5em;
}

.c-project__caption-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: rgba(0, 0, 0, .5);
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
}

.c-project__price {
    font-size: 1.5em;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.c-project__price span {
    font-size: 1.17em;
}

.c-project__price i {
    font-weight: bold;
    font-size: .8em;
}

.c-project__caption-text {
    color: rgba(0, 0, 0, .35);
}

.c-project__feature {
    margin-top: 1.2em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
}

.c-project__feature-item {
    flex: 1;
    font-size: 1em;
    background: var(--bg-light);
    padding: 0.6em;
    border-radius: 0.5em;
    text-align: center;
    color: #666;
}


.c-project__photo picture {
    width: 100%;
}

.c-project__caption-more a, .projects__more a {
    display: block;
    text-align: center;
    margin-top: 1.2em;
    padding: 1em 3em;
    background: linear-gradient(to left, var(--primary-color), var(--primary-color-hover));
    color: #fff;
    border-radius: 2em;
    text-decoration: none;
    font-size: 1.1em;
    transition: background var(--transition-speed);
    font-weight: 500;
}

.c-project__caption-more a:hover, .projects__more a:hover {
    background: linear-gradient(to left, var(--primary-color-hover), var(--primary-color));
}

