:root {
    --bg: #f3efe7;
    --paper: #fffdf9;
    --ink: #1d1a16;
    --muted: #6f675e;
    --line: #e4dcd0;
    --accent: #2f6f62;
    --accent-dark: #24584e;
    --mark: #f0c14b;
    --shadow: 0 18px 40px rgba(40, 28, 16, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 50% -10%, #fff8ec 0%, transparent 60%),
        var(--bg);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

.page {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.photo {
    margin: 0;
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.photo img {
    display: block;
    width: 100%;
    height: auto;
}

.photo-hero {
    border-radius: 28px;
}

.photo-contacts {
    width: min(100%, 420px);
    margin: 8px auto 28px;
    border-radius: 24px;
}

.photo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    color: var(--muted);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent),
        repeating-linear-gradient(
            -45deg,
            #f7f1e8,
            #f7f1e8 12px,
            #efe6d8 12px,
            #efe6d8 24px
        );
}

.photo-empty span {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.photo-empty small {
    font-size: 0.85rem;
}

.block {
    margin-top: 48px;
}

h1,
h2 {
    margin: 0 0 20px;
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.15rem);
}

.facts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.facts li {
    padding: 16px 18px 16px 58px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    position: relative;
    min-height: 58px;
    white-space: pre-line;
}

.facts li::before {
    content: counter(fact);
    counter-increment: fact;
    position: absolute;
    left: 16px;
    top: 16px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 0.85rem;
    display: grid;
    place-items: center;
}

.facts {
    counter-reset: fact;
}

.cta {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 22px;
    min-height: 56px;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-weight: 650;
    text-align: center;
    box-shadow: 0 10px 24px rgba(47, 111, 98, 0.28);
}

.cta:hover {
    background: var(--accent-dark);
}

.referral-copy {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.referral-copy p {
    margin: 0;
}

.referral-copy p + p {
    margin-top: 10px;
}

.reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.reviews-head h2 {
    margin-bottom: 0;
}

.reviews-nav {
    display: flex;
    gap: 8px;
}

.reviews-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.reviews-btn svg {
    width: 22px;
    height: 22px;
}

.reviews-btn:hover:not(:disabled) {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.reviews-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.reviews-track {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    border-radius: 20px;
    scrollbar-width: none;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.review-slide {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.review-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.contacts {
    text-align: center;
}

.contacts h2 {
    text-align: left;
}

.socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    font-weight: 650;
}

.social:hover {
    border-color: transparent;
    transform: translateY(-1px);
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: none;
    color: #fff;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social.telegram .social-icon { background: #229ed9; }
.social.max .social-icon { background: #5b4bff; }
.social.whatsapp .social-icon { background: #1faa59; }
.social.instagram .social-icon { background: #d62976; }

.social.telegram:hover { box-shadow: inset 0 0 0 2px #229ed9; }
.social.max:hover { box-shadow: inset 0 0 0 2px #5b4bff; }
.social.whatsapp:hover { box-shadow: inset 0 0 0 2px #1faa59; }
.social.instagram:hover { box-shadow: inset 0 0 0 2px #d62976; }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--mark);
    outline-offset: 3px;
}

@media (max-width: 560px) {
    .page {
        width: min(100% - 20px, 720px);
        padding-top: 12px;
    }

    .photo-hero {
        border-radius: 20px;
    }

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