/* Protecta V9 — one public layout scale. Page modules follow this file.
   Content grows naturally: no viewport clipping or document overflow hiding. */
html {
  scroll-padding-top: 0;
}
body.pd-v9 {
  --pd-content-width: 1440px;
  --pd-page-gutter: clamp(16px, 2.5vw, 36px);
  --pd-header-height: 116px;
  --v9-section-space: clamp(32px, 4vw, 56px);
  --v9-card-radius: 16px;
  --v9-border: #e0e7ed;
  --v9-surface: #f5f7f9;
  color: #142e47;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}
body.pd-v9 .container {
  width: calc(100% - var(--pd-page-gutter) * 2);
  max-width: var(--pd-content-width);
  margin-inline: auto;
}
body.pd-v9 :is(main, section, article, aside, form, fieldset) {
  min-width: 0;
}
body.pd-v9 :is(h1, h2, h3, p, label, a, strong) {
  overflow-wrap: break-word;
}
body.pd-v9 :is(h1, h2, h3) {
  text-wrap: balance;
}
body.pd-v9 :is(.button, .btn, input, select, textarea) {
  border-radius: 10px;
}
body.pd-v9 .button {
  min-height: 46px;
  font-size: 14px;
  padding: 12px 20px;
  line-height: 1.4;
}
body.pd-v9 .button--primary {
  background: #f47a26;
  border-color: #f47a26;
  color: #112b43;
  box-shadow: 0 4px 12px #ee762519;
}
body.pd-v9 .button--primary:hover {
  background: #ff8b3f;
  border-color: #ff8b3f;
}
body.pd-v9 :focus-visible {
  outline: 2px solid #b94d12;
  outline-offset: 4px;
}
body.pd-v9 :is(.breadcrumb, .shop-breadcrumb) {
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
}
body.pd-v9 [id] {
  scroll-margin-top: calc(var(--pd-header-height) + 20px);
}

/* Compact common header; each action retains a usable touch target. */
body.pd-v9 .v5-topbar > .container {
  min-height: 28px;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.15px;
  padding-block: 5px;
}
body.pd-v9 .site-header.v5-header {
  background: #fff;
  border-bottom: 1px solid var(--v9-border);
  box-shadow: 0 4px 16px #102c4605;
}
body.pd-v9 .v5-header .v5-header-main {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  height: auto;
  min-height: 72px;
  padding-block: 10px;
}
body.pd-v9 .v5-header .brand {
  min-width: 0;
  gap: 9px;
}
body.pd-v9 .v5-header .official-mark {
  width: 44px !important;
  height: 44px !important;
  flex-shrink: 0;
}
body.pd-v9 .v5-header .brand strong {
  font-size: 18px !important;
  letter-spacing: 0.1px !important;
}
body.pd-v9 .v5-header .brand .brand-dot {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 1.3px;
  margin: 0 0 0 3px;
}
body.pd-v9 .v5-header .v5-search {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 46px;
  border: 1px solid #cedae4;
  border-radius: 12px;
  background: #f7f9fb;
  padding: 0 3px 0 14px;
}
body.pd-v9 .v5-search input[type='search'] {
  font-size: 14px;
  min-height: 44px;
}
body.pd-v9 .v5-search > button {
  width: 44px;
  height: 44px;
  border-radius: 9px;
}
body.pd-v9 .v5-header .header-actions {
  gap: 14px;
  min-width: 0;
}
body.pd-v9 .v5-header .pd-header-action {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  height: auto;
  justify-content: center;
  font-size: 12px;
  gap: 7px;
}
body.pd-v9 .v5-header .v5-nav-row > .container {
  min-height: 44px;
  gap: 18px;
}
body.pd-v9 .v5-header .v5-desktop-nav {
  gap: clamp(16px, 2vw, 28px);
}
body.pd-v9 .v5-header .v5-desktop-nav > a {
  min-height: 44px;
  padding-block: 11px;
  font-size: 13px;
}
body.pd-v9 .v5-quick-booking {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #f0f4f7;
  border: 1px solid #e0e8ed;
  white-space: nowrap;
}
body.pd-v9 .v5-header .menu-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
}
body.pd-v9 .v5-header .v5-mobile-nav:not([hidden]) {
  max-height: calc(100dvh - var(--pd-header-height) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Catalog: shared grid rhythm and consistent card proportions. */
body.pd-v9.commerce-page {
  background: var(--v9-surface);
}
body.pd-v9 .commerce-catalog-intro {
  padding-top: 20px;
}
body.pd-v9 .commerce-title-row {
  gap: 24px;
  padding-bottom: 20px;
}
body.pd-v9 .commerce-title-row h1 {
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
  margin: 6px 0 10px;
}
body.pd-v9 .commerce-title-row p:last-child {
  font-size: 14px;
}
body.pd-v9 .commerce-category-landing {
  padding-block: 32px 48px;
}
body.pd-v9 .commerce-category-grid {
  gap: 20px;
  align-items: stretch;
}
body.pd-v9 .commerce-category-card {
  border-radius: var(--v9-card-radius);
}
body.pd-v9 .commerce-category-image {
  aspect-ratio: 1.8;
  background: #f1f4f6;
}
body.pd-v9 .commerce-category-copy {
  padding: 20px;
}
body.pd-v9 .commerce-category-copy h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
body.pd-v9 .commerce-category-copy p {
  font-size: 14px;
  margin-bottom: 16px;
}
body.pd-v9 .shop-catalog-layout {
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 24px;
}
body.pd-v9 .shop-catalog-section {
  padding-block: 28px 48px;
}
body.pd-v9 .shop-filters {
  border-radius: 14px;
}
body.pd-v9 .shop-filter-heading h2 {
  font-size: 15px;
}
body.pd-v9 .shop-category-tree button {
  min-height: 40px;
  font-size: 13px;
}
body.pd-v9 .shop-toolbar {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
body.pd-v9 .shop-toolbar > * {
  min-width: 0;
}
body.pd-v9 .shop-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
body.pd-v9 .shop-product-card {
  border-radius: var(--v9-card-radius);
  border-color: var(--v9-border);
  box-shadow: 0 2px 6px #142e4704;
  overflow: hidden;
}
body.pd-v9 .shop-product-card:hover {
  transform: translateY(-3px);
  border-color: #b9cbd9;
  box-shadow: 0 12px 26px #142e4710;
}
body.pd-v9 .shop-product-visual {
  aspect-ratio: 1.08;
  background: #f4f6f8;
}
body.pd-v9 .shop-product-visual img {
  padding: 14px;
}
body.pd-v9 .shop-product-info {
  padding: 16px;
}
body.pd-v9 .shop-product-info h3 {
  font-size: 14px;
  line-height: 1.5;
  min-height: 3em;
  letter-spacing: -0.015em;
  text-wrap: auto;
}
body.pd-v9 .shop-product-meta {
  font-size: 10px;
  margin-bottom: 6px;
}
body.pd-v9 .commerce-availability {
  font-size: 12px;
  margin-block: 9px 0;
}
body.pd-v9 .shop-product-options {
  margin-block: 10px 8px;
  min-height: 32px;
  gap: 5px;
}
body.pd-v9 .shop-product-options > span {
  font-size: 11px;
}
body.pd-v9 .shop-product-price {
  font-size: 21px;
  letter-spacing: -0.04em;
  min-width: 0;
  overflow-wrap: anywhere;
}
body.pd-v9 .shop-product-go {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
}
body.pd-v9 .shop-product-bottom {
  padding-top: 12px;
  align-items: end;
}
body.pd-v9 .shop-product-badge {
  max-width: calc(100% - 70px);
  font-size: 10px;
  line-height: 1.4;
}
body.pd-v9 .shop-active-filters button {
  min-height: 40px;
  font-size: 12px;
}
body.pd-v9 .shop-pagination {
  flex-wrap: wrap;
  gap: 14px;
}
body.pd-v9 .commerce-category-shortcuts :is(a, button) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
}

/* Checkout and account use the same content width and panel scale. */
body.pd-v9 :is(.shop-cart-section, .shop-checkout-section) {
  padding-block: 28px 48px;
}
body.pd-v9 :is(.shop-cart-layout, .shop-checkout-layout) {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
}
body.pd-v9 :is(.shop-summary, .shop-form-panel, .shop-cart-items, .pc-card) {
  border-radius: var(--v9-card-radius);
  border-color: var(--v9-border);
  box-shadow: 0 3px 16px #142e4704;
}
body.pd-v9 .shop-summary {
  padding: 24px;
  top: calc(var(--pd-header-height) + 20px);
}
body.pd-v9 .shop-cart-item {
  padding: 20px;
  gap: 18px;
  grid-template-columns: 88px minmax(0, 1fr) 108px;
}
body.pd-v9 .shop-cart-item > img {
  width: 88px;
}
body.pd-v9 .shop-cart-item h2 {
  font-size: 16px;
}
body.pd-v9 :is(.shop-cart-item p, .shop-cart-item .shop-link, .shop-small-note) {
  font-size: 13px;
  overflow-wrap: anywhere;
}
body.pd-v9 .shop-checkout-consents .shop-check {
  font-size: 13px;
  line-height: 1.65;
}
body.pd-v9 .shop-form-panel {
  padding: 24px;
}
body.pd-v9 .pc-main .pc-account-heading {
  padding-block: 28px;
}
body.pd-v9 .pc-main .pc-account-heading h1 {
  font-size: clamp(28px, 3.2vw, 40px);
}
body.pd-v9 .pc-main .pc-card {
  padding: 24px;
}
body.pd-v9 :is(.pc-account-sidebar, .pc-order-layout > .pc-card:last-child, .canvas-panel) {
  top: calc(var(--pd-header-height) + 20px);
}
body.pd-v9 :is(.pc-card, .shop-summary, .shop-form-panel) > :is(h2, h3) {
  font-size: 23px;
}

/* Supporting content: four balanced works, shorter guide cards. */
body.pd-v9 .content-v8-related {
  margin-block: 40px;
}
body.pd-v9 .content-v8-projects {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
body.pd-v9 .content-v8-project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--v9-card-radius);
}
body.pd-v9 .content-v8-project-image {
  aspect-ratio: 1.5;
}
body.pd-v9 .content-v8-project-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}
body.pd-v9 .content-v8-project-copy > .content-v8-link {
  margin-top: auto;
}
body.pd-v9 :is(.content-v8-project-card, .content-v8-guide-card) h3 {
  font-size: 18px;
}
body.pd-v9 .content-v8-guide-card > div {
  display: flex;
  flex-direction: column;
  padding: 20px;
}
body.pd-v9 .content-v8-guide-card .content-v8-link {
  margin-top: auto;
}
body.pd-v9 .site-footer.v5-footer {
  padding-top: 36px;
}
body.pd-v9 .v5-footer .footer-grid {
  gap: 28px;
  padding-bottom: 28px;
}
body.pd-v9 .v5-footer .footer-bottom {
  flex-wrap: wrap;
  gap: 12px;
}
body.pd-v9 .v5-footer .footer-legal {
  flex-wrap: wrap;
  gap: 10px 18px;
}

@media (max-width: 1280px) {
  body.pd-v9 .shop-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.pd-v9 .v5-header .header-actions {
    gap: 10px;
  }
  body.pd-v9 .content-v8-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.pd-v9 .content-v8-project-image {
    aspect-ratio: 1.8;
  }
}
@media (max-width: 1080px) {
  body.pd-v9 {
    --pd-header-height: 72px;
  }
  body.pd-v9 .v5-header .header-actions {
    gap: 4px;
  }
  body.pd-v9 .v5-header .pd-header-action {
    width: 44px;
    min-width: 44px;
  }
  body.pd-v9 .v5-header .pd-header-action > span:not(.pd-cart-count):not(.v6-favorites-count) {
    display: none;
  }
  body.pd-v9 :is(.shop-cart-layout, .shop-checkout-layout, .pc-order-layout) {
    grid-template-columns: minmax(0, 1fr);
  }
  body.pd-v9 :is(.shop-summary, .pc-order-layout > .pc-card:last-child) {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}
@media (max-width: 1024px) {
  body.pd-v9 .shop-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  body.pd-v9 .shop-filters {
    padding: 20px 20px max(24px, env(safe-area-inset-bottom));
    border-radius: 16px 0 0 16px;
  }
  body.pd-v9 .shop-filter-heading h2 {
    font-size: 19px;
  }
}
@media (max-width: 760px) {
  body.pd-v9 {
    --pd-header-height: 118px;
  }
  body.pd-v9 .v5-header .v5-header-main {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 0;
    gap: 8px 12px;
    padding-block: 10px;
  }
  body.pd-v9 .v5-header .v5-search {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
    min-height: 46px;
  }
  body.pd-v9 .v5-header .header-actions {
    grid-column: 2;
    grid-row: 1;
  }
  body.pd-v9 .v5-header .brand strong {
    font-size: 16px !important;
  }
  body.pd-v9 .v5-header .brand .brand-dot {
    display: block;
    margin: 4px 0 0;
    letter-spacing: 1.8px;
  }
  body.pd-v9 .v5-header .brand small {
    display: none;
  }
  body.pd-v9 .v5-topbar > .container {
    justify-content: center;
  }
  body.pd-v9 .v5-topbar > .container > span {
    display: none;
  }
  body.pd-v9 .v5-topbar-contact {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  body.pd-v9 .v5-header .v5-mobile-nav:not([hidden]) {
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  body.pd-v9 .commerce-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  body.pd-v9 .commerce-intro-link {
    width: 100%;
    padding: 12px 16px;
  }
  body.pd-v9 .commerce-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.pd-v9 .commerce-category-grid.is-root {
    grid-template-columns: 1fr;
  }
  body.pd-v9 .commerce-category-grid.is-root .commerce-category-card {
    grid-template-columns: 30% minmax(0, 1fr);
  }
  body.pd-v9 .commerce-category-grid.is-root .commerce-category-image {
    aspect-ratio: auto;
  }
  body.pd-v9 .commerce-category-copy {
    padding: 16px;
  }
  body.pd-v9 .commerce-category-copy h3 {
    font-size: 18px;
  }
  body.pd-v9 .commerce-category-copy p {
    font-size: 13px;
  }
  body.pd-v9 .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  body.pd-v9 .shop-product-info {
    padding: 12px;
  }
  body.pd-v9 .shop-product-price {
    font-size: 19px;
  }
  body.pd-v9 .shop-product-visual {
    aspect-ratio: 1;
  }
  body.pd-v9 .shop-product-visual img {
    padding: 10px;
  }
  body.pd-v9 .shop-product-badge {
    top: 10px;
    left: 8px;
    font-size: 9px;
  }
  body.pd-v9 :is(.pc-card, .shop-summary, .shop-form-panel) {
    padding: 20px;
  }
  body.pd-v9 .pc-main .pc-card {
    padding: 20px;
  }
  body.pd-v9 main input:not([type='checkbox']):not([type='radio']),
  body.pd-v9 main select,
  body.pd-v9 main textarea,
  body.pd-v9 .v5-search input[type='search'] {
    font-size: 16px;
  }
  body.pd-v9 .shop-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.pd-v9 .shop-cart-item {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  body.pd-v9 .shop-cart-item > img {
    width: 80px;
    grid-row: auto;
  }
  body.pd-v9 .shop-cart-item-price {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  body.pd-v9 :is(.content-v8-guides, .content-v8-projects) {
    gap: 14px;
  }
  body.pd-v9 .content-v8-related {
    margin-block: 32px;
  }
  body.pd-v9 .v5-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  body.pd-v9 .v5-header .header-actions {
    gap: 0;
  }
  body.pd-v9 .v5-header .brand {
    gap: 6px;
  }
  body.pd-v9 .v5-header .official-mark {
    width: 38px !important;
    height: 38px !important;
  }
  body.pd-v9 .v5-header .brand strong {
    font-size: 14px !important;
  }
  body.pd-v9 .v5-header .brand .brand-dot {
    font-size: 7px;
  }
  body.pd-v9 .shop-toolbar {
    gap: 10px;
  }
  body.pd-v9 .shop-search {
    flex: 1 1 100%;
  }
  body.pd-v9 .shop-sort {
    width: auto;
    flex: 1 1 150px;
  }
  body.pd-v9 .shop-product-grid {
    gap: 10px;
  }
  body.pd-v9 .shop-product-info {
    padding: 10px;
  }
  body.pd-v9 .shop-product-info h3 {
    font-size: 13px;
  }
  body.pd-v9 .shop-product-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  body.pd-v9 .shop-product-go {
    width: 100%;
  }
  body.pd-v9 .shop-product-price {
    font-size: 19px;
  }
  body.pd-v9 .shop-product-options {
    min-height: 40px;
  }
  body.pd-v9 .shop-cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 16px;
    gap: 14px;
  }
  body.pd-v9 .shop-cart-item > img {
    width: 64px;
  }
  body.pd-v9 .shop-cart-item-price {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  body.pd-v9 .shop-cart-item h2 {
    font-size: 15px;
  }
  body.pd-v9 .shop-cart-item-price > label {
    flex-direction: row;
    align-items: center;
  }
  body.pd-v9 .content-v8-projects {
    grid-template-columns: 1fr;
  }
  body.pd-v9 .content-v8-project-image {
    aspect-ratio: 1.8;
  }
  body.pd-v9 .v5-footer .footer-grid {
    gap: 24px 16px;
  }
  body.pd-v9 .v5-footer .footer-brand,
  body.pd-v9 .v5-footer .footer-contact {
    grid-column: 1 / -1;
  }
}
@media (max-width: 370px) {
  body.pd-v9 .v5-header .brand > span {
    display: none;
  }
  body.pd-v9 .v5-header .v5-mobile-nav:not([hidden]) {
    grid-template-columns: 1fr;
  }
}
@media (max-height: 600px) {
  body.pd-v9 {
    --pd-header-height: 0px;
  }
  body.pd-v9 .site-header.v5-header,
  body.pd-v9
    :is(.shop-summary, .pc-account-sidebar, .pc-order-layout > .pc-card:last-child, .canvas-panel) {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.pd-v9 .shop-product-card:hover {
    transform: none;
  }
}
@media print {
  body.pd-v9 :is(.v5-topbar, .site-header.v5-header, .site-footer.v5-footer) {
    display: none !important;
  }
}
