/* Yug Dveri — test layout v2 (modern e-shop) */
:root{
  --y:#FFD500; --y-d:#F2C800; --dark:#1E2024; --hero:#2A2522; --bg:#F6F8F8; --card:#fff;
  --line:#E6E8EA; --muted:#8A9097; --red:#E5252A; --green:#2EA44F;
  --r:10px; --r-btn:7px; --sh:0 1px 3px rgba(0,0,0,.06);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
body{font-family:Montserrat,Arial,sans-serif;font-size:13px;line-height:1.35;color:var(--dark);background:var(--bg)}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
ul{list-style:none}
.container{max-width:1200px;margin:0 auto;padding:0 15px}
.ic{width:16px;height:16px;flex:none;display:inline-block;vertical-align:middle}
.ic-xs{width:12px;height:12px}.ic-sm{width:14px;height:14px}.ic-lg{width:22px;height:22px}.ic-xl{width:28px;height:28px}
.ic-y{color:var(--y)}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:13px;border-radius:var(--r-btn);padding:11px 20px;transition:background .15s,transform .15s}
.btn--y{background:var(--y);color:var(--dark)}
.btn--y:hover{background:var(--y-d)}
.btn--sm{font-size:11px;padding:8px 14px}
.btn--outline{border:1px solid var(--dark);padding:9px 18px;font-size:12px}
.btn--outline:hover{background:var(--dark);color:#fff}

/* 1. topbar */
.topbar{background:var(--dark);color:#fff;font-size:11px;font-weight:500}
.topbar__in{display:flex;justify-content:space-between;align-items:center;height:27px}
.topbar__left,.topbar__right,.topbar__links{display:flex;align-items:center}
.topbar__city{display:flex;align-items:center;gap:5px;margin-right:34px}
.topbar__links a{margin-right:30px;opacity:.9}
.topbar a:hover{color:var(--y)}
.topbar__right{gap:26px}
.topbar__hours,.topbar__login{display:flex;align-items:center;gap:7px}
.topbar__phone{display:flex;align-items:center;gap:7px;font-size:14px;font-weight:700}
.topbar__cart{position:relative;display:flex}
.badge-y{position:absolute;top:-6px;right:-9px;background:var(--y);color:var(--dark);font-size:9px;font-weight:700;border-radius:50%;width:15px;height:15px;display:grid;place-items:center}

/* 2. header */
.header{background:#fff}
.header__in{display:flex;align-items:center;height:70px;gap:24px;overflow:visible}
.logo{display:flex;flex-direction:column;align-items:flex-start;gap:0;flex:none}
.logo img{display:block;height:56px;width:auto;max-width:none}
.logo__tag{text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:.12em;line-height:1.2;white-space:nowrap;color:#3a3d42}
.burger{display:none}
.search{flex:0 1 460px;min-width:0;display:flex;align-items:center;border:1px solid var(--line);border-radius:var(--r-btn);height:36px;position:relative;margin-left:10px}
.search__ic{position:absolute;left:12px;color:var(--muted)}
.search input{flex:1;height:100%;border:0;outline:0;padding:0 12px 0 38px;font:inherit;font-size:12px;background:none;min-width:0}
.search input::placeholder{color:var(--muted)}
.search button{height:36px;margin:-1px -1px -1px 0;background:var(--y);font-weight:700;padding:0 34px;border-radius:0 var(--r-btn) var(--r-btn) 0}
.search button:hover{background:var(--y-d)}
.infos{display:flex;gap:18px;margin-left:auto}
.info{display:flex;align-items:center;gap:8px;font-size:9.5px;line-height:1.4}
.info b{display:block;font-weight:600;white-space:nowrap}
.info div{white-space:nowrap}
.info span{display:block}
.info--phone b{font-size:11.5px;font-weight:700}

/* 3. menu */
.menu{background:var(--y)}
.menu__in{display:flex;justify-content:center;gap:38px;height:32px;align-items:center;font-weight:600;font-size:12px}
.menu a{padding:8px 0;border-bottom:2px solid transparent}
.menu a:hover{border-color:var(--dark)}

/* layout */
.layout{display:grid;grid-template-columns:218px 1fr;gap:10px 12px;padding-top:10px;padding-bottom:10px}
.content{min-width:0;display:flex;flex-direction:column;gap:10px}
.bottom{grid-column:1/-1}

/* 4. sidebar */
.sidebar{display:flex;flex-direction:column;gap:10px}
.catalog{background:#fff;border-radius:var(--r);box-shadow:var(--sh);overflow:hidden}
.catalog__head{display:flex;align-items:center;gap:14px;background:var(--y);font-weight:700;font-size:13px;padding:0 16px;height:34px;border-radius:var(--r) var(--r) 0 0}
.catalog__close{display:none;margin-left:auto;font-size:26px;line-height:1}
.catalog__list li+li{border-top:1px solid var(--line)}
.catalog__list a{display:flex;align-items:center;gap:14px;padding:0 12px 0 14px;min-height:38px;font-size:12px;font-weight:500;line-height:1.25}
.catalog__list a:hover{background:#FFFBE5}
.catalog__list span{flex:1;padding:5px 0}
.ci{width:22px;height:22px;flex:none;color:var(--dark)}
.ci-sale{background:var(--red);color:#fff;border-radius:50%;font-style:normal;font-weight:700;font-size:12px;display:grid;place-items:center}
.chev{color:var(--muted)}
.badge-new{font-style:normal;background:var(--red);color:#fff;font-size:8px;font-weight:700;padding:2px 5px;border-radius:3px;margin-left:5px;vertical-align:2px}
.promo{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px;height:143px;border-radius:var(--r);overflow:hidden;background:#111;padding:0 16px;color:#fff}
.promo img{position:absolute;right:0;top:0;height:100%;width:55%;object-fit:cover}
.promo::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#111 40%,rgba(17,17,17,.55) 62%,rgba(17,17,17,0) 100%);z-index:1}
.promo>span{position:relative;z-index:2}
.promo__title{text-transform:uppercase;font-weight:800;font-size:14.5px;line-height:1.3;max-width:130px}

/* 5. hero */
.hero{position:relative;height:232px;border-radius:var(--r);overflow:hidden;background:var(--hero);color:#fff}
.hero__slides{position:absolute;inset:0}
.hero__slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity .8s ease}
.hero__slide.is-active{opacity:1}
.hero::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(32,27,24,.96) 0%,rgba(32,27,24,.85) 30%,rgba(32,27,24,.25) 58%,rgba(32,27,24,0) 72%)}
.hero__text{position:relative;z-index:2;padding:26px 0 0 33px;max-width:420px}
.hero__pre{text-transform:uppercase;font-size:12px;font-weight:500;letter-spacing:.06em;opacity:.9}
.hero__title{text-transform:uppercase;font-weight:800;font-size:30px;line-height:1.22;margin:9px 0 10px}
.hero__sub{font-size:11px;line-height:1.6;margin-bottom:13px}
.hero__text .btn{font-size:11px;padding:9px 20px}
.hero__adv{position:absolute;z-index:2;right:0;top:0;bottom:0;width:153px;background:rgba(0,0,0,.45);backdrop-filter:blur(2px);padding:24px 0 0 22px;display:flex;flex-direction:column;gap:17px;font-size:9.5px;line-height:1.45}
.hero__adv li{display:flex;align-items:center;gap:12px}
.hero__adv .ic{width:20px;height:20px}
.hero__nav{position:absolute;z-index:3;right:20px;bottom:11px;display:flex;align-items:center;gap:6px;font-size:10px}
.hero__dot{color:rgba(255,255,255,.75);padding:3px 8px;font-weight:500}
.hero__dot.is-active{color:#fff;font-weight:700}
.hero__arr{color:#fff;display:flex;padding:2px 4px}

/* 6. tiles */
.tiles{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.tile{position:relative;height:73px;background:#fff;border-radius:8px;box-shadow:var(--sh);border:1px solid var(--line);overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:2px;padding:0 4px 0 8px;transition:box-shadow .15s}
.tile:hover{box-shadow:0 4px 14px rgba(0,0,0,.1)}
.tile__t{flex:1 1 auto;min-width:0;font-size:9.5px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.tile__img{flex:0 0 52px;height:62px;display:flex;align-items:center;justify-content:center}
.tile__img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.tile--sale{background:#FFF1EF}
.sale-circle{transform:rotate(-8deg);width:46px;height:46px;border-radius:50%;background:var(--red);color:#fff;font-style:normal;font-weight:800;font-size:24px;display:grid;place-items:center;box-shadow:0 3px 8px rgba(229,37,42,.35)}

/* 7. offers */
.offers__head{display:flex;align-items:center;gap:16px;margin-bottom:8px}
.offers__head h2{font-size:17px;font-weight:700;margin-right:auto}
.tabs{display:flex;background:#EEF0F1;border-radius:6px;overflow:hidden}
.tab{font-size:9.5px;font-weight:500;padding:7px 11px;border-radius:5px}
.tab.is-active{background:var(--y);font-weight:600}
.more{display:inline-flex;align-items:center;gap:6px;font-weight:600;font-size:10px;margin-left:12px}
.more:hover,.read:hover{color:#7a6400}
.products{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.card{position:relative;background:#fff;border-radius:8px;box-shadow:var(--sh);border:1px solid var(--line);display:flex;gap:8px;padding:8px 10px 9px 10px;min-height:150px;transition:box-shadow .15s,opacity .25s}
.card:hover{box-shadow:0 4px 14px rgba(0,0,0,.1)}
.card.is-hidden{display:none}
.label{position:absolute;left:8px;top:8px;z-index:2;color:#fff;font-size:9px;font-weight:600;padding:3px 7px;border-radius:4px}
.label--red{background:var(--red)}.label--green{background:var(--green)}
.card__img{flex:0 0 70px;display:flex;align-items:flex-end;justify-content:center;padding-top:14px}
.card__img{background:#fff}
.card__img img{max-height:122px;max-width:100%;width:auto;height:auto;object-fit:contain}
.card__body{flex:1;min-width:0;display:flex;flex-direction:column}
.card h3{font-size:11px;font-weight:600;margin-top:4px}
.card__desc{font-size:9px;color:var(--muted);margin:3px 0 7px;line-height:1.35}
.stock{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:6px}
.stock::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green)}
.price{font-size:15px;font-weight:700;margin:4px 0 7px}
.card__act{display:flex;align-items:center;gap:8px;margin-top:auto}
.btn--cart{font-size:9.5px;padding:9px 12px;gap:7px;white-space:nowrap}
.card__icons{display:flex;flex-direction:column;gap:6px;color:var(--muted)}
.card__icons .ic{width:13px;height:13px}

/* 8. news + about */
.bottom{display:grid;grid-template-columns:minmax(0,1fr) 391px;gap:12px}
.box{background:#fff;border-radius:var(--r);box-shadow:var(--sh);padding:8px 14px 9px}
.box h2{font-size:16px;font-weight:700;line-height:1.2}
.box__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.news__list{display:grid;grid-template-columns:repeat(3,1fr)}
.news__item{display:flex;gap:10px;padding-right:10px}
.news__item+.news__item{border-left:1px solid var(--line);padding-left:10px}
.news__item img{width:88px;height:60px;object-fit:cover;border-radius:5px;flex:none}
.news__item time{font-size:8.5px;color:var(--muted)}
.news__item h3{font-size:9px;font-weight:600;line-height:1.3;margin:3px 0 5px}
.read{font-size:9px;font-weight:500;display:inline-flex;gap:5px;align-items:center;text-decoration:underline;text-underline-offset:2px}
.about h2{margin-bottom:5px}
.about p{font-size:8.6px;line-height:1.28;margin-bottom:5px}
.about .btn{font-size:9px;padding:4px 14px;border-radius:6px}

/* 9. footer */
.footer{background:var(--dark);color:#fff;padding:12px 0 12px;margin-top:2px}
.footer__in{display:grid;grid-template-columns:1.35fr .8fr 1.4fr 1.1fr 1fr 1fr;gap:0}
.fcol{padding:0 20px;font-size:9px;line-height:1.3;display:flex;flex-direction:column;gap:1.5px}
.fcol+.fcol{border-left:1px solid rgba(255,255,255,.12)}
.fcol:first-child{padding-left:0}
.fcol h4{font-size:10px;font-weight:700;margin-bottom:2px}
.fcol a{opacity:.9}
.fcol a:hover{color:var(--y);opacity:1}
.fcol--brand img{display:block;height:48px;width:auto;max-width:none;margin-bottom:8px}
.fcol--brand p{line-height:1.45}
.fcol--salons p{display:flex;gap:9px;line-height:1.3;margin-bottom:2px}
.fcol--salons .ic{width:13px;height:13px;margin-top:1px}
.fcol .all{font-weight:600;display:flex;gap:6px;align-items:center;margin-top:3px}
.fcol--contacts{gap:7px}
.fcol--contacts .ic{width:15px;height:15px}
.fphone{font-size:12.5px;font-weight:700;display:flex;gap:10px;align-items:center;opacity:1!important}
.fcol--contacts p,.fmail{display:flex;gap:10px;align-items:center}
.fmail{text-decoration:underline}
.socials{display:flex;gap:12px;margin-top:4px}
.socials a{width:30px;height:30px;border-radius:7px;background:#fff;color:var(--dark);display:grid;place-items:center;opacity:1}
.socials a:hover{background:var(--y);color:var(--dark)}
.socials .ic{width:18px;height:18px}

.catalog-overlay{display:none}

/* ---------- tablet ---------- */
@media (max-width:1199px){
  .infos .info:not(.info--phone){display:none}
  .menu__in{gap:24px}
  .topbar__links a{margin-right:18px}
  .tiles{grid-template-columns:repeat(3,1fr)}
  .tile__img{flex-basis:62px}
  .products{grid-template-columns:repeat(2,1fr)}
  .card__img{flex-basis:90px}
  .bottom{grid-template-columns:minmax(0,1fr) 330px}
  .footer__in{grid-template-columns:repeat(3,1fr);row-gap:22px}
  .fcol:nth-child(4){border-left:0;padding-left:0}
}
@media (max-width:991px){
  .topbar__links,.topbar__hours{display:none}
  .infos{display:none}
  .search{flex:1 1 auto}
  .layout{grid-template-columns:1fr}
  .burger{display:flex}
  .sidebar{display:contents}
  .catalog{position:fixed;z-index:50;left:0;top:0;bottom:0;width:300px;max-width:86vw;border-radius:0;transform:translateX(-102%);transition:transform .25s ease;overflow-y:auto}
  .catalog__head{border-radius:0;height:52px}
  .catalog__close{display:block}
  body.catalog-open .catalog{transform:none}
  body.catalog-open .catalog-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:40}
  .promo{order:3;height:130px}
  .promo img{width:45%}
  .promo__title{max-width:58%;font-size:clamp(12px,3.6vw,16px)}
  .tiles{grid-template-columns:repeat(3,1fr)}
  .bottom{grid-template-columns:1fr}
  .menu__in{justify-content:flex-start;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
  .menu__in::-webkit-scrollbar{display:none}
}
/* ---------- phone ---------- */
@media (max-width:640px){
  body{font-size:14px}
  .topbar__login span,.topbar__login{display:none}
  .topbar__in{height:34px}
  .topbar__city{margin-right:0}
  .header__in{flex-wrap:wrap;height:auto;padding-top:10px;padding-bottom:10px;gap:10px 14px}
  .logo img{height:42px}
  .logo__tag{display:none}
  .infos{display:none}
  .search{order:5;flex-basis:100%;max-width:none;margin:0}
  .search button{padding:0 18px}
  .menu__in{gap:22px;padding:0 16px}
  .hero{height:auto;min-height:0}
  .hero::before{background:linear-gradient(180deg,rgba(32,27,24,.6) 0%,rgba(32,27,24,.92) 100%)}
  .hero__text{padding:22px 18px 46px;max-width:none}
  .hero__title{font-size:26px}
  .hero__sub{font-size:13px}
  .hero__adv{display:none}
  .tiles{grid-template-columns:repeat(2,1fr)}
  .tile__t{font-size:12px}
  .offers__head{flex-wrap:wrap;gap:10px}
  .offers__head h2{flex-basis:100%}
  .tabs{order:3;flex-basis:100%;overflow-x:auto}
  .tab{font-size:12px;padding:8px 12px;white-space:nowrap}
  .more{font-size:12px}
  .offers__head .more{position:absolute;right:0}
  .offers{position:relative}
  .products{grid-template-columns:1fr}
  .card__img{flex-basis:100px}
  .card__img img{max-height:170px}
  .card h3{font-size:14px}
  .card__desc,.stock{font-size:12px}
  .price{font-size:19px}
  .btn--cart{font-size:12px}
  .news__list{grid-template-columns:1fr;gap:14px}
  .news__item,.news__item+.news__item{border-left:0;padding:0}
  .news__item+.news__item{border-top:1px solid var(--line);padding-top:14px}
  .news__item h3{font-size:13px}
  .news__item time,.read{font-size:11px}
  .about p{font-size:13px}
  .box h2{font-size:19px}
  .footer__in{grid-template-columns:1fr 1fr;row-gap:22px}
  .fcol{padding:0 12px 0 0!important;border-left:0!important;font-size:12px}
  .fcol h4{font-size:13px}
  .fcol--brand,.fcol--salons,.fcol--contacts{grid-column:1/-1}
}
