/* SOL.MEBEL V14 - compact mobile layout. Desktop remains identical to V13.
   Presentation-only: preserve Cloudflare APIs, D1-backed content and owner tools. */
@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  body.sm-v13.sol-site-unified { overflow-x:clip; }
  body.sm-v13.sol-site-unified .container { width:calc(100% - 24px); }
  body.sm-v13.sol-site-unified .section { scroll-margin-top:68px; }

  /* Simple, short header, with an accessible menu toggle */
  body.sm-v13.sol-site-unified .site-header .header-inner {
    min-height:60px!important; padding:7px 0!important;
    display:flex;flex-wrap:nowrap!important;align-items:center;gap:8px;
  }
  body.sm-v13.sol-site-unified .site-header .brand {max-width:calc(100% - 101px);gap:9px;min-width:0;}
  body.sm-v13.sol-site-unified .site-header .brand-logo {width:37px;height:37px;}
  body.sm-v13.sol-site-unified .site-header .brand-text strong {font-size:.94rem;}
  body.sm-v13.sol-site-unified .site-header .mobile-toggle {display:inline-flex;min-height:40px;padding:7px 13px;font-size:.84rem;border-radius:11px;}
  body.sm-v13.sol-site-unified .site-header.open .nav {top:59px;left:0;right:0;z-index:100;}

  /* Lead with the furniture photography, then fit the pitch into a short panel */
  body.sm-v13.sol-home-premium .hero {padding:10px 0 4px!important;}
  body.sm-v13.sol-home-premium .hero > .container {width:calc(100% - 20px)!important;}
  body.sm-v13.sol-home-premium .hero-shell {display:flex;flex-direction:column;gap:0;border-radius:20px;min-height:0;}
  body.sm-v13.sol-home-premium .hero-visual.hero-slider {
    order:0!important;align-self:stretch;height:clamp(182px,55vw,250px)!important;
    min-height:0!important;aspect-ratio:auto!important;margin:8px 8px 0!important;
    border-radius:15px;flex-shrink:0;
  }
  body.sm-v13.sol-home-premium .hero-copy {
    order:1!important;padding:17px 17px 19px!important;
    justify-content:flex-start;
  }
  body.sm-v13.sol-home-premium .hero-copy::after {inset:14px auto 14px 7px;}
  body.sm-v13.sol-home-premium .hero-edition {display:none!important;}
  body.sm-v13.sol-home-premium .hero-copy .eyebrow {
    font-size:.62rem;line-height:1.3;letter-spacing:.075em;margin:0 0 9px!important;
  }
  body.sm-v13.sol-home-premium .hero h1 {
    font-size:clamp(2.25rem,9.6vw,3rem)!important;
    line-height:.99;letter-spacing:-.052em;margin:0 0 10px!important;
  }
  body.sm-v13.sol-home-premium .hero h1::after {margin-top:11px;width:33px;}
  body.sm-v13.sol-home-premium .hero-copy > p {
    font-size:.83rem;line-height:1.48;margin:0 0 13px!important;
  }
  body.sm-v13.sol-home-premium .hero-actions {
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.83fr)!important;
    margin:0 0 14px!important;gap:8px;
  }
  body.sm-v13.sol-home-premium .hero-actions .btn {
    min-height:41px!important;padding:8px 7px!important;font-size:.72rem!important;
    white-space:normal;text-align:center;border-radius:11px;
  }
  body.sm-v13.sol-home-premium .hero-actions .btn-primary::after {font-size:.96rem;margin-left:0;}
  body.sm-v13.sol-home-premium .hero-points {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important;}
  body.sm-v13.sol-home-premium .hero-point {
    min-height:0!important;flex-direction:row!important;align-items:center!important;
    gap:6px!important;padding:8px!important;border-radius:10px!important;
  }
  body.sm-v13.sol-home-premium .hero-point i {display:none!important;}
  body.sm-v13.sol-home-premium .hero-point strong {font-size:.69rem!important;line-height:1.25;}
  body.sm-v13.sol-home-premium .hero-point span {font-size:.64rem!important;margin-top:3px;line-height:1.18;}
  body.sm-v13.sol-home-premium .hero-visual-overlay {top:9px;left:10px;right:10px;font-size:.52rem;gap:4px;}
  body.sm-v13.sol-home-premium .hero-visual-brand {min-height:24px;padding:5px 9px;}
  body.sm-v13.sol-home-premium .hero-slider figcaption {
    font-size:.96rem!important;bottom:12px;left:12px;right:72px;line-height:1.18;
  }
  body.sm-v13.sol-home-premium .hero-slider .hero-nav {width:28px;height:28px;font-size:19px;}
  body.sm-v13.sol-home-premium .hero-slider .hero-dots {bottom:9px;right:9px;gap:4px;padding:5px 7px;}
  body.sm-v13.sol-home-premium .hero-slider .hero-dot {width:7px;height:7px;}
  body.sm-v13.sol-home-premium .hero-process {display:none!important;} /* steps are shown in About */

  /* Four services remain a genuine two-column gallery, not four tall cards */
  body.sm-v13.sol-home-premium .hero + .sol-services-section {padding:10px 0 24px!important;}
  body.sm-v13.sol-home-premium .hero + .sol-services-section > .container {
    width:calc(100% - 20px)!important;padding:17px 12px 15px!important;border-radius:18px!important;
  }
  body.sm-v13.sol-home-premium .services-heading {gap:7px!important;margin-bottom:14px!important;}
  body.sm-v13.sol-home-premium .services-kicker {font-size:.58rem;margin:0 0 7px;letter-spacing:.09em;}
  body.sm-v13.sol-home-premium .services-heading h2 {
    font-size:clamp(1.58rem,6.65vw,2.1rem)!important;line-height:1.08;
  }
  body.sm-v13.sol-home-premium .services-lead {font-size:.75rem;line-height:1.43;}
  body.sm-v13.sol-home-premium .hero + .sol-services-section .features {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px;}
  body.sm-v13.sol-home-premium .hero + .sol-services-section .feature {padding:0 0 11px!important;border-radius:12px;min-height:0;}
  body.sm-v13.sol-home-premium .hero + .sol-services-section .feature-photo {aspect-ratio:1.42/1!important;}
  body.sm-v13.sol-home-premium .hero + .sol-services-section .feature h3 {margin:10px 0 5px;padding:0 10px;font-size:.87rem;line-height:1.2;}
  body.sm-v13.sol-home-premium .hero + .sol-services-section .feature p {
    padding:0 10px;font-size:.69rem;line-height:1.4;margin:0 0 8px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  body.sm-v13.sol-home-premium .hero + .sol-services-section .feature-link {font-size:.69rem;margin:0 10px;padding-top:9px;gap:3px;}
  body.sm-v13.sol-home-premium .hero + .sol-services-section .feature-link span {width:20px;height:20px;flex:0 0 20px;}

  /* Prices in a 2xN desktop-like grid, without cutting off the amounts or edit buttons */
  body.sm-v13.sol-home-premium .prices-section {padding:30px 0 35px!important;}
  body.sm-v13.sol-home-premium .prices-section>.container {width:calc(100% - 24px)!important;}
  body.sm-v13.sol-home-premium .prices-section::after {inset:7px;border-radius:20px;}
  body.sm-v13.sol-home-premium .prices-head {gap:6px!important;margin-bottom:15px!important;}
  body.sm-v13.sol-home-premium .prices-head h2 {font-size:clamp(1.93rem,8vw,2.52rem)!important;line-height:1.04;}
  body.sm-v13.sol-home-premium .prices-head p {font-size:.77rem;line-height:1.43;}
  body.sm-v13.sol-home-premium .price-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  body.sm-v13.sol-home-premium .price-card {border-radius:15px!important;min-width:0;}
  body.sm-v13.sol-home-premium .price-image {aspect-ratio:1.27 / 1!important;border-radius:14px 14px 0 0;}
  body.sm-v13.sol-home-premium .price-image:before {top:7px;left:7px;width:30px;height:25px;font-size:.69rem;}
  body.sm-v13.sol-home-premium .price-body {padding:11px 10px 12px!important;}
  body.sm-v13.sol-home-premium .price-label {font-size:.62rem;padding:5px 7px;margin-bottom:9px;}
  body.sm-v13.sol-home-premium .price-value {font-size:.78rem;margin-bottom:9px;line-height:1.15;white-space:normal;}
  body.sm-v13.sol-home-premium .price-value strong {font-size:clamp(1.37rem,5.9vw,1.7rem)!important;}
  body.sm-v13.sol-home-premium .price-body p {
    font-size:.72rem!important;line-height:1.42;margin-bottom:11px;min-height:0;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
    flex:1 1 auto;
  }
  body.sm-v13.sol-home-premium .price-link {gap:4px;padding-top:10px;font-size:.68rem;}
  body.sm-v13.sol-home-premium .price-link span {width:24px;height:24px;flex:0 0 24px;font-size:1rem;}
  body.sm-v13.sol-home-premium .price-disclaimer {grid-template-columns:34px minmax(0,1fr)!important;gap:9px;padding:12px!important;margin-top:12px;}
  body.sm-v13.sol-home-premium .price-disclaimer-icon {width:34px;height:34px;}
  body.sm-v13.sol-home-premium .price-disclaimer strong {font-size:.78rem;}
  body.sm-v13.sol-home-premium .price-disclaimer span {font-size:.7rem;line-height:1.4;}
  body.sm-v13.sol-home-premium .price-disclaimer .btn {grid-column:1/-1;min-height:39px;padding:9px 12px;}

  /* Portfolio 2-up on homepage AND separate Works page */
  body.sm-v13.sol-site-unified .sm13-work-feature {padding:29px 0!important;}
  body.sm-v13.sol-site-unified .section-head {gap:8px!important;margin-bottom:15px!important;}
  body.sm-v13.sol-site-unified .section-head h2 {font-size:clamp(1.75rem,7.6vw,2.25rem)!important;line-height:1.08;}
  body.sm-v13.sol-site-unified .section-head p {font-size:.78rem;line-height:1.45;}
  body.sm-v13.sol-site-unified .solutions-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
  body.sm-v13.sol-site-unified .solution-card.real-work {border-radius:15px!important;min-width:0;}
  body.sm-v13.sol-site-unified .solution-card.real-work .solution-image {aspect-ratio:1.22/1!important;}
  body.sm-v13.sol-site-unified .solution-card.real-work .solution-body {padding:11px 10px 12px!important;}
  body.sm-v13.sol-site-unified .solution-card.real-work .tag {font-size:.6rem;padding:5px 7px;line-height:1.2;}
  body.sm-v13.sol-site-unified .solution-card.real-work h3 {font-size:.94rem!important;line-height:1.18;margin:9px 0 6px;}
  body.sm-v13.sol-site-unified .solution-card.real-work .solution-body p {
    font-size:.7rem;line-height:1.38;margin:0 0 9px;min-height:0;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
  }
  body.sm-v13.sol-site-unified .solution-card.real-work .solution-link {font-size:.69rem;padding-top:8px;margin-top:auto;}
  body.sm-v13.sol-site-unified .solution-card.real-work .sm-inline-actions {padding:6px!important;gap:4px;}
  body.sm-v13.sol-site-unified .sm-inline-actions button {font-size:10px!important;padding:7px 3px!important;min-width:0;}

  /* About, order steps, FAQs, reviews: same premium style, much tighter rhythm */
  body.sm-v13.sol-site-unified #about {padding:26px 0!important;}
  body.sm-v13.sol-site-unified #about .split {grid-template-columns:1fr;gap:12px!important;}
  body.sm-v13.sol-site-unified #about .panel {padding:19px!important;border-radius:19px!important;}
  body.sm-v13.sol-site-unified #about .panel h3 {font-size:1.65rem!important;margin-bottom:11px;}
  body.sm-v13.sol-site-unified #about .panel p {font-size:.82rem;line-height:1.5;}
  body.sm-v13.sol-site-unified #about .checks {gap:8px;margin-top:12px;}
  body.sm-v13.sol-site-unified #about .check {font-size:.82rem;gap:9px;line-height:1.35;}
  body.sm-v13.sol-site-unified #about .check:before {width:20px;height:20px;flex:0 0 20px;font-size:.75rem;}
  body.sm-v13.sol-site-unified #about .steps {gap:10px;}
  body.sm-v13.sol-site-unified #about .step {grid-template-columns:30px minmax(0,1fr);gap:8px!important;}
  body.sm-v13.sol-site-unified #about .step-num {width:30px;height:30px;font-size:.77rem;}
  body.sm-v13.sol-site-unified #about .step h4 {font-size:.85rem;margin-bottom:2px;}
  body.sm-v13.sol-site-unified #about .step p {font-size:.76rem;line-height:1.35;}
  body.sm-v13.sol-site-unified .faq-section {padding:29px 0!important;}
  body.sm-v13.sol-site-unified .faq-head {margin-bottom:13px;}
  body.sm-v13.sol-site-unified .faq-head h2 {font-size:1.85rem!important;line-height:1.08;}
  body.sm-v13.sol-site-unified .faq-head p {font-size:.78rem;line-height:1.45;}
  body.sm-v13.sol-site-unified .faq-list {grid-template-columns:1fr!important;gap:8px;}
  body.sm-v13.sol-site-unified .faq-item {border-radius:13px!important;}
  body.sm-v13.sol-site-unified .faq-item summary {padding:12px 41px 12px 13px;min-height:46px;font-size:.82rem;line-height:1.3;}
  body.sm-v13.sol-site-unified .faq-item summary::after {right:10px;}
  body.sm-v13.sol-site-unified .faq-answer {padding:0 13px 14px;line-height:1.46;font-size:.78rem;}
  body.sm-v13.sol-site-unified .reviews-section {padding:32px 0 36px!important;}
  body.sm-v13.sol-site-unified .review-intro h2 {font-size:clamp(1.92rem,7.7vw,2.43rem)!important;line-height:1.1;}
  body.sm-v13.sol-site-unified .review-intro-text {font-size:.79rem;line-height:1.5;}
  body.sm-v13.sol-site-unified .review-cta {padding:13px!important;gap:9px;border-radius:16px;}
  body.sm-v13.sol-site-unified .review-cta-icon {width:37px;height:37px;flex:0 0 37px;}
  body.sm-v13.sol-site-unified .review-cta-copy strong {font-size:1.18rem!important;line-height:1.2;}
  body.sm-v13.sol-site-unified .review-cta-copy small {font-size:.7rem;line-height:1.3;}
  body.sm-v13.sol-site-unified .review-cta-arrow {width:28px;height:28px;flex:0 0 28px;}
  body.sm-v13.sol-site-unified .reviews-grid {gap:10px;}
  body.sm-v13.sol-site-unified .review-card {min-height:0;padding:17px!important;border-radius:16px;}
  body.sm-v13.sol-site-unified .review-card p {font-size:.82rem;line-height:1.5;}
  body.sm-v13.sol-site-unified .review-card .review-stars {margin:10px 0 8px;}
  body.sm-v13.sol-site-unified .sm13-final-section {padding:27px 0 45px!important;}
  body.sm-v13.sol-site-unified .cta-strip {padding:22px 18px!important;min-height:0!important;border-radius:20px;gap:12px;}
  body.sm-v13.sol-site-unified .cta-strip h2 {font-size:1.9rem!important;line-height:1.1;}
  body.sm-v13.sol-site-unified .cta-strip p {font-size:.82rem;line-height:1.5;}
  body.sm-v13.sol-site-unified .cta-actions {display:grid;grid-template-columns:1fr 1fr;gap:8px;}
  body.sm-v13.sol-site-unified .cta-actions .btn {min-height:40px;padding:9px 8px;font-size:.78rem;}

  /* Inner pages, owner and account pages inherit compact proportions */
  body.sm-v13.sol-site-unified .page-hero {padding:17px 0 10px!important;}
  body.sm-v13.sol-site-unified .page-hero>.container {width:calc(100% - 24px)!important;}
  body.sm-v13.sol-site-unified .page-hero-box {padding:22px 18px!important;min-height:0!important;border-radius:19px!important;}
  body.sm-v13.sol-site-unified .page-hero-box h1 {font-size:clamp(1.92rem,7.7vw,2.42rem)!important;}
  body.sm-v13.sol-site-unified .page-hero-box p {font-size:.81rem;line-height:1.46;}
  body.sm-v13.sol-site-unified .sm13-inner-section {padding:23px 0 36px!important;}
  body.sm-v13.sol-site-unified .contact-grid {gap:11px;}
  body.sm-v13.sol-site-unified .contact-card {padding:18px!important;border-radius:18px;}
  body.sm-v13.sol-site-unified .contact-card h2 {font-size:1.6rem;}
  body.sm-v13.sol-site-unified .contact-item {padding:12px;border-radius:12px;}
  body.sm-v13.sol-site-unified .qr-card {padding:13px;border-radius:13px;}
  body.sm-v13.sol-site-unified .privacy-card {padding:17px;border-radius:16px;}
  body.sm-v13.sol-site-unified .footer {padding:18px 0 54px!important;}
  body.sm-v13.sol-site-unified .footer-box {padding:20px!important;border-radius:20px;}
  body.sm-v13.sol-site-unified .footer-grid {gap:12px;}
  body.sm-v13.sol-site-unified .footer-box p,body.sm-v13.sol-site-unified .footer-box li,body.sm-v13.sol-site-unified .footer-box a {font-size:.81rem;line-height:1.55;}

  /* Less obstruction by social shortcuts; owner commands stay accessible by swiping. */
  body.sm-v13.sol-site-unified .social-floats {right:8px;bottom:72px;gap:7px;}
  body.sm-v13.sol-site-unified .social-float,body.sm-v13.sol-site-unified .social-float img {width:40px;height:40px;}
  html.sm-owner body.sm-v13.sol-site-unified .social-floats {bottom:87px;}
  body.sm-v13.sol-site-unified .sm-owner-bar {
    bottom:7px!important;width:calc(100vw - 14px)!important;max-width:calc(100vw - 14px)!important;
    display:flex;flex-wrap:nowrap!important;justify-content:flex-start!important;
    gap:5px;padding:7px!important;border-radius:12px;
    overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;
  }
  body.sm-v13.sol-site-unified .sm-owner-brand {width:auto!important;flex:0 0 auto;white-space:nowrap;}
  body.sm-v13.sol-site-unified .sm-owner-bar button,
  body.sm-v13.sol-site-unified .sm-owner-bar .sm-owner-link {flex:0 0 auto;padding:7px 8px!important;font-size:10px!important;}
  html.sm-owner.sm-editing body.sm-v13.sol-site-unified main {padding-bottom:78px!important;}
}
@media (max-width:350px) {
  body.sm-v13.sol-home-premium .hero-actions {grid-template-columns:1fr!important;}
  body.sm-v13.sol-home-premium .price-grid,
  body.sm-v13.sol-site-unified .solutions-grid {grid-template-columns:1fr!important;}
  body.sm-v13.sol-site-unified .site-header .brand-text strong {font-size:.86rem;}
}
