/* Gate service pages: independent reading and photographic layout.
   Shared header, footer, typography and action colours remain unchanged. */
body#top .gate-detail {
    padding-bottom: 12px;
}

body#top .gate-detail .automation-breadcrumb {
    margin-bottom: 20px;
}

body#top .gate-detail__hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(24px, 3.2vw, 48px);
    padding: clamp(22px, 2.4vw, 34px);
    border: 1px solid var(--theme-border);
    border-radius: 28px;
    background: var(--theme-surface);
    box-shadow: var(--theme-shadow-soft);
}

body#top .gate-detail__intro,
body#top .gate-gallery {
    min-width: 0;
}

body#top .gate-detail__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--theme-accent);
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body#top .gate-detail__title {
    margin: 0;
    color: var(--theme-text-strong);
    font-family: var(--font-display);
    font-size: clamp(2rem, 2.6vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

body#top .gate-detail__lead {
    max-width: 46ch;
    margin: 16px 0 0;
    color: var(--theme-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

body#top .gate-detail__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

body#top .gate-detail__actions .btn {
    min-height: 44px;
    padding: 11px 16px;
    font-size: 0.94rem;
}

body#top .gate-detail__catalog {
    margin: 16px 0 0;
    font-size: 0.92rem;
}

body#top .gate-detail__text-link,
body#top .gate-detail__text-link:visited {
    color: var(--interaction-secondary-text);
    font-weight: 650;
    text-decoration: underline;
    text-decoration-color: rgba(var(--theme-accent-rgb), 0.38);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

body#top .gate-detail__text-link:hover {
    color: var(--theme-accent);
    text-decoration-color: currentColor;
}

body#top .gate-gallery {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 12px;
}

body#top .gate-gallery__main {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    overflow: hidden;
    border-radius: 20px;
    background: var(--theme-surface-soft);
}

body#top .gate-gallery__main img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 0;
}

body#top .gate-gallery .automation-product-nav {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--theme-accent-strong);
    box-shadow: 0 4px 12px rgba(var(--theme-text-strong-rgb), 0.13);
}

body#top .gate-gallery .automation-product-nav--prev {
    margin-left: 8px;
}

body#top .gate-gallery .automation-product-nav--next {
    margin-right: 8px;
}

body#top .gate-gallery .automation-product-thumbs {
    display: flex;
    justify-content: center;
    gap: 10px;
    grid-column: 1 / -1;
}

body#top .gate-gallery .gate-gallery__thumb {
    flex: 0 0 76px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--theme-border-strong);
    border-radius: 10px;
    background: var(--theme-surface);
    cursor: pointer;
    box-shadow: none;
}

body#top .gate-gallery .gate-gallery__thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    padding: 0;
}

body#top .gate-gallery .gate-gallery__thumb.is-active {
    border-color: var(--theme-accent);
    box-shadow: 0 0 0 2px var(--theme-focus-ring);
}

body#top .gate-detail__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
    margin-top: 34px;
    padding: 0 clamp(4px, 1.6vw, 24px);
}

body#top .gate-detail__section h2,
body#top .gate-detail__calculation h2 {
    margin: 0 0 14px;
    color: var(--theme-text-strong);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 1.8vw, 2rem);
    line-height: 1.12;
}

body#top .gate-detail__section p,
body#top .gate-detail__calculation p {
    margin: 12px 0 0;
    color: var(--theme-text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

body#top .gate-detail__list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 19px;
    color: var(--theme-text-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

body#top .gate-detail__list li::marker {
    color: var(--theme-accent);
}

body#top .gate-detail__list strong {
    color: var(--theme-text);
    font-weight: 700;
}

body#top .gate-detail__calculation {
    margin-top: 32px;
    padding: clamp(22px, 2.4vw, 32px);
    border: 1px solid var(--theme-border);
    border-radius: 24px;
    background: var(--theme-surface);
    scroll-margin-top: calc(var(--header-top-height, 73px) + 20px);
}

body#top .gate-detail__calculation .gate-detail__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 32px;
    margin-top: 18px;
}

body#top .gate-detail a:focus-visible,
body#top .gate-detail button:focus-visible {
    outline: 3px solid var(--theme-focus-ring);
    outline-offset: 4px;
}

@media (max-width: 820px) {
    body#top .gate-detail__hero,
    body#top .gate-detail__columns {
        grid-template-columns: 1fr;
    }

    body#top .gate-detail__hero {
        gap: 24px;
    }

    body#top .gate-detail__lead {
        max-width: 60ch;
    }

    body#top .gate-detail__calculation .gate-detail__list {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 640px) {
    body#top .gate-detail .automation-breadcrumb {
        font-size: 0.78rem;
        margin: 12px 0 18px;
    }

    body#top .gate-detail__hero {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    body#top .gate-detail__title {
        font-size: clamp(1.9rem, 7.6vw, 2.3rem);
        text-wrap: initial;
    }

    body#top .gate-detail__eyebrow {
        margin-bottom: 8px;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    body#top .gate-detail__lead {
        margin-top: 12px;
        font-size: 0.94rem;
        line-height: 1.5;
    }

    body#top .gate-detail__actions {
        margin-top: 18px;
    }

    body#top .gate-detail__actions .btn {
        flex: 1 1 auto;
        padding-inline: 12px;
        font-size: 0.86rem;
    }

    body#top .gate-detail__columns {
        margin-top: 28px;
        padding: 0 4px;
        gap: 28px;
    }

    body#top .gate-detail__calculation {
        margin-top: 28px;
        padding: 22px 18px;
        border-radius: 22px;
    }
}
