/* Центровка шапки и текста на странице "AI Photo Editor" */
body.ai-photo-editor {
    background-color: #ffffff;
}

/* ==== Hero секция для AI Photo Editor ==== */
.article-hero--ai-photo-editor {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    padding: 160px 80px 100px;
    margin: 0 auto;
    min-height: 80vh;
    background-image: url("../images/AIphotoeditor/background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-ai-photo {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-right: 300px;
}

.hero-ai-photo__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-ai-photo__logo {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 2;
}

.hero-ai-photo__logo-img {
    height: auto;
    width: auto;
    max-height: 50px;
    display: block;
}

.hero-ai-photo__title {
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #000000;
}

.hero-ai-photo__divider {
    display: flex;
    align-items: center;
    /*gap: 8px;*/
    margin: 20px 0;
}

.hero-ai-photo__divider-line {
    flex: 1;
    height: 2px;
    background-color: #ff6b00;
    max-width: 300px;
}

.hero-ai-photo__divider-dot {
    width: 8px;
    height: 8px;
    background-color: #ff6b00;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-ai-photo__subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    line-height: 1.4;
    margin: 0;
    padding-top: 10px;
    color: #000000;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .article-hero--ai-photo-editor {
        padding: 140px 20px 80px;
        min-height: 60vh;
    }

    .hero-ai-photo__title {
        font-size: clamp(28px, 4vw, 48px);
    }

    .hero-ai-photo__subtitle {
        font-size: clamp(16px, 2vw, 20px);
    }
}

@media (max-width: 900px) {
    .article-hero--ai-photo-editor {
        padding: 120px 16px 60px;
    }

    .hero-ai-photo {
        padding-left: 20px;
        padding-right: 80px;
    }

    .hero-ai-photo__logo {
        bottom: 30px;
        right: 30px;
    }

    .hero-ai-photo__logo-img {
        max-height: 60px;
    }

    .hero-ai-photo__title {
        font-size: clamp(24px, 5vw, 40px);
    }

    .hero-ai-photo__subtitle {
        font-size: clamp(14px, 2.5vw, 20px);
    }
}

@media (max-width: 600px) {
    .article-hero--ai-photo-editor {
        padding: 100px 16px 40px;
        min-height: 50vh;
    }

    .hero-ai-photo {
        padding-left: 0;
        padding-right: 40px;
    }

    .hero-ai-photo__logo {
        bottom: 20px;
        right: 20px;
    }

    .hero-ai-photo__logo-img {
        max-height: 50px;
    }

    .hero-ai-photo__title {
        font-size: clamp(20px, 6vw, 32px);
        margin-bottom: 15px;
    }

    .hero-ai-photo__divider {
        margin: 15px 0;
    }

    .hero-ai-photo__divider-line {
        max-width: 200px;
    }

    .hero-ai-photo__subtitle {
        font-size: clamp(12px, 3vw, 18px);
        padding-top: 8px;
    }
}

@media (max-width: 420px) {
    .article-hero--ai-photo-editor {
        padding: 100px 16px 40px;
        min-height: 40vh;
    }
}

/* ==== Секция "Мы предлагаем" ==== */
.offer-section {
    padding: 100px 20px 60px;
    background-color: #ffffff;
}

.offer-section__container {
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}

.offer-section__header {
    margin-bottom: 30px;
}

.offer-section__title {
    font-size: clamp(40px, 6vw, 54px);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 20px;
    font-family: 'Unbounded', sans-serif;
}

.offer-section__title-text {
    color: #333333;
}

.offer-section__title-accent {
    color: #ff6b00;
}

.offer-section__subtitle {
    font-size: clamp(18px, 2.5vw, 28px);
    color: #333333;
    margin: 0;
    font-weight: 400;
}

.offer-section__how-it-works {
    margin-bottom: 60px;
}

.offer-section__how-title {
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 60px;
    color: #333333;
    font-family: 'Unbounded', sans-serif;
}

.offer-section__steps {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    margin-bottom: 40px;
}

.offer-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.offer-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 106px;
    left: calc(50% + 6px);
    width: calc(100% + 60px - 12px);
    height: 2px;
    background-color: #333333;
    z-index: 0;
}

.offer-step::after {
    content: '';
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #333333;
    border-radius: 50%;
    z-index: 2;
}

.offer-step__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: #ffffff;
    position: relative;
}

.offer-step__icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.offer-step__content {
    text-align: center;
    margin-top: 30px;
}

.offer-step__title {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: #333333;
    margin: 0 0 10px;
    font-family: 'Unbounded', sans-serif;
}

.offer-step__description {
    font-size: clamp(16px, 1.5vw, 18px);
    color: #333333;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.offer-section__footer {
    margin-top: 60px;
}

.offer-section__footer-text {
    font-size: clamp(16px, 2.5vw, 26px);
    color: #333333;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 1024px) {
    .offer-section {
        padding: 80px 20px 20px;
    }

    .offer-section__header {
        margin-bottom: 40px;
    }

    .offer-section__steps {
        gap: 40px;
    }

    .offer-step:not(:last-child)::before {
        width: calc(100% + 40px - 12px);
    }

    .offer-step::after {
        top: 80px;
    }

    .offer-step__icon {
        width: 60px;
        height: 60px;
    }

    .offer-step:not(:last-child)::before {
        top: 86px;
    }
}

@media (max-width: 900px) {
    .offer-section {
        padding: 60px 16px 40px;
    }

    /*.offer-section__container {*/
    /*    padding-left: 20px;*/
    /*}*/

    .offer-section__how-title {
        margin-bottom: 40px;
    }

    .offer-section__steps {
        gap: 30px;
        flex-wrap: wrap;
    }

    .offer-step:not(:last-child)::before {
        width: calc(100% + 30px - 12px);
    }

    /*.offer-step {*/
    /*    flex: 1 1 calc(50% - 15px);*/
    /*    min-width: 200px;*/
    /*}*/
}

@media (max-width: 600px) {
    .offer-section {
        padding: 40px 16px;
    }

    /*.offer-section__container {*/
    /*    padding-left: 16px;*/
    /*}*/

    .offer-section__header {
        margin-bottom: 40px;
    }

    .offer-section__how-it-works {
        margin-bottom: 40px;
    }

    .offer-section__how-title {
        margin-bottom: 30px;
    }

    .offer-section__steps {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }

    .offer-step {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
        text-align: left;
    }

    .offer-step::before {
        display: none;
    }

    .offer-step::after {
        display: none;
    }

    .offer-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 55px;
        left: 25px;
        /*margin: 10px 0;*/
        width: 2px;
        height: calc(25% + 30px);
        background-color: #333333;
        z-index: 0;
        display: block;
    }

    .offer-step__icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        margin-right: 20px;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
    }

    .offer-step__content {
        text-align: left;
        flex: 1;
        margin-top: 0;
    }

    .offer-section__footer {
        margin-top: 40px;
    }

}

/* ==== Секция "До" и "После" ==== */
.before-after-section {
    padding: 0 20px 80px;
    background-color: #ffffff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.before-after-section__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.before-after-section__item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.before-after-section__label {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    color: #333333;
    margin-bottom: 20px;
}

.before-after-section__label_accent {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 600;
    color: #ff6b00;
    margin-bottom: 20px;
}

.before-after-section__image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .before-after-section {
        padding: 40px 20px;
    }

    .before-after-section__container {
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .before-after-section {
        padding: 20px 16px;
    }

    .before-after-section__container {
        gap: 20px;
    }

    .before-after-section__label {
        margin-bottom: 15px;
    }
}

@media (max-width: 600px) {
    .before-after-section {
        padding: 20px 16px;
    }

    .before-after-section__container {
        flex-direction: column;
        gap: 30px;
    }

    .before-after-section__label {
        margin-bottom: 15px;
    }
}

/* ==== Секция "Коммерческое предложение" ==== */
.commercial-offer-section {
    position: relative;
    padding: 20px 20px 80px;
    background-color: #ffffff;
    overflow: hidden;
}

.commercial-offer-section__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotateClockwiseLeft {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes rotateClockwiseRight {
    from {
        transform: rotate(-180deg);
    }
    to {
        transform: rotate(-540deg);
    }
}

.commercial-offer-section__bg-image {
    position: absolute;
    width: auto;
    height: auto;
    max-width: 400px;
    /*opacity: 0.8;*/
}

.commercial-offer-section__bg-image--left {
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
    animation: rotateClockwiseLeft 40s linear infinite;
}

.commercial-offer-section__bg-image--right {
    right: -220px;
    top: 0;
    transform: rotate(180deg);
    animation: rotateClockwiseRight 40s linear infinite;
}

.commercial-offer-section__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.commercial-offer-section__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700 !important;
    color: #333333;
    margin: 0 0 40px;
}

.commercial-offer-section__container {
    width: 100%;
}

.commercial-offer-section__card {
    width: 100%;
    background-color: #F5F3F2;
    border-radius: 16px;
    padding: 40px;
    /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);*/
}

.commercial-offer-section__content {
    display: flex;
    gap: 60px;
    align-items: center;
}

.commercial-offer-section__left {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
}

.commercial-offer-section__title {
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 600 !important;
    color: #333333;
    margin: 0 0 20px;
}

.commercial-offer-section__geo-note {
    font-size: clamp(14px, 1.5vw, 18px);
    color: #666666;
    margin: 0 0 40px;
    font-weight: 400;
}

.commercial-offer-section__item {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.commercial-offer-section__item:last-child {
    margin-bottom: 0;
}

.commercial-offer-section__label {
    font-size: clamp(16px, 1.5vw, 22px);
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.4;
    font-weight: 500;
}

.commercial-offer-section__value {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: #333333;
    font-family: 'Unbounded', sans-serif;
}

.commercial-offer-section__image-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.commercial-offer-section__image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    border-radius: 26px;
    box-shadow: 10px 10px 20px rgba(95, 16, 195, 0.23);
}

@media (max-width: 1024px) {
    .commercial-offer-section {
        padding: 80px 20px;
    }

    .commercial-offer-section__content {
        gap: 40px;
    }

    .commercial-offer-section__left {
        flex: 0 0 250px;
    }

    .commercial-offer-section__card {
        padding: 30px;
    }

    .commercial-offer-section__bg-image {
        max-width: 300px;
    }

    .commercial-offer-section__bg-image--left {
        left: -80px;
    }

    .commercial-offer-section__bg-image--right {
        right: -80px;
    }
}

@media (max-width: 900px) {
    .commercial-offer-section {
        padding: 60px 16px;
    }

    .commercial-offer-section__content {
        flex-direction: column;
        gap: 40px;
    }

    .commercial-offer-section__left {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }

    .commercial-offer-section__image-wrapper {
        width: 100%;
    }

    .commercial-offer-section__bg-image {
        max-width: 250px;
    }
}

@media (max-width: 600px) {
    .commercial-offer-section {
        padding: 40px 16px;
    }

    .commercial-offer-section__card {
        padding: 24px;
    }

    .commercial-offer-section__title {
        margin-bottom: 30px;
    }

    .commercial-offer-section__item {
        margin-bottom: 24px;
    }

    .commercial-offer-section__bg-image {
        max-width: 200px;
        opacity: 0.2;
    }

    .commercial-offer-section__bg-image--left {
        left: -60px;
    }

    .commercial-offer-section__bg-image--right {
        right: -60px;
    }
}

/* ==== Секция обратной связи ==== */
.contact-form {
    padding: 80px 20px;
    background: #ffffff;
}

.contact-form__container {
    max-width: 960px;
    margin: 0 auto;
}

.contact-form__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    flex-direction: row;
}

.contact-form__left {
    flex: 1;
    max-width: 520px;
    background-color: #f8f9fa;
    border-radius: 16px;
    padding: 32px;
}

.contact-form__right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.contact-form__title {
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #000000;
    font-weight: 500;
}

.contact-form__form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group {
    width: 100%;
    margin-bottom: 24px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #000000;
    border-radius: 0;
    font-size: 16px;
    outline: none;
    background-color: transparent;
    margin-bottom: 5px;
    font-weight: 400;
    line-height: 1.6;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-bottom-color: #FF6B00;
}

.form-input::placeholder {
    color: #999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-input:focus::placeholder {
    opacity: 0.7;
    transform: translateY(-10px);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.checkbox-text {
    display: block;
}

.privacy-link {
    color: #FF6B00;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    background-color: #FF6B00;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: default;
}

.phone-image-container {
    max-width: 100%;
}

.phone-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
}

@media (max-width: 1024px) {
    .phone-image {
        max-width: 420px;
    }
}

@media (max-width: 900px) {
    .phone-image {
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 30px 16px 50px;
    }

    .contact-form__container {
        max-width: none;
        width: 100%;
    }

    .contact-form__content {
        flex-direction: column;
        padding: 0;
        gap: 24px;
        width: 100%;
    }

    .contact-form__left {
        padding: 24px 20px;
        width: 100%;
    }

    .contact-form__right {
        display: none;
    }
}
