@import url("https://fonts.googleapis.com/css2?family=PT+Sans+Narrow:wght@400;700&display=swap");

:root {
    --text-main: #eeeeee;
    --text-muted: #999999;
    --line-soft: #747775;
    --accent: #c2a450;
    --accent-gradient: linear-gradient(135deg, #b09041 0%, #c2a450 100%);
    --panel: rgba(24, 24, 24, 0.25);
    --content-width: 1080px;
    --hero-image-opacity: 1;
    /* #0D0D0D — затемнение только через альфу */
    --hero-dim-base: 13, 13, 13;
    --hero-dim-alpha: 0.75;
    --hero-dim: rgba(var(--hero-dim-base), var(--hero-dim-alpha));
    --hero-mask-top: linear-gradient(
        to bottom,
        transparent 0%,
        #000 36%
    );
    --hero-mask-sides: linear-gradient(
        to right,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
    --hero-mask-vignette: radial-gradient(
        ellipse 118% 105% at 50% 58%,
        #000 38%,
        transparent 88%
    );
    /* мягкие границы картинки и затемнения со всех 4 сторон */
    --hero-feather: radial-gradient(
        ellipse 100% 100% at 50% 50%,
        #000 0%,
        #000 48%,
        transparent 100%
    );
    /* явный переход снизу — длинная мягкая зона */
    --hero-feather-bottom: linear-gradient(
        to top,
        transparent 0%,
        rgba(0, 0, 0, 0.35) 22%,
        rgba(0, 0, 0, 0.72) 48%,
        #000 62%
    );
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "PT Sans Narrow", "Roboto", "Segoe UI", Arial, sans-serif;
    font-size: 1.22rem;
    color: var(--text-main);
    background: #111111 url("/static/background.jpg") center/cover no-repeat fixed;
    min-height: 100vh;
    line-height: 1.2;
    position: relative;
}

.page-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.container,
.footer {
    position: relative;
    z-index: 1;
}

.container {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
    padding: 48px 0 28px;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 700px;
    background: transparent;
    border-radius: 18px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    mask-image: var(--hero-mask-top), var(--hero-feather-bottom), var(--hero-mask-sides), var(--hero-mask-vignette);
    mask-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-composite: intersect, intersect, intersect;
    -webkit-mask-image: var(--hero-mask-top), var(--hero-feather-bottom), var(--hero-mask-sides), var(--hero-mask-vignette);
    -webkit-mask-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-composite: source-in, source-in, source-in;
}

.hero-bg__image {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: var(--hero-image-opacity);
    filter: blur(10px);
    transform: scale(1.04);
    mask-image: var(--hero-feather), var(--hero-feather-bottom);
    mask-size: 100% 100%, 100% 100%;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-composite: intersect;
    -webkit-mask-image: var(--hero-feather), var(--hero-feather-bottom);
    -webkit-mask-size: 100% 100%, 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-composite: source-in;
}

.hero-bg__dim {
    position: absolute;
    inset: 0;
    background: var(--hero-dim);
    mask-image: var(--hero-feather), var(--hero-feather-bottom);
    mask-size: 100% 100%, 100% 100%;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-composite: intersect;
    -webkit-mask-image: var(--hero-feather), var(--hero-feather-bottom);
    -webkit-mask-size: 100% 100%, 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-composite: source-in;
}

.hero-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    align-items: center;
    align-content: center;
    padding: 28px;
    min-height: 0;
}

h1,
h2,
h3 {
    margin-top: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
}

.subtitle {
    color: var(--text-main);
    max-width: none;
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 4.6vw, 3rem);
    line-height: 1.1;
    background: linear-gradient(
        135deg,
        #f4f4f4 0%,
        #d7d7d7 34%,
        #b4b4b4 52%,
        #ececec 72%,
        #b9b9b9 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero-name {
    margin: 0 0 14px;
    color: rgba(153, 153, 153, 0.92);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    font-weight: 500;
}

.hero-text {
    text-align: left;
    justify-self: start;
    width: 100%;
    transform: translateY(-40px);
}

.muted {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.social-links a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    font-size: 1em;
}

.social-links a:hover {
    border-bottom-color: var(--accent);
}

.hero-photo-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    align-self: stretch;
    height: 100%;
}

.hero-photo-wrap::before {
    content: "";
    position: absolute;
    width: min(360px, 88%);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(238, 238, 238, 0.2) 0%,
        rgba(238, 238, 238, 0.08) 45%,
        rgba(238, 238, 238, 0) 75%
    );
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.hero-photo {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    border-radius: 16px;
    object-fit: cover;
    margin-right: -28px;
    margin-bottom: -28px;
    mask-image: linear-gradient(
            to left,
            transparent 0%,
            #000 15%
        ),
        linear-gradient(
            to top,
            transparent 0%,
            #000 10%
        );
    mask-size: 100% 100%, 100% 100%;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(
            to left,
            transparent 0%,
            #000 15%
        ),
        linear-gradient(
            to top,
            transparent 0%,
            #000 10%
        );
    -webkit-mask-size: 100% 100%, 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-composite: source-in;
}

.services {
    margin-top: 14px;
    background: transparent;
    border-radius: 18px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.disclaimer {
    margin-top: 28px;
    background: transparent;
    border-radius: 14px;
    padding: 16px 18px;
    color: rgba(153, 153, 153, 0.95);
    font-size: 0.95rem;
}

.disclaimer p {
    margin: 0;
}

.service-card {
    position: relative;
    border-radius: 14px;
    padding: 18px;
    background: rgba(22, 22, 22, 0.45);
    font-size: 1.16em;
}

.service-card p {
    margin: 0 0 6px;
}

.service-card p:last-of-type {
    margin-bottom: 8px;
}

.service-card .service-meta {
    font-size: 0.88em;
}

.service-card .service-tag {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 0.78em;
    margin: 0;
    letter-spacing: 0.03em;
    color: rgba(116, 119, 117, 0.38);
}

.service-card .service-price {
    margin: 22px 0 34px;
}

.accent-button {
    display: inline-block;
    margin-top: 8px;
    background: var(--accent-gradient);
    color: #1b1b1b;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.02em;
    border-radius: 10px;
    padding: 10px 14px;
}

.accent-button:hover {
    filter: brightness(1.08);
}

.footer {
    margin-top: 10px;
    padding: 0 0 34px;
}

.footer-inner {
    width: min(calc(100% - 40px), var(--content-width));
    margin: 0 auto;
    background: var(--panel);
    border-radius: 18px;
    padding: 18px;
}

.requisites-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 8px;
    color: rgba(116, 119, 117, 0.9);
    font-size: 0.92rem;
}

.req-col {
    min-width: 0;
}

.req-col-wide {
    grid-column: span 2;
    text-align: center;
}

.req-col p {
    margin: 0 0 8px;
    word-break: break-word;
}

.req-col a {
    color: rgba(116, 119, 117, 0.9);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.legal-link {
    text-decoration-line: underline !important;
    text-underline-offset: 2px;
    border-bottom: none !important;
}

.visually-hidden {
    display: none;
}

.legal-page {
    display: grid;
    gap: 14px;
}

.legal-intro,
.legal-section {
    background: rgba(24, 24, 24, 0.28);
    border-radius: 14px;
    padding: 16px 18px;
}

.legal-intro h1,
.legal-section h2 {
    margin-bottom: 10px;
}

.legal-intro p,
.legal-section p {
    margin: 0 0 8px;
    color: rgba(238, 238, 238, 0.92);
    font-size: 0.96rem;
    line-height: 1.4;
}

.legal-bullet {
    padding-left: 8px;
}

.req-col a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

@media (max-width: 840px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-photo-wrap {
        justify-content: flex-end;
        align-items: flex-end;
        height: 100%;
    }

    .hero-photo {
        width: min(340px, 100%);
        margin-right: -20px;
        margin-bottom: -20px;
    }

    .container {
        padding-top: 26px;
    }

    .requisites-grid {
        grid-template-columns: 1fr;
    }

    .req-col-wide {
        grid-column: auto;
        text-align: left;
    }

    .services {
        grid-template-columns: 1fr;
    }
}
