@font-face {
  font-family: 'Certificate Amount';
  src: url('/assets/certificate-v1/lora-amount-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
/* Native focus and scroll-into-view must settle without a smooth-scroll loop. */
html.cert-document { scroll-behavior: auto; }
.certificate-page { --cert-shadow-1: 0 8px 25px #1f2c1417; --cert-shadow-2: 0 18px 42px #1f2c1438; font-size: 16px; background: #fbfaf5; color: #23291c; }
.certificate-page h3 { font-size: clamp(25px,2.5vw,34px); line-height: 1.2; }
.certificate-page h1,.certificate-page h2,.certificate-page h3 { color: #1f2c14; }
.certificate-page h1 { font-size: clamp(40px,4.5vw,65px); line-height: 1.07; letter-spacing: -.045em; }
.certificate-page h2 { font-size: clamp(32px,3.5vw,49px); }
.certificate-page p { line-height: 1.6; }
.certificate-page .top-nav,.certificate-page .phone,.certificate-page .crumbs,.certificate-page .footer .wrap { font-size: 16px; }
.certificate-page .top { padding-block: 12px; }
.certificate-page .top-nav { gap: 0 18px; }
.certificate-page .top-nav a { min-height: 44px; }
.certificate-page .bath-contact-phones small { font-size: 16px; }
.certificate-page .site-menu > .bath-contact-phones > a { min-height: 44px; }
.certificate-page .crumbs { padding-block: 8px; margin-bottom: 8px; }
.certificate-page .footer a { display: inline-flex; align-items: center; min-height: 44px; }
.certificate-page a:focus-visible,.certificate-page button:focus-visible,.certificate-page input:focus-visible { outline: 3px solid #4e6a27; outline-offset: 5px; }
.cert-hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 38px; padding-block: 22px 56px; }
.cert-hero-copy { position: relative; z-index: 1; }
.cert-hero-lead { margin-top: 24px; max-width: 40ch; font-size: 18px; }
.cert-facts { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 0; margin: 26px 0; list-style: none; }
.cert-facts li { border-left: 2px solid #e3decf; padding-left: 12px; line-height: 1.45; }
.cert-facts strong { display: block; color: #1f2c14; font-weight: 650; }
.cert-hero .cert-facts li:last-child { max-width: 190px; }
.cert-hero-visual { position: relative; min-width: 0; padding: 0 0 76px; }
.cert-winter { width: 100%; height: 490px; object-fit: cover; border-radius: 3px; display: block; }
.cert-hero-visual > .cert-paper { position: absolute; width: 89%; bottom: 12px; left: 0; transform: rotate(-3.5deg); box-shadow: var(--cert-shadow-2); }
.cert-paper { position: relative; aspect-ratio: 210/148; background: #fbfaf5; container-type: inline-size; width: 100%; color: #4e6a27; overflow: hidden; border-radius: 3px; }
.cert-paper > img { display: block; width: 100%; height: 100%; }
.cert-paper .cert-value { position: absolute; display: flex; align-items: center; justify-content: center; margin: 0; text-align: center; white-space: nowrap; line-height: 1.12; font-weight: 400; }
.cert-guest { left: 21.428571%; top: 45.27027%; width: 57.142857%; height: 6.756757%; font-size: 2.856cqw; }
.cert-paper[data-long-name] .cert-guest { font-size: 2.02cqw; letter-spacing: -.05cqw; }
.cert-amount { left: 26.190476%; top: 59.459459%; width: 47.619048%; height: 11.486486%; font-family: 'Certificate Amount',Dubrava,serif; font-size: 5.04cqw; }
.cert-paper[data-kind='package'] .cert-amount { left: 21.428571%; width: 57.142857%; font-family: Dubrava,sans-serif; font-size: 3.025cqw; white-space: normal; }
.cert-number { left: 20.47619%; top: 81.081081%; width: 19.047619%; height: 4.72973%; font-size: 1.764cqw; }
.cert-number-label { left: 20.47619%; top: 76.216216%; width: 19.047619%; height: 4.72973%; font-size: 1.26cqw; background: #fbfaf5; }
.cert-expiry { left: 61.428571%; top: 81.081081%; width: 20.47619%; height: 4.72973%; font-size: 1.5cqw; }
.cert-primary { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 13px 24px; border: 1px solid #4e6a27; border-radius: 8px; color: white; background: #4e6a27; font: 650 16px/1.35 Dubrava,sans-serif; text-decoration: none; cursor: pointer; overflow: hidden; box-shadow: 0 4px 0 #314b14,var(--cert-shadow-1); animation: cert-breathe 3.2s ease-in-out infinite; }
.cert-primary::after { content: ''; position: absolute; inset: -50% auto -50% -90%; width: 45%; transform: rotate(25deg); background: linear-gradient(90deg,transparent,#ffffff55,transparent); animation: cert-shine 5s ease-in-out infinite; pointer-events: none; }
.cert-primary:hover { background: #3f591d; }
@keyframes cert-breathe { 0%,100% { box-shadow: 0 4px 0 #314b14,var(--cert-shadow-1); } 50% { box-shadow: 0 4px 0 #314b14,var(--cert-shadow-2); } }
@keyframes cert-shine { 0%,60% { left: -90%; } 90%,100% { left: 150%; } }
.cert-about { padding-block: 64px; border-top: 1px solid #e3decf; }
.cert-about h2 { margin-bottom: 24px; }
.cert-answer { max-width: 1050px; font-size: 22px; line-height: 1.5; letter-spacing: -.02em; }
.cert-about .cert-facts { margin: 30px 0 0; gap: 20px 40px; }
.cert-types-band { background: #f2eee3; }
.cert-types { padding-block: 72px; }
.cert-types > h2 { margin-bottom: 40px; }
.cert-types-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; align-items: stretch; }
.cert-type { min-width: 0; display: flex; flex-direction: column; }
.cert-type > h3 { letter-spacing: -.035em; margin-top: 22px; }
.cert-type > p { max-width: 46ch; margin: 14px 0 12px; }
.cert-type > .cert-pick { margin-top: auto; align-self: start; }
.cert-type .cert-paper[data-kind='package'] .cert-amount { font-size: 3.025cqw; }
.cert-pick { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 22px; border: 1px solid #4e6a27; border-radius: 8px; text-decoration: none; color: #1f2c14; font-weight: 650; width: fit-content; }
.cert-pick:hover { background: #fbfaf5; }
.cert-constructor { padding-block: 80px; scroll-margin-top: 24px; }
.cert-constructor > p { margin: 18px 0 34px; }
.cert-constructor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cert-steps { min-width: 0; }
.cert-step { border: 0; border-bottom: 1px solid #e3decf; margin: 0 0 26px; padding: 0 0 26px; min-width: 0; }
.cert-step legend { font-size: 24px; letter-spacing: -.03em; font-weight: 650; color: #1f2c14; margin-bottom: 18px; padding: 0; }
.cert-options { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-option { position: relative; cursor: pointer; }
.cert-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cert-option span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 15px; border: 1px solid #e3decf; border-radius: 8px; line-height: 1.4; background: #fbfaf5; }
.cert-option input:checked + span { background: #4e6a27; border-color: #4e6a27; color: white; }
.cert-option input:focus-visible + span { outline: 3px solid #4e6a27; outline-offset: 4px; }
.cert-option input:disabled + span { cursor: default; opacity: .55; }
.cert-input { display: grid; gap: 10px; margin-top: 16px; }
.cert-input input { width: 100%; max-width: 100%; min-height: 50px; border: 1px solid #e3decf; border-radius: 8px; padding: 12px 14px; font: inherit; color: #1f2c14; background: #fbfaf5; }
.cert-hint { margin-top: 12px; color: #5b6350; }
.cert-error { color: #873d26; margin-top: 10px; min-height: 1.6em; }
.cert-package-copy { padding: 18px; background: #f2eee3; border-radius: 8px; }
.cert-package-copy p + p { margin-top: 10px; }
.cert-preview { position: sticky; top: 26px; padding: 24px; background: #f2eee3; border-radius: 3px; min-width: 0; }
.cert-preview .cert-paper { box-shadow: var(--cert-shadow-1); }
.cert-preview figcaption { margin-top: 20px; font-size: 16px; line-height: 1.55; }
.cert-preview-format { margin-top: 12px; color: #5b6350; }
.cert-noscript { margin-top: 24px; }
.cert-sticky { display: none; }
.certificate-page [hidden] { display: none !important; }
.certificate-page .analytics-consent p,.certificate-page .analytics-consent-actions button,.certificate-page .analytics-settings { font-size: 16px; line-height: 1.4; }
@media (max-width: 1024px) {
  .cert-hero { gap: 28px; }
  .cert-winter { height: 440px; }
  .cert-constructor-grid { gap: 28px; }
  .cert-preview { padding: 16px; }
}
@media (max-width: 767px) {
  .certificate-page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .certificate-page .wrap { width: calc(100% - 32px); }
  .certificate-page .crumbs { font-size: 16px; margin-bottom: 0; padding-block: 0; line-height: 1.5; }
  .cert-hero { grid-template-columns: 1fr; gap: 12px; padding-block: 10px 28px; }
  .certificate-page h1 { font-size: 35px; }
  .cert-hero-lead { margin-top: 12px; font-size: 18px; line-height: 1.35; }
  .cert-facts { gap: 8px 16px; margin: 14px 0 16px; }
  .cert-facts li { padding-left: 8px; }
  .cert-hero .cert-facts li:last-child { max-width: 100%; }
  .cert-facts strong { display: inline; }
  .cert-hero .cert-facts { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 0; font-size: 14px; }
  .cert-hero .cert-facts li { min-height: 30px; padding: 3px 0 3px 10px; }
  .cert-hero-copy > .cert-primary { min-height: 50px; padding-block: 11px; }
  .cert-hero-visual { padding: 12px 32px; }
  .cert-winter { position: absolute; inset: 0; height: 100%; }
  .cert-hero-visual > .cert-paper { position: relative; width: 100%; left: auto; bottom: auto; }
  .cert-about { padding-block: 44px; }
  .cert-answer { font-size: 19px; }
  .cert-about .cert-facts { gap: 14px; }
  .cert-types { padding-block: 48px; }
  .cert-types > h2 { margin-bottom: 28px; }
  .cert-constructor { padding-block: 48px; }
  .cert-constructor-grid { display: flex; flex-direction: column; gap: 30px; }
  .cert-preview { order: -1; position: sticky; top: 0; z-index: 5; padding: 10px; width: 100%; max-height: 30dvh; overflow: auto; display: grid; grid-template-columns: 44% minmax(0,1fr); gap: 6px 12px; align-items: center; box-shadow: var(--cert-shadow-1); }
  .cert-preview .cert-paper { grid-row: span 2; }
  .cert-preview figcaption { margin: 0; font-size: 13px; line-height: 1.35; }
  .cert-preview .cert-preview-format { margin: 0; font-size: 13px; line-height: 1.35; }
  .cert-steps { width: 100%; }
  .cert-option span { padding-inline: 12px; }
  .cert-sticky { position: fixed; z-index: 12; inset: auto 0 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 10px 12px max(12px,env(safe-area-inset-bottom)); background: #fbfaf5; border-top: 1px solid #e3decf; }
  .cert-sticky .cert-primary { min-height: 48px; padding: 10px 12px; }
  .cert-sticky-call { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; font-weight: 650; }
  .certificate-page .analytics-consent { bottom: calc(80px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 105px); }
  .certificate-page .analytics-consent-actions { flex-wrap: wrap; }
  .certificate-page .analytics-consent-actions button { flex: 1 1 120px; }}
@media (max-width: 710px) {
.certificate-page .top.site-menu { position: relative; z-index: 6; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 0 8px; min-height: 72px; padding-block: 8px; }
.certificate-page .site-menu > :first-child { justify-self: start; max-width: 100%; }
.certificate-page .site-menu > .phone { grid-column: 2; grid-row: 1; margin-left: 0; white-space: nowrap; gap: 0; }
.certificate-page .site-menu > .bath-contact-phones > a { min-height: 44px; }
.menu-js .certificate-page .site-menu-button { display: inline-flex; grid-column: 3; grid-row: 1; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid #e3decf; border-radius: 8px; background: #fbfaf5; color: #1f2c14; font-weight: 700; }
.certificate-page .site-menu > #site-navigation { display: flex; position: static; grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
.menu-js .certificate-page .site-menu-button + #site-navigation { position: absolute; inset: 100% 0 auto; padding: 5px 14px; border: 1px solid #e3decf; border-radius: 8px; background: #fbfaf5; box-shadow: var(--cert-shadow-1); }
.menu-js .certificate-page .site-menu-button[aria-expanded='false'] + #site-navigation { display: none; }
.certificate-page .site-menu #site-navigation a { display: flex; align-items: center; min-height: 44px; font-weight: 650; }
.certificate-page .site-menu #site-navigation a + a { border-top: 1px solid #e3decf; }
.certificate-page .top-logo img { width: 64px; }
.certificate-page .bath-contact-phones small { display: none; }
.certificate-page .phone { font-size: 16px; }
.certificate-page .site-menu-button { font-size: 16px; padding-inline: 8px; }
.certificate-page .site-menu-icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cert-primary { animation-duration: 5s; }
  .cert-primary::after { animation-duration: 7s; }
}

/* Screens 5–13 share the site's palette and type scale. */
.cert-section { padding-block: 80px; scroll-margin-top: 24px; }
.cert-section h2 { max-width: 22ch; margin: 0 0 36px; }
.cert-section p { margin: 0; }
.cert-section p + p { margin-top: 18px; }
.cert-section img { display: block; max-width: 100%; height: auto; }
.cert-benefit-feature img,.cert-business-grid img { border-radius: 3px; }
.cert-benefits { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
.cert-benefit-feature > strong,.cert-speed strong { font-size: clamp(42px,5vw,72px); line-height: 1.1; color: #4e6a27; letter-spacing: -.05em; font-weight: 500; }
.cert-benefit-feature > p { margin: 14px 0 26px; font-size: 22px; }
.cert-benefit-feature img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cert-benefit-copy { padding-top: 8px; }
.cert-benefit-copy > p { padding-bottom: 16px; border-bottom: 1px solid #e3decf; }
.cert-speed { margin-top: 32px; }
.cert-benefit-copy .cert-authentic { font-size: 22px; font-weight: 650; color: #1f2c14; padding: 24px; background: #f2eee3; border-radius: 3px; }
.cert-speed p { margin-top: 12px; }
.cert-spend { background: #f2eee3; }
.cert-gallery-group + .cert-gallery-group { margin-top: 58px; }
.cert-gallery-intro { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 28px; align-items: start; margin-bottom: 24px; }
.cert-gallery-intro .cert-pick { min-width: 140px; }
.cert-photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.cert-photo-grid a { display: block; overflow: hidden; background: #fbfaf5; border-radius: 3px; }
.cert-photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .2s; }
.cert-photo-grid a:hover img { transform: scale(1.03); }
.cert-gallery-group:not(:first-of-type) .cert-photo-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.cert-how .cert-numbered { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; padding: 0; margin: 0 0 36px; }
.cert-numbered { list-style: none; counter-reset: cert-step; }
.cert-numbered li { counter-increment: cert-step; }
.cert-numbered li::before { content: '0' counter(cert-step); display: block; color: #4e6a27; font-size: 36px; line-height: 1; margin-bottom: 22px; }
.cert-use { border-block: 1px solid #e3decf; }
.cert-use > .wrap { padding: 36px; background: #f2eee3; border-radius: 3px; }
.cert-use-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin: 24px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid #e3decf; }
.cert-use-phone { align-self: end; }
.cert-use-phone > a { display: inline-block; margin-block: 10px 20px; font-size: clamp(26px,3vw,38px); letter-spacing: -.035em; }
.cert-occasions { padding-block: 42px; }
.cert-occasions > .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.cert-occasions h2 { font-size: 27px; margin: 0; }
.cert-occasions p { font-size: 18px; }
.cert-occasions p a { color: #4e6a27; text-decoration: underline; font-weight: 650; }
.cert-business { background: #f2eee3; }
.cert-business-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.cert-business-grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.cert-business-grid p { font-size: 22px; margin-bottom: 30px; }
.cert-terms > .wrap { max-width: 760px; }
.cert-terms ol { margin: 0; padding: 0 0 0 24px; }
.cert-terms li { padding: 0 0 18px 12px; line-height: 1.6; }
.cert-terms li + li { padding-top: 18px; border-top: 1px solid #e3decf; }
.cert-faq { border-top: 1px solid #e3decf; }
.cert-faq-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: 64px; align-items: start; }
.cert-faq-sample { position: sticky; top: 30px; }
.cert-faq-sample img { width: 100%; border-radius: 3px; box-shadow: var(--cert-shadow-1); }
.cert-faq details { border-top: 1px solid #e3decf; padding-block: 18px; }
.cert-faq summary { cursor: pointer; font-size: 20px; line-height: 1.5; padding-right: 16px; }
.cert-faq details p { padding: 18px 12px 6px 20px; }
.cert-request { background: #f2eee3; }
.cert-request > .wrap > p { max-width: 76ch; margin-bottom: 40px; }
.cert-request-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 64px; align-items: start; }
.cert-form-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.cert-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.cert-field > span { font-weight: 650; }
.cert-field input,.cert-field select,.cert-field textarea { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 12px; border: 1px solid #e3decf; border-radius: 8px; background: #fbfaf5; color: #23291c; font: inherit; }
.cert-field textarea { resize: vertical; }
.cert-field small { font-size: 14px; line-height: 1.5; color: #5b6350; }
.cert-field [aria-invalid='true'] { border-color: #873d26; }
.cert-wide { grid-column: 1 / -1; }
.cert-consent label { display: flex; gap: 12px; align-items: start; line-height: 1.5; }
.cert-consent input { flex: 0 0 22px; width: 22px; height: 22px; accent-color: #4e6a27; margin-top: 2px; }
.cert-request .cert-primary { justify-self: start; }
.cert-request-result { min-height: 1.6em; }
.cert-request-result:not(:empty) { padding: 22px; border: 2px solid #4e6a27; border-radius: 3px; background: #fbfaf5; scroll-margin-block: 24px 110px; }
.cert-request-result[data-error] { border-color: #873d26; }
.cert-request-result[data-error] { color: #873d26; }
.cert-request-contacts { position: sticky; top: 30px; }
.cert-request-contacts p > a { display: inline-block; font-size: clamp(23px,2.4vw,32px); margin-top: 8px; }
.cert-request-contacts > a { display: inline-block; margin: 24px 0; }
.cert-honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.certificate-page [hidden] { display: none !important; }
.cert-photo-viewer { width: min(1140px,96vw); max-height: 94dvh; margin: auto; padding: 18px; color: #23291c; background: #fbfaf5; border: 0; border-radius: 3px; overflow: auto; }
.cert-photo-viewer::backdrop { background: #10170de8; }
.cert-photo-viewer button { min-width: 48px; min-height: 44px; padding: 8px 18px; border: 1px solid #e3decf; border-radius: 8px; background: #fbfaf5; color: #23291c; font: inherit; cursor: pointer; }
.cert-photo-viewer > button { display: block; margin: 0 0 12px auto; }
.cert-photo-viewer figure { margin: 0; }
.cert-photo-viewer img { display: block; width: 100%; height: min(64dvh,720px); object-fit: contain; }
.cert-photo-viewer figcaption { margin-block: 12px; line-height: 1.5; }
.cert-viewer-nav { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 1024px) {
  .cert-benefits,.cert-business-grid,.cert-request-grid,.cert-faq-grid { gap: 32px; }
  .cert-gallery-intro { grid-template-columns: 1fr 1.2fr; }
  .cert-gallery-intro .cert-pick { grid-column: 2; }
  .cert-how .cert-numbered { gap: 20px; }
}
@media (max-width: 767px) {
  .cert-types { padding-block: 40px; }
  .cert-types-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 85vw; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 0 16px 16px; }
  .cert-types-grid .cert-type { scroll-snap-align: start; }
  .cert-types-grid .cert-type .cert-paper { width: 100%; }
  .cert-types-grid .cert-type > h3 { margin-top: 20px; }
  .cert-types-grid .cert-type > p { font-size: 16px; line-height: 1.5; margin: 12px 0 20px; }
  .cert-section { padding-block: 48px; }
  .cert-section h2 { margin-bottom: 28px; }
  .cert-benefits,.cert-business-grid,.cert-request-grid,.cert-terms > .wrap,.cert-faq-grid,.cert-use > .wrap,.cert-occasions > .wrap { grid-template-columns: 1fr; gap: 28px; }
  .cert-benefit-feature img { aspect-ratio: 3/2; }
  .cert-benefit-copy { padding-top: 0; }
  .cert-gallery-intro { display: block; }
  .cert-gallery-intro h3 { margin-bottom: 16px; }
  .cert-gallery-intro .cert-pick { margin-top: 18px; }
  .cert-photo-grid,.cert-gallery-group:not(:first-of-type) .cert-photo-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 85vw; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 0 16px 12px; }
  .cert-photo-grid a { scroll-snap-align: start; }
  .cert-gallery-group + .cert-gallery-group { margin-top: 38px; }
  .cert-how .cert-numbered { grid-template-columns: 1fr; gap: 22px; }
  .cert-how .cert-numbered li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
  .cert-numbered li::before { font-size: 28px; margin: 4px 0 0; }
  .cert-use > .wrap { padding: 24px 16px; }
  .cert-use-steps { gap: 12px; }
  .cert-use-steps p { font-size: 14px; line-height: 1.5; }
  .cert-use-phone > a { font-size: 31px; }
  .cert-occasions { padding-block: 34px; }
  .cert-occasions > .wrap { gap: 16px; }
  .cert-business-grid p { font-size: 18px; }
  .cert-terms ol { padding-left: 22px; }
  .cert-faq-sample { position: static; }
  .cert-faq-sample img { max-height: 260px; object-fit: cover; }
  .cert-faq summary { font-size: 18px; }
  .cert-faq details p { padding-left: 0; }
  .cert-form-fields { grid-template-columns: 1fr; gap: 24px; }
  .cert-request-contacts { position: static; border-top: 1px solid #e3decf; padding-top: 28px; }
  .cert-request > .wrap > p { margin-bottom: 28px; }
  .cert-photo-viewer { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cert-photo-grid img { transition: none; }
}

/* One type scale and heading rhythm across all thirteen sections. */
.certificate-page h2 { font-size: clamp(32px,3.5vw,49px); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 32px; text-wrap: balance; }
.certificate-page h3 { font-size: clamp(20px,1.8vw,26px); line-height: 1.2; letter-spacing: -.035em; margin: 0 0 16px; text-wrap: balance; }
.cert-types-grid { grid-auto-rows: 1fr; }
.cert-type > .cert-paper { flex: 0 0 auto; margin-bottom: 22px; }
.cert-type > h3 { margin: 0 0 16px; min-height: 2.4em; }
.cert-type > p { margin: 0 0 24px; }
.cert-type > .cert-pick { margin-top: auto; }
.cert-terms > .wrap { max-width: none; }
.cert-terms ol { max-width: 76ch; }
.cert-use > .wrap { padding-inline: 0; }
@media (max-width: 767px) {
  .certificate-page h2 { margin-bottom: 28px; }
  .cert-types-grid .cert-type > h3 { margin: 0 0 16px; }
  .cert-types-grid .cert-type > p { margin: 0 0 24px; }
  .cert-use > .wrap { padding-inline: 0; }
}

/* Certificate card titles: equal size, single line. */
.cert-type { container-type: inline-size; }
.certificate-page .cert-types-grid .cert-type > h3 { font-size: clamp(16px,5.8cqw,26px); white-space: nowrap; min-height: 1.2em; text-wrap: nowrap; }

/* Same header rules for a measured overflow above 710px. */
@media (min-width: 711px) and (max-width: 767px) {
  html:not(.menu-js) .certificate-page .top.site-menu { position: relative; z-index: 6; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 0 8px; min-height: 72px; padding-block: 8px; }
  html:not(.menu-js) .certificate-page .site-menu > :first-child { justify-self: start; max-width: 100%; }
  html:not(.menu-js) .certificate-page .site-menu > .phone { grid-column: 2; grid-row: 1; margin-left: 0; white-space: nowrap; gap: 0; }
  html:not(.menu-js) .certificate-page .site-menu > .bath-contact-phones > a { min-height: 44px; }
  html:not(.menu-js) .certificate-page .site-menu > #site-navigation { display: flex; position: static; grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  html:not(.menu-js) .certificate-page .site-menu #site-navigation a { display: flex; align-items: center; min-height: 44px; font-weight: 650; }
  html:not(.menu-js) .certificate-page .site-menu #site-navigation a + a { border-top: 1px solid #e3decf; }
  html:not(.menu-js) .certificate-page .top-logo img { width: 64px; }
  html:not(.menu-js) .certificate-page .bath-contact-phones small { display: none; }
  html:not(.menu-js) .certificate-page .phone { font-size: 16px; }
  html:not(.menu-js) .certificate-page .site-menu-button { font-size: 16px; padding-inline: 8px; }
  html:not(.menu-js) .certificate-page .site-menu-icon { display: none; }
}
