/* StudioPrint v2 — shared styles for ordinary HTML pages. */
@font-face {
  font-family: Oswald;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('d846e56314add5ab37.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Oswald;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('c63d9f7cba181af8c7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
:root {
  --background: #e5e5e5;
  --surface: #f3f3f1;
  --text: #303030;
  --red: #cb3737;
  --yellow: #eeb635;
  --teal: #73aeac;
  --purple: #ac74b3;
  --page-width: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.65 Arial, sans-serif; }
main, .site-header, .site-footer { width: min(100%, var(--page-width)); margin-inline: auto; }
main { background: var(--surface); }
.home-page { display: flex; flex-direction: column; }
.home-page > .carousel { order: -1; }
h1, h2, h3 { font-family: Oswald, 'Arial Narrow', Arial, sans-serif; font-weight: 400; line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: #335f60; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #8c3535; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
section, .legacy-anchor { scroll-margin-top: 20px; }
.legacy-anchor { display: block; height: 0; }
.skip-link { position: fixed; top: 0; left: 12px; z-index: 100; padding: 12px; background: white; transform: translateY(-120%); }
.skip-link:focus { transform: none; }
.site-header { padding: 28px 28px 0; }
.header-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding-bottom: 24px; }
.brand { display: block; width: min(100%, 300px); }
.brand img { width: 100%; height: auto; }
.header-address { font-style: normal; font-size: 14px; line-height: 1.65; color: #555; }
.header-contacts { text-align: right; font-size: 14px; line-height: 1.65; }
.header-contacts > a:not(.order-button) { color: #444; text-decoration: none; }
.header-contacts > a:not(.order-button):hover { text-decoration: underline; }
.social-links { margin: 10px 0 14px; font-size: 12px; }
.order-button { display: inline-block; padding: 12px 20px; border-radius: 5px; background: var(--red); color: white; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .18s; }
.order-button:hover { background: #aa3030; color: white; }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 4px; border-top: 2px solid #333; min-height: 65px; font: 700 13px/1.3 Arial, sans-serif; }
.site-nav a, .site-nav summary { display: block; padding: 16px 8px; color: #555; text-decoration: none; cursor: pointer; }
.site-nav a:hover, .site-nav [aria-current='page'], .site-nav summary:hover { color: #335f60; }
.services-menu { position: relative; }
.services-menu summary { list-style: none; }
.services-menu summary::-webkit-details-marker { display: none; }
.services-menu summary::after { content: '⌄'; margin-left: 7px; }
.submenu { position: absolute; top: 100%; left: 0; z-index: 30; width: 245px; padding: 6px; border-radius: 0 0 6px 6px; background: #fafafa; box-shadow: 0 8px 20px #0002; }
.submenu a { padding: 13px 12px; border-radius: 4px; }
.submenu a:hover { background: #ededeb; }
.site-header::after { content: ''; display: block; height: 8px; margin-inline: -28px; background: linear-gradient(to right, var(--yellow) 25%, var(--red) 25% 50%, #743532 50% 75%, var(--teal) 75%); }
.carousel { position: relative; background: #bfbfbf; }
.slide { position: relative; }
.slide > img { width: 100%; aspect-ratio: 980 / 481; object-fit: cover; }
.slide-copy { position: absolute; right: 5%; top: 25%; width: 45%; color: white; text-align: right; text-shadow: 0 2px 12px #0008; }
.slide-copy h2 { font-size: clamp(40px, 6vw, 80px); margin: 0 0 12px; line-height: .95; }
.slide-copy a { color: inherit; text-decoration: none; }
.slide-copy ul { padding-left: 22px; font: 22px/1.3 Oswald, Arial, sans-serif; text-align: left; }
.slide-copy li p { margin: 0; }
.slide:nth-child(n+2) .slide-copy { left: 5%; right: auto; text-align: left; width: 52%; top: 10%; }
.slide:nth-child(n+3) .slide-copy h2 { font-size: clamp(38px, 5vw, 58px); }
.slide:nth-child(n+3) .slide-copy ul { display: inline-block; vertical-align: top; width: 48%; margin-top: 12px; }
.carousel-controls { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; color: white; }
.carousel-controls button { border: 1px solid white; border-radius: 50%; width: 38px; height: 38px; background: #555b; color: white; font-size: 26px; line-height: 1; }
.carousel-status { font-size: 12px; background: #3339; padding: 2px 6px; border-radius: 10px; }
.home-title { font-size: 28px; text-align: center; margin: 0; padding: 32px 20px 0; }
.section { padding: 48px 48px; position: relative; }
.section + .section { border-top: 1px solid #ac74b370; }
.section-title { display: flex; align-items: center; justify-content: center; gap: 22px; font-size: 48px; text-align: center; margin: 0 0 40px; }
.section-title::before, .section-title::after { content: ''; width: 144px; height: 2px; background: #555; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.service-card { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; color: white; text-decoration: none; background: #444; }
.service-card > img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.64); transition: filter .2s; }
.service-card h3 { position: absolute; top: 24px; left: 24px; right: 20px; margin: 0; font-size: 32px; text-shadow: 0 1px 2px #333; }
.service-card p { position: absolute; left: 0; bottom: 7%; width: 94%; padding: 15px 24px; margin: 0; background: var(--card-color); color: white; font-size: 15px; line-height: 1.55; }
.service-card:hover { color: white; }
.service-card:hover > img { filter: brightness(.8); }
.red { --card-color: var(--red); }
.yellow { --card-color: var(--yellow); }
.service-card.yellow p { color: #302b1d; }
.teal { --card-color: #537f7d; }
.purple { --card-color: #895594; }
.textiles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.textile-card { display: flex; flex-direction: column; padding: 24px 16px 18px; border: 1px solid #deded9; border-radius: 6px; background: #fafaf8; text-align: center; }
.textile-card h3 { font-size: 28px; margin: 0 0 18px; }
.textile-card img { width: 100%; height: 240px; margin-bottom: 14px; object-fit: contain; }
.textile-card p { margin: 8px 0; }
.textile-card .size-links { margin-top: auto; padding-top: 12px; font-size: 14px; }
.textile-intro { text-align: center; margin: -16px 0 16px; }
.textile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-bottom: 28px; font-size: 14px; }
.textile-card .textile-price { margin: 16px 0 0; font-size: 23px; font-weight: 700; }
.textile-price span { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: #555; }
.textile-pricelist { margin-top: 36px; scroll-margin-top: 20px; }
.price-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.price-heading h3 { font-size: 30px; margin: 0 0 8px; }
.price-heading p { max-width: 52ch; margin: 0; font-size: 14px; color: #555; }
.price-download { display: inline-block; padding: 10px 16px; border: 1px solid #537f7d; border-radius: 5px; font-size: 14px; text-decoration: none; }
.price-download:hover { background: #e3eceb; color: #335f60; }
.price-category { border: 1px solid #deded9; border-radius: 6px; background: #fafaf8; }
.price-category + .price-category { margin-top: 10px; }
.price-category summary { padding: 16px 20px; cursor: pointer; font-weight: 700; }
.price-category summary::marker { color: #537f7d; }
.price-category[open] summary { border-bottom: 1px solid #deded9; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 14px 20px; vertical-align: top; text-align: left; }
.price-table thead th { font-size: 12px; font-weight: 400; color: #555; }
.price-table tbody tr + tr { border-top: 1px solid #e4e4df; }
.price-table th:first-child { width: 100%; }
.price-table td, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td { font-weight: 700; font-variant-numeric: tabular-nums; }
.price-description { display: block; margin-top: 5px; font-size: 13px; font-weight: 400; color: #555; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.order-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin: 0; padding-left: 30px; }
.order-steps li { padding-left: 6px; }
.order-steps li::marker { color: #735282; font-size: 24px; }
.order-steps h3 { font-size: 28px; margin: 0 0 12px; }
.print-rules { position: relative; margin-top: 32px; padding: 24px 130px 12px 24px; border-radius: 6px; background: #e9e6ed; }
.print-rules img { position: absolute; top: 12px; right: 24px; width: 65px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.gallery:has(> img:only-child) { grid-template-columns: 1fr; }
.gallery img { margin-inline: auto; max-height: 480px; width: auto; object-fit: contain; }
.service-page { padding: 32px 48px 48px; }
.service-page > h1 { font-size: 44px; margin: 24px 0 32px; }
.article-content { max-width: 78ch; }
.prose h2 { font-size: 28px; margin: 30px 0 18px; }
.prose li { margin-bottom: 8px; }
.prose li p { margin-bottom: 0; }
.breadcrumbs { font-size: 14px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.breadcrumbs li + li::before { content: '›'; margin-right: 8px; color: #666; }
.service-order { margin: 32px 0 0; }
.site-footer { position: relative; padding: 36px 32px 24px; background: #dcdcdc; border-top: 4px solid var(--purple); display: grid; grid-template-columns: .85fr 1.1fr 1fr; gap: 28px; font-size: 14px; }
.site-footer a { color: #333; }
.site-footer .order-button { color: white; padding-inline: 14px; }
.site-footer h2 { margin: 0 0 18px; font-size: 25px; }
.site-footer address { margin-bottom: 14px; font-style: normal; }
.footer-nav { display: grid; gap: 9px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-copyright { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid #bfbfbf; color: #555; font-size: 12px; }
.site-footer > .legacy-anchor { position: absolute; top: 0; }
.footer-column { overflow-wrap: anywhere; }
.back-to-top { position: fixed; right: 24px; bottom: 24px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #785084; color: white; text-decoration: none; font-size: 26px; z-index: 40; box-shadow: 0 3px 12px #0002; }
.back-to-top:hover { background: #62416c; color: white; }
dialog { border: 0; border-radius: 8px; padding: 24px; width: min(800px, 94vw); max-height: 90svh; overflow: auto; background: #f6f6f4; color: #333; box-shadow: 0 8px 40px #0005; }
dialog::backdrop { background: #000b; }
dialog h2 { font-size: 28px; margin: 0 45px 22px 0; }
dialog img { width: auto; height: auto; margin: 14px auto; }
.close-dialog { position: sticky; top: 0; float: right; width: 44px; height: 44px; border: 1px solid #ccc; border-radius: 50%; background: white; font-size: 30px; z-index: 2; }
dialog[open] .close-fallback { display: none; }
dialog:target:not([open]) { display: block; position: fixed; inset: 4svh auto auto 50%; transform: translateX(-50%); z-index: 50; border: 1px solid #888; }
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.payment-card { padding: 24px; border: 1px solid #deded9; border-radius: 6px; background: #fafaf8; }
.payment-card img { width: 200px; margin: 0 auto 24px; }
.payment-card p:last-child { margin-bottom: 0; }
.payment-details { grid-column: 1 / -1; columns: 2; column-gap: 40px; }
.payment-details p { break-inside: avoid; }
.delivery-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: center; }
.delivery-content > img { width: 100%; max-height: 340px; object-fit: contain; }
#clients .gallery img { width: min(100%, 600px); max-height: none; }
.not-found { min-height: 100svh; padding: 60px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.not-found h1 { font-size: 36px; margin: 0 0 20px; }
.not-found > p:not(.error-code) { max-width: 48ch; }
.error-code { margin: 36px 0 12px; font: 80px/1 Oswald, Arial, sans-serif; color: #785084; }
@media (max-width: 980px) {
  .header-top { gap: 16px; }
  .header-address, .header-contacts { font-size: 14px; }
  .site-nav { font-size: 12px; }
  .site-nav a, .site-nav summary { padding-inline: 6px; }
  .section { padding-inline: 30px; }
  .services-grid { gap: 24px; }
}
@media (max-width: 700px) {
  .site-header { padding: 20px 16px 0; }
  .site-header::after { margin-inline: -16px; }
  .header-top { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px 16px; padding-bottom: 20px; }
  .brand { grid-column: 1 / -1; width: min(100%, 240px); margin-inline: auto; }
  .header-address { text-align: left; font-size: 13px; }
  .header-contacts { font-size: 12px; overflow-wrap: anywhere; }
  .header-contacts .order-button { padding: 10px 16px; font-size: 12px; }
  .social-links { margin: 8px 0 12px; font-size: 11px; }
  .site-nav { flex-wrap: wrap; justify-content: center; }
  .site-nav a, .site-nav summary { padding: 13px 10px; }
  .submenu { left: -60px; }
  .slide-copy, .slide:nth-child(n+2) .slide-copy { position: static; width: auto; padding: 20px 24px 66px; text-align: left; color: var(--text); text-shadow: none; }
  .slide-copy h2, .slide:nth-child(n+3) .slide-copy h2 { font-size: 32px; line-height: 1.15; }
  .slide-copy ul { font-size: 18px; }
  .home-title { font-size: 24px; }
  .section { padding: 32px 20px; }
  .section-title { font-size: 36px; gap: 14px; margin-bottom: 26px; }
  .section-title::before, .section-title::after { width: 50px; flex-shrink: 1; }
  .services-grid, .textiles-grid, .order-steps, .gallery, .site-footer, .payment-grid, .delivery-content { grid-template-columns: 1fr; }
  .service-card h3 { font-size: 28px; }
  .service-card p { font-size: 15px; line-height: 1.45; }
  .textiles-grid { gap: 32px; }
  .textile-card img { height: 280px; }
  .price-category summary { padding: 14px 12px; }
  .price-table th, .price-table td { padding: 12px; }
  .price-table { font-size: 14px; }
  .price-description { font-size: 12px; }
  .service-page { padding: 24px 20px 32px; }
  .service-page > h1 { font-size: 34px; }
  .gallery { gap: 20px; }
  .site-footer { padding: 28px 20px; }
  .payment-details { columns: 1; }
  .print-rules { padding: 20px 100px 10px 20px; }
  .print-rules img { right: 16px; width: 55px; }
  .order-steps { row-gap: 28px; }
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (max-width: 380px) {
  .service-card h3 { font-size: 25px; left: 18px; top: 18px; }
  .service-card p { padding: 12px 18px; font-size: 14px; }
  .site-nav a, .site-nav summary { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
