/* Final homepage corrections loaded after the legacy stylesheet. */
.customer-works__rail{
  display:flex!important;
  grid-template-columns:none!important;
  gap:10px!important;
  height:auto!important;
  overflow-x:auto!important;
  padding:0 0 8px!important;
  scroll-behavior:auto;
  scroll-snap-type:none;
  scrollbar-width:thin;
  will-change:scroll-position;
}
.customer-works__rail .customer-work{
  display:block;
  flex:0 0 clamp(132px,11.4vw,180px);
  min-width:0;
  height:auto;
  aspect-ratio:1/1.04;
  overflow:hidden;
  border-radius:8px;
  background:#ddd6ce;
  scroll-snap-align:none;
}
.customer-works__rail .customer-work img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

@media(max-width:820px){
  body:has(.home-header){background:#f6f2ec}
  body:has(.home-header) .shell{width:calc(100% - 28px)}

  .home-header{height:64px}
  .home-header__inner{grid-template-columns:40px minmax(0,1fr) 42px;gap:8px}
  .home-logo strong{font-size:18px;letter-spacing:.075em}
  .home-logo span{margin-top:4px;font-size:6.5px;letter-spacing:.18em}

  .home-hero{
    position:relative!important;
    display:block!important;
    height:clamp(455px,58svh,510px)!important;
    min-height:455px!important;
    margin:0;
    overflow:hidden;
    background:#f6f2ec;
  }
  .home-hero__media{
    position:absolute!important;
    inset:0!important;
    display:block;
    width:100%;
    height:100%;
    overflow:hidden;
    background:#d8cbbd;
  }
  .home-hero__media img{
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:60% 50%;
    filter:sepia(.045) saturate(1.06) brightness(1.015);
  }
  .home-hero::after{
    content:"";
    position:absolute;
    z-index:1;
    inset:0;
    display:block!important;
    width:auto!important;
    background:
      linear-gradient(90deg,rgba(247,243,237,.96) 0%,rgba(247,243,237,.87) 43%,rgba(247,243,237,.18) 78%,rgba(247,243,237,0) 100%),
      linear-gradient(0deg,rgba(247,243,237,.96) 0%,rgba(247,243,237,.72) 34%,rgba(247,243,237,0) 70%);
    pointer-events:none;
  }
  .home-hero__content{
    position:relative!important;
    z-index:2;
    display:flex!important;
    align-items:flex-end!important;
    width:calc(100% - 28px)!important;
    height:100%!important;
    min-height:100%!important;
    padding:20px 0 22px!important;
  }
  .home-hero .hero__copy{width:100%;max-width:390px}
  .home-hero__eyebrow{display:block;margin:0 0 7px;font-size:8px;line-height:1.2;letter-spacing:.16em}
  .home-hero h1{max-width:340px;margin:0 0 9px;font-size:clamp(31px,8.8vw,37px);line-height:.98;letter-spacing:-.05em}
  .home-hero .hero__subtitle{max-width:330px;margin:0 0 13px;font-size:12.5px;line-height:1.38}
  .home-hero .hero__button{display:flex;width:min(210px,58vw);min-width:0;min-height:46px;margin:0 0 13px;padding:0 16px;border-radius:8px;font-size:12px}
  .home-hero .hero-points{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    max-width:none;
    margin:0;
    padding-top:11px;
    gap:7px;
    border-top:1px solid rgba(128,112,96,.28);
  }
  .home-hero .hero-point{display:grid;grid-template-columns:18px minmax(0,1fr);gap:6px;align-items:start}
  .home-hero .hero-point:nth-child(3){display:grid}
  .home-hero .hero-point svg{width:17px;height:17px;margin:0}
  .home-hero .hero-point strong{font-size:8.4px;line-height:1.2}
  .home-hero .hero-point small{display:none}

  .creation-strip{margin-top:0;padding:0 0 27px;background:#f6f2ec}
  .creation-strip__inner{display:block!important;padding:14px 14px 15px;border-radius:12px}
  .creation-strip__heading{display:block!important;width:100%;margin:0 0 11px!important;padding:0!important;text-align:left!important}
  .creation-strip__heading>span{display:block!important;margin:0 0 4px!important;font-size:8px}
  .creation-strip__heading h2{max-width:none!important;margin:0!important;font-size:19px;line-height:1.05;text-align:left!important}
  .creation-list{display:grid!important;grid-template-columns:minmax(0,1fr) 36px!important;gap:8px;overflow:visible!important}
  .creation-scroll{display:flex;gap:8px;min-width:0;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x mandatory;scrollbar-width:none}
  .creation-scroll::-webkit-scrollbar{display:none}
  .creation-card{flex:0 0 min(72vw,246px);min-height:82px;padding:7px;scroll-snap-align:start}
  .creation-card img{width:66px;height:66px}
  .creation-card strong{font-size:11px}
  .creation-card small{font-size:8.5px}
  .creation-next{width:36px;min-width:36px;height:36px;align-self:center}

  .customer-works{min-height:0;margin:0;padding:30px 0 28px;background:#f6f2ec}
  .customer-works>.shell{width:calc(100% - 28px)!important}
  .home-section-head{align-items:end;margin-bottom:14px}
  .home-section-head>div>span{display:block;margin-bottom:6px;font-size:8px}
  .home-section-head h2{font-size:27px;line-height:1.02;letter-spacing:-.04em}
  .home-section-head>a{font-size:0}
  .home-section-head>a b{font-size:21px}
  .customer-works__rail{gap:8px!important;margin-right:-14px;padding-right:14px!important;padding-bottom:7px!important;scrollbar-width:none}
  .customer-works__rail::-webkit-scrollbar{display:none}
  .customer-works__rail .customer-work{flex-basis:145px;border-radius:9px;aspect-ratio:1/1.08}

  .home-header~main .catalog{margin:0;padding:30px 0 46px}
  .catalog-heading>span{display:block;font-size:8px}
  .catalog-heading h2{font-size:29px}
  .home-header~main .catalog-tabs{gap:7px;margin:0 0 16px;padding-bottom:2px}
  .home-header~main .catalog-tabs button{min-height:38px;padding:0 14px;font-size:11px}

  .mobile-bottom{grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%}
  .mobile-bottom>a,.mobile-bottom>button{min-width:0;padding:0;color:#191919;font:inherit;font-size:9px}
  .mobile-bottom span{display:grid;width:20px;height:20px;place-items:center}
  .mobile-bottom span svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .mobile-bottom a:first-child span svg{fill:currentColor;stroke:none}
}

@media(max-width:390px){
  .home-hero{height:455px!important;min-height:455px!important}
  .home-hero__media img{object-position:63% 50%}
  .home-hero h1{max-width:310px;font-size:31px}
  .home-hero .hero__subtitle{max-width:300px;font-size:12px}
  .home-hero .hero-point strong{font-size:7.8px}
  .creation-strip__heading h2{font-size:18px}
  .customer-works__rail .customer-work{flex-basis:136px}
}

/* Compact checkout: all steps stay on one page without marketplace-scale controls. */
.checkout{width:min(780px,calc(100% - 24px));max-height:92vh;border-radius:15px}
.checkout__panel{padding:15px 18px 17px}
.checkout__header{margin-bottom:12px}
.checkout__header h2{font-size:24px;line-height:1.05}
.checkout__header button{width:36px;height:36px;font-size:24px}
.checkout-step--single{padding:10px 0}
.checkout-step--single .checkout-step__heading{margin-bottom:9px}
.checkout-step--single .checkout-step__heading strong{font-size:16px}
.checkout-step--single .checkout-step__heading span{font-size:10px}
.checkout__grid{gap:9px 11px}
.checkout label{gap:5px;font-size:11px}
.checkout input,.checkout select,.checkout textarea{min-height:39px;padding:8px 10px}
.ozon-method__option{min-height:48px!important;padding:6px 10px!important;font-size:12px!important}
.ozon-method__option small{font-size:9.5px}
.city-combobox input{height:41px!important;padding:9px 11px!important;font-size:13px}
.city-combobox__options{top:72px}
.ozon-location-button{min-height:51px;padding:7px 11px}
.ozon-location-button__pin{width:30px;height:30px}
.ozon-location-button strong{font-size:13px}.ozon-location-button small{font-size:10px}
.courier-address input{height:40px}.courier-address>button{min-height:40px;padding:0 14px}
.checkout-step--single .checkout-review{max-height:130px}
.checkout-payment{margin-top:12px}
.checkout-payment legend{margin-bottom:7px;font-size:13px}
.checkout-payment__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.checkout-payment__option{position:relative;display:grid!important;grid-template-columns:46px minmax(0,1fr) 17px;align-items:center!important;min-height:68px!important;gap:10px!important;padding:9px 11px!important;border:1px solid #ded8d1!important;border-radius:12px!important;background:#fff!important;cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.checkout-payment__option:hover{border-color:#c9c0b8!important;transform:translateY(-1px)}
.checkout-payment__option:has(input:checked){border-color:#e30613!important;background:#fff8f8!important;box-shadow:0 6px 18px rgba(227,6,19,.08)}
.checkout-payment__option input{grid-column:3;width:17px!important;height:17px!important;min-height:0!important;margin:0!important;padding:0!important;accent-color:#e30613}
.checkout-payment__copy{grid-column:2;grid-row:1;display:flex!important;min-width:0;flex-direction:column;gap:1px!important}
.checkout-payment__option strong{font-size:12px;line-height:1.2}.checkout-payment__option small{overflow:hidden;color:#776f68;font-size:9.5px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.checkout-payment__copy em{width:max-content;margin-bottom:1px;padding:2px 5px;border-radius:999px;background:#e30613;color:#fff;font-size:7.5px;font-style:normal;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.checkout-payment__icon{grid-column:1;grid-row:1;width:46px;height:38px;display:grid;place-items:center;border-radius:9px;background:#f3efea;color:#1f1c19;font-size:9px;font-weight:900;letter-spacing:-.03em}
.checkout-payment__icon--sbp{padding:4px 2px;background:#fff;box-shadow:inset 0 0 0 1px #ebe6df}
.checkout-payment__icon--sbp img{display:block;width:100%;height:100%;object-fit:contain}
.checkout-payment__icon--tpay{background:#ffd429;color:#151515;font-size:18px;font-family:inherit}
.checkout-payment__icon--card{background:#25211e;color:#fff}
.checkout-payment__icon--card svg{width:29px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.checkout__total{margin:10px 0 4px;padding-top:9px}.checkout__total strong{font-size:20px}
.checkout__total-label span{font-size:14px}.checkout__total-label small,.checkout__total-value small{font-size:9.5px}
.checkout-required-consents{gap:7px;margin-top:11px;padding-top:11px}
.checkout-summary .checkout-required-consents .checkout-consent{display:grid!important;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:8px;margin:0;padding:0;border:1px solid transparent;border-radius:9px;color:#514b45;font-size:10.5px!important;line-height:1.42}
.checkout-summary .checkout-required-consents .checkout-consent.is-invalid{margin:-5px;padding:5px;border-color:#f2bec2;background:#fff7f7}
.checkout-summary .checkout-required-consents .checkout-consent input{appearance:none;width:18px!important;height:18px!important;min-width:18px;min-height:18px!important;margin:0!important;padding:0!important;border:1.5px solid #978f87;border-radius:4px;background:#fff center/12px 12px no-repeat;cursor:pointer}
.checkout-summary .checkout-required-consents .checkout-consent input:checked{border-color:#e30613;background-color:#e30613;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3.1 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.checkout-summary .checkout-required-consents .checkout-consent input:focus-visible{outline:3px solid rgba(227,6,19,.2);outline-offset:2px}
.checkout-summary .checkout-required-consents .checkout-consent span{min-width:0;padding-top:1px}
.checkout-consent-error{display:flex;align-items:flex-start;gap:7px;margin:2px 0 0;padding:8px 10px;border:1px solid #efc3c6;border-radius:9px;background:#fff6f6;color:#8b2027;font-size:10.5px;font-weight:700;line-height:1.35}
.checkout-consent-error::before{content:"!";display:grid;width:16px;height:16px;flex:0 0 16px;place-items:center;border-radius:50%;background:#e30613;color:#fff;font-size:10px;line-height:1}
.checkout-consent-error[hidden]{display:none!important}
.checkout-step--single .checkout-step__actions{margin-top:11px}.checkout-step--single .checkout-step__actions .button{min-height:45px}

.payment-result-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f5f1eb}
.payment-result-card{width:min(520px,100%);padding:34px;border:1px solid #e2dcd5;border-radius:20px;background:#fff;box-shadow:0 20px 60px rgba(30,23,18,.12);text-align:center}
.payment-result-card .logo{display:inline-flex;margin-bottom:28px}.payment-result-card__icon{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 18px;border-radius:50%;background:#e9f7ee;color:#18723d;font-size:30px;font-weight:800}.payment-result-card h1{margin:0 0 12px;font-size:28px}.payment-result-card p{margin:0 auto 23px;color:#706861;line-height:1.55}.payment-result-card .button{width:100%}

@media(max-width:720px){
  .checkout{width:calc(100% - 8px);max-height:99dvh;border-radius:13px}
  .checkout__panel{padding:12px 12px 14px}
  .checkout__header h2{font-size:21px}
  .checkout__grid{grid-template-columns:1fr;gap:8px}
  .checkout__wide{grid-column:1}
  .checkout-step--single{padding:11px 0}
  .ozon-method__option{min-height:52px!important;font-size:11px!important}
  .checkout-payment__grid{grid-template-columns:1fr;gap:6px}
  .checkout-payment__option{grid-template-columns:48px minmax(0,1fr) 17px;min-height:58px!important;align-items:center!important;gap:10px!important;padding:8px 10px!important}
  .checkout-payment__icon{width:48px;height:36px;border-radius:8px}
  .checkout-payment__option small{display:block;font-size:9.5px}.checkout-payment__copy em{font-size:6.5px;padding:1px 4px}
  .checkout-payment__option strong{font-size:11.5px;line-height:1.15}
  .checkout-summary .checkout-required-consents .checkout-consent{font-size:10.5px!important;line-height:1.4}
  .checkout__total{align-items:flex-end;gap:12px}.checkout__total-label{max-width:68%}
  .payment-result-card{padding:26px 20px}.payment-result-card h1{font-size:24px}
}
