:root {
    --color-brand: #50BD4E;
    --color-brand-dark: #3fa83d;
    --color-brand-light: rgba(80, 189, 78, 0.15);
    --color-text-main: #000000;
    --color-text-muted: #737373;
    --color-bg-page: #FFFFFF;
    --color-bg-subtle: #F8FAFF;
    --color-border-light: #F1F1F1;

    --font-main: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-alt: "Rubik", system-ui, sans-serif;

    --container-width: 1110px;
    --container-padding-x: 24px;
    --section-padding-y: 80px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--color-bg-page);
    color: var(--color-text-main);
}

main {
    min-height: 50vh;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--container-padding-x);
    padding-right: var(--container-padding-x);
}

h1, h2, h3 {
    margin: 0;
    font-weight: 600;
}

p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

a {
    color: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 18px 13px;
    border-radius: 6px;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 18px;
    line-height: 27px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
    background: var(--color-brand);
    color: #FFFFFF;
}

.btn--primary:hover {
    background: var(--color-brand-dark);
}

.btn--ghost {
    background: transparent;
    color: var(--color-brand);
    border: 1px solid var(--color-brand);
}

.btn--ghost:hover {
    background: var(--color-brand-light);
}

.btn--small {
    padding: 8px 14px;
    font-size: 15px;
    line-height: 22px;
}

/* Site header */
.site-header {
    position: relative;
    z-index: 10;
    padding: 24px 0;
    background: transparent;
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.site-header__logo a {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.site-header__nav a {
    font-size: 18px;
    line-height: 27px;
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header__nav a:hover {
    color: var(--color-brand);
}

.site-header__cta {
    flex-shrink: 0;
}

/* Site footer */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border-light);
    margin-top: 40px;
}

.site-footer__inner p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Hero */
.hero {
    position: relative;
}

.hero--home {
    position: relative;
    width: 100%;
    min-height: 640px;
    overflow: hidden;
}

.hero__bg--gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        178.7deg,
        rgba(80, 189, 78, 0.15) 1.11%,
        rgba(234, 240, 255, 0) 103.22%
    );
    z-index: -1;
}

.hero__inner {
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.hero__column--left {
    flex: 1;
    max-width: 507px;
}

.hero__badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 7px 12px 8px;
    background: var(--color-bg-subtle);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 28px;
    color: var(--color-brand);
    opacity: 0.85;
}

.hero__title {
    margin-top: 24px;
    font-weight: 600;
    font-size: 44px;
    line-height: 1.4;
    color: var(--color-text-main);
}

.hero__subtitle {
    margin-top: 24px;
    font-size: 16px;
    line-height: 2;
    color: var(--color-text-muted);
    opacity: 0.85;
}

.hero__cta {
    margin-top: 24px;
}

.hero__column--right {
    flex: 1;
    max-width: 658px;
    min-height: 400px;
}

.hero__illustration {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 40px;
    background: #D6D6D6 url("https://picsum.photos/seed/onecta-home/658/480") center/cover no-repeat;
}

.hero__illustration--service {
    display: block;
    max-width: 658px;
    min-height: 400px;
    aspect-ratio: 658 / 480;
    object-fit: cover;
    background: #D6D6D6;
}

.hero--service {
    position: relative;
    width: 100%;
    padding: 48px 0 80px;
}

.hero--service .hero__inner {
    padding-top: 0;
    padding-bottom: 0;
}

.hero__title--service {
    font-size: 40px;
    line-height: 1.4;
}

.hero__subtitle--service {
    margin-top: 16px;
}

.hero__answer-first {
    margin-top: 20px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-main);
}

.hero__column--service {
    display: flex;
    justify-content: flex-end;
}

/* Sections */
.section {
    padding: var(--section-padding-y) 0;
}

.section--about {
    background: var(--color-bg-page);
}

.section--cards {
    background: var(--color-bg-subtle);
}

.section--logos {
    padding: 48px 0;
    border-top: 1px solid var(--color-border-light);
    border-bottom: 1px solid var(--color-border-light);
}

.section--lead-form {
    background: var(--color-brand-light);
}

.section--body,
.section--seo-text {
    padding: 48px 0;
}

.section__inner {
    width: 100%;
}

.section__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.section__title {
    font-size: 32px;
    line-height: 1.35;
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    max-width: 640px;
}

/* About block */
.about__text {
    flex: 1;
    max-width: 480px;
}

.about__badge {
    display: inline-flex;
    padding: 6px 12px;
    background: var(--color-brand-light);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-brand);
    margin-bottom: 16px;
}

.about__title {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.about__body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text-muted);
}

.about__media {
    flex: 1;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__image {
    width: 100%;
    height: 280px;
    border-radius: 24px;
    background: #D6D6D6;
}

.about__box {
    padding: 28px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.about__box-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.about__box-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* Cards */
.cards {
    display: grid;
    gap: 24px;
}

.cards--3col {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    padding: 32px 28px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-brand-light);
}

.card__title {
    font-size: 20px;
    line-height: 1.3;
}

.card__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    flex-grow: 1;
    margin-bottom: 8px;
}

.card__link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-brand);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card__link:hover {
    color: var(--color-brand-dark);
    text-decoration: underline;
}

/* Services index */
.page--services-index .hero__content {
    justify-content: flex-start;
}

.section--services-index {
    padding-top: 48px;
}

.service-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.service-card__title a:hover {
    color: var(--color-brand);
}

.service-card__link {
    margin-top: auto;
}

.services-index__empty {
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 32px;
    text-align: center;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.services-index__empty p {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* Logos */
.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px 48px;
}

.logos__item {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 16px 24px;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background: #FFFFFF;
}

/* Forms */
.form {
    max-width: 560px;
}

.form--lead {
    margin-top: 8px;
}

.form__row {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-main);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-main);
    background: #FFFFFF;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px var(--color-brand-light);
}

.form__textarea {
    min-height: 120px;
    resize: vertical;
}

/* Service page */
.page--service {
    padding-bottom: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 24px 0 0;
    font-size: 14px;
    color: var(--color-text-muted);
}

.breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--color-brand);
}

.breadcrumbs__current {
    color: var(--color-text-main);
}

.richtext {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text-main);
}

.richtext p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --section-padding-y: 64px;
    }

    .hero__title,
    .error-page__title {
        font-size: 36px;
    }

    .hero__title--service {
        font-size: 34px;
    }

    .error-page {
        padding: 64px 0 96px;
    }

    .hero__inner {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .hero--home {
        min-height: auto;
    }

    .hero__content,
    .section__content {
        flex-direction: column;
        gap: 40px;
    }

    .hero__column--left,
    .hero__column--right,
    .about__text,
    .about__media {
        max-width: 100%;
        width: 100%;
    }

    .hero__column--right {
        min-height: 320px;
    }

    .hero__illustration {
        min-height: 320px;
    }

    .cards--3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__column--service {
        justify-content: flex-start;
    }

    .hero__illustration--service {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding-x: 20px;
        --section-padding-y: 48px;
    }

    .site-header {
        padding: 16px 0;
    }

    .site-header__inner {
        flex-wrap: wrap;
        gap: 16px;
    }

    .site-header__logo {
        flex: 1;
    }

    .site-header__cta {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .site-header__nav {
        order: 2;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px 24px;
    }

    .hero__title,
    .error-page__title {
        font-size: 30px;
    }

    .hero__title--service {
        font-size: 28px;
    }

    .error-page {
        padding: 48px 0 80px;
    }

    .hero__inner {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero--service {
        padding: 32px 0 48px;
    }

    .section__title {
        font-size: 26px;
    }

    .about__title {
        font-size: 24px;
    }

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

    .logos {
        gap: 16px 24px;
    }

    .btn {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding-x: 16px;
    }

    .site-header__nav {
        gap: 12px 16px;
    }

    .site-header__nav a {
        font-size: 15px;
    }

    .hero__title,
    .error-page__title {
        font-size: 26px;
    }

    .hero__title--service {
        font-size: 24px;
    }

    .error-page__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .error-page__actions .btn {
        width: 100%;
    }

    .hero__subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .section__title {
        font-size: 22px;
    }

    .card {
        padding: 24px 20px;
    }

    .about__image {
        height: 200px;
    }
}

/* Error pages */
.error-page {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60vh;
    padding: 80px 0 120px;
}

.error-page__bg--gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        178.7deg,
        rgba(80, 189, 78, 0.15) 1.11%,
        rgba(234, 240, 255, 0) 103.22%
    );
    z-index: -1;
}

.error-page__inner {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.error-page__badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 7px 16px 8px;
    margin-bottom: 24px;
    background: var(--color-bg-subtle);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    line-height: 28px;
    color: var(--color-brand);
}

.error-page__title {
    font-size: 44px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.error-page__text {
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text-muted);
}

.error-page__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.section--faq {
    background: #FFFFFF;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
    background: #FFFFFF;
}

.faq__question {
    font-weight: 500;
    cursor: pointer;
}

.faq__answer {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
}