:root {
  color-scheme: light;
  --accent: #bc00ba;
  --link: #960094;
  --text: #505050;
  --header-height: 101px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-height) + 1rem); }
img { display: block; max-width: 100%; height: auto; }
address { font-style: normal; }
a { color: var(--link); text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
::selection { background: #f2c5ef; color: #320632; }
p { margin: 0 0 1.25rem; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 1.3rem; font-weight: 400; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; color: var(--link); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.45rem; }
.wrap { width: min(92.5%, 1280px); margin-inline: auto; }
.skip { position: fixed; inset: .5rem auto auto .5rem; z-index: 5; padding: .65rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { position: sticky; z-index: 4; top: 0; border-top: 5px solid var(--accent); background: white; box-shadow: 0 8px 20px #0002; }
.header-inner { min-height: calc(var(--header-height) - 5px); display: flex; align-items: center; justify-content: space-between; }
.logo { flex: 0 0 273.83px; }
.header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 10px; margin-inline: 5px; }
.header nav a {
  display: inline-flex;
  align-items: center;
  font: 300 14px/16px var(--serif);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 10px;
  text-decoration: none;
  color: #1b1b1d;
}
.header nav a:hover, .header nav a[aria-current] { color: var(--accent); }
.header nav .envelope { line-height: 0; }
.down { display: grid; width: 3.4rem; height: 3.4rem; place-items: center; border-radius: 50%; background: var(--accent); color: white; text-decoration: none; box-shadow: 0 7px 18px #0002; }
.down:hover { background: var(--link); }
.anniversary { color: white; background: #737373; }
.anniversary .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; min-height: 117px; padding: 1rem; font-size: clamp(1.15rem, 2.35vw, 1.8rem); }
.anniversary p { margin: 0; }
.anniversary a { color: inherit; text-decoration: none; }
.anniversary a:hover { text-decoration: underline; }
.anniversary strong { display: inline-grid; place-items: center; width: 2.45em; aspect-ratio: 1; margin-inline: .2em; border-radius: 50%; color: white; background: var(--link); }
.brick { background: linear-gradient(#ffffffb8, #ffffffb8), #fafafa url("images/wall.jpg") center top / 1200px auto repeat; padding-block: clamp(2.5rem, 6.3vw, 5rem); }
.intro { padding: clamp(1.3rem, 2.8vw, 2.4rem); background: white; box-shadow: 0 4px 20px #0003; }
.intro h1 { margin-block: .9rem 2.5rem; }
.intro-row { display: grid; grid-template-columns: 1.65fr 1fr; align-items: start; gap: clamp(1.25rem, 5vw, 4.5rem); margin: 1.75rem 0; }
.intro-row.reverse { grid-template-columns: 1fr 1.65fr; }
.intro-row img { width: 100%; }
.references { padding-top: clamp(3rem, 7vw, 5.5rem); }
.references > h2, .section-title { text-align: center; margin-bottom: 2.4rem; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 1.5rem; }
.project { display: grid; grid-template-rows: 1fr auto auto; background: #505050; color: white; }
.project h3 { min-height: 4.7em; display: grid; place-items: center; padding: .55rem .7rem; margin: 0; text-align: center; line-height: 1.4; }
.project-picture { aspect-ratio: 16 / 9; background: #353535; }
.project-picture img { width: 100%; height: 100%; object-fit: cover; }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; min-height: 4rem; padding: .4rem; }
.gallery-controls button { display: grid; place-items: center; padding: 0; width: clamp(1.75rem, 3.17vw, 2.5rem); min-height: 2.75rem; border: 0; border-radius: 50%; background: transparent; }
.gallery-controls button::after { content: ""; width: 1rem; height: 1rem; border-radius: 50%; background: #c8c8c8; }
.gallery-controls button[aria-pressed="true"]::after { background: #eb40e6; }
.gallery-controls button:focus-visible { outline-color: white; outline-offset: -2px; }

.section { padding-block: clamp(2.5rem, 8vw, 6.5rem); }
.service-hero { min-height: min(55vw, 760px); display: grid; align-items: center; background: #f8f8f8 url("images/background.jpg") center / cover no-repeat; }
.service-lead { width: 55%; margin-left: 45%; padding: 2rem 4vw 2rem 0; }
.lead { font-size: clamp(1.12rem, 2vw, 1.55rem); }
.service-lead .down { margin-left: auto; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.services img { width: 100%; margin-bottom: 1rem; }
.services h3 { color: var(--link); text-transform: uppercase; }
.service-end { margin-top: 3rem; }
.contact { background: #f7f7f7; }
.contact-heading { text-align: center; margin-bottom: clamp(2.4rem, 8vw, 6rem); }
.contact-heading p { text-transform: uppercase; }
form { padding-inline: clamp(0rem, 1.55vw, 1.25rem); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
form label { display: block; }
form label:has(> input:not([type="radio"], [type="checkbox"])), form label:has(> textarea), fieldset { margin-bottom: 1.3rem; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; min-height: 3.7rem; gap: .4rem 1rem; align-items: center; }
.choices label { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; }
.choices label:has(input[type="radio"]) { flex: 1; }
form input:not([type="checkbox"], [type="radio"]), form textarea { display: block; width: 100%; min-height: 3.55rem; margin-top: .3rem; background: white; color: inherit; border: 1px solid #999; border-radius: 0; padding: .65rem; font: inherit; }
form textarea { resize: vertical; }
form input:is([type="checkbox"], [type="radio"]) { accent-color: var(--link); width: 1.25rem; height: 1.25rem; margin: 0; }
.agreement { display: flex; align-items: flex-start; gap: .6rem; }
.agreement input { flex: 0 0 auto; margin-top: .15rem !important; }
.agreement label { display: inline; }
.form-note { margin-top: 1rem; }
#form-status:empty { display: none; }
#form-status { margin-top: 1rem; }
.button { display: inline-block; padding: .65rem 1rem; color: white; background: var(--link); border: 0; text-decoration: none; min-height: 44px; }
.button:hover { background: #720070; }
.quote { padding: clamp(2rem, 7vw, 5.5rem) 4%; background: #eee url("images/archi-back.jpg") center / cover no-repeat; text-align: center; }
blockquote { margin: 0; font: clamp(1.4rem, 3vw, 2.1rem)/1.3 Georgia, "Times New Roman", serif; }
.details address { margin-bottom: 1.4rem; }
.legal h1 { text-align: center; margin-bottom: 2.5rem; }
.legal h2 { margin-top: 2rem; font-size: 1.6rem; }
.legal p { max-width: 72ch; }
.footer { background: #4f4f4f; color: white; }
.footer a { color: inherit; }
.footer a:focus-visible { outline-color: white; }
.footer-main { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; padding-block: 2.5rem; align-items: start; }
.footer-main > :last-child { justify-self: end; }
.footer h2 { color: inherit; font: inherit; text-transform: uppercase; margin-bottom: .5rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer .button { margin-top: .8rem; }
.footer-bottom { background: #333; }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding-block: .9rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom nav a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { padding: .45rem .9rem; color: var(--link); background: white; border: 1px solid var(--link); min-height: 44px; }
  .header nav { width: 100%; justify-content: flex-start; gap: .15rem 1rem; padding-bottom: .5rem; margin-right: 0; }
  .header nav a { padding: .6rem .15rem; }
  .service-hero { background-size: auto 21rem; background-position: top left; align-items: end; }
  .service-lead { margin: 12rem 0 0; width: 100%; padding: 1.7rem 4%; background: #fffefc; }
  .fields, .services { grid-template-columns: 1fr; gap: 0; }
  .services { gap: 1.5rem; }
  .footer-main { grid-template-columns: 1fr auto; gap: 1.5rem 1rem; }
  .footer-main > :last-child { grid-column: 1 / -1; justify-self: start; }
  .qr { width: 5rem; }
}
@media (max-width: 540px) {
  .projects, .intro-row, .intro-row.reverse { grid-template-columns: 1fr; }
  .intro-row.reverse img { order: 1; }
  .project h3 { min-height: 3.2em; }
  .anniversary .wrap { padding-inline: 0; }
  .footer-main { grid-template-columns: minmax(0, 1fr) auto; }
  .footer address a { overflow-wrap: anywhere; }
}


@font-face { font-family: "Open Sans"; src: url("./fonts/opensans-light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("./fonts/opensans-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("./fonts/opensans-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("./fonts/merriweather-light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("./fonts/merriweather-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("./fonts/merriweather-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Site Icons"; src: url("./fonts/material-icons.woff") format("woff"); font-display: block; }
:root {
  --accent: #c104c3;
  --text: #545454;
  --serif: Merriweather, Georgia, serif;
  font: 300 18px/28px "Open Sans", Arial, sans-serif;
}
body { overflow-wrap: break-word; }
h1, h2 { font-family: var(--serif); }
h1, .references > h2 { color: var(--accent); font-size: 46px; font-weight: 300; line-height: 1.43; }
.wrap { width: min(calc(100% - 50px), 1170px); }
.home-hero {
  --hero-image: url("./images/hero-desktop.jpg");
  --hero-left: calc(51.0625% + 200px);
  --hero-icon-size: 46px;
  --hero-icon-column: 56px;
  min-height: 100vh;
  margin-top: calc(-1 * var(--header-height));
  padding-block: 100px;
  display: grid;
  align-items: center;
  background: linear-gradient(#ffffff69, #ffffff69), #fff var(--hero-image) center / contain no-repeat fixed;
}
.hero-content { margin-left: var(--hero-left); padding-block: 75px 25px; }
.hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.hero-list li {
  display: grid;
  grid-template-columns: var(--hero-icon-column) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-height: 79px;
  font: 700 46px/46px var(--serif);
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}
.hero-check { display: grid; place-items: center; height: var(--hero-icon-column); transform: translateY(-5px); }
.hero-check::before { content: "\f269"; font: 400 var(--hero-icon-size)/1 "Site Icons"; color: var(--text); }
.envelope { display: inline-block; width: 24px; margin-right: 10px; text-align: center; vertical-align: -.15em; }
.envelope::after { content: "\f15a"; font: 400 24px/0 "Site Icons"; }
.down::after { content: "\f2f9"; font: 400 23px/1 "Site Icons"; }
.hero-content .down { width: 55px; height: 55px; margin: 65px auto 0; }
.anniversary { background: #808080; }
.anniversary .wrap { padding: 25px 20px; min-height: 120px; font: 400 30px/1.35 Arial, sans-serif; }
.anniversary strong { width: 70px; background: var(--accent); font-size: 38px; margin-inline: 12px 19px; }
.anniversary a::before { content: "\f2b6"; display: inline-block; vertical-align: -.08em; margin-right: .5em; font: 400 1.18em/1 "Site Icons"; }
.brick { background: linear-gradient(#ffffffb8, #ffffffb8), #fafafa url("./images/wall.jpg") center / contain repeat-x fixed; padding: 80px 0 100px; }
.intro { padding: 53px 35px 50px; }
.intro h1 { margin: 0 0 38px; }
.intro h2 { color: #363636; font-size: 25px; line-height: 1.56; margin-block: 45px 50px; }
.intro h3 { text-transform: uppercase; font: 400 21px/36px Arial, sans-serif; margin-bottom: 0; }
.intro-row { gap: min(7vw, 95px); grid-template-columns: 1.72fr 1fr; margin-block: 24px; }
.intro-row.reverse { grid-template-columns: 2fr 2.85fr; gap: 24px; margin: 46px 0; }
.intro p { margin-bottom: 28px; }
.references { padding-top: 106px; }
.references > h2 { margin-bottom: 56px; }
.project { background: #545454; }
.project h3 { font: 400 24px/42px Arial, sans-serif; min-height: 114px; align-content: center; justify-items: center; display: block; padding-block: 15px; }
.project-picture { position: relative; }
.project-picture .entering { animation: fade-in .75s ease both; }
.photo-open { position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: zoom-in; }
.photo-open:focus-visible { outline: 3px solid white; outline-offset: -5px; }
.gallery-controls { position: relative; min-height: 64px; }
.gallery-controls button { width: 40px; }
.gallery-controls button::after { width: 17px; height: 17px; }
.gallery-controls button[aria-pressed="true"]::after { background: var(--accent); }
.gallery-controls .gallery-play { display: block; position: absolute; width: auto; border-radius: 0; }
.gallery-play:not(:focus) { clip-path: inset(50%); width: 1px; min-height: 1px; overflow: hidden; }
.gallery-controls .gallery-play:focus { right: 7px; bottom: 6px; padding: .3rem .55rem; background: #111; color: white; }
.gallery-controls .gallery-play::after { display: none; }

.service-hero { min-height: max(560px, calc(100svh - var(--header-height) + 5px)); grid-template-columns: 41.67% 1fr; background: radial-gradient(circle, #fcfcfc, #f7f7f7); }
.service-image { align-self: stretch; margin-top: calc(-1 * var(--header-height)); background: url("./images/background.jpg") center / cover no-repeat; }
.service-lead { position: relative; width: auto; margin: 0; padding: 40px 25px 35px 50px; }
.service-lead h1 { font-size: clamp(32px, 3.48vw, 44px); line-height: 1.32; margin-bottom: 32px; }
.service-lead .lead { font-size: 24px; line-height: 42px; }
.service-lead .down { position: absolute; top: 66%; right: 12px; margin: 0; width: 54px; height: 54px; }
.service-brick { padding-top: 120px; }
.service-brick .section { padding: 52px 25px 45px; background: white; box-shadow: 0 4px 20px #0003; }
.services { gap: 50px 25px; }
.services article { background: linear-gradient(#f0f0f0, #fafafa); padding: 25px 25px 40px; text-align: center; }
.services img { border: 8px solid #fff; margin-bottom: 25px; }
.services h3 { color: var(--text); font: 400 clamp(21px,2.9vw,36px)/1.3 Arial,sans-serif; letter-spacing: .04em; }
.section-title { color: var(--text); font: 400 21px/1.5 Arial,sans-serif; margin-bottom: 55px; }
.service-end { margin-top: 76px; }
.service-end h2 { color: var(--text); text-align: center; margin-bottom: 25px; }
.section-title, .service-end h2, .services h3 { text-transform: uppercase; }

.contact { background: linear-gradient(#fafafa,#f7f7f7); }
.contact-heading { margin-bottom: 104px; }
.contact-heading p { line-height: 34px; }
.contact-heading h1 { margin-bottom: 26px; }
.contact .section { padding-top: 102px; padding-bottom: 80px; }
.choices input:is([type="radio"],[type="checkbox"]) { width: 30px; height: 30px; }
.choices label, .agreement label { font-weight: 700; }
form input:not([type="checkbox"],[type="radio"]), form textarea { min-height: 58px; border-color: #b0b0b0; }
.contact textarea { min-height: 168px; }
.contact #kontaktformular > button { min-width: 180px; padding-block: 13px; background: var(--accent); border-radius: 2px; }
.form-note { font-size: .9rem; }
.bot-field { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; }
.quote { padding-block: 100px; border-block: 20px solid #cecece; background: linear-gradient(#ffffff5e,#ffffff5e), #eee url("./images/plan.jpg") center / cover fixed; }
blockquote { font: 300 clamp(22px,2.25vw,28px)/1.5 "Open Sans",Arial,sans-serif; }
.quote blockquote::before { content: "\f1b2"; font: 400 44px/1 "Site Icons"; color: #7d7d7d; margin-right: .4em; vertical-align: -.12em; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.details > div:first-child { padding-inline: 25px; }
.details h2 { color: var(--accent); font: 300 clamp(28px, 3.64vw,46px)/1.4 var(--serif); }
.details address { font: 400 clamp(16px,2vw,22px)/1.45 Arial,sans-serif; }
.details address p { margin-bottom: 36px; display: flex; align-items: baseline; gap: 18px; }
.detail-icon { flex: 0 0 1.2em; color: #777; font: 400 26px/1 "Site Icons"; }
.detail-icon.person::before { content: "\f207"; }
.detail-icon.location::before { content: "\f175"; }
.detail-icon.telephone::before { content: "\f2be"; }
.detail-icon.fax::before { content: "\f1b0"; }
.detail-icon.email::before { content: "\f15a"; }
.details address a { color: inherit; text-decoration: none; }
.details address a:hover, .details address a:focus-visible { text-decoration: underline; }
.details .button { border-radius: 40px; padding: 18px 30px; }
.map { display: grid; place-content: center; justify-items: center; min-height: 310px; padding: 1rem; background: #f1f1f1; text-align: center; }
.map p { margin: 1rem 0 0; }
.map:has(iframe) { display: block; padding: 0; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 310px; border: 0; }
.agreement label { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
.dialog { color: var(--text); border: 0; padding: clamp(24px,5vw,48px); width: min(92vw, 650px); max-height: 90vh; }
.dialog::backdrop { background: #000a; }
.dialog form { padding: 0; }
.lightbox { width: min(94vw,1000px); }
.lightbox-top, .lightbox-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lightbox-top h2 { margin: 0; font-size: clamp(16px,3vw,25px); }
.lightbox img { margin: 12px auto; max-height: 62vh; object-fit: contain; }
.lightbox-controls button { min-height: 44px; border: 1px solid #9a0096; padding: 0 .7rem; color: var(--link); background: white; }
.legal { line-height: 1.75; overflow-wrap: anywhere; }
.legal h1 { margin-bottom: 42px; }
.legal h2 { color: var(--text); text-transform: uppercase; }
.legal p { max-width: 95ch; }
.legal a:hover { color: #690067; }
.footer { color: #4a4a4a; background: linear-gradient(#d6d6d6,#ebebeb); border-top: 20px solid #e9e9e9; font: 400 16px/36px Arial,sans-serif; }
.footer-main { grid-template-columns: 1fr 1fr 1fr; gap: 28px; padding: 62px 30px; }
.footer-main > .qr { margin-inline: auto; width: 200px; }
.footer-main > :last-child { justify-self: center; }
.footer-main h2 { font-size: 20px; font-weight: 700; }
.footer-main li + li { margin-top: 15px; }
.footer-main li a { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; }
.footer-main li a:hover { text-decoration: underline; }
.footer-main li a::before { content: "\f18e"; color: var(--link); display: inline-grid; place-items: center; width: 36px; height: 36px; background: white; border-radius: 50%; font: 400 23px/1 "Site Icons"; }
.footer .button { background: #252525; color: white; text-transform: uppercase; font-size: 14px; line-height: 24px; margin-top: 38px; }
.footer .button:hover { background: #70006e; }
.footer a:focus-visible { outline-color: var(--link); }
.footer-bottom { background: transparent; padding-bottom: 23px; }
.footer-bottom .wrap { padding-inline: 30px; font-size: 13px; }
.footer-bottom nav a {
  font: 400 13px/1.4 Arial,sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: .65rem 0;
  text-decoration: none;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(55px); } to { opacity: 1; transform: none; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: none; } }
@keyframes from-right { 0% { opacity: 0; transform: translateX(120vw); } 60% { opacity: 1; transform: translateX(-22px); } 78% { transform: translateX(8px); } 90% { transform: translateX(-3px); } 100% { opacity: 1; transform: none; } }
@keyframes headline-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .reveal-ready:not(.revealed):not(:focus-within) { opacity: 0; }
  .revealed[data-reveal="fade"] { animation: fade-in 1.5s both; }
  .revealed[data-reveal="fade-delayed"] { animation: fade-in 1.5s .2s both; }
  .revealed[data-reveal="bounce"] { animation: from-right 1.5s .2s both; }
  .revealed[data-reveal="zoom"] { animation: zoom-in .9s both; }
  .counter.revealed { animation-duration: 1.5s; }
  .revealed[data-reveal="rise"] { animation: rise-in 1s both; }
  .project:nth-child(3n+2).revealed { animation-delay: .5s; }
  .project:nth-child(3n+3).revealed { animation-delay: 1s; }
  .revealed[data-reveal="headline"] { animation: headline-in 1.3s both; }
}
main { overflow-x: clip; }
@media (max-width: 1368px) {
  .home-hero { --hero-image: url("./images/hero-laptop.jpg"); --hero-left: calc(51.0625% + 100px); }
}
@media (max-width: 1024px) {
  .header-inner { width: calc(100% - 40px); }
  .logo { flex-basis: 25%; }
  .home-hero {
    --hero-image: url("./images/hero-tablet.jpg");
    --hero-left: calc((100% - 50px) / 3 + 175px);
    padding-block: 25px;
  }
  .hero-content { padding-right: 25px; }
  .hero-content .down { display: none; }
}
@media (min-width: 769px) and (max-width: 900px) {
  :root { --header-height: 147px; }
  .hero-list li { font-size: clamp(32px, calc(11.5vw - 56px), 46px); }
}
@media (max-width: 1000px) {
  .footer-main { padding-inline: 0; }
  .footer-bottom .wrap { padding-inline: 0; }
}
@media (max-width: 768px) {
  :root { --header-height: 109px; }
  .wrap { width: calc(100% - 30px); }
  .header-inner { width: calc(100% - 50px); }
  .logo { flex-basis: calc(100% / 3); }
  .header nav { margin-right: 0; }
  .header nav a { font-size: 13px; }
  .menu-toggle:not([hidden]) + nav {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    width: auto;
    margin: 0;
    padding: 8px 25px 16px;
    gap: 0;
    background: white;
    box-shadow: 0 8px 20px #0002;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }
  .menu-toggle:not([hidden]) + nav a { min-height: 44px; padding-inline: 10px; }
  .menu-toggle { position: relative; width: 44px; height: 44px; border: 0; background: white; color: transparent; }
  .menu-toggle::after { content: ""; position: absolute; inset: 13px 11px; background: linear-gradient(#545454 0 2px,transparent 2px 7px,#545454 7px 9px,transparent 9px 14px,#545454 14px 16px,transparent 16px); }
  .home-hero {
    --hero-image: url("./images/hero-tablet-portrait.jpg");
    --hero-left: calc((100% - 50px) / 6 + 145px);
    min-height: 0;
    padding-block: 100px;
  }
  .hero-content { padding-right: 25px; }
  .anniversary .wrap { justify-content: center; text-align: center; font-size: 19px; }
  .anniversary strong { width: 54px; font-size: 30px; margin-inline: 5px 8px; }
  .anniversary a { width: 100%; }
  .brick { background-size: auto, cover; }
  h1, .references > h2 { font-size: 26px; line-height: 40px; }
  .intro { padding-inline: 15px; }
  .intro h2 { margin-block: 30px; font-size: 22px; }
  .intro-row, .intro-row.reverse { grid-template-columns: 1fr; margin-block: 25px; gap: 18px; }
  .intro-row.reverse img { order: 0; }
  .projects { grid-template-columns: 1fr; }
  .service-hero { display: block; min-height: 75svh; padding-top: 32px; background: linear-gradient(#ffffff88,#ffffffc9), url("./images/background.jpg") center / cover no-repeat; }
  .service-image { display: none; }
  .service-lead { width: auto; padding: 25px; background: none; }
  .service-lead h1 { font-size: 26px; }
  .service-lead .down { position: static; margin: 10px 0 0 auto; }
  .service-brick { padding-top: 48px; }
  .service-brick .section { padding-inline: 15px; }
  .services { gap: 25px; }
  .contact .section { padding-top: 55px; }
  .contact-heading { margin-bottom: 52px; }
  .contact-heading p { font-size: 15px; line-height: 26px; }
  .details { grid-template-columns: 1fr; }
  .details > div:first-child { padding: 0 0 30px; }
  .quote { padding-block: 65px; }
  .footer-main { grid-template-columns: 1fr; text-align: center; gap: 35px; padding-block: 42px; }
  .footer-main > :last-child { justify-self: center; }
  .footer-main > .qr { width: 145px; }
  .footer-main li a { gap: 8px; }
  .footer-bottom .wrap { justify-content: center; }
}
@media (max-width: 740px) {
  .home-hero { --hero-image: url("./images/hero-phone.jpg"); --hero-left: 145px; padding-top: 150px; }
}
@media (max-width: 395px) {
  .logo { flex-basis: calc(100% * 2 / 3); }
  .home-hero {
    --hero-image: url("./images/hero-phone-portrait.jpg");
    --hero-left: 25px;
    --hero-icon-size: 40px;
    --hero-icon-column: 50px;
    padding-block: 100px 50px;
  }
  .hero-list li { min-height: 75px; font-size: 30px; line-height: 50px; }
  .hero-check { transform: none; }
}

