/*
 * Compact mobile rhythm.
 * Loaded last so page-specific desktop rules cannot enlarge the phone layout.
 */
@media (max-width: 767px) {
  :root {
    --sez-gutter: 14px;
    --sez-mobile-section: 42px;
  }

  html { font-size: 14px; }
  body { font-size: 14px; line-height: 1.48; }

  .sez-container {
    width: 100%;
    padding-right: var(--sez-gutter);
    padding-left: var(--sez-gutter);
  }

  :where(
    .sez-section-head h1,
    .sez-section-head h2,
    .sez-content-hero h1,
    .sez-archive-hero h1,
    .sez-page-hero h1,
    .sez-card-detail h1,
    .sez-news-intro h1
  ) {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.08;
    letter-spacing: -.035em;
  }

  :where(
    .sez-content-body h2,
    .sez-content-card h2,
    .sez-card-detail h2,
    .sez-projects-section h2,
    .sez-lead h2,
    .sez-contacts h2
  ) {
    font-size: clamp(21px, 6.5vw, 27px);
    line-height: 1.14;
  }

  :where(.sez-section-head, .sez-news-intro, .sez-archive-seo__lead) {
    gap: 8px;
    margin-bottom: 20px;
  }

  :where(
    .sez-about,
    .sez-catalog,
    .sez-production,
    .sez-steps,
    .sez-cases,
    .sez-clients,
    .sez-latest-news,
    .sez-lead,
    .sez-contacts,
    .sez-projects-section,
    .sez-content-main,
    .sez-archive-seo
  ) {
    padding-top: var(--sez-mobile-section);
    padding-bottom: var(--sez-mobile-section);
  }

  :where(
    .sez-content-card__body,
    .sez-feed-card__body,
    .sez-product-card__body,
    .sez-service-request,
    .sez-lead__content,
    .sez-contact-card
  ) {
    padding: 14px;
  }

  :where(
    .sez-content-grid,
    .sez-product-mosaic,
    .sez-category-mosaic,
    .sez-steps-grid,
    .sez-documents__grid,
    .sez-company-documents__grid,
    .sez-about-documents__grid
  ) {
    gap: 9px;
  }

  :where(
    .sez-content-card__media,
    .sez-feed-card__media,
    .sez-product-tile__media,
    .sez-service-tile__media,
    .sez-category-card__media
  ) {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  :where(.sez-button, .sez-icon-button) {
    min-height: 42px;
  }

  .sez-button {
    padding: 10px 14px;
    font-size: 12px;
  }

  :where(
    .sez-lead input,
    .sez-lead textarea,
    .sez-lead select,
    .sez-modal input,
    .sez-modal textarea,
    .sez-modal select
  ) {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 13px;
  }

  .sez-home .sez-hero {
    height: 100svh;
    min-height: 620px;
    max-height: 820px;
  }

  .sez-home .sez-hero__content {
    justify-content: flex-end;
    padding-top: 88px;
    padding-right: var(--sez-gutter);
    padding-bottom: 88px;
  }

  .sez-home .sez-hero h1,
  .sez-home .sez-hero__heading {
    max-width: 94%;
    margin-bottom: 14px;
    font-size: clamp(29px, 9.4vw, 39px);
    line-height: 1.04;
  }

  .sez-home .sez-hero__content p {
    max-width: 92%;
    margin-bottom: 19px;
    font-size: 13px;
    line-height: 1.42;
  }

  .sez-home .sez-hero__index { margin-bottom: 10px; font-size: 10px; }
  .sez-home .sez-hero__controls { bottom: 20px; }
  .sez-home .sez-hero__arrows .sez-icon-button { width: 42px; height: 42px; }
  .sez-home .sez-hero__media img,
  .sez-home .sez-hero__media video { object-position: center; }

  .sez-commerce-page .sez-shop-hero,
  .sez-commerce-page .sez-commerce-hero { padding: 22px 0 20px; }
  .sez-commerce-page .sez-shop-hero h1,
  .sez-commerce-page .sez-commerce-hero h1,
  .sez-commerce-page .sez-shop-product__summary h1 {
    font-size: clamp(25px, 8vw, 30px);
    line-height: 1.08;
  }
  .sez-commerce-page .sez-shop-section,
  .sez-commerce-page .sez-commerce-section { padding: 22px 0 34px; }
  .sez-commerce-page .sez-shop-category-browser { margin-bottom: 26px; }
  .sez-commerce-page .sez-shop-category {
    min-height: 64px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }
  .sez-commerce-page .sez-shop-category__media { width: 28px; height: 28px; }
  .sez-commerce-page .sez-shop-category strong { font-size: 10px; line-height: 1.16; }
  .sez-commerce-page .sez-shop-subcategories { padding: 8px; }
  .sez-commerce-page .sez-shop-back { min-height: 38px; margin-bottom: 10px; }
  .sez-commerce-page .sez-shop-card { min-height: 260px; }
  .sez-commerce-page .sez-shop-card__body { min-height: 132px; padding: 9px; }
  .sez-commerce-page .sez-shop-card h2 { margin: 6px 0 5px; font-size: 13px; }
  .sez-commerce-page .sez-shop-card__bottom { gap: 6px; padding-top: 8px; }
  .sez-commerce-page .sez-shop-card__button { min-height: 32px; }
  .sez-commerce-page .sez-shop-product { padding-top: 18px; }
  .sez-commerce-page .sez-shop-product__media { min-height: 240px; }
  .sez-commerce-page .sez-product-gallery__main { min-height: 220px; }
  .sez-commerce-page .sez-product-variants { gap: 9px; margin-top: 14px; padding: 10px; }
  .sez-commerce-page .sez-product-benefits > div {
    min-height: 82px;
    padding: 9px;
  }
  .sez-commerce-page .sez-product-spec-tabs__nav button { padding: 9px 10px; font-size: 9px; }
  .sez-commerce-page .sez-product-spec-group dt,
  .sez-commerce-page .sez-product-spec-group dd { padding: 9px 10px; }
  .sez-commerce-page .sez-product-engineering-section { padding: 34px 0; }
  .sez-commerce-page .sez-product-engineering-section h2,
  .sez-commerce-page .sez-product-details h2 { margin-bottom: 15px; font-size: 22px; }
  .sez-commerce-page .sez-product-supply-grid > div { padding: 14px; }
  .sez-commerce-page .sez-product-drawing-slot,
  .sez-commerce-page .sez-product-document-placeholder { min-height: 220px; }
  .sez-commerce-page :where(.sez-cart-item, .sez-order-form, .sez-status-form, .sez-status-result) { padding: 13px; }

  .sez-footer { padding-top: 34px; }
  .sez-footer__top { gap: 10px; margin-bottom: 22px; }
  .sez-footer__top p { max-width: 34rem; margin: 0; font-size: 12px; }
  .sez-footer__brand img { max-height: 56px; }
  .sez-footer__grid { display: block; }
  .sez-footer__grid > * {
    padding: 0;
    border-top: 1px solid rgb(255 255 255 / 22%);
  }

  .sez-footer__accordion-toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: 700 13px/1.2 "Montserrat", Arial, sans-serif;
    text-align: left;
  }

  .sez-footer__accordion-toggle i {
    position: relative;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
  }

  .sez-footer__accordion-toggle i::before,
  .sez-footer__accordion-toggle i::after {
    position: absolute;
    top: 6px;
    left: 0;
    width: 13px;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform .2s ease;
  }

  .sez-footer__accordion-toggle i::after { transform: rotate(90deg); }
  .sez-footer__accordion-toggle[aria-expanded="true"] i::after { transform: rotate(0); }

  .sez-footer__accordion-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .28s ease, opacity .2s ease, padding-bottom .28s ease;
  }

  .sez-footer__accordion-panel.is-open {
    max-height: 760px;
    padding-bottom: 18px;
    opacity: 1;
  }

  .sez-footer__accordion-panel > h2 { display: none; }
  .sez-footer__contacts,
  .sez-footer__cta { gap: 7px; }
  .sez-footer__menu { gap: 6px; }
  .sez-footer__menu a,
  .sez-footer__contacts a,
  .sez-footer__contacts div { font-size: 12px; line-height: 1.35; }
  .sez-footer__cta p { margin: 0 0 10px; font-size: 12px; }
  .sez-footer__cta-actions { gap: 7px; }
  .sez-footer__cta-actions .sez-button { width: 100%; min-height: 42px; }
  .sez-footer__statement { display: none !important; }
  .sez-footer__bottom {
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 10px;
  }
}

@media (min-width: 768px) {
  .sez-footer__accordion-toggle { display: none; }
  .sez-footer__accordion-panel {
    display: contents;
    max-height: none;
    overflow: visible;
    opacity: 1;
  }
}
