/* ============================================
   DESIGN LAYER — поверх styles.css
   Редакционный стиль: золотые линии, крупные
   номера, тёмная секция «Команда», плавное
   появление блоков при прокрутке.
============================================ */

:root {
    --ink: #1C1917;
    --ink-2: #44403C;
    --muted: #78716C;
    --line: #E7E5E4;
    --paper: #FAFAF9;
    --stone: #F5F5F4;
    --gold: #CA8A04;
    --gold-2: #EAB308;
    --gold-soft: rgba(202, 138, 4, 0.12);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

html { -moz-osx-font-smoothing: grayscale; }
html.smooth-scroll { scroll-behavior: auto; }
h1, h2, h3, .h1, .h2, .h3 { text-wrap: balance; }
.text-m, .text-l, .hero-sub { text-wrap: pretty; }
::selection { background: var(--gold-2); color: var(--ink); }

/* ---------- кнопки: тактильность ---------- */
.btn-yellow, .btn-filled, .btn-submit-form {
    transition-property: background-color, transform, box-shadow;
    transition-duration: .18s;
    transition-timing-function: ease-out;
}
.btn-yellow { color: var(--ink); box-shadow: 0 6px 18px -6px rgba(202,138,4,.55); }
.btn-yellow:hover { background: var(--gold-2); box-shadow: 0 10px 26px -8px rgba(202,138,4,.7); transform: translateY(-1px); }
.btn-yellow:active, .btn-filled:active, .btn-submit-form:active { transform: scale(.97); }
.btn-submit-form { color: var(--ink); }
.btn-submit-form:hover { background: var(--gold-2); }
.header-btn { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- подписи над заголовками ---------- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}
.eyebrow::before {
    content: '';
    width: 32px;
    height: 1.5px;
    background: currentColor;
}
.section-header { height: auto; }
.section-header.center .eyebrow,
.faq-title .eyebrow,
.team-header .eyebrow { justify-content: center; }
.section-header.center .eyebrow::after,
.faq-title .eyebrow::after,
.team-header .eyebrow::after {
    content: '';
    width: 32px;
    height: 1.5px;
    background: currentColor;
}
.faq-title { color: var(--ink); }

/* ---------- HERO ---------- */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(250,250,249,.55) 0%, rgba(250,250,249,.25) 38%, rgba(250,250,249,0) 60%);
}
.hero-card { gap: 22px; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-2);
    padding: 8px 14px;
    background: rgba(250,250,249,.7);
    border: 1px solid rgba(202,138,4,.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hero-eyebrow::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-soft);
}
.hero-accent {
    font-style: normal;
    color: var(--gold);
    position: relative;
    white-space: nowrap;
}
.hero-accent::after {
    content: '';
    position: absolute;
    left: 2%; right: 2%;
    bottom: 10%;
    height: 3px;
    background: var(--gold-2);
    transform-origin: left;
    transform: scaleX(0);
    animation: heroLine 1s .9s var(--ease) forwards;
}
@keyframes heroLine { to { transform: scaleX(1); } }

.hero-sub { font-size: 18px; line-height: 28px; max-width: 560px; }
.hero-cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-link {
    font-weight: 700;
    font-size: 17px;
    color: var(--ink);
    border-bottom: 1.5px solid var(--gold);
    padding: 4px 0;
}
.hero-link span { display: inline-block; transition: transform .2s ease-out; }
.hero-link:hover span { transform: translateX(4px); }

.hero-facts {
    list-style: none;
    display: flex;
    gap: 0;
    margin-top: 12px;
    background: rgba(250,250,249,.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.8);
    box-shadow: 0 12px 40px -16px rgba(28,25,23,.25);
}
.hero-facts li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 22px;
    border-left: 1px solid var(--line);
}
.hero-facts li:first-child { border-left: none; }
.hero-facts strong {
    font-family: 'Forum', serif;
    font-weight: 400;
    font-size: 26px;
    line-height: 32px;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.hero-facts span { font-size: 13px; line-height: 18px; color: var(--muted); }

.hero-scroll {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 28px; height: 44px;
    border: 1.5px solid rgba(28,25,23,.45);
    border-radius: 14px;
}
.hero-scroll span {
    position: absolute;
    left: 50%; top: 8px;
    width: 4px; height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--gold);
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- УСЛУГИ ---------- */
.services { padding-top: 88px; padding-bottom: 72px; }
.card-service {
    position: relative;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: none;
    padding: 48px 48px 44px;
    align-self: stretch;
    transition-property: transform, box-shadow, border-color;
    transition-duration: .3s;
    transition-timing-function: var(--ease);
}
.card-service::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    transform: scaleX(.12);
    transform-origin: left;
    transition: transform .5s var(--ease);
}
.card-service:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(28,25,23,.25); border-color: rgba(202,138,4,.35); }
.card-service:hover::before { transform: scaleX(1); }
.card-num {
    position: absolute;
    right: 28px; top: 8px;
    font-family: 'Forum', serif;
    font-size: 120px;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(202,138,4,.35);
    pointer-events: none;
    user-select: none;
}
.card-text { position: relative; }
.card-tag {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-soft);
    padding: 4px 10px;
}
.card-text .h3 { color: var(--ink); font-size: 34px; line-height: 42px; }
.card-text .text-m { color: var(--ink-2); max-width: 640px; }

/* ---------- БАННЕР ЖК ---------- */
.banner-card {
    background: rgba(250,250,249,.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-left: 3px solid var(--gold);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.banner-counter { font-variant-numeric: tabular-nums; }
.arrow-btn { transition: background-color .2s, border-color .2s; position: relative; }
.arrow-btn::after { content: ''; position: absolute; inset: -6px; }
.arrow-btn:hover { background: var(--ink); border-color: var(--ink); }
.arrow-btn:hover svg path { stroke: #FAFAF9; }

/* ---------- ПРЕИМУЩЕСТВА ---------- */
.advantages { padding-top: 88px; padding-bottom: 88px; counter-reset: adv; }
.adv-grid { gap: 0; border: 1px solid var(--line); background: var(--paper); }
.card-adv {
    counter-increment: adv;
    position: relative;
    background: transparent;
    box-shadow: none;
    border-left: 1px solid var(--line);
    align-items: flex-start;
    padding: 44px 36px 40px;
    transition: background-color .35s var(--ease);
}
.card-adv:first-child { border-left: none; }
.card-adv::before {
    content: '0' counter(adv);
    position: absolute;
    top: 28px; right: 28px;
    font-family: 'Forum', serif;
    font-size: 22px;
    color: var(--muted);
    transition: color .35s var(--ease);
}
.adv-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--gold-soft);
    transition: background-color .35s var(--ease), transform .35s var(--ease);
}
.adv-icon svg { width: 44px; height: 44px; }
.adv-icon svg * { transition: stroke .35s var(--ease); }
.adv-text { align-items: flex-start; text-align: left; }
.adv-text .h3 { color: var(--ink); transition: color .35s var(--ease); }
.adv-text .text-m { color: var(--ink-2); transition: color .35s var(--ease); }
.card-adv:hover { background: var(--ink); }
.card-adv:hover .adv-icon { background: var(--gold); transform: rotate(-8deg); }
.card-adv:hover .adv-icon svg * { stroke: var(--ink); }
.card-adv:hover .adv-text .h3 { color: var(--gold-2); }
.card-adv:hover .adv-text .text-m { color: #D6D3D1; }
.card-adv:hover::before { color: var(--gold-2); }

/* ---------- О НАС ---------- */
.about-txt { padding: 88px 72px; }
.about-label { height: auto; }
.about-label .h2::after {
    content: '';
    display: block;
    width: 64px; height: 3px;
    margin-top: 14px;
    background: var(--gold);
}
.about-body p:first-child { font-size: 19px; line-height: 30px; color: var(--ink); }
.about-body p { color: var(--ink-2); }
.about-body strong { color: var(--gold); font-weight: 700; }
.about-image { position: relative; }
.about-image::after {
    content: '';
    position: absolute;
    inset: 32px;
    border: 1px solid rgba(250,250,249,.65);
    pointer-events: none;
}

/* ---------- КОМАНДА (без фото, имён и стажа) ---------- */
.team {
    background:
        radial-gradient(900px 400px at 85% 0%, rgba(202,138,4,.18), transparent 60%),
        var(--ink);
    color: #FAFAF9;
}
.team-inner { padding: 96px 64px; gap: 56px; }
.team-header { align-items: center; gap: 24px; }
.team-header .h2 { color: #FAFAF9; }
.team-header .text-m {
    color: #D6D3D1;
    max-width: 880px;
    text-align: center;
    font-size: 18px;
    line-height: 30px;
}
.team-dev {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px 28px;
}
.team-dev-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #A8A29E;
}
.team-dev-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.team-dev-list li {
    font-family: 'Forum', serif;
    font-size: 26px;
    line-height: 1;
    padding: 14px 26px;
    border: 1px solid rgba(250,250,249,.22);
    color: #FAFAF9;
    transition: border-color .25s, color .25s, background-color .25s;
}
.team-dev-list li:hover { border-color: var(--gold-2); color: var(--gold-2); background: rgba(234,179,8,.06); }

.team-steps {
    list-style: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}
.team-steps::before {
    content: '';
    position: absolute;
    left: 12.5%; right: 12.5%;
    top: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), rgba(234,179,8,.25));
}
.team-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    padding: 0 16px;
}
.step-num {
    position: relative;
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid var(--gold);
    font-family: 'Forum', serif;
    font-size: 20px;
    color: var(--gold-2);
    font-variant-numeric: tabular-nums;
    transition: background-color .3s, color .3s;
}
.team-steps li:hover .step-num { background: var(--gold); color: var(--ink); }
.step-title { font-family: 'Forum', serif; font-size: 24px; line-height: 30px; color: #FAFAF9; }

/* ---------- СТОИМОСТЬ ---------- */
.pricing { padding-top: 72px; padding-bottom: 72px; background: var(--stone); }
.pricing-grid { gap: 24px; align-items: stretch; }
.card-pricing {
    background: #FFFFFF;
    box-shadow: none;
    border: 1px solid var(--line);
    padding: 40px 36px;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card-pricing:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(28,25,23,.22); }
.card-pricing-text { gap: 14px; }
.card-pricing-text .h3 { color: var(--ink); font-size: 26px; line-height: 34px; }
.card-pricing-text .text-m { font-size: 15px; line-height: 24px; color: var(--ink-2); }
.card-pricing--accent {
    background: linear-gradient(160deg, #2A2522 0%, var(--ink) 100%);
    border-color: var(--ink);
}
.card-pricing--accent .h3 { color: var(--gold-2); }
.card-pricing--accent .text-m { color: #D6D3D1; }
.card-pricing--accent .text-m:first-of-type { color: #FAFAF9; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { padding-top: 96px; padding-bottom: 96px; background: #FFFFFF; }
.accordion-item { transition: background-color .25s; }
.accordion-item:hover { background: var(--stone); }
.accordion-open, .accordion-open:hover { background: var(--stone); box-shadow: inset 3px 0 0 var(--gold); }
.accordion-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    transition: transform .3s var(--ease), background-color .3s, border-color .3s;
}
.accordion-icon.open { transform: rotate(180deg); background: var(--gold); border-color: var(--gold); }
.accordion-icon.open .icon-h { background: var(--ink); }
.accordion-body .text-l { color: var(--ink-2); max-width: 980px; }

/* ---------- КОНТАКТЫ ---------- */
.contact {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 64px;
    background:
        radial-gradient(700px 360px at 100% 100%, rgba(234,179,8,.22), transparent 60%),
        linear-gradient(135deg, #2A2522, var(--ink));
}
.contact::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.contact-phone-text {
    font-family: 'Forum', serif;
    font-weight: 400;
    font-size: 36px;
    line-height: 44px;
    color: var(--gold-2);
    font-variant-numeric: tabular-nums;
}
.contact-social { flex-direction: row; gap: 12px; }
.contact-social-link {
    text-decoration: none;
    font-size: 15px;
    padding: 10px 18px;
    border: 1px solid rgba(250,250,249,.3);
    transition: border-color .2s, color .2s;
}
.contact-social-link:hover { border-color: var(--gold-2); color: var(--gold-2); }
.contact-form {
    background: rgba(250,250,249,.06);
    border: 1px solid rgba(250,250,249,.12);
    padding: 36px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.field-input, .field-textarea { height: 48px; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field-textarea { height: 110px; color: var(--ink); }
.field-input:focus, .field-textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(234,179,8,.25); }
.btn-submit-form { height: 52px; }
.checkbox-text { font-family: 'Manrope', sans-serif; }

/* ---------- ФУТЕР ---------- */
.footer { border-top: none; background: var(--stone); }

/* ---------- ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ ---------- */
.js-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.js-reveal .card-service[data-reveal].is-in:hover,
.js-reveal .card-pricing[data-reveal].is-in:hover { transform: translateY(-4px); }

.hero.loaded .hero-card > * { animation: heroIn .8s var(--ease) both; }
.hero.loaded .hero-card > *:nth-child(2) { animation-delay: .08s; }
.hero.loaded .hero-card > *:nth-child(3) { animation-delay: .16s; }
.hero.loaded .hero-card > *:nth-child(4) { animation-delay: .24s; }
.hero.loaded .hero-card > *:nth-child(5) { animation-delay: .32s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
    .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero.loaded .hero-card > *, .hero-accent::after, .hero-scroll span { animation: none; }
    .hero-accent::after { transform: none; }
}

/* ---------- АДАПТИВ ---------- */
@media (max-width: 1200px) {
    .adv-grid { flex-wrap: wrap; }
    .card-adv { flex: 0 0 50%; border-top: 1px solid var(--line); }
    .card-adv:nth-child(-n+2) { border-top: none; }
    .card-adv:nth-child(odd) { border-left: none; }
}
@media (max-width: 1024px) {
    .team-inner { padding: 72px 40px; }
    .about-txt { padding: 56px 40px; }
}
@media (max-width: 900px) {
    .hero::after { background: linear-gradient(180deg, rgba(250,250,249,.55), rgba(250,250,249,.25)); }
    .hero-cta-row { justify-content: center; }
    .hero-facts { width: 100%; }
    .hero-facts li { flex: 1; padding: 12px 10px; align-items: center; text-align: center; }
    .hero-facts strong { font-size: 20px; line-height: 26px; }
    .hero-facts span { font-size: 11px; line-height: 15px; }
    .hero-scroll { display: none; }
    .card-adv { flex: none; width: 100%; border-left: none; border-top: 1px solid var(--line); }
    .card-adv:first-child { border-top: none; }
    .card-adv:nth-child(2) { border-top: 1px solid var(--line); }
    .team-steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
    .team-steps::before { display: none; }
    .contact { margin-bottom: 40px; }
    .contact-form { padding: 24px; }
}
@media (max-width: 600px) {
    .services, .advantages { padding-top: 56px; padding-bottom: 56px; }
    .faq, .pricing { padding-top: 56px; padding-bottom: 56px; }
    .card-service { padding: 32px 24px; }
    .card-num { font-size: 84px; right: 16px; }
    .card-text .h3 { font-size: 26px; line-height: 32px; }
    .hero-eyebrow { font-size: 11px; letter-spacing: .1em; }
    .hero-facts strong { font-size: 17px; line-height: 22px; }
    .team-inner { padding: 56px 20px; gap: 40px; }
    .team-header .text-m { font-size: 16px; line-height: 26px; }
    .team-dev-list li { font-size: 20px; padding: 10px 16px; }
    .team-steps { grid-template-columns: 1fr; row-gap: 0; }
    .team-steps li { flex-direction: row; text-align: left; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(250,250,249,.12); }
    .team-steps li:first-child { border-top: none; }
    .step-num { width: 44px; height: 44px; font-size: 17px; flex-shrink: 0; }
    .step-title { font-size: 21px; line-height: 26px; }
    .contact-phone-text { font-size: 28px; line-height: 36px; }
    .contact-social { flex-wrap: wrap; }
    .contact-form { padding: 20px; }
    .eyebrow { font-size: 11px; }
}
