main { padding-bottom: 48px; }
[hidden] { display: none !important; }
h1,h2,h3,p,figure,dl,dd { margin: 0; }
h2, .contact-dialog-title { font-size: clamp(28px,4vw,48px); font-weight: 800; line-height: 1.09; letter-spacing: -.043em; text-wrap: balance; }
h3 { font-size: 22px; font-weight: 800; line-height: 1.18; letter-spacing: -.026em; }
img { display: block; max-width: 100%; }
.section-v5 { margin-top: 16px; padding: 48px; display: grid; gap: 24px; }
.section-v5 header { display: grid; gap: 12px; max-width: 850px; }
.section-v5 .lead { font: var(--lead); color: var(--muted); max-width: 670px; }
.kicker { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.split-v5 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.grid-v5 { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.grid-v5--four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.grid-v5 > *, .split-v5 > * { min-width: 0; }
.card-v5 { background: var(--surface-soft); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.card-v5__body { padding: 22px; display: grid; gap: 14px; align-content: start; flex: 1; }
.card-v5__body p, .body-muted { color: var(--muted); }
.card-v5__footer { padding: 0 22px 22px; display: grid; gap: 10px; }
a.card-v5, .media-v5 { transition: transform .18s, box-shadow .18s; }
a.card-v5:hover, .media-v5:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgb(28 32 35 / 10%); }
a.card-v5:active, .media-v5:active { transform: none; }
.media-v5 { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: var(--surface-soft); cursor: pointer; }
.media-v5 img, .card-v5 > img, .card-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-photo { position: relative; overflow: hidden; }
.card-photo img { aspect-ratio: 16/10; }
.card-photo::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent,rgb(25 20 16 / 88%)); pointer-events: none; }
.card-photo h3 { position: absolute; z-index: 1; bottom: 16px; inset-inline: 18px; color: white; font-size: 23px; }
.card-contents { padding: 0; margin: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.card-contents li { padding-left: 16px; position: relative; }
.card-contents li::before { content: ""; position: absolute; left: 1px; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .56; }
.card-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; padding-block: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.card-meta dt { color: var(--muted); font-size: 12px; }
.card-meta dd { font-weight: 750; }
.card-meta b { color: var(--brand); font-size: 17px; }
.pill-v5 { width: fit-content; display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.tabs-v5 { display: flex; flex-wrap: wrap; width: fit-content; gap: 4px; padding: 4px; background: var(--surface-soft); border-radius: 16px; }
.tab-panel-v5 { margin-top: 16px; }
.tabs-v5 button, .choice-v5 span { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: transparent; color: var(--text); padding: 8px 16px; cursor: pointer; text-align: center; font-weight: 750; }
.tabs-v5 button:hover, .choice-v5:hover span { background: var(--line); }
.tabs-v5 button[aria-selected="true"], .choice-v5 input:checked + span { background: var(--text); color: white; }
.tabs-v5 button:active, .choice-v5:active span { transform: translateY(1px); }
.play-v5 { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: white; color: var(--brand); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 3px 12px #1c202329; }
.play-v5 svg { width: 22px; height: 22px; }
.video-card .media-v5 img { aspect-ratio: 16/9; }
.video-card h3 { font-size: 17px; }
.inline-link { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; font-weight: 750; }
.inline-link:hover { color: var(--brand-active); }
.input-v5 { display: grid; gap: 6px; font-size: 14px; font-weight: 750; }
.input-v5 input { min-height: 52px; width: 100%; border: 1px solid var(--line); border-radius: 12px; color: var(--text); padding: 10px 14px; background: var(--surface); }
.input-v5 input:hover { border-color: var(--brand); }
.input-v5 input:user-invalid { border-color: #a63833; }
.quiz-v5 { padding: 24px; border-radius: 24px; background: var(--surface-soft); display: grid; gap: 20px; }
.quiz-v5 progress { width: 100%; accent-color: var(--brand); }
.quiz-v5 fieldset { border: 0; min-width: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.quiz-v5 legend { padding: 0 0 12px; font-size: 23px; font-weight: 800; }
.quiz-v5 input[type=range] { accent-color: var(--brand); width: 100%; min-height: 44px; }
.quiz-v5 .v5-button:disabled { opacity: .46; cursor: default; }
.quiz-v5 .v5-actions { justify-content: space-between; }
[data-result], .quiz-result-fields { display: grid; gap: 12px; }
[data-quiz-error] { color: #9a352b; font-weight: 750; }
.quiz-v5 [data-result] .v5-button { width: 100%; }
.choice-v5 { display: inline-grid; position: relative; }
.choice-v5 input { position: absolute; opacity: 0; pointer-events: none; }
.choice-v5 span { background: white; border: 1px solid var(--line); }
.choice-v5 input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.choices-v5 { display: flex; flex-wrap: wrap; gap: 8px; }
.number-v5 { font-size: clamp(28px,4vw,52px); line-height: 1.04; font-weight: 800; color: var(--brand); letter-spacing: -.04em; }
.promo-v5 { padding: 32px; border-radius: 24px; background: var(--brand-soft); display: grid; gap: 16px; align-content: center; }
.dark-v5 { background: var(--text); color: white; }
.dark-v5 .kicker { color: #f1b558; }
.steps-v5 { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.steps-v5 details { background: #2b3034; border-radius: 16px; }
.steps-v5 summary { padding: 16px; min-height: 105px; display: grid; gap: 8px; }
.steps-v5 summary b { color: #f1b558; font-size: 13px; }
.steps-v5 details p { padding: 0 16px 16px; color: #e8eaec; font-size: 14px; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; font-size: 18px; font-weight: 800; }
details[open] > summary::after { content: "−"; }
.list-toggle summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 12px; background: white; color: var(--text); border-radius: 12px; font-size: 14px; font-weight: 800; }
.list-toggle summary:hover { background: #e7e9ec; }
.list-toggle ul { margin-top: 12px; }
.price-v5 h3 { min-height: 52px; }
.price-number { font-size: clamp(23px,2.5vw,34px); }
.price-v5 .card-v5__footer { margin-top: auto; }
.price-v5.dark-v5 p, .price-v5.dark-v5 .body-muted { color: #e1e4e8; }
.price-v5.dark-v5 .number-v5 { color: #f1b558; }
.price-v5.dark-v5 .v5-button { background: #f1b558; color: var(--text); }
.price-v5.dark-v5 .v5-button:hover { background: #ffd182; }
.price-v5.dark-v5 .v5-button:active { background: #e7a548; }
.review-v5 .avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.review-v5 .review-head { display: flex; align-items: center; gap: 12px; }
.review-v5 blockquote { margin: 0; }
.review-v5 time { display: block; margin-block-start: 2px; color: var(--muted); font-size: 13px; }
.review-v5 .rating { color: var(--brand); font-weight: 800; }
.faq-v5 { display: grid; gap: 8px; }
.faq-v5 details { border-radius: 16px; background: var(--surface-soft); }
.faq-v5 summary { padding: 14px 18px; min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 800; }
.faq-v5 summary:hover { background: var(--brand-soft); border-radius: inherit; }
.faq-v5 details p { padding: 0 18px 16px; color: var(--muted); }
.doc-v5 img { object-fit: contain; background: #e9ebee; padding: 14px; }
.footer-v5 { margin-top: 0; border-radius: 0; }
.footer-v5 .v5-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-block: 34px; }
.case-hero .media-v5 img { aspect-ratio: 4/3; }
.case-hero .card-meta { grid-template-columns: repeat(2,minmax(0,1fr)); border: 0; gap: 18px; }
.case-hero .card-meta dd { font-size: 17px; }
.crumbs-v5 { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 13px; }
.crumbs-v5 a:hover { text-decoration: underline; }
.case-hero .v5-title { text-wrap: balance; }
.case-photo { width: 100%; border-radius: 24px; max-height: 440px; object-fit: cover; }
.case-hero .media-v5 img { object-position: center; }
.gallery-v5 { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.gallery-v5 > :only-child { grid-column: 1 / -1; }
.gallery-v5 > :only-child img { max-height: 530px; object-fit: cover; }
.drawing-v5 svg, .lightbox-v5 svg { width: 100%; display: block; }
.hotspot-v5 { position: relative; }
.hotspot-v5 img { width: 100%; border-radius: 24px; }
.hotspot-v5 button { position: absolute; width: 44px; padding: 0; border-radius: 50%; background: white; color: var(--brand); box-shadow: 0 3px 16px #1c202355; }
.hotspot-v5 button[aria-pressed="true"] { background: var(--brand); color: white; }
.hotspot-v5 button:nth-of-type(1) { left: 18%; top: 40%; }
.hotspot-v5 button:nth-of-type(2) { left: 46%; top: 73%; }
.hotspot-v5 button:nth-of-type(3) { left: 60%; top: 13%; }
.hotspot-v5 button:nth-of-type(4) { left: 75%; top: 51%; }
.portfolio-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)) auto; gap: 12px; align-items: end; }
.portfolio-filters select { min-height: 44px; width: 100%; padding: 8px; font: inherit; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--surface-soft); }
.more-v5 > p { margin: 12px 0; }
.table-v5 { display: grid; gap: 4px; }
.table-v5 div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--surface-soft); }
.lightbox-v5 { width: min(1000px,calc(100% - 24px)); color: var(--text); border: 0; padding: 16px; }
.lightbox-v5::backdrop { background: #1c2023bc; }
.lightbox-v5 header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.lightbox-v5 img, .lightbox-v5 iframe { width: 100%; max-height: 72vh; object-fit: contain; border: 0; background: var(--surface-soft); }
.lightbox-v5 iframe { aspect-ratio: 16/9; }
.lightbox-v5 nav { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
@media (max-width: 1020px) {
  .section-v5 { padding: 32px; }
  .grid-v5--four, .steps-v5 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  main { padding-bottom: 16px; }
  .section-v5 { margin-top: 8px; padding: 24px; gap: 16px; }
  .section-v5 .lead { font-size: 16px; }
  .split-v5, .grid-v5, .grid-v5--four, .steps-v5 { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .card-v5__body { padding: 16px; }
  .card-v5__footer { padding: 0 16px 16px; }
  .promo-v5, .quiz-v5 { padding: 16px; }
  .section-v5 .v5-button,
  .project-v5 .project-detail-button { min-height: 48px; padding-inline: 14px; font-size: 15px; }
  .section-v5 .v5-actions > * { flex: 1 1 100%; }
  .quiz-v5 .v5-actions > * { flex: 1 1 0; }
  .case-hero .v5-title { font-size: clamp(30px,8vw,42px); }
  .price-v5 h3 { min-height: 0; }
  .steps-v5 summary { min-height: auto; }
  .portfolio-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-v5 { grid-template-columns: 1fr; }
}
