/* ==========================================================================
   LINKFIRST / DEVELOPMENT PAGE
   /razrabotka-sayta/development.css
   ========================================================================== */

.lf-dev-page {
    position: relative;
    overflow: hidden;
}

.lf-dev-page::before {
    content: "";
    position: absolute;
    top: 4%;
    right: -18vw;
    width: 44vw;
    min-width: 360px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.075), transparent 66%);
    pointer-events: none;
}

.lf-dev-page::after {
    content: "";
    position: absolute;
    left: -18vw;
    top: 34%;
    width: 44vw;
    min-width: 360px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 16, 16, 0.045), transparent 66%);
    pointer-events: none;
}

.lf-dev-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 3vw, 48px);
    padding-right: clamp(16px, 3vw, 48px);
    box-sizing: border-box;
}

.lf-section-head {
    max-width: 860px;
    margin-bottom: clamp(28px, 4vw, 52px);
}

.lf-section-head h2 {
    max-width: 820px;
    margin: 0 0 16px;
    color: var(--ink, #101010);
    font-size: clamp(2rem, 3.1vw, 3.15rem);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.lf-section-head p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--muted, #676a70);
    font-size: 1.05rem;
    line-height: 1.68;
}

/* HERO */

.lf-dev-hero {
    position: relative;
    padding-top: clamp(68px, 7.4vw, 116px);
    padding-bottom: clamp(48px, 6vw, 88px);
}

.lf-dev-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
    gap: clamp(34px, 6vw, 88px);
    align-items: end;
}

.lf-dev-hero__content {
    max-width: 960px;
}

.lf-dev-hero h1 {
    max-width: 920px;
    margin: 0 0 18px;
    color: var(--ink, #101010);
    font-size: clamp(2.02rem, 3.28vw, 3.45rem);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.lf-dev-hero p:not(.eyebrow) {
    max-width: 780px;
    margin: 0;
    color: var(--ink-2, var(--muted, #676a70));
    font-size: 1.05rem;
    line-height: 1.68;
}

.lf-dev-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

/* PRICE */

.lf-dev-price-card {
    position: relative;
    padding: 26px;
    border: 1px solid var(--line, rgba(16, 16, 16, 0.105));
    border-radius: 34px;
    background:
        radial-gradient(circle at 92% 0%, rgba(227, 6, 19, 0.075), transparent 44%),
        #ffffff;
    box-shadow: var(--shadow, 0 18px 50px rgba(16, 16, 16, 0.075));
    overflow: hidden;
}

.lf-dev-price-card__label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--red-soft, rgba(227, 6, 19, 0.08));
    color: var(--accent, #e30613);
    font-size: 0.8rem;
    line-height: 1;
    font-weight: 760;
}

.lf-dev-price-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 14px;
    color: var(--ink, #101010);
}

.lf-dev-price-card__price span {
    color: var(--muted, #676a70);
    font-size: 1rem;
    font-weight: 650;
}

.lf-dev-price-card__price b {
    color: var(--accent, #e30613);
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1;
    font-weight: 820;
    letter-spacing: -0.06em;
}

.lf-dev-price-card__price small {
    color: var(--muted, #676a70);
    font-size: 0.94rem;
    font-weight: 650;
}

.lf-dev-price-card p {
    margin: 0 0 18px;
    color: var(--muted, #676a70);
    font-size: 0.94rem;
    line-height: 1.6;
}

.lf-dev-price-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lf-dev-price-card li {
    position: relative;
    padding-left: 19px;
    color: var(--ink, #101010);
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 650;
}

.lf-dev-price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent, #e30613);
}

/* COMMON CARDS */

.lf-dev-feature-card,
.lf-dev-type-card,
.lf-dev-process__grid article,
.lf-dev-faq__item,
.lf-dev-lead__card,
.lf-dev-text__article {
    border: 1px solid var(--line, rgba(16, 16, 16, 0.105));
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(16, 16, 16, 0.07);
}

/* FEATURES */

.lf-dev-features {
    padding-top: 0;
}

.lf-dev-features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lf-dev-feature-card {
    position: relative;
    min-height: 100%;
    padding: 26px;
    border-radius: 30px;
    overflow: hidden;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.lf-dev-feature-card::before {
    content: "";
    position: absolute;
    right: -82px;
    top: -92px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.06), transparent 66%);
    pointer-events: none;
}

.lf-dev-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-line, rgba(227, 6, 19, 0.22));
    box-shadow: var(--shadow-strong, 0 28px 80px rgba(16, 16, 16, 0.13));
}

.lf-dev-feature-card__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 20px;
    background: var(--red-soft, rgba(227, 6, 19, 0.08));
    color: var(--accent, #e30613);
}

.lf-dev-feature-card__icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.lf-dev-feature-card h3 {
    margin: 0 0 10px;
    color: var(--ink, #101010);
    font-size: clamp(1.14rem, 1.5vw, 1.36rem);
    line-height: 1.16;
    font-weight: 760;
    letter-spacing: -0.025em;
}

.lf-dev-feature-card p {
    margin: 0;
    color: var(--muted, #676a70);
    font-size: 0.96rem;
    line-height: 1.62;
}

/* TYPES */

.lf-dev-types {
    background: rgba(255, 255, 255, 0.42);
}

.lf-dev-types__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.lf-dev-type-card {
    padding: 26px;
    border-radius: 30px;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.lf-dev-type-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-line, rgba(227, 6, 19, 0.22));
    box-shadow: var(--shadow-strong, 0 28px 80px rgba(16, 16, 16, 0.13));
}

.lf-dev-type-card__top {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.lf-dev-type-card h3 {
    margin: 0;
    color: var(--ink, #101010);
    font-size: clamp(1.28rem, 2vw, 1.75rem);
    line-height: 1.14;
    font-weight: 760;
    letter-spacing: -0.035em;
}

.lf-dev-type-card__top span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 32px;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--red-soft, rgba(227, 6, 19, 0.08));
    color: var(--accent, #e30613);
    font-size: 0.84rem;
    line-height: 1;
    font-weight: 820;
}

.lf-dev-type-card p {
    margin: 0 0 18px;
    color: var(--muted, #676a70);
    font-size: 0.96rem;
    line-height: 1.62;
}

.lf-dev-type-card ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lf-dev-type-card li {
    position: relative;
    padding-left: 20px;
    color: var(--ink, #101010);
    font-size: 0.92rem;
    line-height: 1.45;
    font-weight: 650;
}

.lf-dev-type-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent, #e30613);
    font-weight: 850;
}

/* PROCESS */

.lf-dev-process__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.lf-dev-process__grid article {
    padding: 22px;
    border-radius: 28px;
}

.lf-dev-process__grid span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--red-soft, rgba(227, 6, 19, 0.08));
    color: var(--accent, #e30613);
    font-size: 0.82rem;
    line-height: 1;
    font-weight: 820;
}

.lf-dev-process__grid h3 {
    margin: 0 0 10px;
    color: var(--ink, #101010);
    font-size: 1.14rem;
    line-height: 1.18;
    font-weight: 760;
    letter-spacing: -0.025em;
}

.lf-dev-process__grid p {
    margin: 0;
    color: var(--muted, #676a70);
    font-size: 0.92rem;
    line-height: 1.58;
}

/* FAQ */

.lf-dev-faq {
    background: rgba(255, 255, 255, 0.42);
}

.lf-dev-faq__list {
    display: grid;
    gap: 10px;
}

.lf-dev-faq__item {
    border-radius: 24px;
    overflow: hidden;
}

.lf-dev-faq__question {
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px;
    border: 0;
    background: #ffffff;
    color: var(--ink, #101010);
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 760;
}

.lf-dev-faq__question i {
    position: relative;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--red-soft, rgba(227, 6, 19, 0.08));
}

.lf-dev-faq__question i::before,
.lf-dev-faq__question i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent, #e30613);
    transform: translate(-50%, -50%);
}

.lf-dev-faq__question i::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.18s ease;
}

.lf-dev-faq__item.is-open .lf-dev-faq__question i::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.lf-dev-faq__answer {
    display: none;
    padding: 0 22px 22px;
}

.lf-dev-faq__item.is-open .lf-dev-faq__answer {
    display: block;
}

.lf-dev-faq__answer p {
    margin: 0 0 12px;
    color: var(--muted, #676a70);
    font-size: 0.98rem;
    line-height: 1.65;
}

.lf-dev-faq__answer p:last-child {
    margin-bottom: 0;
}

.lf-dev-faq__answer a {
    color: var(--accent, #e30613);
    text-decoration: none;
    font-weight: 720;
}

/* LEAD */

.lf-dev-lead {
    padding-top: 0;
}

.lf-dev-lead__card {
    position: relative;
    padding: clamp(30px, 5vw, 56px);
    border-radius: 36px;
    background:
        radial-gradient(circle at 92% 0%, rgba(227, 6, 19, 0.08), transparent 44%),
        #ffffff;
    overflow: hidden;
}

.lf-dev-lead__card h2 {
    max-width: 820px;
    margin: 0 0 16px;
    color: var(--ink, #101010);
    font-size: clamp(2rem, 3.1vw, 3.15rem);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.lf-dev-lead__card p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: var(--muted, #676a70);
    font-size: 1.05rem;
    line-height: 1.68;
}

.lf-dev-lead__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

/* TEXT */

.lf-dev-text {
    padding-top: 0;
}

.lf-dev-text__article {
    padding: clamp(28px, 4vw, 48px);
    border-radius: 34px;
}

.lf-dev-text__article h2 {
    max-width: 840px;
    margin: 0 0 22px;
    color: var(--ink, #101010);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -0.035em;
}

.lf-dev-text__article h3 {
    margin: 30px 0 12px;
    color: var(--ink, #101010);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.18;
    font-weight: 760;
    letter-spacing: -0.03em;
}

.lf-dev-text__article p {
    max-width: 920px;
    margin: 0 0 16px;
    color: var(--muted, #676a70);
    font-size: 1rem;
    line-height: 1.75;
}

/* REVEAL */

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.56s ease,
        transform 0.56s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ADAPTIVE */

@media (max-width: 1180px) {
    .lf-dev-process__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .lf-dev-features__grid,
    .lf-dev-types__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .lf-dev-hero__layout {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width: 760px) {
    .lf-dev-hero {
        padding-top: 52px;
        padding-bottom: 44px;
    }

    .lf-dev-hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.45rem);
        line-height: 1.08;
    }

    .lf-dev-hero p:not(.eyebrow),
    .lf-section-head p:not(.eyebrow),
    .lf-dev-lead__card p:not(.eyebrow) {
        font-size: 1rem;
    }

    .lf-dev-hero__actions,
    .lf-dev-lead__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .lf-dev-hero__actions .button,
    .lf-dev-lead__actions .button {
        width: 100%;
    }

    .lf-dev-features__grid,
    .lf-dev-types__grid,
    .lf-dev-process__grid {
        grid-template-columns: 1fr;
    }

    .lf-dev-text__article,
    .lf-dev-lead__card {
        border-radius: 28px;
    }
}

@media (max-width: 480px) {
    .lf-dev-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lf-dev-feature-card,
    .lf-dev-type-card,
    .lf-dev-process__grid article,
    .lf-dev-price-card,
    .lf-dev-text__article {
        padding: 22px;
        border-radius: 24px;
    }
}