.space-type-page {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.space-type-shell {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto;
}

.space-type-highlight {
    position: relative;
    display: inline-block;
    padding: 0.16em 0.34em 0.1em;
    z-index: 0;
}

.space-type-highlight::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.08em;
    height: 0.62em;
    z-index: -1;
    border-radius: 0.08em;
    opacity: 0.96;
    background: #e0b620;
}

.space-type-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.6rem, 8vw, 6rem) 0 clamp(2.8rem, 7vw, 4.8rem);
    background:
        radial-gradient(circle at top left, rgba(224, 182, 32, 0.15), transparent 34%),
        linear-gradient(135deg, #f7f2e8 0%, #fffdf8 56%, #f3fbfb 100%);
}

.space-type-hero::before,
.space-type-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.space-type-hero::before {
    top: -7rem;
    right: -5rem;
    width: 23rem;
    height: 23rem;
    background: rgba(224, 182, 32, 0.14);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.space-type-hero::after {
    bottom: -5rem;
    left: -4rem;
    width: 18rem;
    height: 18rem;
    background: rgba(13, 107, 104, 0.08);
    clip-path: polygon(0 0, 0 100%, 100% 100%);
}

.space-type-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 2rem;
    align-items: center;
}

.space-type-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    padding: 0.55rem 0.95rem;
    background: #0d6b68;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 12px 20px rgba(13, 107, 104, 0.18);
}

.space-type-hero__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.03;
    color: #103734;
}

.space-type-hero__lead {
    margin: 1rem 0 0;
    max-width: 42rem;
    color: #39524f;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.space-type-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.space-type-btn,
.space-type-btn--ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.space-type-btn {
    background: linear-gradient(135deg, #0d6b68, #12837f);
    color: #fff;
    box-shadow: 0 16px 30px rgba(13, 107, 104, 0.22);
}

.space-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(13, 107, 104, 0.28);
    text-decoration: none;
}

.space-type-btn--ghost {
    background: rgba(255, 255, 255, 0.86);
    color: #103734;
    border: 1px solid rgba(13, 107, 104, 0.14);
}

.space-type-btn--ghost:hover {
    transform: translateY(-2px);
    background: #fff;
    text-decoration: none;
}

.space-type-hero__visual img {
    display: block;
    width: 100%;
    height: clamp(300px, 42vw, 520px);
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(13, 107, 104, 0.14);
    box-shadow: 0 28px 52px rgba(16, 55, 52, 0.2);
}

.space-type-section {
    position: relative;
    padding: clamp(2.8rem, 6vw, 4.4rem) 0;
}

.space-type-section--soft {
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(255, 255, 255, 0.98));
}

.space-type-section--soft::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: min(26vw, 24rem);
    height: min(12vw, 11rem);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    background: rgba(224, 182, 32, 0.9);
    opacity: 0.86;
    pointer-events: none;
}

.space-type-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.4rem;
    align-items: start;
}

.space-type-card {
    background: #fff;
    border: 1px solid rgba(13, 107, 104, 0.12);
    border-radius: 22px;
    box-shadow: 0 16px 32px rgba(16, 55, 52, 0.09);
    padding: 1.4rem;
}

.space-type-card h2,
.space-type-card h3 {
    margin: 0 0 0.8rem;
    font-family: var(--font-heading);
    color: #103734;
}

.space-type-list {
    margin: 0;
    padding-left: 1.2rem;
    color: #445b59;
}

.space-type-list li + li {
    margin-top: 0.5rem;
}

.space-type-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.space-type-fact {
    border-radius: 16px;
    padding: 0.9rem;
    border: 1px solid rgba(13, 107, 104, 0.12);
    background: rgba(255, 255, 255, 0.96);
}

.space-type-fact strong {
    display: block;
    color: #0d6b68;
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

.space-type-fact span {
    display: block;
    margin-top: 0.2rem;
    color: #556b69;
    font-size: 0.9rem;
}

.space-type-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.space-type-photo {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(13, 107, 104, 0.12);
    background: #fff;
}

.space-type-photo img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.space-type-photo figcaption {
    padding: 0.55rem 0.7rem;
    color: #415956;
    font-size: 0.86rem;
}

.space-type-spaces {
    display: grid;
    gap: 0.8rem;
}

.space-type-space {
    border: 1px solid rgba(13, 107, 104, 0.12);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    background: rgba(255, 255, 255, 0.96);
}

.space-type-space h4 {
    margin: 0;
    color: #103734;
    font-family: var(--font-heading);
}

.space-type-space p {
    margin: 0.35rem 0 0;
    color: #4b615f;
    font-size: 0.92rem;
}

@media (max-width: 1024px) {
    .space-type-hero__grid,
    .space-type-grid {
        grid-template-columns: 1fr;
    }

    .space-type-facts,
    .space-type-gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .space-type-shell {
        width: min(100%, calc(100% - 1.5rem));
    }

    .space-type-facts,
    .space-type-gallery {
        grid-template-columns: 1fr;
    }

    .space-type-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
}
