/* Homepage layout: text and controls are HTML, illustrations are separate assets. */
:root {
  --red: #ed1622;
  --red-hover: #d30e1b;
  --ink: #181c20;
  --muted: #64676b;
  --line: #e8eaed;
  --radius: 14px;
  --font: Arial, 'Segoe UI', sans-serif;
}
body {
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.container {
  max-width: 1220px;
  width: calc(100% - 64px);
}
h2 {
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 800;
}
.home-section {
  margin-top: 25px;
  padding: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}
.text-button {
  font-size: 13px;
  font-weight: 500;
  color: var(--red);
  gap: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.button {
  border-radius: 11px;
  min-height: 48px;
  font-size: 15px;
  padding: 12px 20px;
  gap: 12px;
  font-weight: 600;
}
.button-primary {
  background: #e8111b;
  box-shadow: none;
  border: 1px solid #e11520;
}
.button-primary:hover {
  background: var(--red-hover);
}
.button-white {
  background: linear-gradient(#f8f9fa, #eff0f2);
  border-color: #e8e9ec;
}
.button-white .icon {
  color: var(--red);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.topbar-inner {
  min-height: 40px;
  height: auto;
  gap: 22px;
  font-size: 12px;
}
.topbar {
  background: linear-gradient(100deg, #f81924, #db0915);
}

.messenger-logo {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-socials [data-social] {
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.footer-socials [data-social]:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.telegram {
  background: #1faff0;
  border-radius: 50%;
}
.max {
  background: linear-gradient(135deg, #36a0fa, #775de6);
  font-size: 13px;
}

.site-header {
  position: relative;
  background: #fff;
  backdrop-filter: none;
  border-bottom: 0;
}
.header-main {
  min-height: 77px;
  gap: 30px;
  transition: none;
}
.brand {
  display: inline-flex;
  gap: 0;
  flex-shrink: 0;
}

.home-search {
  display: flex;
  flex: 1;
  gap: 13px;
  min-width: 0;
}
.home-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f4f6;
  border: 1px solid #eceef1;
  border-radius: 10px;
  padding: 0 13px;
  min-width: 0;
  flex: 1;
  height: 40px;
  color: #454a52;
}
.home-search-field .icon {
  width: 18px;
  height: 18px;
}
.home-search-field input {
  width: 100%;
  min-width: 0;
  background: none;
  border: 0;
  font-size: 12px;
  padding: 10px 0;
  color: var(--ink);
  outline-offset: 4px;
}
.home-search-field input::placeholder {
  color: #74777e;
}
.home-search .button {
  min-height: 40px;
  padding: 8px 23px;
  font-size: 13px;
  border-radius: 8px;
}
.header-actions {
  gap: 26px;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  padding: 0;
}
.header-contact .icon {
  width: 22px;
  height: 22px;
}
.cart-button {
  position: relative;
  font-size: 13px;
  font-weight: 400;
  gap: 10px;
}
.cart-count {
  position: absolute;
  top: 0;
  left: 13px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  padding: 1px 3px;
  background: var(--red);
  color: #fff;
}
.navigation {
  min-height: 44px;
  border-top: 1px solid #eff0f2;
  border-bottom: 1px solid #eff0f2;
  gap: 14px;
}
.nav-item {
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
}
.nav-item:hover,
.nav-item[aria-expanded='true'] {
  color: var(--ink);
}
.nav-item .icon {
  display: none;
}
.mega-menu {
  max-width: 1220px;
  width: calc(100% - 64px);
  z-index: 40;
}
:is(.mega-menu, .catalog-dialog) .mega-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(var(--menu-rows), minmax(64px, auto));
  grid-auto-flow: column;
  gap: 8px 36px;
  align-items: start;
}
:is(.mega-menu, .catalog-dialog) .mega-links button,
:is(.mega-menu, .catalog-dialog) .mega-links a {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 6px 0;
  font-size: 22px;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}
:is(.mega-menu, .catalog-dialog) .mega-links button::before,
:is(.mega-menu, .catalog-dialog) .mega-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: calc(0.675em - 3px);
  border-radius: 50%;
  background: var(--red);
}
:is(.mega-menu, .catalog-dialog) .mega-links :is(button, a):is(:hover, :focus-visible) {
  background: rgba(237, 22, 34, 0.09);
  color: var(--red);
  border-radius: 8px;
  text-decoration: none;
}
:is(.mega-menu, .catalog-dialog) .mega-links :is(button, a):is(:hover, :focus-visible)::before {
  background: currentColor;
}
@media (min-width: 701px) {
  .mega-menu {
    top: calc(100% + 12px);
    border: 1px solid #eceef1;
    border-radius: 16px;
    padding: 26px;
    max-height: none;
    overflow: visible;
    box-shadow: 0 14px 38px #181c2014;
  }
  .mega-menu::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
  }
  .mega-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    max-height: calc(100dvh - 210px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mega-layout > div:first-child {
    min-width: 0;
  }
  .mega-menu .mega-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mega-title {
    padding-bottom: 18px;
    margin-bottom: 12px;
  }
}
@media (min-width: 701px) and (max-width: 950px) {
  .mega-menu .mega-links {
    gap: 8px 18px;
  }
  .mega-menu .mega-links :is(button, a) {
    font-size: 18px;
  }
}
@media (max-width: 700px) {
  :is(.navigation.mobile-open > .mega-menu, .catalog-dialog) .mega-links {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
    gap: 4px;
  }
  :is(.navigation.mobile-open > .mega-menu, .catalog-dialog) .mega-links button,
  :is(.navigation.mobile-open > .mega-menu, .catalog-dialog) .mega-links a {
    min-height: 0;
    font-size: 20px;
    line-height: 1.3;
  }
}
.hero-section {
  padding-top: 0;
}
.hero {
  border: 0;
  background: #fff;
  border-radius: 0;
  grid-template-columns: 48% 52%;
  min-height: 410px;
  border-bottom: 1px solid #eff0f2;
  overflow: hidden;
}
.hero-copy {
  padding: 33px 0 27px;
  pointer-events: auto;
  align-self: center;
}
.hero h1 {
  font-size: 54px;
  line-height: 1.025;
  letter-spacing: -2.3px;
  margin: 0;
  font-weight: 800;
  position: relative;
  max-width: none;
}
.hero h1 span {
  color: var(--red);
}
.hero-copy > p {
  font-size: 16px;
  line-height: 1.32;
  color: #5a5d61;
  margin-top: 17px;
  max-width: 520px;
}
.hero-actions {
  margin-top: 20px;
  gap: 14px;
}
.hero-benefits {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0;
  margin: 20px 0 0;
  font-size: 12px;
  color: #5c5f64;
  white-space: nowrap;
}
.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-benefits .icon {
  color: var(--red);
  width: 20px;
  height: 20px;
}
.hero-art {
  position: relative;
  min-width: 0;
  align-self: stretch;
}
.hero-art > img {
  position: absolute;
  bottom: -25px;
  left: 0;
  width: 100%;
  max-width: none;
  height: auto;
  z-index: 1;
}

.faq-section {
  display: block;
  padding: 0;
  margin-top: 23px;
  margin-bottom: 24px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  align-items: start;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(#fff, #f7f8fa);
  padding: 0;
  margin: 0;
}
.faq-list summary {
  padding: 14px 13px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-list summary .icon {
  width: 17px;
  height: 17px;
  color: #747b87;
}
.faq-list details p {
  font-size: 12px;
  margin: 0;
  padding: 0 13px 14px;
  color: #666b71;
  line-height: 1.45;
  max-width: none;
}

footer {
  background: linear-gradient(120deg, #242829, #1c2021);
  color: #fff;
  padding: 24px 0 12px;
}
footer {
  padding: 44px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.25fr 1fr 1.35fr;
  gap: 30px;
  padding-bottom: 32px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  color: #e1e1e1;
  margin: 14px 0 20px;
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials button,
.footer-socials a {
  border: 0;
  padding: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

.footer-socials a {
  width: 32px;
  height: 32px;
  background: var(--red);
  justify-content: center;
}
.footer-socials a .icon {
  width: 23px;
  height: 23px;
}
.footer-socials [data-social] {
  width: 32px;
  height: 32px;
  background: none;
}
.footer-socials .messenger-logo {
  width: 32px;
  height: 32px;
}
.footer-grid h3 {
  font-size: 18px;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a,
.footer-links button {
  font-size: 15px;
  color: #e1e1e1;
  text-align: left;
  padding: 0;
  line-height: 1.45;
}
.footer-links a:hover,
.footer-links button:hover {
  color: #ff6972;
}
.footer-contacts {
  display: block;
  font-size: 15px;
  min-width: 0;
}
.footer-contacts > a,
.footer-contacts > p {
  position: relative;
  display: block;
  padding-left: 27px;
  margin: 0 0 12px;
  color: #e1e1e1;
  font-size: inherit;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.footer-contacts > a[href^='tel:'] {
  font-size: 17px;
  font-weight: 600;
}
.footer-contacts a .icon,
.footer-contacts p .icon {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  color: white;
  margin-left: 0;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  border-top: 1px solid #ffffff24;
  padding-top: 20px;
  color: #d1d3d4;
}
.footer-heart {
  color: var(--red);
  font-size: 15px;
}
.service-dialog-image {
  object-fit: contain;
  background: #f6f7f8;
  max-height: 250px;
}
.mobile-bottom {
  display: none;
}
@media (min-width: 1500px) {
  .hero {
    min-height: 440px;
  }
  .hero h1 {
    font-size: 57px;
  }
}
@media (max-width: 1150px) {
  .header-main {
    gap: 23px;
  }
  .header-actions {
    gap: 19px;
  }
  .navigation {
    gap: 8px;
  }
  .nav-item {
    font-size: 12px;
  }
  .hero {
    min-height: 365px;
    grid-template-columns: 49% 51%;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .button {
    font-size: 13px;
    padding: 11px 15px;
    min-height: 44px;
  }
  .hero-benefits {
    font-size: 10px;
    gap: 15px;
  }
  .hero-benefits .icon {
    width: 17px;
    height: 17px;
  }
  .footer-grid {
    gap: 20px;
  }
}
@media (max-width: 950px) {
  .container {
    width: calc(100% - 40px);
  }
  .topbar-inner {
    gap: 18px;
  }
  .header-main {
    gap: 18px;
  }
  .header-contact {
    display: none;
  }
  .navigation {
    gap: 5px;
  }
  .nav-item {
    font-size: 11px;
  }
  .hero h1 {
    font-size: 40px;
    letter-spacing: -1.7px;
  }
  .hero-copy > p {
    font-size: 13px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding: 10px 13px;
    gap: 8px;
  }
  .hero-benefits {
    gap: 10px;
    font-size: 9px;
  }
  .hero-benefits li {
    gap: 5px;
  }
  .hero-art > img {
    bottom: 0;
    width: 120%;
    left: -10%;
  }
  .hero {
    min-height: 335px;
  }
  .faq-list summary {
    font-size: 11px;
    padding: 13px 10px;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1.1fr 0.9fr 1.2fr;
    gap: 25px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 15px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .topbar-inner {
    height: 32px;
    justify-content: space-between;
    font-size: 10px;
    gap: 8px;
  }
  .header-main {
    min-height: 65px;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 13px;
  }
  .header-actions {
    margin-left: auto;
    gap: 18px;
  }
  .cart-button {
    font-size: 12px;
  }
  .cart-label {
    display: none;
  }
  .mobile-menu-button {
    display: flex;
    width: 29px;
    height: 29px;
  }
  .home-search {
    order: 3;
    flex-basis: 100%;
    gap: 8px;
  }
  .home-search-field {
    height: 38px;
  }
  .home-search .button {
    min-height: 38px;
    padding: 8px 19px;
  }
  .home-search-field input {
    font-size: 11px;
  }
  .navigation {
    display: none;
    min-height: 0;
  }
  .navigation.mobile-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-block: 8px;
  }
  .nav-item {
    font-size: 14px;
    padding: 12px 5px;
    justify-content: space-between;
    width: 100%;
  }
  .nav-item .icon {
    display: block;
  }
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    max-height: none;
    padding: 16px;
    border-radius: 9px;
    box-shadow: none;
    border: 1px solid var(--line);
    margin-bottom: 10px;
  }
  .mega-layout {
    display: block;
  }
  .mega-links {
    grid-template-columns: 1fr;
  }
  .mega-title h3 {
    font-size: 18px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .hero-copy {
    padding: 23px 0 0;
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(34px, 8.6vw, 52px);
    letter-spacing: -1.5px;
    line-height: 1.04;
  }
  .hero-copy > p {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 13px;
  }
  .desktop-break {
    display: none;
  }
  .hero-actions {
    margin-top: 17px;
    gap: 9px;
  }
  .hero-actions .button {
    font-size: 12px;
    padding: 11px 12px;
    min-height: 43px;
    gap: 8px;
  }
  .hero-actions .icon {
    width: 16px;
    height: 16px;
  }
  .hero-benefits {
    margin-top: 17px;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 10px;
    row-gap: 9px;
  }
  .hero-art {
    height: auto;
    aspect-ratio: 1.4;
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
  }
  .hero-art > img {
    width: 105%;
    left: -4%;
    bottom: -10px;
  }
  .home-section {
    margin-top: 24px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 13px;
    align-items: center;
  }
  h2 {
    font-size: 24px;
    letter-spacing: -0.75px;
  }
  .section-heading .text-button {
    font-size: 11px;
    gap: 5px;
  }
  .section-heading .text-button .icon {
    width: 15px;
    height: 15px;
  }
  .faq-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .faq-list summary {
    font-size: 13px;
    padding: 15px 13px;
  }
  .faq-list details p {
    font-size: 13px;
  }
  .faq-section {
    margin-bottom: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
    padding-bottom: 23px;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
  .footer-brand p {
    font-size: 12px;
    margin: 10px 0 13px;
  }
  .footer-grid h3 {
    font-size: 13px;
  }
  .footer-links a,
  .footer-links button {
    font-size: 12px;
  }
  .footer-links {
    gap: 8px;
  }
  .footer-contacts {
    grid-column: 1/-1;
    font-size: 12px;
  }
  .footer-contacts > a,
  .footer-contacts > p {
    margin-bottom: 9px;
    line-height: 1.45;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 9px;
    font-size: 10px;
    padding-bottom: 76px;
  }
  .footer-bottom > span:first-child {
    flex-basis: 100%;
  }
  .mobile-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    z-index: 29;
    background: #fffffffa;
    backdrop-filter: blur(8px);
    border-top: 1px solid #e6e8eb;
    padding: 8px 5px max(9px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 14px #00000007;
  }
  .mobile-bottom button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    padding: 0;
  }
  .mobile-bottom .icon {
    width: 21px;
    height: 21px;
    color: var(--red);
  }
  .mobile-bottom button:last-child {
    position: relative;
  }
  .mobile-bottom #mobile-cart-count {
    position: absolute;
    left: calc(50% + 7px);
    top: -2px;
    color: white;
    background: var(--red);
    border-radius: 50%;
    padding: 1px 4px;
    font-size: 9px;
  }
  .dialog {
    max-height: 90dvh;
  }
  .dialog-body {
    padding-inline: 20px;
  }
  .service-dialog-image {
    max-height: 200px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 700px) {
  .hero h1 br {
    display: initial;
  }

  .mobile-bottom #mobile-cart-count {
    right: auto;
    min-width: 15px;
    height: 15px;
    line-height: 13px;
  }
}

/* Original artwork stays intact; product captions are separate HTML. */
.hero-art {
  display: grid;
  place-items: center;
  height: 430px;
  align-self: center;
  overflow: visible;
  margin: 0;
  padding: 10px 0;
  aspect-ratio: auto;
}
.hero-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.featured-section {
  margin-top: 40px;
  margin-bottom: 34px;
}
.featured-section > h2 {
  text-align: center;
  font-size: 40px;
  letter-spacing: -1px;
  margin-bottom: 28px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.featured-card {
  display: grid;
  grid-template-columns: minmax(min-content, 42fr) minmax(0, 58fr);
  gap: 6px;
  align-items: stretch;
  text-align: left;
  background: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 22px;
  height: 226px;
  padding: 22px 18px 18px 24px;
  min-width: 0;
  transition:
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s;
}
.featured-card:focus-visible {
  background: #fff6f6;
  border-color: #e8a5ab;
  box-shadow: 0 12px 26px #a52c3014;
  transform: translateY(-4px);
}
@media (hover: hover) {
  .featured-card:hover {
    background: #fff6f6;
    border-color: #e8a5ab;
    box-shadow: 0 12px 26px #a52c3014;
    transform: translateY(-4px);
  }
  .featured-card:hover .featured-art img {
    transform: translateY(-2px) scale(1.045) rotate(-1.5deg);
  }
  .featured-card:hover .featured-name {
    color: var(--red);
  }
}
.featured-card:active {
  transform: translateY(-1px) scale(0.985);
  box-shadow: 0 4px 12px #a52c3010;
}
.featured-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}
.featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding-top: 4px;
}
.featured-name {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 600;
  text-wrap: wrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  transition: color 0.25s;
}
.featured-word {
  display: inline-block;
  white-space: nowrap;
}
.featured-art {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 0;
}
.featured-art img {
  position: absolute;
  inset: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  mix-blend-mode: multiply;
  transition: transform 0.3s;
}
.featured-card:focus-visible .featured-art img {
  transform: translateY(-2px) scale(1.045) rotate(-1.5deg);
}
.featured-card:focus-visible .featured-name {
  color: var(--red);
}
.service-summary {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 20px;
}
.service-summary .service-dialog-image {
  margin: 0;
  height: 260px;
  max-height: none;
  width: 100%;
  object-fit: contain;
  background: #fff;
}
.service-summary .dialog-intro {
  margin-bottom: 0;
}
@media (max-width: 1150px) {
  .hero-art {
    height: 390px;
  }
  .featured-card {
    height: 220px;
    padding: 20px 14px 16px 21px;
    gap: 3px;
  }
  .featured-name {
    font-size: 19px;
  }
  .featured-grid {
    gap: 16px;
  }
}
@media (max-width: 950px) {
  .hero-art {
    height: 350px;
  }
  .featured-section > h2 {
    font-size: 34px;
  }
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .featured-card {
    height: 216px;
    padding: 22px 18px 18px 24px;
  }
  .featured-name {
    font-size: 21px;
  }
}
@media (max-width: 700px) {
  .hero-art {
    height: auto;
    width: 100%;
    aspect-ratio: 1.2;
    margin-top: 8px;
    padding: 8px 0;
  }
  .hero-art > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
  }
  .featured-section {
    margin-top: 30px;
    margin-bottom: 26px;
  }
  .featured-section > h2 {
    font-size: 30px;
    margin-bottom: 20px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .featured-card {
    height: 204px;
    padding: 21px 17px 17px 22px;
    border-radius: 20px;
    gap: 4px;
  }
  .featured-name {
    font-size: 20px;
  }

  .service-summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .service-summary .service-dialog-image {
    height: 240px;
  }
}

@media (max-width: 360px) {
  .featured-card {
    height: 190px;
    padding: 18px 12px 14px 17px;
  }
  .featured-name {
    font-size: 18px;
  }
}

/* One popular section and a concise calculator promotion. */
.hero-art {
  height: 430px;
  padding: 0;
}

@media (max-width: 950px) {
  .hero-art {
    height: 350px;
  }
}
@media (max-width: 700px) {
  .hero-art {
    height: auto;
    aspect-ratio: 4/3;
    margin-top: 14px;
  }
}

/* Shared cart attachments and calculated stickerpack editing. */
.dialog:has(.catalog-dialog) {
  width: min(1100px, calc(100% - 40px));
}
.catalog-dialog {
  padding: 30px 36px 36px;
}
.catalog-dialog > h2 {
  font-size: 32px;
  margin-bottom: 24px;
  line-height: 1.25;
}
.catalog-dialog .catalog-search {
  margin-bottom: 32px;
}
.catalog-dialog .catalog-group {
  margin-bottom: 30px;
}
.catalog-dialog .mega-title {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.catalog-dialog .mega-title h3 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 750;
  color: var(--ink);
  padding: 0;
  border: 0;
  margin: 0;
}
.catalog-dialog .catalog-group-list {
  margin-top: 0;
}
.catalog-dialog > .text-button {
  margin-top: 8px;
  font-size: 16px;
}
.calculator-directory-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: -10px 0 22px;
}
.catalog-dialog .catalog-online {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--red);
  background: #fff0f1;
  flex-shrink: 0;
  margin-top: 4px;
}
.footer-credit {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  margin-left: auto;
  padding-right: 60px;
  color: #d1d3d4;
  font-size: 12px;
}
.footer-credit-copy {
  display: flex;
  flex-direction: column;
  gap: 7px;
  line-height: 1.4;
}
.footer-credit-copy > span:last-child {
  color: #a8adb0;
  font-size: 11px;
}
.footer-credit-logo {
  display: block;
  width: 196px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 5px;
  transition: opacity 0.18s;
}
.footer-credit-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48.5%;
}
.footer-credit-logo:hover {
  opacity: 0.85;
}
.footer-credit-logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
@media (max-width: 1000px) {
  .footer-bottom:has(.footer-credit) {
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  .dialog:has(.catalog-dialog) {
    width: calc(100% - 20px);
  }
  .catalog-dialog {
    padding: 24px 20px;
  }
  .catalog-dialog > h2 {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .catalog-dialog .mega-title h3 {
    font-size: 21px;
  }
  .catalog-dialog .mega-links :is(button, a) {
    padding: 10px 0;
  }
  .catalog-dialog .catalog-online {
    font-size: 11px;
    padding: 3px 6px;
  }
  .footer-credit {
    width: 100%;
    margin-left: 0;
    flex-shrink: 1;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 14px;
    margin-top: 8px;
    padding-right: 54px;
  }
  .footer-credit-copy > span:last-child {
    font-size: 10px;
  }
  .footer-credit-logo {
    width: 160px;
    height: 66px;
  }
}
@media (max-width: 380px) {
  .footer-credit {
    gap: 12px;
  }
  .footer-credit-logo {
    width: 144px;
    height: 60px;
  }
}
.skip-link {
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
}
.cart-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.cart-file-actions button,
.cart-file-actions label {
  color: var(--red);
  font-size: 11px;
  cursor: pointer;
}
.cart-file-actions label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.cart-file-actions label:focus-within {
  outline: 2px solid var(--red);
}
.cart-minimum-note {
  color: #9a622a;
  font-size: 12px;
  margin-top: 15px;
}
.cart-edit-link {
  color: var(--red);
  font-size: 11px;
  display: inline-block;
  margin-top: 8px;
}
@media (max-width: 700px) {
  .topbar-inner {
    height: auto;
    min-height: 0;
    flex-wrap: wrap;
    padding-block: 8px;
    gap: 8px;
  }

  footer {
    padding: 36px 0 16px;
  }

  .footer-brand p {
    font-size: 14px;
    line-height: 1.5;
  }
  .footer-grid h3 {
    font-size: 17px;
    margin-bottom: 16px;
  }
  .footer-links {
    gap: 10px;
  }
  .footer-links a,
  .footer-links button {
    font-size: 14px;
    line-height: 1.45;
  }
  .footer-contacts {
    font-size: 15px;
  }
  .footer-bottom {
    font-size: 12px;
    gap: 12px;
  }
}
.dialog:has(.order-guide-dialog) {
  width: min(720px, calc(100% - 32px));
}
.order-guide-dialog {
  padding: 30px 34px;
}
.order-guide-dialog h2 {
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 24px;
}
.order-guide-steps {
  display: grid;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.order-guide-steps li {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}
.order-guide-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffecee;
  color: var(--red);
  font-size: 17px;
  font-weight: 750;
}
.order-guide-steps h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 6px;
}
.order-guide-steps p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.order-guide-steps a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.order-guide-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  padding: 16px 18px;
  background: #f6f6f6;
  border-radius: 12px;
  margin: 24px 0 0;
}
.order-guide-dialog .form-actions {
  margin-top: 24px;
}
.order-guide-dialog .form-actions .button {
  font-size: 15px;
  white-space: normal;
  text-align: center;
}
@media (max-width: 700px) {
  .dialog:has(.order-guide-dialog) {
    width: calc(100% - 20px);
  }
  .order-guide-dialog {
    padding: 24px 20px;
  }
  .order-guide-dialog h2 {
    font-size: 25px;
  }
  .order-guide-steps {
    gap: 20px;
  }
  .order-guide-steps li {
    gap: 12px;
  }
  .order-guide-number {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    font-size: 15px;
  }
  .order-guide-steps li > div {
    min-width: 0;
  }
  .order-guide-steps h3 {
    font-size: 17px;
  }
  .order-guide-steps p {
    font-size: 14px;
    overflow-wrap: anywhere;
  }
  .order-guide-note {
    font-size: 13px;
    padding: 14px;
    margin-top: 22px;
  }
  .order-guide-dialog .form-actions .button {
    width: 100%;
    font-size: 14px;
  }
}

/* Image-led service cards: one title and larger artwork cropped by the card edges. */
.footer-brand .brand {
  display: inline-flex;
}
.footer-brand .brand img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: contain;
}
#main :is(.cc-service-card, .featured-card) {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  padding: 24px;
  min-height: 218px;
  height: 218px;
  border-radius: 18px;
}
#main .cc-service-card > div,
#main .featured-copy {
  position: relative;
  z-index: 2;
  display: block;
  min-width: 0;
  width: 52%;
  padding: 0;
  margin: 0;
}
#main .cc-service-card h3,
#main .featured-name {
  display: block;
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
#main .cc-service-card > img {
  position: absolute;
  z-index: 0;
  left: auto;
  right: 0;
  top: 14px;
  bottom: auto;
  width: 68%;
  height: calc(100% + 16px);
  max-width: none;
  object-fit: contain;
  object-position: right top;
  mix-blend-mode: multiply;
}
#main .featured-art {
  position: absolute;
  z-index: 0;
  inset: auto;
  right: 0;
  top: 14px;
  bottom: -30px;
  width: 68%;
  height: auto;
  padding: 0;
  min-width: 0;
  min-height: 0;
  mix-blend-mode: multiply;
}
#main .featured-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: right top;
  mix-blend-mode: normal;
}
#main .featured-word {
  display: inline;
  white-space: normal;
}
#main .featured-card:hover .featured-art img,
#main .featured-card:focus-visible .featured-art img {
  transform: translateY(-2px);
}
@media (max-width: 1100px) {
  #main :is(.cc-service-card, .featured-card) {
    height: 212px;
    min-height: 212px;
    padding: 22px;
  }
  #main .cc-service-card h3,
  #main .featured-name {
    font-size: 20px;
  }
}
@media (max-width: 600px) {
  #main :is(.cc-service-card, .featured-card) {
    display: grid;
    grid-template-columns: minmax(min-content, 1fr) minmax(0, 1fr);
    gap: 12px;
    height: 210px;
    min-height: 210px;
    padding: 22px;
    border-radius: 16px;
  }
  #main .cc-service-card > div,
  #main .featured-copy {
    width: auto;
  }
  #main .cc-service-card h3,
  #main .featured-name {
    font-size: 19px;
    line-height: 1.28;
    overflow-wrap: normal;
  }
  #main .featured-word {
    white-space: nowrap;
  }
  #main .cc-service-card > img,
  #main .featured-art {
    position: relative;
    inset: auto;
    top: -8px;
    width: calc(100% + 22px);
    height: calc(100% + 30px);
    margin-right: -22px;
  }
}
@media (max-width: 360px) {
  #main .cc-service-card h3,
  #main .featured-name {
    font-size: 18px;
  }
}
