:root{
  --ink:#151515;
  --paper:#f5f4f1;
  --white:#ffffff;
  --line:#ddd8cf;
  --soft:#ece8e1;
  --muted:#6f6b64;
  --serif:"Georgia",serif;
  --sans:"Inter",Arial,sans-serif;
}

*{box-sizing:border-box}

html{
  scroll-behavior:smooth;
  overflow-x:hidden;
}

body{
  margin:0;
  min-width:320px;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  font-size:14px;
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select,
textarea{
  font:inherit;
  color:inherit;
  max-width:100%;
}

button{
  cursor:pointer;
}

img{
  display:block;
  max-width:100%;
}

.announcement{
  min-height:34px;
  background:var(--ink);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  font-size:11px;
  line-height:1.4;
  letter-spacing:.04em;
  text-align:center;
}

/* =========================
   HEADER
========================= */

.header{
  min-height:78px;
  padding:0 clamp(18px,5vw,80px);
  display:grid;
  grid-template-columns:minmax(120px,1fr) auto minmax(120px,1fr);
  align-items:center;
  gap:20px;
  border-bottom:1px solid var(--line);
  background:rgba(245,244,241,.95);
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(8px);
}

.brand{
  font-size:22px;
  font-weight:700;
  letter-spacing:.18em;
  white-space:nowrap;
}

.nav{
  display:flex;
  gap:clamp(16px,2vw,28px);
  justify-content:center;
  align-items:center;
  font-size:12px;
  white-space:nowrap;
}

.actions{
  justify-self:end;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:clamp(10px,1.5vw,18px);
  min-width:0;
}

.text-action,
.icon-btn,
.filter,
.btn-link{
  border:0;
  background:none;
  padding:0;
  cursor:pointer;
}

.text-action,
.nav a{
  position:relative;
  white-space:nowrap;
}

.text-action:after,
.nav a:after,
.btn-link:after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:-5px;
  height:1px;
  background:currentColor;
  transition:.2s;
}

.text-action:hover:after,
.nav a:hover:after,
.btn-link:hover:after{
  right:0;
}

.menu-btn{
  display:none;
  justify-self:start;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

/* =========================
   GENERAL
========================= */

main{
  display:block;
  min-width:0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:15px 22px;
  border:1px solid var(--ink);
  background:transparent;
  cursor:pointer;
  font-size:12px;
  min-height:46px;
  text-align:center;
}

.btn-dark{
  background:var(--ink);
  color:#fff;
}

.full{
  width:100%;
}

.eyebrow{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  margin:0 0 16px;
}

/* =========================
   HERO
========================= */

.hero-simple{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  align-items:stretch;
  min-height:calc(100vh - 112px);
  border-bottom:1px solid var(--line);
}

.hero-content{
  padding:clamp(50px,7vw,110px) clamp(24px,6vw,95px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.hero-simple h1,
.newsletter-simple h2{
  font-size:clamp(42px,6vw,84px);
  line-height:.95;
  letter-spacing:-.05em;
  margin:0 0 22px;
  overflow-wrap:anywhere;
}

.hero-text{
  max-width:520px;
  font-size:clamp(15px,1.2vw,16px);
  line-height:1.75;
  color:#4d4b46;
  margin:0 0 30px;
}

.hero-actions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.hero-image{
  position:relative;
  min-height:clamp(520px,60vw,760px);
  overflow:hidden;
  background:#e9e7e2;
}

.hero-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
}

.hero-badge{
  position:absolute;
  left:24px;
  bottom:24px;
  background:rgba(255,255,255,.92);
  padding:14px 16px;
  border:1px solid var(--line);
  max-width:min(280px,calc(100% - 48px));
}

.hero-badge strong{
  display:block;
  font-size:14px;
  margin-bottom:6px;
}

.hero-badge span{
  font-size:12px;
  color:var(--muted);
  line-height:1.5;
}

/* =========================
   BENEFITS
========================= */

.benefits{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border-bottom:1px solid var(--line);
  background:#fff;
}

.benefit{
  padding:24px clamp(20px,2vw,28px);
  border-right:1px solid var(--line);
  min-width:0;
}

.benefit:last-child{
  border-right:0;
}

.benefit strong{
  display:block;
  font-size:14px;
  margin-bottom:8px;
}

.benefit p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  font-size:13px;
}

/* =========================
   CATALOG
========================= */

.products-section{
  padding:clamp(55px,6vw,80px) clamp(18px,5vw,80px);
  background:#fff;
}

.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:30px;
  margin-bottom:28px;
}

.section-head>div:first-child{
  min-width:0;
}

.section-head h2,
.about h2{
  font-size:clamp(30px,3.2vw,40px);
  letter-spacing:-.04em;
  margin:0;
}

.section-head p,
.about p,
.newsletter-simple p{
  line-height:1.7;
  color:var(--muted);
  max-width:560px;
}

.filters{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  flex-shrink:0;
}

.filter{
  font-size:12px;
  border-bottom:1px solid transparent;
  padding-bottom:4px;
}

.filter.active,
.filter:hover{
  border-color:var(--ink);
}

/* ДВЕ БОЛЬШИЕ КАРТОЧКИ НА ПК */

.product-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  width:100%;
}

.product-card{
  background:#fff;
  cursor:pointer;
  min-width:0;
  overflow:hidden;
}

.product-image{
  aspect-ratio:4/5;
  position:relative;
  overflow:hidden;
  background:#ede9e3;
}

.catalog-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.product-card:hover .catalog-photo{
  transform:scale(1.02);
}

.product-art{
  position:absolute;
  inset:0;
}

.product-art:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(145deg,rgba(255,255,255,.72),transparent 42%),
    linear-gradient(330deg,rgba(0,0,0,.06),transparent 55%);
}

.product-garment{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:40%;
  height:64%;
  background:var(--garment,#202020);
  border-radius:28% 28% 6% 6%;
  transition:transform .35s ease;
}

.product-card:hover .product-garment{
  transform:translate(-50%,-52%) scale(1.03);
}

.product-garment:before,
.product-garment:after{
  content:"";
  position:absolute;
  top:4%;
  width:35%;
  height:40%;
  background:inherit;
}

.product-garment:before{
  left:-23%;
  transform:rotate(20deg);
}

.product-garment:after{
  right:-23%;
  transform:rotate(-20deg);
}

.product-art.trouser .product-garment{
  width:35%;
  height:74%;
  border-radius:7% 7% 0 0;
  clip-path:polygon(8% 0,92% 0,100% 100%,58% 100%,50% 32%,42% 100%,0 100%);
}

.product-art.trouser .product-garment:before,
.product-art.trouser .product-garment:after{
  display:none;
}

.product-art.jacket .product-garment{
  width:48%;
  height:58%;
  border-radius:8%;
}

.product-art.cap .product-garment{
  width:48%;
  height:25%;
  border-radius:70% 70% 15% 15%;
  top:54%;
}

.product-art.cap .product-garment:before,
.product-art.cap .product-garment:after{
  display:none;
}

.wishlist{
  position:absolute;
  right:12px;
  top:12px;
  border:0;
  background:rgba(255,255,255,.9);
  width:38px;
  height:38px;
  border-radius:50%;
  font-size:19px;
  cursor:pointer;
  z-index:2;
}

.badge{
  position:absolute;
  left:12px;
  top:14px;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  z-index:2;
  background:rgba(255,255,255,.86);
  padding:6px 8px;
  border-radius:20px;
}

.product-info{
  padding:16px 15px 19px;
}

.product-name{
  font-size:14px;
  margin-bottom:8px;
  overflow-wrap:anywhere;
}

.product-meta{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  color:var(--muted);
  font-size:12px;
}

.product-meta span{
  min-width:0;
  overflow-wrap:anywhere;
}

.product-meta strong{
  color:var(--ink);
  font-weight:600;
  white-space:nowrap;
}

/* =========================
   ABOUT
========================= */

.about{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:40px;
  padding:clamp(55px,6vw,80px) clamp(18px,5vw,80px);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.about-card{
  background:var(--soft);
  padding:clamp(24px,3vw,36px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:280px;
  min-width:0;
}

.about-card ul{
  margin:18px 0 0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.8;
}

/* =========================
   NEWSLETTER
========================= */

.newsletter-simple{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);
  gap:clamp(30px,5vw,70px);
  padding:clamp(55px,6vw,80px) clamp(18px,5vw,80px);
  background:var(--ink);
  color:#fff;
}

.newsletter-simple .eyebrow{
  color:#bbb;
}

.newsletter-simple p{
  color:#c8c5be;
}

.newsletter-simple form{
  align-self:end;
  min-width:0;
}

.newsletter-simple label{
  display:block;
  font-size:11px;
  margin-bottom:10px;
  color:#c8c5be;
}

.newsletter-row{
  display:flex;
  gap:10px;
  width:100%;
}

.newsletter-row input{
  flex:1 1 auto;
  min-width:0;
  padding:15px 16px;
  border:1px solid #6e6a63;
  background:transparent;
  color:#fff;
  outline:none;
}

.newsletter-row button{
  flex:0 0 auto;
  padding:15px 22px;
  border:1px solid #fff;
  background:#fff;
  color:#111;
  cursor:pointer;
}

/* =========================
   FOOTER
========================= */

.footer{
  padding:32px clamp(18px,5vw,80px) 40px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:minmax(180px,1fr) auto auto;
  gap:24px;
  align-items:end;
  background:#fff;
}

.footer-brand{
  min-width:0;
}

.footer-brand p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:13px;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:12px 18px;
  font-size:13px;
}

.footer-copy{
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}

/* =========================
   CART
========================= */

.drawer-backdrop{
  position:fixed;
  inset:0;
  background:#0008;
  opacity:0;
  pointer-events:none;
  transition:.25s;
  z-index:30;
}

.drawer-backdrop.open{
  opacity:1;
  pointer-events:auto;
}

.cart-drawer,
.product-cart{
  position:fixed;
  z-index:31;
  right:0;
  top:0;
  height:100dvh;
  width:min(460px,100vw);
  max-width:100%;
  background:#fff;
  transform:translateX(100%);
  transition:.3s ease;
  display:flex;
  flex-direction:column;
}

.cart-drawer.open,
.product-cart.open{
  transform:translateX(0);
}

.drawer-head{
  padding:24px;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.drawer-head h2{
  font-size:28px;
  letter-spacing:-.03em;
  margin:0;
}

.cart-items{
  padding:0 24px;
  overflow:auto;
  flex:1;
  min-height:0;
}

.cart-row{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) auto;
  gap:14px;
  padding:20px 0;
  border-bottom:1px solid var(--line);
}

.cart-thumb{
  aspect-ratio:4/5;
  background:#ece8e1;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.cart-thumb div{
  width:34%;
  height:62%;
  background:#222;
  border-radius:30% 30% 5% 5%;
}

.cart-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.cart-row h4{
  margin:0 0 8px;
  font-size:13px;
  overflow-wrap:anywhere;
}

.cart-row p{
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
}

.qty-controls{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:10px;
}

.qty-controls button,
.remove{
  border:0;
  background:none;
  padding:0;
  cursor:pointer;
  font-size:12px;
}

.cart-bottom{
  padding:22px 24px;
  border-top:1px solid var(--line);
  background:#fff;
}

.shipping-note{
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
  margin:0 0 16px;
}

.total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:18px;
  font-size:14px;
}

/* =========================
   SEARCH
========================= */

.search-overlay{
  position:fixed;
  inset:0;
  background:rgba(245,244,241,.98);
  z-index:50;
  display:none;
  padding:24px;
  overflow:auto;
}

.search-overlay.open{
  display:block;
}

.search-close{
  position:absolute;
  right:24px;
  top:24px;
  border:0;
  background:none;
  cursor:pointer;
}

.search-box{
  width:min(760px,100%);
  margin:12vh auto 0;
}

.search-box input{
  width:100%;
  border:0;
  border-bottom:1px solid var(--ink);
  background:none;
  font-size:clamp(28px,5vw,40px);
  padding:10px 0;
  outline:0;
}

.search-result{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  border-bottom:1px solid var(--line);
  padding:15px 0;
  font-size:14px;
  cursor:pointer;
}

.search-result span:first-child{
  min-width:0;
  overflow-wrap:anywhere;
}

/* =========================
   TOAST
========================= */

.toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translate(-50%,18px);
  background:var(--ink);
  color:#fff;
  padding:12px 18px;
  font-size:12px;
  opacity:0;
  transition:.25s;
  z-index:70;
  max-width:calc(100vw - 32px);
  text-align:center;
}

.toast.show{
  opacity:1;
  transform:translate(-50%,0);
}

/* ==========================================================
   1200px — НОУТБУКИ
========================================================== */

@media(max-width:1200px){

  .header{
    padding-left:24px;
    padding-right:24px;
  }

  .nav{
    gap:18px;
  }

  .actions{
    gap:12px;
  }

  .hero-content{
    padding-left:40px;
    padding-right:40px;
  }

  .products-section{
    padding-left:30px;
    padding-right:30px;
  }

  .newsletter-simple,
  .about{
    padding-left:30px;
    padding-right:30px;
  }

  .footer{
    padding-left:30px;
    padding-right:30px;
  }

  /* checkout из inline-style */
  .checkout-grid{
    grid-template-columns:minmax(0,1fr) minmax(300px,340px)!important;
    gap:30px!important;
  }

  .checkout-wrap{
    max-width:1100px!important;
  }
}

/* ==========================================================
   1050px — ПЛАНШЕТ / МАЛЕНЬКИЙ НОУТБУК
========================================================== */

@media(max-width:1050px){

  .checkout-grid{
    grid-template-columns:1fr!important;
  }

  .summary{
    position:static!important;
    grid-row:1;
  }

  .checkout-page{
    padding-left:30px!important;
    padding-right:30px!important;
  }
}

/* ==========================================================
   980px
========================================================== */

@media(max-width:980px){

  .header{
    min-height:68px;
    padding:0 18px;
    grid-template-columns:auto 1fr auto;
    gap:12px;
  }

  .brand{
    justify-self:center;
    font-size:18px;
  }

  .menu-btn{
    display:block;
  }

  .nav{
    display:none;
    position:absolute;
    top:68px;
    left:0;
    right:0;
    background:var(--paper);
    padding:18px;
    flex-direction:column;
    align-items:flex-start;
    border-bottom:1px solid var(--line);
    box-shadow:0 12px 30px rgba(0,0,0,.06);
  }

  .nav.open{
    display:flex;
  }

  .actions{
    gap:12px;
  }

  .actions .text-action:first-child{
    display:none;
  }

  .hero-simple{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .hero-content{
    padding:55px 30px;
  }

  .hero-image{
    min-height:520px;
    order:-1;
  }

  .benefits{
    grid-template-columns:1fr;
  }

  .benefit{
    border-right:0;
    border-bottom:1px solid var(--line);
  }

  .benefit:last-child{
    border-bottom:0;
  }

  .products-section{
    padding:60px 24px;
  }

  .section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .about{
    grid-template-columns:1fr;
    padding:60px 24px;
  }

  .newsletter-simple{
    grid-template-columns:1fr;
    padding:60px 24px;
  }

  .newsletter-simple form{
    width:100%;
  }

  .footer{
    grid-template-columns:1fr;
    align-items:start;
    padding:30px 24px 36px;
  }

  .footer-links{
    justify-content:flex-start;
  }
}

/* ==========================================================
   768px — ПЛАНШЕТ / БОЛЬШОЙ ТЕЛЕФОН
========================================================== */

@media(max-width:768px){

  .hero-simple h1,
  .newsletter-simple h2{
    font-size:clamp(38px,9vw,58px);
  }

  .hero-content{
    padding:45px 20px;
  }

  .hero-image{
    min-height:480px;
  }

  .products-section{
    padding:50px 16px;
  }

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

  .product-info{
    padding:13px 11px 15px;
  }

  .about,
  .newsletter-simple{
    padding:50px 18px;
  }

  .footer{
    padding-left:18px;
    padding-right:18px;
  }

  .footer-links{
    flex-direction:column;
    gap:12px;
  }

  .checkout-page{
    padding:24px 16px 60px!important;
  }

  .checkout-head{
    align-items:flex-start!important;
    gap:16px;
  }

  .checkout-head h1{
    font-size:clamp(30px,8vw,38px)!important;
  }

  .field-grid{
    grid-template-columns:1fr!important;
  }

  .field.full{
    grid-column:auto!important;
  }

  .panel{
    padding:20px!important;
  }

  .steps{
    overflow-x:auto!important;
    white-space:nowrap!important;
    scrollbar-width:none;
  }

  .steps::-webkit-scrollbar{
    display:none;
  }

  .summary{
    padding:20px!important;
  }
}

/* ==========================================================
   600px — ТЕЛЕФОН
========================================================== */

@media(max-width:600px){

  .header{
    padding:0 12px;
  }

  .brand{
    font-size:16px;
    letter-spacing:.13em;
  }

  .actions{
    gap:8px;
  }

  .actions .text-action{
    font-size:11px;
  }

  .hero-content{
    padding:40px 16px;
  }

  .hero-text{
    font-size:15px;
  }

  .hero-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .hero-actions .btn{
    width:100%;
  }

  .hero-image{
    min-height:420px;
  }

  .hero-badge{
    left:14px;
    right:14px;
    bottom:14px;
    max-width:none;
  }

  .section-head{
    gap:20px;
  }

  .filters{
    width:100%;
    gap:10px 16px;
  }

  /* НА ТЕЛЕФОНЕ ОДНА БОЛЬШАЯ КАРТОЧКА */

  .product-grid{
    grid-template-columns:1fr;
  }

  .product-image{
    aspect-ratio:4/5;
  }

  .product-info{
    padding:14px 13px 17px;
  }

  .product-name{
    font-size:14px;
  }

  .product-meta{
    display:flex;
  }

  .newsletter-row{
    flex-direction:column;
  }

  .newsletter-row button{
    width:100%;
  }

  .cart-drawer,
  .product-cart{
    width:100vw;
  }

  .drawer-head{
    padding:18px 16px;
  }

  .cart-items{
    padding:0 16px;
  }

  .cart-bottom{
    padding:18px 16px;
  }

  .cart-row{
    grid-template-columns:64px minmax(0,1fr);
    gap:12px;
    position:relative;
    padding-right:5px;
  }

  .cart-row .remove{
    grid-column:2;
    justify-self:start;
    margin-top:6px;
  }

  .search-overlay{
    padding:18px 16px;
  }

  .search-close{
    top:18px;
    right:16px;
  }

  .search-box{
    margin-top:90px;
  }

  .search-result{
    flex-direction:column;
    gap:6px;
  }

  /* checkout */

  .checkout-head{
    flex-direction:column!important;
    margin-bottom:24px!important;
  }

  .checkout-head .btn-link{
    font-size:12px;
  }

  .steps{
    margin-bottom:18px!important;
  }

  .step{
    padding-right:14px!important;
    margin-right:14px!important;
    font-size:10px!important;
  }

  .panel{
    padding:17px!important;
  }

  .panel h2{
    font-size:18px!important;
  }

  .choice{
    padding:13px!important;
  }

  .choice:has(input:checked){
    padding:12px!important;
  }

  .summary-item{
    grid-template-columns:58px minmax(0,1fr) auto!important;
    gap:9px!important;
  }

  .promo{
    grid-template-columns:1fr!important;
  }

  .promo button{
    min-height:42px;
  }

  .success{
    margin:30px 16px!important;
    padding:45px 20px!important;
  }

  .success h1{
    font-size:32px!important;
  }
}

/* ==========================================================
   420px — МАЛЕНЬКИЕ ТЕЛЕФОНЫ
========================================================== */

@media(max-width:420px){

  .announcement{
    font-size:10px;
  }

  .header{
    grid-template-columns:auto 1fr auto;
  }

  .brand{
    font-size:15px;
  }

  .actions{
    gap:6px;
  }

  .actions .text-action{
    font-size:10px;
  }

  .hero-simple h1,
  .newsletter-simple h2{
    font-size:36px;
  }

  .hero-image{
    min-height:360px;
  }

  .products-section{
    padding-left:12px;
    padding-right:12px;
  }

  .wishlist{
    width:36px;
    height:36px;
  }

  .about,
  .newsletter-simple{
    padding-left:14px;
    padding-right:14px;
  }

  .footer{
    padding-left:14px;
    padding-right:14px;
  }

  .checkout-page{
    padding-left:10px!important;
    padding-right:10px!important;
  }

  .panel,
  .summary{
    padding:14px!important;
  }

  .checkout-head h1{
    font-size:30px!important;
  }

  .summary-item{
    grid-template-columns:52px minmax(0,1fr)!important;
  }

  .summary-item>strong{
    grid-column:2;
  }
}