/* Compact layout aligned with the original test3 source structure. */
:root {
  color-scheme: light;
  --bg: #fff;
  --surface: #fff;
  --surface-strong: #fff;
  --text: #303030;
  --muted: #666;
  --line: #e4e4e4;
  --accent: #37408e;
  --accent-strong: #2f377d;
  --accent-soft: #f5f6fb;
  --on-accent: #fff;
  --shadow: 0 4px 8px rgba(55, 64, 142, .12);
  --radius: 6px;
  --radius-small: 4px;
  --header-height: 50px;
}

body {
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
}

.container {
  width: min(87.5%, 1400px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.site-header {
  position: relative;
  border: 0;
  background: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.announcement {
  background: transparent;
  color: #666;
  font-size: 12px;
  letter-spacing: 0;
}

.announcement__inner {
  min-height: 29px;
  padding: 0 15px;
  border: 1px solid #eee;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #f6f6f6;
}

.nav-shell {
  display: flex;
  min-height: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding-top: 34px;
}

.brand img {
  width: 230px;
  filter: none;
}

.header-search {
  display: flex;
  min-width: 280px;
  max-width: 450px;
  flex: 1 1 360px;
  margin-left: auto;
}

.header-search input {
  width: 100%;
  height: 46px;
  padding: 0 15px;
  border: 2px solid var(--accent);
  border-right: 0;
  border-radius: 5px 0 0 5px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  outline: 0;
}

.header-search input:focus {
  box-shadow: inset 0 0 0 1px var(--accent);
}

.header-search button {
  width: 68px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0 5px 5px 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.header-contact {
  display: grid;
  flex: 0 0 auto;
  gap: 1px;
  text-align: right;
}

.header-contact span {
  color: #666;
  font-size: 12px;
}

.header-contact a {
  color: #ef665a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.site-nav {
  order: 10;
  flex: 1 0 100%;
  margin: 0 0 25px;
}

.site-nav ul {
  display: flex;
  overflow: hidden;
  justify-content: stretch;
  gap: 0;
  border-radius: 6px;
  background: var(--accent);
}

.site-nav li {
  min-width: 0;
  flex: 1 1 0;
  text-align: center;
}

.site-nav a,
.site-nav__cta a {
  display: block;
  min-height: 50px;
  padding: 0 8px;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 50px;
}

.site-nav li a:hover,
.site-nav li a:focus-visible,
.site-nav__cta a:hover {
  background: rgba(255, 255, 255, .14);
}

.site-nav li a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.site-nav li:not(.site-nav__cta) a::after {
  display: none;
}

.hero {
  padding: 0 0 25px;
}

.hero__grid {
  position: relative;
  display: block;
  min-height: 440px;
}

.hero-gallery {
  display: block;
  width: 100%;
  height: 440px;
  max-height: none;
}

.hero-gallery::before {
  display: none;
}

.hero-gallery__item {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  box-shadow: none;
}

.hero-gallery__item:first-child {
  display: block;
}

.hero__copy {
  position: absolute;
  bottom: 42px;
  left: 42px;
  z-index: 2;
  width: min(440px, calc(100% - 84px));
  padding: 24px 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .93);
}

.hero .eyebrow {
  margin-bottom: 8px;
  font-size: 10px;
}

.hero h1 {
  max-width: none;
  font-size: clamp(28px, 3.1vw, 38px);
  letter-spacing: -.025em;
  line-height: 1.3;
}

.hero__lead {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.button-row {
  margin-top: 16px;
}

.button {
  min-height: 44px;
  padding: 0 19px;
  border-radius: 4px;
  font-size: 13px;
}

.proof-strip {
  margin-bottom: 25px;
  border: 0;
}

.proof-strip__grid {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.proof-strip__grid > div {
  min-height: 82px;
  padding: 15px 24px;
}

.proof-strip strong {
  font-size: 15px;
}

.proof-strip span {
  font-size: 12px;
}

.section {
  padding: 0 0 25px;
}

.about-preview,
.product-preview,
.news-preview {
  background: #fff;
}

.section-heading {
  display: block;
  max-width: none;
  margin-bottom: 15px;
}

.section-heading h2,
.news-preview__heading h2 {
  margin: 0;
  padding: 5px 15px 3px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 30px;
}

.section-heading h2 br {
  display: none;
}

.section-heading p {
  max-width: none;
  margin: 14px 5px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.about-preview__media {
  grid-template-columns: 350px minmax(0, 1fr);
  align-items: stretch;
  gap: 30px;
  padding: 5px 0;
}

.about-preview__media > img {
  height: 260px;
  border-radius: 0;
}

.about-preview__note {
  min-height: 260px;
  align-content: center;
  gap: 22px;
  padding: 20px 24px;
  border-radius: 0;
  background: #fafafa;
}

.about-preview__note p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
}

.text-link {
  font-size: 13px;
}

.business-preview__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.business-card,
.business-card:nth-child(even) {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.business-card:nth-child(even) .business-card__media {
  order: 0;
}

.business-card__media {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.business-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.business-card__body {
  gap: 9px;
}

.business-card__body h2,
.business-card__body h3 {
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.45;
}

.business-card__body p {
  font-size: 13px;
  line-height: 1.7;
}

.product-grid,
.product-grid--featured {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 14px;
}

.product-grid--featured .product-card:first-child {
  grid-column: auto;
  grid-row: auto;
}

.product-card__media {
  aspect-ratio: 1;
  border-radius: 4px;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.product-card__body {
  padding: 8px 2px 0;
  text-align: center;
}

.product-card__body p {
  font-size: 12px;
}

.product-card__body h2,
.product-card__body h3,
.product-grid--featured .product-card:first-child h3 {
  font-size: 14px;
  font-weight: 500;
}

.section-action {
  margin-top: 24px;
}

.order-flow__grid {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 44px;
}

.order-flow__intro {
  position: static;
}

.order-flow h2 {
  font-size: 24px;
  letter-spacing: -.02em;
  line-height: 1.45;
}

.order-flow__intro > p {
  margin-top: 12px;
  font-size: 14px;
}

.order-flow__steps li {
  min-height: 88px;
  gap: 3px;
  padding: 16px 12px 16px 55px;
}

.order-flow__steps li::before {
  top: 22px;
  left: 6px;
  font-size: 12px;
}

.order-flow__steps span {
  font-size: 18px;
}

.order-flow__steps p {
  font-size: 13px;
}

.news-preview__heading {
  display: block;
  margin-bottom: 10px;
}

.news-preview__heading .eyebrow {
  display: none;
}

.news-preview__heading > .text-link {
  float: right;
  margin: -30px 15px 0 0;
  border: 0;
  color: #fff;
  font-size: 12px;
}

.news-preview__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  border-top: 0;
}

.news-preview__list article > a {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 2px;
}

.news-preview__meta {
  font-size: 12px;
}

.news-preview__list h3 {
  font-size: 14px;
  font-weight: 500;
}

.news-preview__list p {
  display: none;
}

.contact-band {
  padding-top: 0;
}

.contact-band__inner {
  min-height: 156px;
  align-items: center;
  padding: 26px 34px;
  border-radius: 6px;
}

.contact-band h2 {
  font-size: 25px;
  letter-spacing: -.02em;
}

.contact-band p {
  max-width: 680px;
  margin-top: 8px;
  font-size: 13px;
}

.site-footer {
  padding: 34px 0 18px;
}

.site-footer__grid {
  grid-template-columns: 1.4fr .7fr .7fr 1fr;
  gap: 34px;
}

.brand--footer img {
  width: 210px;
}

.site-footer__statement {
  margin-top: 14px;
  font-size: 13px;
}

.site-footer h2,
.site-footer ul,
.site-footer__contact {
  font-size: 12px;
}

.site-footer__bottom {
  margin-top: 30px;
}

.page-hero {
  padding: 28px 0 25px;
  background: #fff;
}

.page-hero__grid {
  min-height: 240px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 38%);
  align-items: center;
  gap: 36px;
}

.page-hero .eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
}

.page-hero h1 {
  max-width: none;
  font-size: clamp(28px, 3.2vw, 36px);
  letter-spacing: -.025em;
  line-height: 1.3;
}

.page-hero__grid > div:first-child > p:last-child {
  margin-top: 12px;
  font-size: 14px;
}

.page-hero__visual {
  width: min(100%, 380px);
  border-radius: 6px;
  box-shadow: none;
}

.page-hero__visual::after {
  border-color: var(--line);
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 12px;
}

.article-layout {
  max-width: none;
}

.article-content {
  font-size: 14px;
  line-height: 1.9;
}

.article-content .lead,
.product-detail__description {
  font-size: 19px;
  line-height: 1.75;
}

.article-content h2 {
  margin-top: 1.8em;
  font-size: 24px;
  letter-spacing: -.02em;
}

.article-content h3 {
  font-size: 18px;
}

.company-table {
  margin-top: 30px;
}

.company-table > div {
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 15px 4px;
  font-size: 14px;
}

.business-preview__list--page {
  margin-top: 8px;
}

.detail-hero {
  padding: 28px 0 30px;
}

.detail-hero__grid {
  gap: 40px;
}

.detail-hero__grid > img {
  height: auto;
}

.detail-hero h1,
.product-detail h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -.025em;
}

.detail-hero__copy > p:last-child {
  margin-top: 12px;
  font-size: 14px;
}

.category-nav {
  margin-bottom: 24px;
}

.category-nav a {
  min-height: 44px;
  padding: 7px 13px;
  border-radius: 4px;
  font-size: 12px;
}

.news-list article {
  padding: 18px 4px;
}

.news-list h2 {
  font-size: 18px;
}

.news-list p {
  font-size: 13px;
}

.product-detail {
  padding-top: 28px;
}

.product-detail__grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr);
  gap: 48px;
}

.product-detail__media {
  aspect-ratio: 1;
}

.product-detail__media img {
  height: 100%;
  aspect-ratio: auto;
}

.product-detail__description {
  margin: 16px 0 24px;
  font-size: 16px;
}

.product-detail__copy .article-content {
  font-size: 14px;
}

.contact-page__grid {
  grid-template-columns: minmax(0, .75fr) minmax(380px, 1.25fr);
  gap: 54px;
}

.contact-page__intro h2 {
  font-size: 26px;
}

.contact-page__privacy-note {
  padding: 12px 14px;
  border-left: 0;
  border-radius: 4px;
  background: var(--accent-soft);
}

.contact-form {
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.form-field input {
  min-height: 44px;
}

.form-field textarea {
  min-height: 140px;
}

@media (max-width: 1100px) {
  .header-contact {
    display: none;
  }

  .header-search {
    max-width: none;
  }

  .product-grid,
  .product-grid--featured {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-header {
    position: sticky;
  }

  .announcement__inner {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .announcement__inner span:last-child {
    display: none;
  }

  .nav-shell {
    min-height: 72px;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 14px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: clamp(150px, calc(100vw - 180px), 200px);
  }

  .header-search,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    border-radius: 4px;
  }

  .site-nav {
    margin: 0;
  }

  .site-nav ul {
    display: block;
    padding: 20px 16px 30px;
    border-radius: 0;
    background: #fff;
  }

  .site-nav li {
    text-align: left;
  }

  .site-nav a,
  .site-nav__cta a {
    min-height: 46px;
    padding: 0 4px;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    line-height: 46px;
  }

  .site-nav li a:focus-visible {
    outline-color: var(--accent);
    background: var(--accent-soft);
  }

  .hero__grid,
  .hero-gallery {
    min-height: 0;
    height: 360px;
  }

  .hero__copy {
    bottom: 24px;
    left: 24px;
    width: min(400px, calc(100% - 48px));
    padding: 20px;
  }

  .proof-strip__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-strip__grid > div {
    min-height: 76px;
    padding: 12px;
  }

  .about-preview__media {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
  }

  .business-preview__list {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .product-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero__grid {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
  }

  .page-hero__visual {
    max-width: 340px;
  }

  .contact-page__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .contact-form {
    width: 100%;
    min-width: 0;
    padding: 24px;
  }

  .contact-form > *,
  .contact-form input,
  .contact-form textarea {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 14px;
  }

  .hero {
    padding-bottom: 18px;
  }

  .hero__grid {
    display: flex;
    height: auto;
    flex-direction: column;
  }

  .hero-gallery {
    order: 1;
    height: 210px;
  }

  .hero__copy {
    position: static;
    order: 2;
    width: auto;
    padding: 20px 0 4px;
    background: transparent;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero .eyebrow,
  .page-hero .eyebrow {
    font-size: 12px;
  }

  .hero__lead {
    font-size: 13px;
  }

  .button-row {
    gap: 8px;
  }

  .proof-strip {
    margin-bottom: 18px;
  }

  .proof-strip__grid {
    display: block;
  }

  .proof-strip__grid > div {
    min-height: 0;
    padding: 12px 14px;
  }

  .proof-strip__grid > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding-bottom: 18px;
  }

  .section-heading {
    margin-bottom: 12px;
  }

  .section-heading h2,
  .news-preview__heading h2 {
    border-radius: 0;
    font-size: 14px;
  }

  .section-heading p {
    margin-top: 10px;
    font-size: 13px;
  }

  .about-preview__media {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .about-preview__media > img {
    height: 230px;
  }

  .about-preview__note {
    min-height: 0;
    padding: 18px;
  }

  .about-preview__note p {
    font-size: 14px;
  }

  .business-card,
  .business-card:nth-child(even) {
    grid-template-columns: 42% minmax(0, 1fr);
    gap: 12px;
  }

  .business-card__body h2,
  .business-card__body h3 {
    font-size: 16px;
  }

  .business-card__body p {
    display: none;
  }

  .product-grid,
  .product-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .product-card__body p,
  .news-preview__meta,
  .breadcrumb,
  .category-nav a {
    font-size: 13px;
  }

  .pagination > a,
  .pagination span a,
  .pagination span span {
    min-width: 44px;
    min-height: 44px;
  }

  .order-flow__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .order-flow h2 {
    font-size: 21px;
  }

  .news-preview__list {
    grid-template-columns: 1fr;
  }

  .contact-band__inner {
    min-height: 0;
    align-items: flex-start;
    padding: 22px;
  }

  .contact-band h2 {
    font-size: 22px;
  }

  .page-hero {
    padding: 24px 0 18px;
  }

  .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .page-hero__visual {
    width: 100%;
    max-width: none;
  }

  .article-content .lead,
  .product-detail__description {
    font-size: 17px;
  }

  .company-table > div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    font-size: 13px;
  }

  .site-footer {
    padding-top: 24px;
  }

  .site-footer__grid {
    gap: 24px 18px;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .contact-page__intro h2 {
    font-size: 22px;
  }
}
