/* Calc public shell — визуально как consult / shop */

:root {
    --gold:  #D4A76A;
    --choco: #3E2723;
    --linen: #FDF6E3;
}

.calc-body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--linen);
    color: var(--choco);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.calc-body .navbar {
    background: var(--choco);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.calc-body .navbar__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.calc-body .navbar__logo img {
    height: 36px;
    width: auto;
    display: block;
}

.calc-body .navbar__links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.calc-body .navbar__drawer {
    position: static;
    background: transparent;
    border-top: 0;
    padding: 0;
}

.calc-body .navbar__links a {
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    opacity: .9;
    transition: opacity .15s, color .15s;
}

.calc-body .navbar__links a:hover,
.calc-body .navbar__links a[aria-current="page"] {
    opacity: 1;
    color: var(--gold);
}

.calc-body .navbar__burger {
    display: none;
    width: 34px;
    height: 30px;
    border: 0;
    background: transparent;
    padding: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.calc-body .navbar__burger span {
    display: block;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .22s ease, opacity .22s ease;
}

.calc-body .navbar__burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.calc-body .navbar__burger.open span:nth-child(2) {
    opacity: 0;
}

.calc-body .navbar__burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero.hero--calc {
    color: #fff;
    text-align: center;
    padding: 6.75rem 1rem 5.25rem;
    min-height: clamp(420px, 52vh, 880px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #2a1810;
    background-image:
        linear-gradient(to bottom, rgba(30, 10, 5, .55) 0%, rgba(62, 39, 35, .78) 100%),
        url('/calc/assets/images/calc-hero.jpg');
    background-size: auto, cover;
    /* смещение кадра: от 16.67% вниз на 25% (≈3× прошлый шаг 8.33%) */
    background-position: center, center 41.67%;
    background-repeat: no-repeat, no-repeat;
}

.hero.hero--calc .hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.34);
    margin: 0 0 .5rem;
    font-family: Georgia, serif;
    text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
    line-height: 1.15;
}

.hero.hero--calc .hero__slogan {
    font-size: 1rem;
    color: var(--gold);
    font-style: italic;
    margin-bottom: .75rem;
}

.hero.hero--calc .hero__subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .88);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.65;
}

.calc-main {
    flex: 1;
    padding: 2rem 1.5rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.calc-main--tool {
    max-width: 640px;
}

.calc-page-head {
    margin-bottom: 1.5rem;
}

.calc-page-head__back {
    margin: 0 0 .75rem;
    font-size: .9rem;
}

.calc-page-head__back a {
    color: #8d6e63;
    text-decoration: none;
}

.calc-page-head__back a:hover {
    color: var(--choco);
    text-decoration: underline;
}

.calc-page-head__title {
    margin: 0 0 .5rem;
    font-family: Georgia, serif;
    font-size: 1.85rem;
    color: var(--choco);
    line-height: 1.2;
}

.calc-page-head__lead {
    margin: 0;
    font-size: 1rem;
    color: #6b5044;
    line-height: 1.6;
    max-width: 560px;
}

.calc-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.calc-tool-card {
    background: #fff;
    border: 1px solid #e8dcc8;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.calc-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(62, 39, 35, .12);
}

.calc-tool-card--soon {
    opacity: .72;
}

.calc-tool-card--soon:hover {
    transform: none;
    box-shadow: none;
}

.calc-tool-card__header {
    background: var(--choco);
    padding: .6rem 1rem;
}

.calc-tool-card__badge {
    display: inline-block;
    background: var(--gold);
    color: var(--choco);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .2rem .6rem;
    border-radius: 20px;
}

.calc-tool-card__badge--muted {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.calc-tool-card__body {
    padding: 1.25rem 1.25rem 0;
    flex: 1;
}

.calc-tool-card__title {
    margin: 0 0 .65rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--choco);
}

.calc-tool-card__text {
    margin: 0;
    font-size: .92rem;
    color: #6b5044;
    line-height: 1.55;
}

.calc-tool-card__footer {
    padding: 1em 1.25rem 1.25rem;
    margin-top: auto;
}

.calc-btn-open {
    display: block;
    width: 100%;
    background: var(--gold);
    color: var(--choco);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    padding: .65rem 1rem;
    border-radius: 8px;
    transition: background .15s;
    box-sizing: border-box;
}

.calc-btn-open:hover {
    background: #c4955a;
}

.calc-btn-open--disabled {
    background: #e8dcc8;
    color: #8d6e63;
    pointer-events: none;
}

.calc-about {
    margin-top: 2.5rem;
    padding: 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #e8dcc8;
    border-radius: 12px;
    border-left: 4px solid var(--gold);
}

.calc-about__title {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    color: var(--choco);
}

.calc-about__text {
    margin: 0;
    font-size: .95rem;
    color: #4a3330;
    line-height: 1.65;
}

.calc-footer {
    background: var(--choco);
    color: rgba(255, 255, 255, .55);
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: .85rem;
    flex-shrink: 0;
}

.calc-footer a {
    color: var(--gold);
    text-decoration: none;
}

.calc-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .calc-body .navbar__burger {
        display: inline-flex;
    }

    .calc-body .navbar__drawer {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        z-index: 120;
        background: var(--choco);
        border-top: 1px solid rgba(255, 255, 255, .12);
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
        display: none;
        pointer-events: none;
    }

    .calc-body .navbar__drawer.open {
        display: flex;
        pointer-events: auto;
    }

    .hero.hero--calc .hero__title {
        font-size: 2rem;
    }
}
