/* JUVYTECH — společné barvy a rozměry */
:root {
    --ink: #162b35;
    --deep: #122630;
    --orange: #f58220;
    --orange-hover: #ff963e;
    --muted: #657077;
    --line: #d9dfe1;
    --paper: #f3f5f5;
    --white: #ffffff;
    --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
button:disabled { cursor: wait; opacity: .58; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; font-weight: 600; }
h2 { font-size: clamp(34px, 3.7vw, 52px); letter-spacing: -1.9px; margin-bottom: 28px; }
h3 { font-size: 23px; letter-spacing: -.65px; }
.container { width: min(var(--container), calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: 116px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: 1.7px; margin-bottom: 30px; }
.eyebrow > span { width: 22px; height: 2px; background: var(--orange); }
.eyebrow.light { color: #dce3e7; }
.muted { color: var(--muted); }
.button { min-height: 54px; display: inline-flex; justify-content: center; align-items: center; gap: 38px; padding: 14px 24px; border: 1px solid transparent; border-radius: 2px; font-weight: 600; font-size: 15px; line-height: 1.5; transition: background .18s, border-color .18s; }
.button-orange { background: var(--orange); color: #15262d; }
.button-orange:hover { background: var(--orange-hover); }
.button-outline { background: transparent; border-color: #c7ced0; }
.button-outline:hover { border-color: var(--ink); background: #f5f6f6; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #254452; }
.text-link { display: inline-flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; padding-block: 9px; }
.text-link:hover { color: #a44900; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px 20px; background: white; z-index: 100; }
.skip-link:focus { top: 10px; }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 1px solid #e4e7e8; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 98px; gap: 32px; }
.brand { display: flex; flex-direction: column; flex-shrink: 0; }
.brand-word { display: inline-flex; align-items: baseline; font-size: 29px; font-weight: 800; line-height: 1.1; letter-spacing: -1.3px; }
.brand-word > span { color: #d66508; }
.brand-word > i { width: 7px; height: 7px; margin-left: 4px; background: var(--orange); }
.brand-subtitle { font-size: 8px; font-weight: 700; letter-spacing: 1.7px; margin-top: 7px; }
.site-header nav { display: flex; align-items: center; gap: 37px; font-size: 14px; font-weight: 600; }
.site-header nav > a { padding-block: 12px; }
.site-header nav > a:hover { color: #b45205; }
.site-header nav > .nav-contact { display: flex; align-items: center; gap: 25px; padding: 11px 19px; border: 1px solid #ccd1d4; margin-left: 8px; border-radius: 2px; }
.nav-contact svg { width: 17px; height: 17px; }
.menu-toggle { display: none; }

/* Úvod: výrazná sazba a původní fotografie */
.hero { display: grid; grid-template-columns: 46% 54%; min-height: 628px; background: var(--deep); color: white; }
.hero-copy { padding: 58px 40px 28px max(56px, calc((100vw - var(--container)) / 2)); display: flex; flex-direction: column; align-items: flex-start; }
.hero .eyebrow { margin-bottom: 32px; }
.hero h1 { font-size: clamp(53px, 5.65vw, 84px); letter-spacing: -3.7px; line-height: 1.065; font-weight: 600; margin-bottom: 28px; }
.hero h1 > span { color: var(--orange); }
.hero-description { color: #c7d1d5; max-width: 325px; font-size: 16px; line-height: 1.65; margin-bottom: 29px; }
.hero-bottom { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%; margin-top: auto; padding-top: 35px; color: #bdc9ce; font-size: 12px; }
.hero-bottom > span { font-size: 22px; }
.hero-image { position: relative; overflow: hidden; min-height: 540px; min-width: 0; width: 100%; }
.hero-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.hero-image::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(5,21,29,.64)); pointer-events: none; }
.hero-caption { position: absolute; z-index: 1; bottom: 28px; left: 32px; right: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #ffffff50; padding-top: 17px; font-size: 14px; }
.hero-caption > span:first-child { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; }

/* Činnost */
.services-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px 84px; }
.section-heading { padding-right: 5px; }
.section-intro { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 380px; }
.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service summary { display: grid; grid-template-columns: 27px 1fr 24px; gap: 24px; align-items: start; padding: 27px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
.service-number { padding-top: 4px; font-size: 12px; color: #818c91; }
.service h3 { font-size: 22px; line-height: 1.35; margin: 0; font-weight: 500; }
.service-toggle { width: 20px; height: 20px; position: relative; margin-top: 5px; }
.service-toggle::before, .service-toggle::after { content: ''; position: absolute; top: 9px; left: 3px; width: 14px; height: 1px; background: currentColor; }
.service-toggle::after { transform: rotate(90deg); }
.service[open] .service-toggle::after { transform: rotate(0); }
.service[open] h3 { color: #a74f09; }
.service-body { padding: 0 36px 24px 51px; }
.service-body ul { padding: 0; margin: 0; list-style: none; }
.service-body li { position: relative; font-size: 15px; color: var(--muted); padding-left: 17px; margin-bottom: 11px; }
.service-body li::before { content: ''; position: absolute; width: 4px; height: 4px; background: var(--orange); left: 0; top: 10px; }
.service-note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 29px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 84px; }
.service-note h3 { font-size: 20px; font-weight: 500; margin: 0; }
.service-note p { font-size: 15px; color: var(--muted); margin: 0; }

/* O společnosti */
.about-section { padding-block: 95px; background: var(--paper); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 95px; align-items: center; }
.about-image { position: relative; }
.about-image > img { width: 100%; height: 410px; object-fit: cover; }
.image-label { position: absolute; left: 0; bottom: 0; padding: 11px 22px; background: var(--orange); font-size: 12px; font-weight: 600; }
.about-copy h2 { margin-bottom: 25px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.about-copy .about-lead { color: var(--ink) !important; font-size: 20px; line-height: 1.6; }
.text-details { border-top: 1px solid #ced4d6; margin-top: 27px; }
.text-details summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 0; font-size: 15px; font-weight: 600; list-style: none; }
.text-details summary > span { font-size: 22px; line-height: 1; }
.text-details[open] summary > span { transform: rotate(45deg); }
.detail-copy { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* Fotografie a reference */
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; margin-bottom: 42px; }
.section-title-row h2 { margin-bottom: 0; }
.section-title-row > .text-link { margin-bottom: 4px; }
.gallery-grid, .noscript-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px 24px; }
.gallery-card { display: block; padding: 0; background: none; border: 0; text-align: left; width: 100%; }
.gallery-picture { display: block; position: relative; overflow: hidden; background: var(--paper); aspect-ratio: 1.42; }
.gallery-picture > img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-card:hover .gallery-picture > img { transform: scale(1.035); }
.gallery-expand { position: absolute; bottom: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: white; color: var(--ink); font-size: 22px; opacity: 0; transform: translateY(4px); transition: .2s; }
.gallery-card:hover .gallery-expand, .gallery-card:focus-visible .gallery-expand { opacity: 1; transform: translateY(0); }
.gallery-caption { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding-top: 14px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.gallery-caption > span:last-child { color: #859197; font-size: 16px; }
.gallery-description { display: block; padding-top: 5px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; white-space: pre-line; }
.gallery-actions { margin-top: 42px; text-align: center; }
.reference-list { margin-top: 64px; border-block: 1px solid var(--line); }
.reference-list > summary { display: flex; justify-content: space-between; gap: 25px; padding: 24px 0; list-style: none; font-size: 20px; font-weight: 500; }
.reference-open { font-size: 27px; line-height: 1; }
.reference-list[open] .reference-open { transform: rotate(45deg); }
.reference-list ul { columns: 2; column-gap: 60px; list-style: none; padding: 6px 0 25px; margin: 0; }
.reference-list li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid #e7e9ea; font-size: 14px; color: #4e6069; }

/* Kontakt a patička */
.contact-section { background: var(--deep); color: white; padding-block: 95px 49px; }
.contact-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 54px; }
.contact-heading h2 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -3px; margin: 0; }
.contact-heading p { color: #b8c7ce; margin: 0; font-size: 15px; max-width: 520px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr .85fr; border-top: 1px solid #ffffff2d; }
.person-card, .company-card { padding-top: 32px; }
.person-card { padding-right: 28px; }
.person-card h3 { font-size: 22px; font-weight: 500; margin-bottom: 26px; }
.contact-type { display: block; font-size: 11px; letter-spacing: 1.5px; color: #a4b6be; margin-bottom: 17px; }
.phone { display: block; font-size: clamp(18px, 2.2vw, 28px); letter-spacing: -.65px; white-space: nowrap; margin-bottom: 15px; }
.phone:hover, .email:hover { color: var(--orange); }
.email { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: #c4d0d5; }
.email svg { width: 16px; height: 16px; }
.company-card { border-left: 1px solid #ffffff2d; padding-left: 35px; }
.company-card h3 { font-size: 18px; font-weight: 500; margin: 0 0 18px; }
.company-card address, .company-card p { font-style: normal; font-size: 14px; color: #bac9d0; margin-bottom: 18px; }
.company-card .company-register { font-size: 12px; color: #9eb1bb; }
.company-card .text-link { padding: 0; color: var(--orange); font-size: 14px; }
.office-note { margin: 36px 0 0; padding-top: 29px; border-top: 1px solid #ffffff2d; font-size: 14px; color: #b8c7ce; }
.site-footer { background: #0c1d25; color: white; }
.footer-inner { display: flex; gap: 30px; min-height: 102px; align-items: center; }
.footer-inner > span { font-size: 12px; color: #8fa3ad; }
.footer-inner .brand-word { font-size: 23px; margin-right: auto; }
.footer-inner .brand-word > span { color: var(--orange); }
.admin-link { font-size: 12px; color: #acbdc6; }
.back-top { display: grid; place-items: center; font-size: 22px; width: 40px; height: 40px; border: 1px solid #38505d; }

/* Prohlížeč fotografií */
.lightbox { position: fixed; inset: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: #0b171df5; border: 0; padding: 50px 90px; margin: 0; color: white; }
.lightbox::backdrop { background: #0b171d; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; max-width: 1500px; width: 100%; text-align: center; }
.lightbox figure > img { width: 100%; max-height: 76vh; height: auto; object-fit: contain; }
.lightbox figcaption { padding-top: 15px; line-height: 1.5; }
.lightbox figcaption p { margin: 5px 0; white-space: pre-line; overflow-wrap: anywhere; max-height: 9vh; overflow-y: auto; }
.lightbox figcaption > span { font-size: 12px; color: #a6b9c1; }
.icon-button { display: grid; place-items: center; background: transparent; color: inherit; width: 46px; height: 46px; border: 1px solid #ffffff40; border-radius: 50%; font-size: 25px; }
.lightbox .icon-button { position: absolute; }
.lightbox-close { right: 28px; top: 22px; }
.lightbox-prev { left: 24px; top: calc(50% - 23px); }
.lightbox-next { right: 24px; top: calc(50% - 23px); }

/* Správa fotografií */
.admin-page { background: #f2f4f5; min-height: 100vh; }
.admin-header { background: white; border-bottom: 1px solid var(--line); }
.admin-header-inner { min-height: 84px; display: flex; align-items: center; gap: 32px; justify-content: space-between; }
.admin-header .brand-subtitle { font-size: 9px; }
.admin-header-actions { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.admin-header-actions button { background: none; border: 0; padding: 9px; }
.admin-main { padding-block: 55px 100px; }
.admin-main h1 { font-size: clamp(31px, 4vw, 45px); letter-spacing: -1.5px; margin-bottom: 14px; }
.admin-topline { margin-bottom: 30px; }
.admin-topline > p { color: var(--muted); }
.preview-notice { margin-bottom: 28px; padding: 16px 20px; background: #fff2e7; border: 1px solid #eac6a8; border-left: 3px solid var(--orange); font-size: 14px; color: #683207; }
.preview-notice p { margin: 5px 0 0; }
.notice { padding: 14px 18px; margin-bottom: 20px; border: 1px solid #b7cec0; background: #eaf4ee; color: #245539; }
.notice.error { border-color: #deb6b6; background: #fbecec; color: #852b2b; }
.notice:empty { display: none; }
.admin-panel { border: 1px solid var(--line); background: white; padding: 32px; }
.login-panel { max-width: 500px; margin: 0 auto; }
.login-panel h2 { font-size: 27px; letter-spacing: -.8px; }
.login-panel > p { color: var(--muted); font-size: 15px; }
.admin-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.admin-form input:not([type="checkbox"]), .admin-form textarea, .admin-form select { width: 100%; display: block; border: 1px solid #bcc6cb; background: white; padding: 12px; margin-top: 7px; border-radius: 2px; color: var(--ink); font-size: 16px; }
.admin-form textarea { resize: vertical; min-height: 110px; }
.admin-form small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 6px; }
.admin-form .button { width: 100%; }
.upload-panel { display: grid; grid-template-columns: .72fr 1.28fr; gap: 50px; }
.upload-panel h2 { font-size: 27px; letter-spacing: -.8px; margin-bottom: 14px; }
.upload-panel > div > p { color: var(--muted); font-size: 15px; }
.form-two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.upload-preview { display: flex; gap: 10px; flex-wrap: wrap; margin: 15px 0; }
.upload-preview img { width: 84px; height: 64px; object-fit: cover; }
.file-picker { padding: 17px; border: 1px dashed #a5b2b8; background: #f5f7f8; }
.file-picker input[type="file"] { padding: 5px; border: 0; background: transparent; }
.admin-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 55px; margin-bottom: 20px; }
.admin-gallery-heading h2 { font-size: 29px; letter-spacing: -.8px; margin: 0; }
.admin-toolbar { display: flex; align-items: center; gap: 24px; padding: 18px 20px; background: white; border: 1px solid var(--line); margin-bottom: 24px; }
.admin-toolbar label { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.admin-toolbar span { font-size: 14px; color: var(--muted); margin-right: auto; }
.admin-toolbar .button { font-size: 14px; min-height: 42px; padding: 8px 15px; }
.button-danger { background: #ab2b25; color: white; }
.button-danger:hover { background: #8b1d18; }
.admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.admin-photo { background: white; border: 1px solid var(--line); position: relative; min-width: 0; }
.admin-photo.is-selected { border-color: #cf690d; box-shadow: 0 0 0 1px #cf690d; }
.admin-photo > img { width: 100%; aspect-ratio: 1.65; object-fit: cover; }
.photo-checkbox { position: absolute; top: 11px; left: 11px; background: white; padding: 6px; border-radius: 2px; display: grid; place-items: center; }
input[type="checkbox"] { accent-color: #d26609; width: 19px; height: 19px; margin: 0; }
.admin-photo-copy { padding: 17px; }
.admin-photo-copy h3 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: 0; margin-bottom: 6px; overflow-wrap: anywhere; }
.admin-photo-copy p { font-size: 14px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 12px; }
.admin-photo-copy .photo-meta { font-size: 12px; }
.edit-photo { background: none; border: 0; border-top: 1px solid var(--line); width: 100%; text-align: left; font-weight: 600; font-size: 14px; padding: 13px 17px; }
.edit-photo:hover { background: var(--paper); }
.password-details { margin-top: 35px; max-width: 500px; }
.password-details > summary { font-size: 15px; margin-bottom: 20px; }
.editor-dialog { max-width: 610px; width: calc(100% - 32px); max-height: 92vh; padding: 30px; border: 0; border-radius: 4px; color: var(--ink); }
.editor-dialog::backdrop { background: #071720a6; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.dialog-top h2 { font-size: 26px; letter-spacing: -.8px; margin: 0; }
.dialog-close { padding: 0; background: none; border: 0; width: 42px; height: 42px; font-size: 28px; }
.edit-preview { width: 100%; max-height: 180px; object-fit: contain; background: var(--paper); margin-bottom: 20px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.reset-demo { background: none; border: 0; font-size: 14px; padding: 9px 0; text-decoration: underline; color: #683207; }
.admin-empty { padding: 50px 20px; text-align: center; background: white; border: 1px solid var(--line); }

/* Tablet a mobil */
@media (min-width: 1600px) { .hero { grid-template-columns: calc((100vw - 1280px) / 2 + 532px) 1fr; } }
@media (max-width: 1100px) {
    .container { width: calc(100% - 64px); }
    .hero-copy { padding-left: 32px; padding-right: 25px; }
    .hero h1 { font-size: 60px; letter-spacing: -2.8px; }
    .hero { min-height: 580px; }
    .site-header nav { gap: 25px; }
    .services-section, .service-note { gap: 46px; }
    .about-layout { gap: 50px; }
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
    .company-card { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #ffffff2d; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
    .company-card h3 { grid-column: 1 / -1; }
    .company-card .text-link { align-self: start; }
    .upload-panel { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 760px) {
    html { scroll-padding-top: 85px; }
    .container { width: calc(100% - 40px); }
    .section { padding-block: 70px; }
    h2 { font-size: 35px; letter-spacing: -1.35px; }
    .header-inner { min-height: 80px; gap: 15px; }
    .brand-word { font-size: 26px; }
    .brand-subtitle { font-size: 8px; letter-spacing: 1.2px; }
    .menu-toggle { width: 44px; height: 44px; border: 0; background: none; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
    .menu-toggle > span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s; }
    .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(4px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-4px) rotate(-45deg); }
    .site-header nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: white; border-top: 1px solid var(--line); padding: 20px; box-shadow: 0 12px 20px #132b3412; }
    .site-header nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
    .site-header nav > a { padding: 12px; }
    .site-header nav > .nav-contact { margin: 10px 0 0; justify-content: space-between; padding: 12px; }
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-copy { padding: 44px 24px 22px; }
    .hero .eyebrow { margin-bottom: 28px; }
    .hero h1 { font-size: clamp(52px, 12vw, 77px); letter-spacing: -2.9px; margin-bottom: 23px; }
    .hero-description { max-width: 290px; margin-bottom: 26px; }
    .hero-bottom { padding-top: 25px; }
    .hero-image { min-height: 290px; max-height: 360px; aspect-ratio: 1.35; }
    .hero-image > img { object-position: center; }
    .hero-caption { left: 22px; right: 22px; bottom: 20px; }
    .hero-caption > span:first-child { font-size: 9px; }
    .eyebrow { font-size: 11px; margin-bottom: 23px; }
    .services-section { display: block; }
    .section-intro { max-width: none; margin-bottom: 36px; }
    .service summary { gap: 16px; grid-template-columns: 20px 1fr 20px; padding-block: 23px; }
    .service h3 { font-size: 20px; }
    .service-body { padding: 0 8px 20px 36px; }
    .service-note { display: block; margin-top: 35px; padding-top: 25px; }
    .service-note h3 { margin-bottom: 14px; }
    .about-section { padding-block: 55px; }
    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-image > img { height: 290px; }
    .about-copy .about-lead { font-size: 19px; }
    .section-title-row { display: block; margin-bottom: 25px; }
    .section-title-row > .text-link { margin: 18px 0 0; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 14px; }
    .gallery-picture { aspect-ratio: 1.16; }
    .gallery-caption { font-size: 14px; padding-top: 11px; gap: 10px; }
    .gallery-expand { width: 27px; height: 27px; right: 7px; bottom: 7px; font-size: 17px; opacity: 1; transform: none; }
    .gallery-actions { margin-top: 30px; }
    .reference-list { margin-top: 42px; }
    .reference-list > summary { font-size: 18px; }
    .reference-list ul { columns: 1; }
    .contact-section { padding-block: 63px 35px; }
    .contact-heading { display: block; margin-bottom: 34px; }
    .contact-heading h2 { margin-bottom: 25px; font-size: 53px; letter-spacing: -2px; }
    .contact-heading p { font-size: 15px; }
    .contact-grid { grid-template-columns: 1fr; }
    .person-card { padding-right: 0; }
    .person-card + .person-card { border-top: 1px solid #ffffff2d; }
    .person-card h3 { margin-bottom: 18px; }
    .phone { font-size: 27px; }
    .email { font-size: 15px; }
    .company-card { grid-column: auto; display: block; }
    .company-card h3 { margin-bottom: 22px; }
    .office-note { margin-top: 29px; font-size: 14px; }
    .footer-inner { min-height: 115px; gap: 20px; flex-wrap: wrap; padding-block: 25px; }
    .footer-inner > span { display: none; }
    .footer-inner .brand-word { font-size: 20px; }
    .back-top { width: 33px; height: 33px; }
    .admin-link { font-size: 12px; }
    .lightbox { padding: 70px 12px 65px; }
    .lightbox figure > img { max-height: 66vh; }
    .lightbox .icon-button { width: 40px; height: 40px; }
    .lightbox-prev { top: auto; bottom: 18px; left: calc(50% - 52px); }
    .lightbox-next { top: auto; bottom: 18px; right: calc(50% - 52px); }
    .lightbox-close { right: 16px; top: 16px; }
    .admin-header-actions { gap: 10px; font-size: 13px; }
    .admin-header .brand-word { font-size: 24px; }
    .admin-header .brand-subtitle { display: none; }
    .admin-main { padding-block: 35px 60px; }
    .admin-panel { padding: 23px 18px; }
    .form-two-columns { grid-template-columns: 1fr; gap: 0; }
    .admin-gallery-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .admin-gallery-heading h2 { font-size: 26px; }
    .admin-toolbar { flex-wrap: wrap; gap: 14px; padding: 16px; }
    .admin-toolbar .button { width: 100%; }
    .admin-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
    .admin-photo > img { aspect-ratio: 1.1; }
    .admin-photo-copy { padding: 12px; }
    .admin-photo-copy h3 { font-size: 15px; }
    .edit-photo { font-size: 13px; padding: 12px; }
    .editor-dialog { padding: 24px 20px; }
}
@media (max-width: 370px) {
    .hero h1 { font-size: 47px; letter-spacing: -2px; }
    .brand-word { font-size: 24px; }
    .brand-subtitle { font-size: 7px; }
    .footer-inner { gap: 12px; }
    .admin-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
