/* Improvements on top of the kora theme (stage 1.5, owner 28.10.2026): same look, better readability and usability.
   Theme colours: gold #b59b39, dark gold #a58c2b, text #313131. */

/* ---- top bar: phone and e-mail readable ---- */
#Top_bar { font-size: 14px; }
#Top_bar p.mail a, #Top_bar p.phone a { color: #fff !important; }
#Top_bar p.phone a { font-weight: bold; }

/* ---- welcome text on the home page: upright, comfortable line length ---- */
.happy-text { font-style: normal; line-height: 1.6; max-width: 760px; margin-left: auto; margin-right: auto; font-size: 15px; color: #313131; }

/* ---- contact buttons block (home, news, pages) ---- */
.contact-cta { margin: 30px 0 10px; padding: 24px 25px 16px; border: 1px solid #ece4cc; border-top: 3px solid #b59b39; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .06); text-align: center; }
.contact-cta-text { font-size: 17px; color: #313131; margin-bottom: 16px; }
.contact_buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---- one button style for calls to action (home, contact strip, contacts page) ---- */
a.cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid #d8cba0; border-radius: 3px; background: #fff; color: #313131 !important; font-size: 15px; font-weight: bold; line-height: 1.2; text-decoration: none !important; transition: border-color .15s, background .15s; }
a.cta-btn i { color: #a58c2b; }
a.cta-btn:hover { border-color: #b59b39; background: #fbf8ef; }
a.cta-btn--gold { background: #b59b39; border-color: #b59b39; color: #fff !important; }
a.cta-btn--gold i { color: #fff; }
a.cta-btn--gold:hover { background: #a58c2b; border-color: #a58c2b; }
.contact-cta-page { margin-top: 10px; margin-bottom: 30px; }

/* ---- news list: cards with a photo album (layout of the owner's zvenig site), columns by news-masonry.js ---- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; margin: 10px 0 20px; }
.news-grid--masonry { display: flex; align-items: flex-start; }
.news-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.news-card { background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, 0.09); border-top: 3px solid #b59b39; padding: 12px; }
.news-photos { display: grid; gap: 6px; }
.news-photos--2 { grid-template-columns: 1fr 1fr; }
.news-photos--2 .tile { aspect-ratio: 3 / 4; }
.news-photos--many { grid-template-columns: repeat(3, 1fr); }
.news-photos--many .tile:first-child { grid-column: 1 / -1; }
.news-photos--many .tile:not(:first-child) { aspect-ratio: 1; }
.news-photos .tile { position: relative; display: block; overflow: hidden; background: #f1ece0; }
.news-photos .tile img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .5s ease; }
.news-photos--many .tile:first-child img, .news-photos:not(.news-photos--2):not(.news-photos--many) .tile img { object-fit: contain; }
.news-photos .tile:hover img { transform: scale(1.03); }
.tile-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(60, 45, 20, 0.55); color: #fff; font-size: 20px; font-weight: bold; }
.news-card-body { padding: 12px 4px 4px; }
.news-card-date { color: #a58c2b; font-size: 13px; font-weight: bold; margin-bottom: 6px; }
.news-card h3 { font-size: 16px; line-height: 1.3; margin-bottom: 6px; }
.news-card-text { margin-bottom: 10px; line-height: 1.55; color: #313131; }
.news-card-more { font-weight: bold; color: #a58c2b; }
.news-card-more span { margin-left: 4px; }
.vk-source { margin-top: 16px; font-size: 14px !important; }
@media only screen and (max-width: 959px) { .news-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } .news-col { gap: 18px; } }
@media only screen and (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

/* ---- pager: compact, in the theme colours ---- */
.pager-compact { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 25px 0 35px; }
.pager-compact a, .pager-compact span { min-width: 36px; height: 36px; line-height: 36px; padding: 0 10px; box-sizing: border-box; text-align: center; border: 1px solid #e2d6ad; background: #fff; color: #313131; }
.pager-compact a:hover { border-color: #b59b39; color: #a58c2b; text-decoration: none; }
.pager-compact a.active { background: #b59b39; border-color: #b59b39; color: #fff; font-weight: bold; }
.pager-compact span.gap { border: none; background: none; }

/* ---- single post ---- */
.share-links { margin-top: 20px; padding-top: 12px; border-top: 1px solid #ebebeb; color: #777; }
.share-links a { display: inline-block; width: 34px; height: 34px; line-height: 34px; margin-left: 6px; text-align: center; border-radius: 50%; background: #b59b39; color: #fff !important; font-size: 17px; }
.share-links a:hover { background: #a58c2b; text-decoration: none; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 25px 0 0 135px; }

/* ---- VK portfolio ---- */
.works-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.works-filter { border: 1px solid #d8cba0; background: #fff; padding: 8px 12px; cursor: pointer; color: #313131; }
.works-filter:hover, .works-filter.is-active { background: #b59b39; border-color: #b59b39; color: #fff; }
.works-section { margin: 28px 0 38px; }
.works-section h2 { border-bottom: 1px solid #e5ddc7; padding-bottom: 8px; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.works-card { min-width: 0; padding: 12px; background: #fff; border-top: 3px solid #b59b39; box-shadow: 0 0 4px rgba(0,0,0,.09); }
/* the album cover has one height in every card so the rows stay even; the photo is shown whole */
.works-card .news-photos .tile:first-child { aspect-ratio: 4 / 3 !important; }
.works-card .news-photos .tile:first-child img { object-fit: contain; }
.works-card .news-photos--2 .tile { aspect-ratio: 4 / 3; }
.works-card .news-photos--2 .tile:first-child img { object-fit: cover; }
.works-card-body { padding: 10px 4px 2px; }
.works-card h3 { font-size: 16px; line-height: 1.4; margin: 0 0 6px; }
.works-count { margin: 0 0 6px !important; font-size: 13px !important; color: #8a7322 !important; }
.works-count a { color: #8a7322; font-weight: bold; }
.works-desc { font-size: 14px !important; line-height: 1.5 !important; color: #555 !important; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.works-news { margin-top: 6px; border-top: 1px solid #f0ead6; padding-top: 6px; font-size: 14px; }
.works-news summary { cursor: pointer; color: #8a7322; font-weight: bold; }
.works-news ul { margin: 6px 0 0 18px; list-style: disc; }
.works-news li { margin: 4px 0; line-height: 1.4; }
.works-news li span { color: #888; font-size: 12px; white-space: nowrap; }
.works-card[hidden], .works-section[hidden] { display: none; }
#works-map { width: 100%; height: min(68vh, 680px); min-height: 400px; background: #eee9dd; z-index: 1; }
.works-map-section { margin: 30px 0; }
.works-map-section #works-map { margin-top: 12px; border: 1px solid #e2d6ad; }
.map-popup { max-height: 380px; overflow: auto; min-width: 260px; }
.map-project { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee; line-height: 1.4; }
.map-project:last-child { border-bottom: 0; }
.map-project-cover { flex: 0 0 auto; padding: 0; border: 0; background: none; cursor: zoom-in; }
.map-project-cover img { display: block; width: 86px; height: 72px; object-fit: cover; }
.map-project strong { display: block; color: #313131; font-size: 13px; }
.map-project span { display: block; color: #777; font-size: 12px; }
.map-project-open { margin-top: 6px; padding: 5px 10px; border: 0; border-radius: 3px; background: #b59b39; color: #fff; font-weight: bold; font-size: 12px; cursor: pointer; }
.map-project-open:hover { background: #a58c2b; }
/* photo caption in the lightbox */
.pswp__caption { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: min(90vw, 760px); padding: 8px 14px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; line-height: 1.45; text-align: center; border-radius: 3px; }
.pswp__caption[hidden] { display: none; }
@media (max-width: 959px) { .works-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .works-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { #works-map { height: 65vh; min-height: 360px; } .map-popup { min-width: 220px; } }

/* ---- two price calculator modes ---- */
.calc-tabs { display: flex; gap: 8px; margin: 18px 0; border-bottom: 2px solid #e5ddc7; }
.calc-tab { padding: 10px 16px; border: 1px solid #e5ddc7; border-bottom: 0; background: #f8f6f0; color: #313131; cursor: pointer; }
.calc-tab.is-active { background: #b59b39; color: #fff; border-color: #b59b39; }
.calc-tabpanel[hidden] { display: none; }
.fresco-calc { max-width: 1050px; }
.fresco-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.fresco-plane { padding: 14px; border: 1px solid #e5ddc7; background: #fff; }
.fresco-plane legend { font-size: 18px; font-weight: bold; color: #927a24; padding: 0 6px; }
.fresco-plane label, .fresco-pantocrator { display: block; font-size: 14px; color: #555; margin: 8px 0; }
.fresco-plane input, .fresco-pantocrator input { display: block; width: 100%; margin-top: 4px; padding: 8px; box-sizing: border-box; }
.fresco-plane p { font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.fresco-pantocrator { max-width: 330px; margin-top: 18px; }
.fresco-result { margin: 20px 0; padding: 18px; border: 1px solid #e2d6ad; background: #fbf8ef; }
.fresco-lines p { margin: 8px 0; }
.fresco-lines span { color: #666; font-size: 13px; }
.fresco-total { font-size: 19px; font-weight: bold; color: #927a24; margin-top: 14px; }
.fresco-note { font-size: 13px; line-height: 1.55; }
@media (max-width: 767px) { .fresco-grid { grid-template-columns: 1fr; } .calc-tab { flex: 1; padding: 9px 7px; } }

/* ---- readable copy and home call to action ---- */
.the_content p, .the_content li { color: #333; font-size: 17px; line-height: 1.6; }
.the_content p { max-width: 75ch; }
.the_content h1, .the_content h2, .the_content h3 { color: #786315; }
/* home: four directions with photos, then two actions (owner 04.11.2026: replaces the yellow box and the old carousel) */
.home-directions { margin: 34px 0 10px; text-align: center; }
.home-directions h2 { color: #786315; margin-bottom: 8px; }
.home-directions-lead { font-size: 17px; color: #555; margin: 0 auto 24px; max-width: 760px; }
.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-tile { display: block; background: #fff; border-top: 3px solid #b59b39; box-shadow: 0 0 4px rgba(0, 0, 0, .09); padding: 10px 10px 14px; color: #313131 !important; text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
.home-tile:hover { box-shadow: 0 6px 18px rgba(120, 99, 21, .18); transform: translateY(-2px); }
.home-tile-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f1ece0; }
.home-tile-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.home-tile:hover .home-tile-img img { transform: scale(1.04); }
.home-tile-title { display: block; margin-top: 12px; font-size: 19px; font-weight: bold; color: #786315; }
.home-tile-note { display: block; margin-top: 3px; font-size: 13px; color: #777; }
.home-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 14px; margin: 26px 0 0; }
.home-all { font-weight: bold; color: #8a7322 !important; margin-left: 6px; }
.home-all span { margin-left: 3px; }
/* home news carousel: the same photo height in all four cards */
.Latest_posts .latest-po .photo { height: 230px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f1ece0; }
.Latest_posts .latest-po .photo img { width: auto !important; max-width: 100%; height: 100% !important; object-fit: contain; }
.named-icon-tools { margin: 18px 0; padding: 14px; background: #fbf8ef; border: 1px solid #e2d6ad; }
.named-icon-tools input { width: min(100%, 360px); padding: 9px; }
.named-icon-pages { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.named-icon-pages button { min-width: 34px; padding: 7px; border: 1px solid #d8cba0; background: #fff; cursor: pointer; }
.named-icon-pages button.active { background: #b59b39; color: #fff; }
.named-icon-count { margin: 7px 0 0 !important; font-size: 13px !important; }
figure.gallery-item[hidden] { display: none !important; }
@media (max-width: 959px) { .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 400px) { .home-tile-title { font-size: 16px; } .home-tile-note { display: none; } }
.post-nav a { max-width: 48%; color: #a58c2b; }
.post-nav a.older { margin-left: auto; text-align: right; }
.single-post .contact-cta { margin-left: 135px; }
@media only screen and (max-width: 767px) {
  .post-nav, .single-post .contact-cta { margin-left: 0; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: none; }
}
@media only screen and (max-width: 767px) {
  #Top_bar, #Top_bar > .container, #Top_bar .sixteen.columns { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; box-sizing: border-box; }
  #Top_bar { padding: 5px 10px; }
}

/* ---- footer contacts ---- */
#Footer { height: auto; min-height: 180px; }
#Footer .bottom_addons { position: relative; padding-top: 0; padding-bottom: 25px; margin-bottom: 0; }
.footer-contacts { padding: 0 140px 0 10px; text-align: left; color: #555; line-height: 1.8; }
@media only screen and (max-width: 767px) { .footer-contacts { padding: 0 0 15px; text-align: center; } }
.footer-contacts p { margin: 0; }
.footer-contacts a { color: #8a7322; }
.footer-contacts .footer-phone { font-size: 18px; font-weight: bold; }
.footer-contacts .footer-social a { display: inline-block; margin: 6px 12px 0 0; font-size: 22px; }
#Footer .copyrights .menu_bottom a { color: #8a7322; }

/* ---- mobile: menu button instead of the select list, call bar at the bottom ---- */
.menu-toggle { display: none; }
.mobile-callbar { display: none; }
@media only screen and (max-width: 959px) {
  #menu_responsive { display: none !important; }
  .menu-toggle { display: block; margin: 8px auto 12px; padding: 9px 18px; border: 1px solid #b59b39; background: #fff; color: #313131; font: bold 14px/1 inherit; text-transform: uppercase; cursor: pointer; }
  .menu-toggle i { color: #b59b39; margin-right: 6px; }
  #Header.menu-open #menu { display: block !important; float: none; width: 100%; margin: 0 0 12px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
  #Header.menu-open #menu > ul { float: none; }
  #Header.menu-open #menu li { float: none; display: block; width: auto; margin: 0; }
  #Header.menu-open #menu > ul > li > a { padding: 11px 16px; margin: 0; border-bottom: 1px solid #f0ead6; text-align: left; }
  #Header.menu-open #menu ul.sub-menu { display: block !important; position: static; visibility: visible; opacity: 1; width: auto; box-shadow: none; background: #faf8f1; padding: 0; }
  #Header.menu-open #menu ul.sub-menu a { padding: 9px 16px 9px 32px; text-align: left; font-weight: normal; }
}
@media only screen and (max-width: 767px) {
  .mobile-callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15); }
  .mobile-callbar a { flex: 1; padding: 13px 0; text-align: center; color: #fff !important; font-weight: bold; font-size: 15px; background: #b59b39; }
  .mobile-callbar a + a { background: #8a7322; }
  .mobile-callbar a:hover { text-decoration: none; }
  body { padding-bottom: 50px; }
}

/* ---- price lists (content/prices, transcribed from the 2026 scans) ---- */
.price-intro { font-size: 15px; margin-bottom: 18px; }
.price-sheet h3 { font-size: 18px; margin: 10px 0 12px; }
.price-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 14px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.price-table caption { text-align: left; font-weight: bold; padding: 10px 0 6px; color: #313131; }
.price-table th, .price-table td { border: 1px solid #e2d6ad; padding: 6px 9px; vertical-align: middle; }
.price-table thead th { background: #f6f0dc; font-weight: bold; text-align: center; }
.price-table tr.price-section th { background: #fbf8ef; text-align: left; }
.price-table td:not(:first-child) { text-align: center; }
.price-table tbody tr:hover td { background: #fdfaf1; }
.price-note { font-size: 13px; color: #555; }
.price-scan { margin: 6px 0 20px; }
.price-scan a { color: #a58c2b; }
@media only screen and (max-width: 767px) { .price-table { font-size: 13px; min-width: 560px; } }

/* ---- logo tagline: the same on all pages as on the home page (there it inherits the h1 style) ---- */
#Header #logo .logo-text { color: #313131; font-family: "Open Sans", Arial, Tahoma, sans-serif; }

/* ---- price calculator (/kalkulyator/, src/assets/site/calc.js) ---- */
.price-scan .price-calc { margin-left: 18px; }
.calc { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 10px 0 20px; }
.calc fieldset { min-width: 0; border: 1px solid #e2d6ad; background: #fff; padding: 14px 18px 8px; margin: 0 0 16px; }
.calc legend { font-weight: bold; font-size: 15px; color: #a58c2b; padding: 0 6px; }
.calc-field { display: block; margin: 0 0 12px; }
.calc-field > span:first-child { display: block; font-size: 13px; color: #666; margin-bottom: 4px; }
.calc select, .calc input[type=number] { width: 100%; max-width: 100%; box-sizing: border-box; padding: 8px 10px; font-size: 15px; border: 1px solid #d8cba0; background: #fff; color: #313131; height: auto; margin: 0; }
.calc-fixed { display: block; padding: 6px 0; font-size: 15px; }
.calc-size { display: flex; align-items: flex-end; gap: 10px; }
.calc-size .calc-field { flex: 1; }
.calc-x { padding: 0 0 22px; font-size: 18px; color: #888; }
.calc-hint { font-size: 13px; color: #555; margin: -4px 0 8px; }
.calc-check { display: block; margin: 0 0 10px; font-size: 15px; cursor: pointer; }
.calc-radios input, .calc-check input { margin-right: 6px; }
.calc-result { position: sticky; top: 70px; border: 1px solid #e2d6ad; border-top: 3px solid #b59b39; background: #fbf8ef; padding: 16px 20px 10px; }
.calc-result h3 { font-size: 18px; margin: 0 0 12px; }
.calc-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e9dfbf; }
.calc-line small { color: #555; font-size: 12px; line-height: 1.45; }
.calc-sum { white-space: nowrap; font-weight: bold; }
.calc-total { font-size: 20px; margin: 12px 0 8px; text-align: right; }
.calc-total b { color: #a58c2b; }
.calc-note { font-size: 12px; color: #666; line-height: 1.5; }
.calc-error { color: #8a3b12; font-size: 14px; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.calc-actions .button { margin: 0; cursor: pointer; border: 0; }
.fresco-actions .button:disabled { opacity: .45; cursor: default; }
.calc--error .calc-actions .button { opacity: .45; cursor: default; }
.calc-status { font-size: 13px; color: #4b6b2a; min-height: 1em; }
.calc-other { font-size: 14px; color: #555; }
.calc-group { margin: 0 0 14px; }
.calc-group-title { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.calc-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-choice { position: relative; cursor: pointer; margin: 0; }
.calc-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-choices--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
.calc-choices--cards .calc-choice { min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 6px 9px; border: 2px solid #e6dcbc; background: #fff; transition: border-color .15s, box-shadow .15s; }
.calc-choice-pic { display: block; width: 100%; max-width: 104px; aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 7px; }
.calc-choice-pic img, .calc-choice-pic svg { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
.calc-choice-title { font-size: 13px; line-height: 1.3; color: #313131; font-weight: bold; }
.calc-choice-sub { font-size: 12px; line-height: 1.3; color: #777; margin-top: 2px; }
.calc-choices--cards .calc-choice:hover { border-color: #d5c38b; }
.calc-choices--cards .calc-choice:has(input:checked) { border-color: #b59b39; box-shadow: 0 0 0 1px #b59b39, 0 3px 10px rgba(181, 155, 57, .25); background: #fffcf2; }
.calc-choices--cards .calc-choice:has(input:checked)::after { content: "✓"; position: absolute; top: 4px; right: 6px; width: 20px; height: 20px; line-height: 20px; border-radius: 50%; background: #b59b39; color: #fff; font-size: 12px; }
.calc-choices--chips .calc-choice { display: inline-flex; align-items: center; gap: 7px; min-width: 42px; justify-content: center; padding: 7px 12px; border: 2px solid #e6dcbc; background: #fff; font-size: 15px; }
.calc-choices--chips .calc-choice-title { font-weight: normal; font-size: 15px; }
.calc-choices--chips .calc-choice:has(input:checked) { border-color: #b59b39; background: #b59b39; }
.calc-choices--chips .calc-choice:has(input:checked) .calc-choice-title { color: #fff; font-weight: bold; }
.calc-choice:has(input:focus-visible) { outline: 2px solid #313131; outline-offset: 2px; }
.calc-swatch { width: 18px; height: 18px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .2); }
.calc-size-wrap { display: flex; gap: 20px; align-items: flex-end; }
.calc-size-inputs { flex: 1; min-width: 0; }
.calc-presets { font-size: 13px; color: #666; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.calc-chip { border: 1px solid #d8cba0; background: #fff; padding: 4px 9px; font-size: 13px; cursor: pointer; color: #313131; }
.calc-chip:hover { border-color: #b59b39; }
.calc-size-preview { flex: 0 0 auto; text-align: center; font-size: 13px; color: #555; min-width: 150px; }
.calc-size-preview svg { display: block; margin: 0 auto 6px; max-width: 100%; height: auto; }
.calc-size-preview p { margin: 0 0 10px; line-height: 1.4; }
.calc-mini { display: none; }
@media only screen and (max-width: 959px) {
  .calc { grid-template-columns: 1fr; } .calc-result { position: static; }
  .calc-mini:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 899; padding: 10px 16px; background: #fffcf2; border-top: 2px solid #b59b39; color: #313131 !important; font-size: 16px; box-shadow: 0 -2px 8px rgba(0, 0, 0, .12); }
  .calc-mini b { color: #a58c2b; } .calc-mini span { float: right; font-size: 13px; color: #777; padding-top: 2px; }
}
@media only screen and (max-width: 767px) { .calc-mini:not([hidden]) { bottom: 46px; } }
@media only screen and (max-width: 560px) {
  .calc fieldset { padding: 12px 12px 6px; }
  .calc-choices { gap: 8px; }
  .calc-choices--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-choice-pic { max-width: 84px; }
  .calc-choice-title { font-size: 12px; }
  .calc-size-wrap { flex-direction: column; align-items: stretch; }
}

/* The boxed wrapper is 300px on phones; span the viewport for the contact strip. */
@media (max-width: 767px) {
  #Top_bar { position: relative; width: 100vw !important; max-width: none !important; left: 50%; transform: translateX(-50%); }
  .home-directions h2 { font-size: 26px; line-height: 1.25; }
}
.contact-map { min-height: 300px; width: 100%; }
.contact-map iframe { width: 100%; height: 320px; border: 0; }
.workshop-faq { margin: 20px 0 32px; }
.workshop-faq details { padding: 12px 0; border-bottom: 1px solid #e2d6ad; }
.workshop-faq summary { cursor: pointer; font-size: 17px; color: #333; }
/* phones: the portfolio sections scroll sideways in one row instead of a tall stack of buttons */
@media (max-width: 767px) {
  .works-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0 20px; padding-bottom: 6px; }
  .works-filter { flex: 0 0 auto; white-space: nowrap; }
}

/* ---- "About" page (owner 04.11.2026): short intro, the works map at the top, history with a picture, works grid ---- */
.about-page section { margin: 0 0 46px; }
.about-page h2 { margin-bottom: 14px; }
.about-intro { padding-top: 6px; }
.about-page p.about-lead { max-width: none; font-size: 19px; line-height: 1.6; color: #313131; margin-bottom: 22px; }
.about-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 !important; padding: 0; list-style: none; }
.about-facts li { margin: 0 !important; padding: 16px 14px; background: #fff; border-top: 3px solid #b59b39; box-shadow: 0 0 4px rgba(0, 0, 0, .08); font-size: 14px !important; line-height: 1.45 !important; }
.about-facts i { display: block; color: #b59b39; font-size: 22px; margin-bottom: 8px; }
.about-facts b { display: block; color: #786315; font-size: 16px; margin-bottom: 3px; }
.about-facts span { color: #666; }
.about-page .works-map-section p { max-width: none; }
.works-map-hint { font-size: 14px !important; color: #777 !important; margin: 0 0 4px !important; }
.works-map-hint i { color: #b59b39; margin-right: 4px; }
.about-history { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.about-history-figure { margin: 54px 0 0; background: #fff; padding: 10px; box-shadow: 0 0 4px rgba(0, 0, 0, .09); border-top: 3px solid #b59b39; }
.about-history-figure img, .about-work img { display: block; width: 100%; height: auto; }
.about-page figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: #666; text-align: center; }
.about-works-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.about-work { margin: 0; padding: 10px; background: #fff; box-shadow: 0 0 4px rgba(0, 0, 0, .09); }
.about-work a { display: block; aspect-ratio: 1; overflow: hidden; background: #f1ece0; }
.about-work img { height: 100%; object-fit: cover; transition: transform .5s ease; }
.about-work a:hover img { transform: scale(1.03); }
.about-page p.about-works-more { margin-top: 18px; text-align: center; max-width: none; }
.about-icon, .about-page .workshop-faq { max-width: 820px; margin-left: auto !important; margin-right: auto !important; }
.about-icon p:first-of-type::first-letter { float: left; font-size: 3.2em; line-height: .9; margin: 4px 8px 0 0; color: #b59b39; font-family: Georgia, serif; }
@media (max-width: 959px) {
  .about-facts, .about-works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-history { grid-template-columns: 1fr; }
  .about-history-figure { margin: 0 auto; max-width: 330px; }
}
@media (max-width: 480px) { .about-facts { gap: 8px; } .about-facts li { padding: 10px 9px; font-size: 12px !important; } .about-facts b { font-size: 14px; } .about-facts i { font-size: 18px; margin-bottom: 5px; } .about-page p.about-lead { font-size: 17px; } }
