/* ============ ПрофБух — информационный сайт ============ */
:root {
    --amber: #FFB800;
    --amber-dark: #E5A300;
    --amber-soft: #FFF4D4;
    --ink: #171A21;
    --ink-2: #1F242E;
    --gray: #F6F6F3;
    --muted: #666D78;
    --line: rgba(0, 0, 0, 0.08);
    --white: #ffffff;
    --radius: 20px;
    --radius-sm: 14px;
    --header-h: 76px;
    --tr: 0.22s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--white);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

svg {
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
}

h1 {
    font-size: clamp(34px, 4.4vw, 54px);
}

h2 {
    font-size: clamp(28px, 3.6vw, 42px);
}

/* ---------- Buttons (только навигационные) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    border-radius: 999px;
    padding: 14px 26px;
    white-space: nowrap;
    transition: background var(--tr), transform var(--tr), border-color var(--tr);
}

.btn:active {
    transform: scale(0.98);
}

.btn--ghost {
    background: transparent;
    border: 1.5px solid var(--line);
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--ink);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--tr);
}

.header.is-scrolled {
    border-bottom-color: var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--header-h);
}

.logo {
    width: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;

    img {
        width: 50px;
    }
}

.logo__icon {
    flex-shrink: 0;
}

.logo__text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav {
    display: flex;
    gap: 28px;
    font-weight: 600;
    font-size: 15px;
}

.nav a {
    color: var(--muted);
    transition: color var(--tr);
}

.nav a:hover {
    color: var(--ink);
}

.nav a.is-active {
    color: var(--ink);
    font-weight: 800;
    box-shadow: inset 0 -3px 0 var(--amber);
    padding-bottom: 4px;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header__phone {
    font-weight: 800;
    font-size: 15px;
    white-space: nowrap;
}

.header__phone:hover {
    color: var(--amber-dark);
}

.lang {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--gray);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
}

.lang__btn {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--muted);
    transition: background var(--tr), color var(--tr);
}

.lang__btn.is-active {
    background: var(--ink);
    color: var(--white);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: var(--tr);
}

.burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
    opacity: 0;
}

.burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    padding-top: calc(var(--header-h) + 64px);
    padding-bottom: 90px;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 64px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 24px;
}

.badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    flex-shrink: 0;
}

.hero__title {
    margin-bottom: 20px;
}

.hero__title em {
    font-style: normal;
    background: var(--amber);
    border-radius: 10px;
    padding: 0 12px;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 28px;
}

/* Тезисы в hero вместо формы */
.hero__points {
    display: grid;
    gap: 12px;
}

.hero__points li {
    position: relative;
    padding-left: 32px;
    font-weight: 700;
    font-size: 16px;
}

.hero__points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    background: var(--amber);
    color: var(--ink);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.hero__visual {
    position: relative;
}

.hero__chip {
    position: absolute;
    left: -20px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ink);
    color: var(--white);
    border-radius: 16px;
    padding: 16px 20px;
    max-width: 260px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    z-index: 5;
}

.hero__chip b {
    font-size: 30px;
    color: var(--amber);
}

.hero__chip span {
    font-size: 13px;
    line-height: 1.35;
    color: #c9cdd5;
}

/* ---------- Photo placeholders ---------- */
.photo {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: repeating-linear-gradient(45deg, #EEF0F3 0 14px, #E5E8ED 14px 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    place-items: center;
}

.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.photo__label {
    font-size: 12.5px;
    font-weight: 700;
    color: #9AA2AE;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 6px 14px;
}

.photo--hero {
    aspect-ratio: 4 / 4.4;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.photo--map {
    aspect-ratio: 21 / 7;
    margin-top: 40px;
}

.photo--ava {
    aspect-ratio: 1;
    border-radius: 18px;
    margin-bottom: 14px;
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 34px;
}

.stat b {
    display: block;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.stat span {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
    padding: 90px 0;
}

.section--gray {
    background: var(--gray);
}

.section__head {
    max-width: 660px;
    margin-bottom: 48px;
}

.section__head p {
    color: var(--muted);
    font-size: 17px;
    margin-top: 14px;
}

.section__head--row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.section__head--mt {
    margin-top: 70px;
}

.tag {
    display: inline-block;
    background: var(--amber-soft);
    color: #8a6100;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    border-radius: 999px;
    padding: 7px 16px;
    margin-bottom: 18px;
}

/* ---------- Grids & cards ---------- */
.grid {
    display: grid;
    gap: 16px;
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color var(--tr), transform var(--tr);
}

.card:hover {
    border-color: rgba(255, 184, 0, 0.6);
    transform: translateY(-3px);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--amber-soft);
    color: #8a6100;
    border-radius: 12px;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.card p {
    color: var(--muted);
    font-size: 15px;
}

.card p a:hover {
    text-decoration: underline;
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.step {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
}

.step__num {
    display: block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--amber-dark);
    margin-bottom: 16px;
}

.step h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: 15px;
}

/* ---------- Case cards ---------- */
.casecard {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px;
    transition: border-color var(--tr), transform var(--tr);
}

.casecard:hover {
    border-color: rgba(255, 184, 0, 0.6);
    transform: translateY(-3px);
}

.casecard__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.casecard__head b {
    display: block;
    font-size: 17px;
}

.casecard__head span {
    font-size: 13.5px;
    color: var(--muted);
}

.avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background: var(--amber);
    color: var(--ink);
    border-radius: 50%;
    font-size: 17px;
    font-weight: 800;
}

.avatar--lg {
    width: 72px;
    height: 72px;
    font-size: 23px;
    background: var(--amber-soft);
    color: #8a6100;
}

.casecard__nums {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: var(--gray);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 18px;
    text-align: center;
}

.casecard__nums b {
    display: block;
    font-size: 20px;
    font-weight: 800;
}

.casecard__nums span {
    font-size: 12px;
    color: var(--muted);
}

.casecard__quote {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
}

/* ---------- Company logos ---------- */
.clogo {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 22px 14px;
    text-align: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--muted);
    transition: border-color var(--tr), color var(--tr);
}

.clogo:hover {
    border-color: rgba(255, 184, 0, 0.6);
    color: var(--ink);
}

/* ---------- Banks & chips ---------- */
.banks {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banks__title {
    font-weight: 700;
    font-size: 15px;
    color: var(--muted);
}

.banks__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.banks__list span {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 800;
    font-size: 14px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips span {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14.5px;
}

.chips__all {
    background: var(--amber-soft) !important;
    border-color: transparent !important;
    color: #8a6100;
}

/* ---------- Infolist / office / about ---------- */
.infolist {
    display: grid;
    gap: 18px;
    margin: 28px 0 32px;
}

.infolist b {
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: 4px;
}

.infolist span {
    font-size: 16.5px;
    font-weight: 600;
}

.office {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.office__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.office__photos .photo:first-child {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
}

.office__cards {
    margin-top: 24px;
}

.about {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 56px;
    align-items: start;
}

.about__text h2 {
    margin-bottom: 20px;
}

.about__text p {
    color: var(--muted);
    font-size: 16.5px;
    margin-bottom: 16px;
}

.ministat {
    background: var(--gray);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    margin-bottom: 12px;
}

.ministat b {
    display: block;
    font-size: 26px;
    font-weight: 800;
}

.ministat span {
    font-size: 13.5px;
    color: var(--muted);
}

.teamcard {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
}

.teamcard b {
    display: block;
    font-size: 16.5px;
}

.teamcard > span {
    font-size: 13.5px;
    color: var(--muted);
}

.photogrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* ---------- Информационная плашка (без CTA) ---------- */
.cta {
    background: var(--ink);
    color: var(--white);
    border-radius: 28px;
    padding: 76px 40px;
    text-align: center;
}

.cta h2 {
    max-width: 620px;
    margin: 0 auto 16px;
}

.cta > p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    max-width: 520px;
    margin: 0 auto 34px;
}

.cta__contacts {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cta__pill {
    background: var(--white);
    color: var(--ink);
    border-radius: 999px;
    padding: 15px 28px;
    font-weight: 800;
    font-size: 16.5px;
    transition: transform var(--tr), background var(--tr);
}

.cta__pill:hover {
    transform: translateY(-2px);
    background: #f2f2f2;
}

.cta__pill--tg {
    background: var(--amber);
}

.cta__pill--tg:hover {
    background: var(--amber-dark);
}

.cta__note {
    margin-top: 26px !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

/* ---------- Page hero (внутренние страницы) ---------- */
.page-hero {
    padding-top: calc(var(--header-h) + 56px);
    padding-bottom: 56px;
}

.page-hero__lead {
    font-size: 18px;
    color: var(--muted);
    max-width: 620px;
    margin-top: 16px;
}

/* ---------- Contacts ---------- */
.contacts__grid {
    max-width: 860px;
}

.biglink {
    font-size: 18px;
    font-weight: 800;
}

.biglink:hover {
    color: var(--amber-dark);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 56px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer__brand p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 14px;
    max-width: 280px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 11px;
    font-weight: 600;
    font-size: 14.5px;
}

.footer__nav b {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--muted);
    margin-bottom: 4px;
}

.footer__nav a {
    color: var(--muted);
    transition: color var(--tr);
}

.footer__nav a:hover {
    color: var(--ink);
}

.footer__legal {
    border-top: 1px solid var(--line);
    padding: 20px 0 24px;
}

.footer__legal p {
    font-size: 12.5px;
    color: var(--muted);
}

/* ---------- Reveal ---------- */
.reveal {
    transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
}

html.js .reveal:not(.in) {
    opacity: 0;
    transform: translateY(22px);
}

/* ---------- Adaptive ---------- */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero__chip {
        left: 16px;
    }

    .grid--3, .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .office, .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .header__phone {
        display: none;
    }
}

@media (max-width: 960px) {
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 2px;
        padding: 14px 24px 22px;
        transform: translateY(-130%);
        transition: transform .28s ease;
        z-index: 99;
    }

    .nav.is-open {
        transform: none;
    }

    .nav a {
        padding: 12px 4px;
        font-size: 16px;
        color: var(--ink);
        border-bottom: 1px solid var(--line);
    }

    .nav a:last-child {
        border-bottom: 0;
    }

    .nav a.is-active {
        box-shadow: none;
        background: var(--amber-soft);
        border-radius: 10px;
        padding-left: 12px;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .cta {
        padding: 56px 24px;
        border-radius: 22px;
    }

    .cta__pill {
        width: 100%;
        text-align: center;
    }

    .office__photos {
        grid-template-columns: 1fr;
    }

    .office__photos .photo:first-child {
        grid-row: auto;
        aspect-ratio: 4/3;
    }

    .photogrid {
        grid-template-columns: 1fr;
    }

    .photo--map {
        aspect-ratio: 4/3;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .casecard__nums b {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    html.js .reveal:not(.in) {
        opacity: 1;
        transform: none;
    }
}