/* ==========================================================================
   Avalon Parts — головна сторінка
   ========================================================================== */

:root{
  --bg:        #f5f5f5;
  --surface:   #ffffff;
  --ink:       #121212;
  --muted:     #979797;
  --line:      #ededed;
  --accent:    #ffea00;
  --accent-dk: #f2dd00;
  --on-accent: #121212;   /* текст на акцентному фоні */
  --accent-l1: #fff9b0;   /* світлий тон акценту (банер) */
  --accent-l2: #ffef73;
  --dark:      #121212;
  --green:     #2cb742;
  --radius:    3px;
  --radius-lg: 4px;
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.07);
  --container: 1280px;
}

/* ---------- ТИМЧАСОВО: палітри перемикача основного кольору ---------- */
:root[data-theme="orange"]{
  --accent:#ff7a00; --accent-dk:#e86e00; --on-accent:#ffffff;
  --accent-l1:#ffe4c7; --accent-l2:#ffc287;
}
:root[data-theme="red"]{
  --accent:#e02424; --accent-dk:#c51c1c; --on-accent:#ffffff;
  --accent-l1:#ffdada; --accent-l2:#ffb0b0;
}
:root[data-theme="blue"]{
  --accent:#1668e3; --accent-dk:#1156bf; --on-accent:#ffffff;
  --accent-l1:#d8e7ff; --accent-l2:#a9caff;
}
:root[data-theme="green"]{
  --accent:#17a34a; --accent-dk:#128a3e; --on-accent:#ffffff;
  --accent-l1:#d4f5e1; --accent-l2:#a3e8c0;
}

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Roboto',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{list-style:none;margin:0;padding:0}
h1,h2,h3{margin:0;line-height:1.15;letter-spacing:-.02em}
button{font:inherit}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:44px;padding:0 22px;
  border:1px solid transparent;border-radius:var(--radius);
  font-size:14px;font-weight:700;white-space:nowrap;
  text-transform:uppercase;letter-spacing:.04em;
  cursor:pointer;transition:background .18s,color .18s,border-color .18s,transform .08s;
}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--accent);color:var(--on-accent)}
.btn--primary:hover{background:var(--accent-dk)}
.btn--dark{background:var(--ink);color:#fff}
.btn--dark:hover{background:#2e2e2e}
.btn--light{background:#fff;color:var(--ink)}
.btn--light:hover{background:#f0f0f0}
.btn--ghost{background:transparent;color:var(--ink);border-color:#d9d9d9}
.btn--ghost:hover{background:#fff;border-color:var(--ink)}
.btn--sm{height:38px;padding:0 16px;font-size:13px}
.btn--lg{height:52px;padding:0 32px;font-size:15px}
.btn--block{width:100%}

.badge{
  display:inline-block;padding:5px 12px;border-radius:2px;
  background:rgba(18,18,18,.12);color:var(--ink);
  font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
}
.badge--dark{background:var(--accent);color:var(--on-accent)}

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.header{
  background:var(--surface);
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:50;
}
.header__inner{
  display:flex;align-items:center;gap:24px;
  min-height:78px;
}

/* Логотип */
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.logo__mark{
  width:40px;height:40px;flex:0 0 40px;
  display:grid;place-items:center;border-radius:3px;
  background:var(--accent);color:var(--on-accent);
}
.logo__mark svg{width:27px;height:27px}
.logo__text{display:flex;flex-direction:column;line-height:1}
.logo__name{font-size:19px;font-weight:900;letter-spacing:.04em}
.logo__sub{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:.22em}
.logo--light .logo__name{color:#fff}
.logo--light .logo__sub{color:#8f8f8f}

/* Пошук */
.search{
  position:relative;flex:1 1 auto;min-width:0;
  display:flex;align-items:center;gap:8px;
  background:#fff;
  border:1px solid #d9d9d9;
  border-radius:var(--radius);
  padding:4px 4px 4px 14px;
  transition:border-color .18s;
}
.search:focus-within{border-color:var(--ink)}
.search__icon{width:20px;height:20px;color:var(--muted);flex:0 0 20px}
.search__input{
  flex:1;min-width:0;height:36px;
  border:0;background:transparent;outline:none;
  font-size:15px;color:var(--ink);
}
.search__input::placeholder{color:var(--muted)}
.search__btn{height:38px;padding:0 24px;border-radius:2px;font-size:13px}

/* Телефон / корзина / вхід */
.header__actions{display:flex;align-items:center;gap:6px;flex-shrink:0}

.hphone{
  display:flex;align-items:center;gap:10px;
  padding:8px 14px 8px 10px;margin-right:6px;
  border-radius:12px;transition:background .18s;
}
.hphone:hover{background:var(--bg)}
.hphone__icon{
  flex:0 0 34px;width:34px;height:34px;
  display:grid;place-items:center;border-radius:3px;
  background:var(--accent);color:var(--on-accent);
}
.hphone__icon svg{width:19px;height:19px}
.hphone__text{display:flex;flex-direction:column;line-height:1.25}
.hphone__num{font-size:15px;font-weight:700;white-space:nowrap}
.hphone__note{font-size:12px;color:var(--muted);white-space:nowrap}
.haction{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:8px 12px;border-radius:3px;
  font-size:11px;font-weight:500;color:var(--ink);
  text-transform:uppercase;letter-spacing:.04em;
  transition:background .18s;
}
.haction:hover{background:var(--bg)}
.haction__icon{position:relative;width:24px;height:24px}
.haction__badge{
  position:absolute;top:-5px;right:-8px;
  min-width:17px;height:17px;padding:0 4px;
  display:grid;place-items:center;border-radius:100px;
  background:var(--accent);color:var(--on-accent);font-size:11px;font-weight:700;line-height:1;
}
.haction__label{color:var(--muted)}

/* Бургер */
.burger{
  display:none;width:44px;height:44px;order:3;
  background:var(--accent);border:0;border-radius:3px;
  cursor:pointer;padding:0;
}
.burger span{
  display:block;width:18px;height:2px;margin:3px auto;
  background:var(--on-accent);border-radius:2px;transition:.2s;
}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(5px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-5px) rotate(-45deg)}

/* ---------- Меню ---------- */
.nav{border-top:1px solid var(--line);background:var(--surface)}
.nav .container{display:flex;align-items:center;justify-content:space-between;gap:20px}
.nav__list{display:flex;flex-wrap:wrap;gap:4px}
.nav__list a{
  display:block;padding:13px 14px;
  font-size:13px;font-weight:700;color:var(--ink);
  text-transform:uppercase;letter-spacing:.05em;
  border-bottom:3px solid transparent;
  transition:border-color .18s;
}
.nav__list a:hover{border-bottom-color:var(--accent)}
.nav__note{font-size:13px;color:var(--muted);white-space:nowrap}
.nav__note:hover{color:var(--ink)}

/* ==========================================================================
   ХЕРО
   ========================================================================== */
.hero{padding:28px 0 8px}
.hero__grid{
  display:grid;grid-template-columns:1.15fr 1fr;gap:20px;
}
.hero-card{
  position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:280px;padding:36px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
}
.hero-card__body{position:relative;z-index:2;flex:1 1 auto;min-width:0}
.hero-card__title{margin:14px 0 12px;font-size:clamp(21px,2.1vw,30px);font-weight:900}
.hero-card__text{margin:0 0 22px;font-size:15px;line-height:1.55;opacity:.9}
.hero-card__art{
  position:relative;z-index:1;flex:0 0 auto;
  width:clamp(190px,36%,360px);
  margin:0 8px 0 0;
}
.hero-card__art svg{width:100%;height:auto;display:block}

/* Фігурне кадрування фото + зміщена рамка-контур */
.shot{position:relative;display:block}
.shot img{
  position:relative;z-index:1;
  display:block;width:100%;height:auto;
  aspect-ratio:1/1;object-fit:cover;object-position:center;
  border-radius:0 46% 0 46%;
}
.shot::before{
  content:"";position:absolute;z-index:0;
  top:-16px;right:-16px;bottom:16px;left:16px;
  border:4px solid currentColor;
  border-radius:0 46% 0 46%;
  pointer-events:none;
}
.shot--ink{color:var(--ink)}
.shot--accent{color:var(--accent)}

.hero-card--banner{
  background:linear-gradient(135deg,var(--accent-l1) 0%,var(--accent-l2) 100%);
  color:var(--ink);
}
.hero-card--banner::after{
  content:"";position:absolute;right:-70px;top:-70px;
  width:280px;height:280px;border-radius:50%;
  background:rgba(18,18,18,.04);
}
.hero-card--banner .hero-card__text{opacity:.75}
.hero-card--expert{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.hero-card--expert .hero-card__text{color:var(--muted);opacity:1}

/* ==========================================================================
   СЕКЦІЇ
   ========================================================================== */
.section{padding:44px 0}
.section--tight{padding-top:16px}
.section__head{margin-bottom:22px}
.section__head--row{
  display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;
}
.section__title{
  font-size:24px;font-weight:900;
  text-transform:uppercase;letter-spacing:.02em;
}
.section__sub{margin:8px 0 0;color:var(--muted);font-size:15px}
.link-more{
  font-size:13px;font-weight:700;color:var(--ink);
  text-transform:uppercase;letter-spacing:.04em;
  border-bottom:3px solid var(--accent);padding-bottom:2px;
}
.link-more:hover{border-bottom-color:var(--ink)}

/* ---------- Підбір по авто ---------- */
.picker{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:24px;
  box-shadow:var(--shadow);
}
.picker__grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;
}
.picker__foot{display:flex;gap:12px;margin-top:20px;flex-wrap:wrap}

.field{display:flex;flex-direction:column;gap:6px}
.field__label{
  font-size:11px;font-weight:700;color:var(--ink);
  text-transform:uppercase;letter-spacing:.06em;
}
.field__select,
.field__input{
  width:100%;height:48px;padding:0 16px;
  background:#fff;
  border:1px solid #d9d9d9;border-radius:var(--radius);
  font-size:15px;color:var(--ink);font-family:inherit;
  outline:none;transition:border-color .18s,background .18s;
}
.field__select{
  appearance:none;cursor:pointer;padding-right:44px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121212' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:18px;
}
.field__select:focus,
.field__input:focus{border-color:var(--ink)}
.field__select:disabled{opacity:.55;cursor:not-allowed}
.field__input--area{height:auto;padding:13px 16px;resize:vertical;line-height:1.5}
.field__input::placeholder{color:var(--muted)}
.field--error .field__input{border-color:#e03131;background:#fff5f5}

/* ---------- Товари ---------- */
.products{
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px;
}
.product{
  display:flex;flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius-lg);
  overflow:hidden;transition:box-shadow .2s,transform .2s,border-color .2s;
}
.product:hover{box-shadow:var(--shadow);transform:translateY(-2px);border-color:#dcdcd7}
.product__media{
  position:relative;display:grid;place-items:center;
  aspect-ratio:4/3;background:#fff;padding:18px;
  border-bottom:1px solid var(--line);
}
.product__media img,
.product__media svg{
  width:100%;height:100%;max-height:200px;
  object-fit:contain;
  transition:transform .25s;
}
.product:hover .product__media img{transform:scale(1.04)}
.product__tag{
  position:absolute;top:0;left:0;z-index:2;
  padding:5px 12px;border-radius:0;
  background:var(--ink);color:#fff;font-size:11px;font-weight:700;
  letter-spacing:.06em;text-transform:uppercase;
}
.product__tag--sale{background:var(--accent);color:var(--on-accent)}
.product__body{
  display:flex;flex-direction:column;gap:7px;flex:1;
  padding:16px 18px 18px;
}
.product__brand{
  font-size:11px;font-weight:700;color:var(--muted);
  text-transform:uppercase;letter-spacing:.04em;
}
.product__name{font-size:15px;font-weight:500;line-height:1.35;letter-spacing:0}
.product__name a:hover{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:3px;text-underline-offset:3px}
.product__stock{font-size:13px;font-weight:500}
.product__stock.in{color:var(--green)}
.product__stock.order{color:var(--muted)}
.product__foot{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  margin-top:auto;padding-top:12px;flex-wrap:wrap;
}
.product__price{font-size:19px;font-weight:900;white-space:nowrap}
.product__price span{font-size:15px;font-weight:600}
.product__price s{
  display:block;font-size:13px;font-weight:500;color:var(--muted);
}
.products__more{display:flex;justify-content:center;margin-top:26px}

/* ---------- Товари списком ---------- */
.plist{
  background:var(--surface);
  border:1px solid var(--line);border-radius:var(--radius-lg);
  overflow:hidden;
}
.plist__row{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) 170px 130px 150px;
  align-items:center;gap:18px;
  padding:14px 20px;
  border-bottom:1px solid var(--line);
  transition:background .18s;
}
.plist__row:last-child{border-bottom:0}
.plist__row:hover{background:#fafafa}

.plist__media{
  width:72px;height:72px;
  display:grid;place-items:center;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;padding:5px;
}
.plist__media img{width:100%;height:100%;object-fit:contain}

.plist__info{display:flex;flex-direction:column;gap:4px;min-width:0}
.plist__brand{
  font-size:11px;font-weight:700;color:var(--muted);
  text-transform:uppercase;letter-spacing:.04em;
}
.plist__name{font-size:15px;font-weight:500;line-height:1.35}
.plist__name a:hover{
  text-decoration:underline;text-decoration-color:var(--accent);
  text-decoration-thickness:3px;text-underline-offset:3px;
}
.plist__stock{font-size:13px;font-weight:500}
.plist__stock.in{color:var(--green)}
.plist__stock.order{color:var(--muted)}
.plist__price{font-size:18px;font-weight:900;white-space:nowrap}
.plist__price span{font-size:15px}
.plist__btn{justify-self:end}

/* ==========================================================================
   ПІДВАЛ
   ========================================================================== */
.footer{
  margin-top:40px;
  background:var(--dark);color:#c9c9c4;
  padding:52px 0 26px;
}
.footer__top{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:36px;
  padding-bottom:36px;
}
.footer__about{margin:16px 0 20px;font-size:14px;line-height:1.6;max-width:330px}
.footer__title{
  margin-bottom:16px;font-size:13px;font-weight:700;color:#fff;
  letter-spacing:.08em;text-transform:uppercase;
}
.footer__list{display:flex;flex-direction:column;gap:11px}
.footer__list a{font-size:14px;transition:color .18s}
.footer__list a:hover{color:var(--accent)}
.footer__list--tree{gap:9px}
.footer__group{
  margin-top:4px;font-size:12px;font-weight:700;color:#fff;
  letter-spacing:.04em;text-transform:uppercase;
}
.footer__group:first-child{margin-top:0}
.footer__list--tree a{padding-left:12px;color:#a8a8a2}

.socials{display:flex;gap:10px}
.socials a{
  width:42px;height:42px;display:grid;place-items:center;
  border-radius:3px;background:rgba(255,255,255,.08);color:#fff;
  transition:background .18s,color .18s,transform .18s;
}
.socials a svg{width:21px;height:21px}
.socials a:hover{background:var(--accent);color:var(--on-accent);transform:translateY(-2px)}

.contacts{display:flex;flex-direction:column;gap:14px;font-size:14px}
.contacts li{display:flex;gap:11px;align-items:flex-start}
.contacts__ico{flex:0 0 20px;width:20px;height:20px;color:var(--accent);margin-top:1px}
.contacts a:hover{color:var(--accent)}

/* ТИМЧАСОВО: перемикач основного кольору */
.theme-switch{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:16px 0;
  border-top:1px solid rgba(255,255,255,.09);
}
.theme-switch__label{font-size:13px;color:#8a8a85}
.theme-switch__list{display:flex;gap:8px;flex-wrap:wrap}
.theme-switch__btn{
  display:inline-flex;align-items:center;gap:8px;
  height:34px;padding:0 14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);border-radius:3px;
  color:#c9c9c4;font-size:13px;font-weight:700;
  cursor:pointer;transition:background .18s,border-color .18s,color .18s;
}
.theme-switch__btn::before{
  content:"";width:12px;height:12px;border-radius:50%;
  background:var(--sw,var(--accent));
}
.theme-switch__btn:hover{background:rgba(255,255,255,.12);color:#fff}
.theme-switch__btn[aria-pressed="true"]{
  background:var(--sw);border-color:var(--sw);color:var(--on-accent);
}

.footer__bottom{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding-top:24px;border-top:1px solid rgba(255,255,255,.09);
  font-size:13px;color:#8a8a85;
}
.footer__bottom p{margin:0}
.footer__legal{display:flex;gap:20px;flex-wrap:wrap}
.footer__legal a:hover{color:var(--accent)}

/* ==========================================================================
   ПОПАП
   ========================================================================== */
.modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px}
.modal[hidden]{display:none}
.modal__overlay{position:absolute;inset:0;background:rgba(20,20,19,.55);backdrop-filter:blur(2px)}
.modal__dialog{
  position:relative;width:100%;max-width:460px;
  max-height:90vh;overflow-y:auto;
  background:var(--surface);border-radius:var(--radius-lg);
  padding:34px;box-shadow:0 24px 60px rgba(0,0,0,.25);
  animation:modal-in .22s ease-out;
}
@keyframes modal-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.modal__close{
  position:absolute;top:14px;right:14px;
  width:38px;height:38px;display:grid;place-items:center;
  background:var(--bg);border:0;border-radius:3px;color:var(--ink);cursor:pointer;
  transition:background .18s;
}
.modal__close:hover{background:var(--line)}
.modal__close svg{width:20px;height:20px}
.modal__title{font-size:22px;font-weight:900;text-transform:uppercase;letter-spacing:.02em}
.modal__sub{margin:8px 0 22px;color:var(--muted);font-size:14px}
.modal__form{display:flex;flex-direction:column;gap:14px}
.modal__note{margin:0;font-size:12px;color:var(--muted);text-align:center}
.modal__note a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px}

.modal__success{text-align:center;padding:12px 0}
.modal__success-ico{
  width:62px;height:62px;margin:0 auto 18px;
  display:grid;place-items:center;border-radius:50%;
  background:rgba(31,163,99,.12);color:var(--green);
}
.modal__success-ico svg{width:30px;height:30px}
.modal__success h3{font-size:19px;font-weight:900;margin-bottom:8px;text-transform:uppercase}
.modal__success p{color:var(--muted);margin:0 0 20px}

body.is-locked{overflow:hidden}

/* ==========================================================================
   ВЕЛИКІ ЕКРАНИ (>1440px)
   Шрифти та контрольні елементи +~27%, ширша робоча область.
   ========================================================================== */
@media (min-width:1441px){
  :root{--container:1600px}

  body{font-size:19px}
  .container{padding:0 32px}

  /* Кнопки / бейджі */
  .btn{height:56px;padding:0 28px;font-size:18px;gap:10px}
  .btn--sm{height:48px;padding:0 20px;font-size:16px}
  .btn--lg{height:66px;padding:0 40px;font-size:19px}
  .badge{padding:7px 15px;font-size:15px}

  /* Шапка */
  .header__inner{min-height:96px;gap:30px}
  .logo{gap:12px}
  .logo__mark{width:50px;height:50px;flex-basis:50px}
  .logo__mark svg{width:34px;height:34px}
  .logo__name{font-size:24px}
  .logo__sub{font-size:15px}

  .search{padding:5px 5px 5px 18px;gap:10px}
  .search__icon{width:25px;height:25px;flex-basis:25px}
  .search__input{height:46px;font-size:19px}
  .search__btn{height:48px;padding:0 30px;font-size:16px}

  .hphone{padding:10px 18px 10px 12px;gap:12px}
  .hphone__icon{flex-basis:42px;width:42px;height:42px}
  .hphone__icon svg{width:24px;height:24px}
  .hphone__num{font-size:19px}
  .hphone__note{font-size:15px}
  .haction{padding:10px 14px;font-size:14px}
  .haction__icon{width:30px;height:30px}
  .haction__badge{min-width:21px;height:21px;font-size:13px;top:-6px;right:-10px}

  /* Меню */
  .nav__list a{padding:16px 18px;font-size:16px}
  .nav__note{font-size:16px}

  /* Херо-банери */
  .hero{padding:36px 0 10px}
  .hero__grid{gap:26px}
  .hero-card{min-height:350px;padding:46px}
  .hero-card__title{margin:18px 0 15px;font-size:clamp(27px,2.6vw,38px)}
  .hero-card__text{margin:0 0 28px;font-size:21px}   /* +27% і ще +10% як опис банера */
  .hero-card__art{width:clamp(230px,36%,440px)}
  .hero-card--banner::after{width:350px;height:350px;right:-88px;top:-88px}

  /* Секції */
  .section{padding:56px 0}
  .section--tight{padding-top:20px}
  .section__head{margin-bottom:28px}
  .section__title{font-size:31px}
  .section__sub{font-size:19px}
  .link-more{font-size:16px}

  /* Підбір по авто */
  .picker{padding:30px}
  .picker__grid{gap:18px}
  .picker__foot{margin-top:26px}
  .field__label{font-size:14px}
  .field__select,
  .field__input{height:60px;padding:0 20px;font-size:19px}
  .field__select{padding-right:54px;background-position:right 18px center;background-size:23px}
  .field__input--area{padding:16px 20px}

  /* Товари */
  .products{gap:22px}
  .product__media{padding:22px}
  .product__media img,
  .product__media svg{max-height:250px}
  .product__tag{padding:6px 15px;font-size:14px}
  .product__body{gap:9px;padding:20px 22px 22px}
  .product__brand{font-size:14px}
  .product__name{font-size:19px}
  .product__stock{font-size:16px}
  .product__price{font-size:24px}
  .product__price span{font-size:19px}
  .product__price s{font-size:16px}
  .products__more{margin-top:32px}

  /* Товари списком */
  .plist__row{
    grid-template-columns:90px minmax(0,1fr) 210px 165px 190px;
    gap:22px;padding:18px 26px;
  }
  .plist__media{width:90px;height:90px}
  .plist__brand{font-size:14px}
  .plist__name{font-size:19px}
  .plist__stock{font-size:16px}
  .plist__price{font-size:23px}
  .plist__price span{font-size:19px}

  /* Підвал */
  .footer{padding:66px 0 32px}
  .footer__top{gap:46px;padding-bottom:46px}
  .footer__about{margin:20px 0 26px;font-size:18px;max-width:420px}
  .footer__title{margin-bottom:20px;font-size:16px}
  .footer__list{gap:14px}
  .footer__list a{font-size:18px}
  .footer__group{font-size:15px}
  .footer__list--tree a{padding-left:15px}
  .socials{gap:12px}
  .socials a{width:52px;height:52px}
  .socials a svg{width:26px;height:26px}
  .contacts{gap:17px;font-size:18px}
  .contacts__ico{flex-basis:25px;width:25px;height:25px}
  .theme-switch__label{font-size:16px}
  .theme-switch__btn{height:42px;padding:0 18px;font-size:16px}
  .footer__bottom{font-size:16px;padding-top:30px}

  /* Попап */
  .modal__dialog{max-width:560px;padding:42px}
  .modal__close{width:46px;height:46px;top:16px;right:16px}
  .modal__close svg{width:24px;height:24px}
  .modal__title{font-size:28px}
  .modal__sub{margin:10px 0 28px;font-size:18px}
  .modal__form{gap:18px}
  .modal__note{font-size:15px}
  .modal__success-ico{width:76px;height:76px;margin-bottom:22px}
  .modal__success-ico svg{width:37px;height:37px}
  .modal__success h3{font-size:24px}
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
@media (max-width:1180px){
  .hphone__note{display:none}
  .hphone__num{font-size:14px}
}

@media (max-width:1100px){
  .products{grid-template-columns:repeat(3,1fr)}
  .footer__top{grid-template-columns:1fr 1fr;gap:30px}
  .hero-card__art{width:180px}
}

@media (max-width:900px){
  .header__inner{flex-wrap:wrap;gap:12px;padding-top:12px;padding-bottom:12px;min-height:0}
  .logo{order:1;margin-right:auto}
  .header__actions{order:2}
  .burger{display:block}
  .search{order:4;flex:0 0 100%;width:100%;margin-right:0}
  .haction__label{display:none}
  .haction{padding:9px}
  .hphone{padding:8px;margin-right:0}
  .hphone__text{display:none}
  .nav__note{display:none}

  .nav{display:none;border-top:1px solid var(--line)}
  .nav.is-open{display:block}
  .nav .container{flex-direction:column;align-items:stretch;gap:0;padding-bottom:14px}
  .nav__list{flex-direction:column;gap:0}
  .nav__list a{padding:13px 0;border-bottom:1px solid var(--line)}
  .nav__list a:hover{border-bottom-color:var(--line)}
  .nav__phone{padding:14px 0 0}

  .hero__grid{grid-template-columns:1fr}
  .hero-card{min-height:0;padding:28px}
  .hero-card__title{font-size:26px}
  .hero-card__art{width:clamp(140px,26%,220px);margin:0 6px 0 0}

  .picker__grid{grid-template-columns:repeat(2,1fr)}
  .section__title{font-size:24px}

  .plist__row{
    grid-template-columns:72px minmax(0,1fr);
    grid-template-areas:
      "media info"
      "media stock"
      "price btn";
    gap:6px 16px;
    padding:16px;
  }
  .plist__media{grid-area:media;align-self:start}
  .plist__info{grid-area:info}
  .plist__stock{grid-area:stock}
  .plist__price{grid-area:price;align-self:center;margin-top:8px}
  .plist__btn{grid-area:btn;margin-top:8px}
}

@media (max-width:640px){
  /* усе в один рядок: логотип · телефон · корзина · вхід · бургер */
  .header__inner{gap:8px}
  .logo__mark{width:34px;height:34px;flex-basis:34px;border-radius:10px}
  .logo__mark svg{width:23px;height:23px}
  .logo__name{font-size:17px}
  .logo__sub{font-size:11px;letter-spacing:.18em}
  .header__actions{gap:2px}
  .haction{padding:7px}
  .hphone{padding:6px}
  .hphone__icon{flex-basis:30px;width:30px;height:30px;border-radius:9px}
  .burger{width:40px;height:40px}

  .products{grid-template-columns:repeat(2,1fr)}
  .product__body{padding:13px 14px 15px}
  .product__name{font-size:14px}
  .product__price{font-size:17px}
  .product__foot{gap:8px}
  .btn--sm{width:100%}

  /* Херо: картинка стає маленькою і стає збоку від кнопки —
     майже не додає висоти блоку */
  .hero-card{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "badge badge"
      "title title"
      "text  text"
      "btn   art";
    align-items:start;
    gap:0 14px;
    padding:22px;
  }
  .hero-card__body{display:contents}
  .hero-card .badge{grid-area:badge;justify-self:start}
  .hero-card__title{grid-area:title;font-size:23px;margin:12px 0 10px}
  .hero-card__text{grid-area:text;margin:0 0 16px}
  .hero-card__body>.btn{
    grid-area:btn;justify-self:start;align-self:center;
    padding:0 16px;font-size:13px;   /* щоб кнопка не налазила на картинку */
  }
  .hero-card__art{
    grid-area:art;align-self:center;justify-self:end;
    width:clamp(96px,20vw,132px);max-width:none;margin:0 6px 0 0;
  }
  .shot::before{top:-8px;right:-8px;bottom:8px;left:8px;border-width:2px}
  .hero-card--banner::after{width:180px;height:180px;right:-50px;top:-50px}

  .picker{padding:16px}
  .picker__grid{grid-template-columns:1fr}
  .picker__foot .btn{width:100%}

  .footer__top{grid-template-columns:1fr;gap:28px}
  .footer{padding:38px 0 22px}
  .modal__dialog{padding:26px 20px}
  .search__btn{padding:0 16px}
}

@media (max-width:400px){
  .search__input{font-size:14px}
  .products{grid-template-columns:1fr}
}

/* Найвужчі екрани: для картинки поряд з кнопкою місця вже немає — прибираємо */
@media (max-width:374px){
  .hero-card{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"badge" "title" "text" "btn";
  }
  .hero-card__art{display:none}
}
