/* Grytės odontologijos kabinetas. "Šviesus kabinetas": the page is the real room.
   Mint from the walls, floor-tile grid for anything you choose from, window light as the old site's glow.
   Coral appears only where the tunic trim would: the phone number and what is free. */

/* Fonts: self-hosted, split so Lithuanian letters load from the latin-ext file */
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/lexend-latin-300-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/lexend-latin-ext-300-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lexend-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/lexend-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/lexend-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/lexend-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Lexend has no Cyrillic. Geologica matches its weight and width, and only loads on pages with Cyrillic text */
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/geologica-cyrillic-300-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/geologica-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/geologica-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: light;
  --wall: #e6f1e1;
  --wall-deep: #cfe3ca;
  --tile: #ffffff;
  --grout: #cddccb;
  --ink: #12364f;
  --ink-soft: #3f5d6c;
  --blue: #1a6496;
  --blue-deep: #124a72;
  --coral: #c23c17;
  --font: 'Lexend', 'Geologica', 'Trebuchet MS', Verdana, sans-serif;
  --gutter-left: max(20px, env(safe-area-inset-left, 0px));
  --gutter-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--wall); font: 400 1.08rem/1.65 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-deep); text-underline-offset: .2em; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
:target { scroll-margin-top: 16px; }
[hidden] { display: none !important; }
h1, h2 { font-weight: 300; text-wrap: balance; letter-spacing: -.015em; }
h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.14; color: var(--ink); }
sup { font-size: .6em; line-height: 0; }
strong, b { font-weight: 500; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter-left) var(--gutter-right); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; z-index: 5; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tiles a { transition: none !important; } }

/* Header */
.top { background: #fff; }
.top-row { display: flex; align-items: center; gap: 28px; padding-block: 10px; }
.logo { display: block; flex: none; }
.logo img { width: 150px; }
.top nav { margin-left: auto; }
.top nav ul { display: flex; flex-wrap: wrap; gap: 2px 24px; margin: 0; padding: 0; list-style: none; }
.top nav a { display: block; padding-block: 8px; border-bottom: 2px solid transparent; color: var(--ink); text-decoration: none; font-size: 1rem; line-height: 1.3; white-space: nowrap; }
.top nav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.top nav a[aria-current] { border-bottom-color: var(--coral); }
.call { display: inline-block; padding: 10px 18px; background: var(--coral); color: #fff; font-weight: 500; text-decoration: none; border-radius: 3px; white-space: nowrap; }
.call:hover { background: var(--blue-deep); color: #fff; }
.top-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.lang { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.lang a { display: block; padding: 3px 9px; font-size: .86rem; font-weight: 500; line-height: 1.35; color: var(--ink-soft); text-decoration: none; border-radius: 3px; }
.lang a:hover { background: var(--wall); color: var(--ink); }
.lang a[aria-current] { background: var(--wall-deep); color: var(--ink); }

/* Home: the mint wall in the photo carries the headline */
.hero { position: relative; background: var(--wall); }
.hero-photo { width: 100%; height: clamp(500px, 52vw, 800px); object-fit: cover; object-position: 50% 0; }
.hero-copy { position: absolute; top: clamp(16px, 2.6vw, 44px); right: max(20px, calc((100vw - 1280px) / 2 + 20px)); width: min(36vw, 560px); }
.kicker { margin: 0 0 10px; font-size: clamp(.95rem, 1.25vw, 1.15rem); color: var(--blue-deep); }
.hero h1 { margin: 0; font-size: clamp(1.9rem, 3.3vw, 3.3rem); line-height: 1.08; color: var(--ink); }
.hero-card-wrap { position: absolute; left: 0; right: 0; bottom: -48px; margin-inline: auto; pointer-events: none; }

/* The card with today's hours, used on every page */
.today-card { pointer-events: auto; width: 370px; max-width: 100%; padding: 20px 24px 22px; background: #fff; box-shadow: 0 0 0 2px var(--grout), 0 24px 44px -24px rgba(18, 54, 79, .55); }
.today { margin: 0 0 10px; line-height: 1.3; min-height: 2.6em; }
.hours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.week { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.week li { width: 1.94rem; height: 1.42rem; display: grid; place-items: center; font-size: .72rem; font-weight: 500; line-height: 1; border-radius: .72rem; color: var(--blue-deep); border: 1.5px solid var(--blue); }
.week li.on { background: var(--blue); color: #fff; }
.week li[aria-current] { outline: 2px solid var(--coral); outline-offset: 1.5px; }
.hours-time { font-weight: 500; font-size: 1.05rem; }
.card-phone { display: block; margin-top: 14px; font-size: 1.72rem; letter-spacing: -.01em; line-height: 1.2; color: var(--blue-deep); text-decoration: none; }
.card-addr { margin: 2px 0 0; }
.card-free { margin: 12px 0 0; padding-top: 11px; border-top: 2px solid var(--grout); color: var(--coral); font-weight: 500; }

/* Services: one floor tile each */
.services { padding-block: 112px 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 36px; margin-bottom: 22px; }
.section-head p { margin: 0; max-width: 30em; color: var(--ink-soft); font-size: 1rem; line-height: 1.4; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 3px; list-style: none; background: var(--grout); }
.tiles a { display: flex; flex-direction: column; height: 100%; min-height: 172px; padding: 18px 20px 16px; color: var(--ink); text-decoration: none; background: linear-gradient(145deg, #fff 55%, #f4f8f2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); transition: background-color .15s ease; }
.tiles b { font-size: 1.14rem; font-weight: 400; line-height: 1.28; text-wrap: balance; }
.tiles span { margin-top: auto; padding-top: 16px; font-size: .92rem; color: var(--ink-soft); line-height: 1.3; }
.tiles em { font-style: normal; font-weight: 500; font-size: 1.28rem; line-height: 1.25; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.tiles a:hover { background: var(--wall-deep); color: var(--ink); }
.tile-all a { background: var(--blue); color: #fff; }
.tile-all span { color: #dbe9f2; }
.tile-all em { color: #fff; }
.tile-all em::after { content: " →"; }
.tile-all a:hover { background: var(--blue-deep); color: #fff; }
.tiles-compact a { min-height: 92px; padding: 14px 16px; justify-content: center; }
.tiles-compact b { font-size: 1rem; }
.more { padding-block: 40px 56px; }
.more h2 { margin-bottom: 16px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; }

/* Offer */
.offer { background: var(--blue-deep); color: #fff; }
.offer-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; padding-block: 52px; }
.offer-sum { font-size: clamp(4rem, 9.6vw, 8.2rem); font-weight: 300; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.offer-sum small { font-size: .26em; font-weight: 400; letter-spacing: 0; margin-left: .3em; }
.offer h2 { color: #fff; }
.offer-sub { margin: 12px 0 0; font-size: 1.36rem; line-height: 1.3; }
.offer-note { margin: 12px 0 18px; max-width: 42em; font-size: 1rem; line-height: 1.5; color: #e1edf5; }
.offer-link { display: inline-block; padding: 10px 18px; background: #fff; color: var(--blue-deep); font-weight: 500; text-decoration: none; border-radius: 3px; }
.offer-link:hover { background: var(--wall-deep); color: var(--blue-deep); }

/* Family */
.family { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: center; padding-block: 72px; }
.family-text p { margin: 14px 0 0; }
.plain-link, .route { display: inline-block; margin-top: 14px; font-weight: 500; }
.plain-link::after, .route::after { content: " →"; }
.family-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 3px; list-style: none; background: var(--grout); }
.family-photos li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; align-items: baseline; background: #fff; padding-bottom: 12px; }
.family-photos img { grid-column: 1 / -1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 10px; }
.family-photos b { padding-left: 14px; font-size: 1.5rem; font-weight: 400; line-height: 1.2; color: var(--blue-deep); }
.family-photos span { font-size: .96rem; color: var(--ink-soft); }

/* Find */
.find { background: #fff; }
.find-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-block: 52px; }
.map { display: block; }
.map img { box-shadow: 0 0 0 3px var(--grout); }
address { margin-top: 14px; font-style: normal; line-height: 1.5; }
.find dl { margin: 16px 0 0; display: grid; gap: 6px; }
.find dl div { display: grid; grid-template-columns: 7.6em 1fr; gap: 8px; align-items: baseline; }
.find dt { font-size: .94rem; color: var(--ink-soft); }
.find dd { margin: 0; min-width: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.osm-note { margin: 12px 0 0; font-size: .86rem; color: var(--ink-soft); }
.osm-note a { color: inherit; }

/* Footer: the old home page's three columns, kept */
.foot { background: var(--wall-deep); font-size: 1rem; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px 48px; padding-block: 40px 28px; }
.foot h2 { font-size: 1.25rem; font-weight: 400; letter-spacing: 0; margin-bottom: 10px; }
.foot h2 a { color: var(--ink); text-decoration: none; }
.foot h2 a:hover { text-decoration: underline; }
.foot ul { margin: 0; padding: 0; list-style: none; line-height: 1.35; }
.foot li { padding-block: 4px; }
.foot-services ul { columns: 2; column-gap: 32px; }
.foot-services li { break-inside: avoid; }
.foot address { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 36px; padding-block: 14px 22px; font-size: .94rem; border-top: 2px solid var(--grout); }
.foot p { margin: 0; }

/* Inner pages: wall, then a strip of floor, then the page */
.page-head { background: radial-gradient(60% 150% at 6% 0%, #fff 0%, rgba(255, 255, 255, 0) 72%), var(--wall); }
.page-head .wrap { padding-block: 22px 40px; }
.page-head h1 { margin: 14px 0 0; max-width: 22em; font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.08; }
.lead { margin: 14px 0 0; max-width: 40em; font-size: clamp(1.14rem, 1.7vw, 1.34rem); line-height: 1.45; color: var(--ink-soft); }
.floor { --tile-size: clamp(26px, 3.2vw, 42px); height: calc(var(--tile-size) * 2 + 3px); background-color: #fff; background-image: linear-gradient(var(--grout) 3px, transparent 3px), linear-gradient(90deg, var(--grout) 3px, transparent 3px); background-size: var(--tile-size) var(--tile-size); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.page { background: #fff; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 40px 64px; align-items: stretch; padding-block: 36px 72px; }
.page-narrow { display: block; }
.side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.side .today-card { width: 100%; position: sticky; top: 16px; box-shadow: 0 0 0 2px var(--grout); }

/* Reading text */
.prose { min-width: 0; max-width: 44em; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 1.5em; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.2; letter-spacing: -.01em; }
.prose h3 { margin: 1.6em 0 0; font-size: 1.16rem; font-weight: 500; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul:not(.family-photos), .prose ol { margin-block-end: 0; padding: 0; list-style: none; }
.prose ul:not(.family-photos) > li { position: relative; padding-left: 1.3em; }
.prose ul:not(.family-photos) > li + li, .prose ol > li + li { margin-top: .45em; }
.prose ul:not(.family-photos) > li::before { content: ""; position: absolute; left: 0; top: .55em; width: .56em; height: .56em; background: var(--blue); }
.prose ol { counter-reset: step; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 2.6em; }
.prose ol > li::before { content: counter(step); position: absolute; left: 0; top: .08em; width: 1.8em; height: 1.8em; display: grid; place-items: center; font-size: .9em; font-weight: 500; color: #fff; background: var(--blue); }
.prose ol.steps > li + li { margin-top: 1em; }
.closing { font-size: clamp(1.3rem, 2.3vw, 1.7rem); font-weight: 300; line-height: 1.3; color: var(--blue-deep); text-wrap: balance; }
.toc { padding: 14px 18px; background: var(--wall); }
.toc-title { margin: 0 0 6px; font-weight: 500; }
.prose .toc ul { margin: 0; }
.prose .toc ul:not(.family-photos) > li { padding-left: 0; }
.prose .toc ul:not(.family-photos) > li + li { margin-top: .2em; }
.prose .toc ul:not(.family-photos) > li::before { content: none; }
.link-block { font-weight: 500; }

/* Pictures inside text */
.fig { margin: 0; }
.fig img { box-shadow: 0 0 0 3px var(--grout); }
.fig figcaption, .pair figcaption, .steps-gallery figcaption { margin-top: 8px; font-size: .94rem; line-height: 1.35; color: var(--ink-soft); }
.fig-right { float: right; width: min(42%, 260px); margin: .35em 0 .9em 1.6em; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-inline: 0; margin-block-end: 0; }
.pair figure { margin: 0; }
.pair img { width: 100%; box-shadow: 0 0 0 3px var(--grout); }
.pair figcaption { font-weight: 500; color: var(--ink); }
.steps-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 14px; }
.steps-gallery figure { margin: 0; }
.steps-gallery img { width: 100%; box-shadow: 0 0 0 3px var(--grout); }
.clear { clear: both; }

/* Advice after an extraction: patients may print this */
.advice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; margin: 0; padding: 3px; background: var(--grout); }
.advice div { padding: 14px 16px; background: #fff; }
.advice dt { font-weight: 500; }
.advice dd { margin: 4px 0 0; font-size: 1rem; line-height: 1.5; }
.advice div:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Prices */
.price-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.35; }
.price-table tbody th, .price-table td { padding: 10px 0; border-bottom: 2px solid var(--grout); vertical-align: baseline; }
.price-table tbody th { padding-right: 18px; font-weight: 400; text-align: left; }
.price-table td { min-width: 5.2em; font-weight: 500; text-align: right; color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.price-table td.free { color: var(--coral); }
.side-prices h2 { font-size: 1.5rem; font-weight: 400; margin-bottom: 4px; }
.side-prices .price-table { font-size: .96rem; }
.price-note { margin: 12px 0 0; font-size: .92rem; line-height: 1.4; color: var(--ink-soft); }
.price-main { min-width: 0; }
.price-search { margin-bottom: 18px; }
.price-search label { display: block; margin-bottom: 6px; font-weight: 500; }
.price-search input { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--ink-soft); border-radius: 3px; }
.price-status { min-height: 1.6em; margin: 6px 0 0; font-size: .96rem; color: var(--ink-soft); }
.price-nav ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.price-nav a { display: block; padding: 7px 12px; font-size: .94rem; line-height: 1.25; text-decoration: none; color: var(--blue-deep); background: var(--wall); }
.price-nav a:hover { background: var(--wall-deep); color: var(--blue-deep); }
.price-group { margin-top: 30px; }
.price-group h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 400; letter-spacing: -.01em; }

/* Kaip nuo 1928 m.: years on the left, pictures on the right */
.era-list { padding-block: 36px 56px; }
.era { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 8px 32px; padding-block: 30px; border-top: 3px solid var(--grout); }
.era:first-child { border-top: 0; padding-top: 0; }
.era-year { margin: 0; font-size: clamp(2.8rem, 5.6vw, 4.6rem); font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--blue-deep); }
.era-body > p { margin: 0 0 16px; max-width: 40em; }
.era-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.era-pics.one { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.era-pics.three { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.era-pics.three figure:first-child { grid-row: span 2; }
.era-pics figure { margin: 0; }
.era-pics a { display: block; }
.era-pics img { width: 100%; box-shadow: 0 0 0 3px var(--grout); }
.era-pics figcaption { margin-top: 8px; font-size: .94rem; line-height: 1.35; color: var(--ink-soft); }

.era-more { margin: 14px 0 0; }

/* Invitation and small cards */
.invite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 20px 24px; background: var(--wall); }
.invite p { flex: 1 1 18em; margin: 0; }
.prose .invite { margin-top: 1.8em; }
.pad-block { padding-block: 40px 72px; }
.contact-extra { border-top: 3px solid var(--grout); }
.contact-extra h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; }
.contact-extra p { margin: 12px 0 0; }
.not-found { padding-block: 40px 72px; }
.not-found .tiles { max-width: 900px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.about-photo { float: right; width: min(46%, 340px); margin: .35em 0 1em 1.8em; }
.about-photo img { box-shadow: 0 0 0 3px var(--grout); }

@media (max-width: 1100px) {
  .top nav a { font-size: .94rem; }
  .top nav ul { gap: 2px 16px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .family { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .page-body { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-services { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .page-body { grid-template-columns: minmax(0, 1fr); }
  .side .today-card { position: static; }
  .prose { max-width: none; }
  .era { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .top-row { flex-wrap: wrap; gap: 4px 16px; }
  .top nav { order: 3; margin: 0; width: 100%; }
  .top nav ul { gap: 0 16px; padding-bottom: 2px; }
  .top-actions { margin-left: auto; }
  .logo img { width: 124px; }
  .hero { display: flex; flex-direction: column; }
  .hero-copy { position: static; order: -1; width: auto; padding: 22px 20px 18px; }
  .hero h1 { font-size: clamp(2.1rem, 8.8vw, 3.2rem); }
  .hero-photo { height: 62vw; min-height: 240px; object-position: 62% 40%; }
  .hero-card-wrap { position: static; margin-top: -26px; }
  .today-card { width: 100%; }
  .services { padding-block: 44px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles a { min-height: 172px; padding: 14px 14px 13px; }
  .tiles b { font-size: 1.02rem; }
  .tiles em { font-size: 1.12rem; }
  .tiles-compact a { min-height: 84px; }
  .offer-row, .find-row { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 36px; }
  .family { padding-block: 44px; }
  .family-photos { grid-template-columns: minmax(0, 1fr); }
  .find-text { order: -1; }
  .steps-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .foot-services ul { columns: 1; }
  .advice { grid-template-columns: minmax(0, 1fr); }
  .fig-right, .about-photo { float: none; width: 100%; margin: 0 0 1em; }
  .era-pics, .era-pics.three { grid-template-columns: minmax(0, 1fr); }
  .foot-row { flex-direction: column; }
}
@media (max-width: 380px) {
  .top-row { gap: 4px 10px; }
  .logo img { width: 92px; }
  .call { padding: 9px 12px; font-size: .96rem; }
}

/* Paper: the price list and the advice after an extraction get printed */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.4; }
  .top nav, .top-actions, .skip, .floor, .more, .foot-cols, .side, .price-search, .price-nav, .crumbs, .find .map, .route, .toc { display: none !important; }
  .top, .page-head, .page, .foot, .invite { background: #fff !important; }
  .logo img { width: 110px; }
  .page-head .wrap { padding-block: 0 8pt; }
  .page-head h1 { font-size: 22pt; }
  .page-body { display: block; padding-block: 0; }
  .prose { max-width: none; }
  a { color: inherit; text-decoration: none; }
  .price-group { break-inside: avoid; margin-top: 14pt; }
  .price-table tbody th, .price-table td { padding: 3pt 0; border-bottom: 1px solid #999; color: #000; }
  .advice { background: none; padding: 0; gap: 0; }
  .advice div { break-inside: avoid; padding: 4pt 8pt 4pt 0; }
  .foot-row { border-top: 1px solid #999; }
}
