/* =========================
   THEME TOKENS
========================= */
:root{
  --bg0:#07080b;
  --bg1:#0b0d12;

  --glass:rgba(255,255,255,.06);
  --glass2:rgba(255,255,255,.085);

  --stroke:rgba(255,255,255,.12);
  --stroke2:rgba(255,255,255,.18);

  --text:#e9edf2;
  --muted:rgba(233,237,242,.68);
  --muted2:rgba(233,237,242,.45);

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --r:18px;
}

/* =========================
   BASE
========================= */
*{ box-sizing:border-box }
html,body{ height:100% }

body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 15% 10%, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(700px 420px at 85% 15%, rgba(140,160,255,.12), transparent 55%),
    radial-gradient(900px 520px at 55% 90%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  font: 14px/1.55 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue";
  letter-spacing:.2px;
}

.container{
  width:min(1100px, calc(100% - 48px));
  margin:0 auto;
}

.site-content{ padding:36px 0 60px; }

h1{ margin:0 0 10px; font-size:44px; line-height:1.05; letter-spacing:-.6px; }
h2{ margin:0 0 10px; font-size:18px; letter-spacing:-.2px; }
h3{ margin:0 0 8px; font-size:18px; letter-spacing:-.2px; }
p{ margin:0 0 14px; color:var(--muted); }
.muted{ color:var(--muted2); }

.hero{ margin-bottom:18px; }
.hero p{ max-width:80ch; }

/* =========================
   HEADER / NAV
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10,12,16,.78), rgba(10,12,16,.45));
  border-bottom:1px solid rgba(255,255,255,.08);
}

.header-row{
  height:88px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.header-left, .top-nav{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:180px;
}

.top-nav{ justify-content:flex-end; }

/* NAV = как кнопки */
.nav-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height:34px;
  padding:0 12px;
  border-radius:8px;

  text-decoration:none;
  font-weight:300;
  color:var(--text);

  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);

  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.nav-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.22);
}

.nav-link:active{ transform: translateY(0); }


/* Logo */
.logo-link{
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:0;
  text-decoration:none;
}
.logo-img{
  height:80px;
  width:auto;
  display:block;
  max-height:100%;
  object-fit:contain;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.45));
  transition: transform .18s ease, filter .18s ease;
}
.logo-link:hover .logo-img{
  transform: translateY(-1px);
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.55));
}

@media (max-width:720px){
  .header-row{ height:72px; }
  .logo-img{ height:64px; }
  .top-nav{ display:none; }
}

/* Language switch */
.lang-switch{ display:flex; gap:8px; align-items:center; }

.lang-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:22px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  box-shadow:0 10px 22px rgba(0,0,0,.25);
  text-decoration:none;
}
.lang-btn.active{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.24);
}

.flag{
  width:18px;
  height:12px;
  border-radius:2px;
  display:block;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
  background-size:100% 100%;
  background-repeat:no-repeat;
}
.flag-ru{ background:linear-gradient(#fff 0 33%, #0b57d0 33% 66%, #d92b2b 66% 100%); }
.flag-gb{
  background:
    linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(90deg, transparent 45%, #c8102e 45% 55%, transparent 55%),
    linear-gradient(transparent 45%, #c8102e 45% 55%, transparent 55%),
    #012169;
}

/* =========================
   GLASS CARD
========================= */
.glass-card{
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.12);
  border-radius:var(--r);
  box-shadow: var(--shadow);
  padding:18px;
}
.glass-card:hover{
  border-color: rgba(255,255,255,.20);
  transform: translateY(-1px);
  transition: transform .18s ease, border-color .18s ease;
}

/* =========================
   BUTTONS
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:44px;
  padding:0 16px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.22);
}
.btn:active{ transform: translateY(0); }

.btn-primary{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}
.btn-primary:hover{ background: rgba(255,255,255,.14); }

.btn-ghost{ background: transparent; }

/* =========================
   BREADCRUMBS
========================= */
.crumbs{
  display:flex;
  gap:8px;
  align-items:center;
  margin: 10px 0 0;
  color: rgba(255,255,255,.70);
  font-size: 13px;
}
.crumbs a{
  color: rgba(255,255,255,.80);
  text-decoration:none;
}
.crumbs a:hover{ text-decoration:underline; }
.crumbs .sep{ opacity:.45; }
.crumbs .current{ opacity:.85; }

/* =========================
   CATEGORY PAGE (CARDS)
   Expected markup:
   <ul class="category-grid">
     <li>
       <div class="cat-card">
         <a class="stretched-link" href="..."></a>
         <div class="cat-media"><img class="cat-img"></div>
         <div class="cat-body"><h3 class="cat-title">...</h3><p class="cat-desc">...</p></div>
       </div>
     </li>
   </ul>
========================= */
.category-grid{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap:16px;
}

.category-grid > li{
  grid-column: span 12;
  list-style:none;
}

@media (min-width:700px){
  .category-grid > li{ grid-column: span 6; }
}
@media (min-width:1020px){
  .category-grid > li{ grid-column: span 4; }
}

/* card */
.cat-card{
  position:relative;
  height:100%;
  min-height:140px;
  display:flex;
  align-items:center;
  gap:14px;

  padding:16px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  box-shadow: 0 18px 60px rgba(0,0,0,.55);

  overflow:hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

/* whole card clickable */
.cat-card > a.stretched-link{
  position:absolute;
  inset:0;
  z-index:5;
  display:block;
}

/* content stays visible */
.cat-card .cat-media,
.cat-card .cat-body{
  position:relative;
  z-index:1;
  pointer-events:none; /* клики уходят в stretched-link */
}

.cat-media{
  width:84px;
  height:84px;
  flex:0 0 auto;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  display:grid;
  place-items:center;
  overflow:hidden;
}

.cat-img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.45));
}
.cat-img.ph{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color: rgba(255,255,255,.60);
  font-size:12px;
}

.cat-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.cat-title{
  margin:0;
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.2px;
  color: rgba(255,255,255,.92);
  white-space:normal;
  word-break:normal;
}

.cat-desc{
  margin:0;
  color: rgba(255,255,255,.72);
  line-height:1.45;
  white-space:normal;
  word-break:normal;

  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* premium hover */
.cat-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(420px 220px at 90% 20%, rgba(140,160,255,.14), transparent 60%);
  opacity:0;
  transition: opacity .18s ease;
  pointer-events:none;
}
.cat-card:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.04));
  box-shadow: 0 22px 78px rgba(0,0,0,.65);
}
.cat-card:hover::before{ opacity:1; }
.cat-card:focus-within{ border-color: rgba(255,255,255,.28); }

@media (max-width:520px){
  .cat-media{ width:72px; height:72px; }
  .cat-title{ font-size:16px; }
}

/* =========================
   PRODUCT GRID (category listing)
   Expected markup:
   <ul class="product-grid">
     <li>
       <a class="product-tile" href="...">
         <div class="pt-media">
           <img class="pt-img">
           <div class="pt-badges"><span class="badge">...</span></div>
         </div>
         <div class="pt-body">...</div>
       </a>
     </li>
   </ul>
========================= */
.product-grid{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap:16px;
}
.product-grid > li{ grid-column: span 12; list-style:none; margin:0; padding:0; }
@media (min-width:700px){ .product-grid > li{ grid-column: span 6; } }
@media (min-width:1020px){ .product-grid > li{ grid-column: span 4; } }

.product-tile{
  display:flex;
  flex-direction:column;
  min-height:100%;
  text-decoration:none;
  color:inherit;

  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  box-shadow: 0 18px 60px rgba(0,0,0,.55);

  overflow:hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.product-tile:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.04));
}

.pt-media{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

.pt-img{
  width:100%;
  height:220px;
  display:block;
  object-fit:contain;
  background: rgba(0,0,0,.18);
}
.pt-img.ph{
  height:220px;
  display:grid;
  place-items:center;
  color: rgba(255,255,255,.70);
  background: rgba(0,0,0,.18);
}

.pt-badges{
  position:absolute;
  left:12px;
  top:12px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  pointer-events:none;
}

.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.82);
}
.badge-ghost{
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
}

.pt-body{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 14px 12px;
  min-width:0;
  flex:1;
}

.pt-title{
  margin:0;
  font-size:16px;
  line-height:1.25;
  letter-spacing:-.2px;
  color: rgba(255,255,255,.92);
}

.pt-desc{
  margin:0;
  color: rgba(255,255,255,.72);
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.pt-foot{
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.pt-price{
  font-weight:900;
  color: rgba(255,255,255,.95);
}

.pt-cta{
  font-weight:800;
  color: rgba(255,255,255,.80);
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  padding:6px 10px;
  border-radius:999px;
}

/* =========================
   PRODUCT PAGE
   (layout already wraps content in .container)
========================= */
.product-shell{ margin-top:18px; }

.product-card{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:18px;

  padding:16px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 70px rgba(0,0,0,.55);

  width:100%;
  margin:0;
}

.product-left{ min-width:0; }
.product-info{ min-width:0; display:grid; gap:14px; }

/* media (badges ABOVE image, not overlay) */
.product-media{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.product-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  pointer-events:none;
}

.product-img{
  width:100%;
  height:320px;
  object-fit:contain;
  display:block;
  background: rgba(0,0,0,.18);
  border-radius:18px;
}

.product-img-placeholder{
  height:320px;
  display:grid;
  place-items:center;
  color: rgba(255,255,255,.70);
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
}

.product-desc p{
  margin:0;
  line-height:1.55;
  color: rgba(255,255,255,.82);
}

/* spec */
.spec-block{
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:12px;
}
.spec-title{
  margin:0 0 10px;
  font-size:14px;
  letter-spacing:.02em;
  color: rgba(255,255,255,.85);
  font-weight:650;
}
.spec-table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.spec-table th, .spec-table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  vertical-align:top;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td{ border-bottom:0; }
.spec-table th{
  width:42%;
  color: rgba(255,255,255,.72);
  font-weight:500;
}
.spec-table td{ color: rgba(255,255,255,.88); }

/* price + actions */
.product-price-row{
  margin-top:4px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.product-price-row .price{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.price-label{
  display:block;
  font-size:12px;
  color: rgba(255,255,255,.60);
  margin-bottom:4px;
}
.price-value{
  font-size:20px;
  font-weight:900;
  color: rgba(255,255,255,.95);
}
.price-currency{
  margin-left:6px;
  font-size:14px;
  font-weight:700;
  color: rgba(255,255,255,.70);
}
.price-note{ margin-top:6px; }

.product-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-self:center;
}

.product-footnote{ margin:0; }

/* =========================
   FAQ (native <details>/<summary>, no JS)
   + FIX: answer has top padding (doesn't stick to border)
========================= */

.faq-block { padding: 18px; }

.faq-list{
  display: grid;
  gap: 10px;
}

/* card */
.faq-item{
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.faq-item:hover{
  border-color: var(--stroke2);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
}

/* opened */
.faq-item[open]{
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 18px 60px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 40px rgba(255,255,255,.06);
}

/* summary */
.faq-q{
  position: relative;
  cursor: pointer;
  user-select: none;
  padding: 14px 52px 14px 16px;
  font-weight: 650;
  color: var(--text);
  outline: none;
  list-style: none; /* firefox marker off */
}

/* remove default marker */
.faq-q::-webkit-details-marker{ display:none; }
.faq-item > summary{ list-style:none; }
.faq-item > summary::-webkit-details-marker{ display:none; }

.faq-q:focus{
  box-shadow: 0 0 0 2px rgba(255,255,255,.10) inset;
}

/* divider under question when open */
.faq-item[open] .faq-q{
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* right icon bg */
.faq-q::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  pointer-events: none;
}

/* arrow */
.faq-q::before{
  content: "›";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-52%) rotate(0deg);
  font-size: 20px;
  color: rgba(233,237,242,.78);
  transition: transform 220ms ease, color 220ms ease;
  z-index: 1;
  pointer-events: none;
}

.faq-item[open] .faq-q::before{
  transform: translateY(-52%) rotate(90deg);
  color: rgba(233,237,242,.95);
}

/* answer panel (animated) */
.faq-a{
  /* FIX: add top padding so text doesn't stick to border */
  padding: 12px 16px 14px 16px;

  color: var(--muted);
  line-height: 1.6;

  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 280ms ease, opacity 220ms ease;
  will-change: max-height, opacity;
}

/* open -> show */
.faq-item[open] .faq-a{
  max-height: 1400px; /* raise if answers are longer */
  opacity: 1;
}

/* text inside */
.faq-a p{
  margin: 0;
  color: rgba(255,255,255,.78);
}


/* =========================
   FOOTER
========================= */
.site-footer{
  border-top:1px solid rgba(255,255,255,.08);
  padding:18px 0;
  background: rgba(0,0,0,.15);
  display:flex;
  justify-content:center;
}
.footer-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-align:center;
}
.footer-row p{ margin:0; }
/* =========================
   HARD CENTER FIX (product pages)
========================= */

/* Центрируем сам блок контента внутри main (на случай конфликтов) */
.site-content > .container{
  margin-left:auto;
  margin-right:auto;
}

/* Центрируем карточку товара как отдельный “блок” */
.product-shell{
  display:flex;
  justify-content:center;
}

.product-card{
  width:100%;
  max-width: 980px;     /* было “во всю ширину”, поэтому визуально казалось сдвигом */
  margin:0 auto;
}

/* На очень широких экранах можно чуть шире */
@media (min-width: 1300px){
  .product-card{ max-width: 1100px; }
}
/* =========================
   NUCLEAR CENTER OVERRIDES
   (ставить строго в самый конец файла)
========================= */

/* 1) Гарантируем нормальную ширину и центр контейнера */
.container{
  width: min(1100px, calc(100% - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 2) Если где-то выше main/site-content сделан flex/grid и тянет влево */
.site-content{
  display: block !important;
}
.site-content > .container{
  display: block !important;
}

.product-card{
  width: 100% !important;
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
/* ===== HARD RESET CONTAINER (FINAL) ===== */
.container{
  width: min(1100px, calc(100% - 48px));
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0;
  padding-right: 0;
  display: block;
}

/* на случай если container стал flex/grid */
.site-content > .container{
  display: block !important;
}
/* ===== PRODUCT PAGE: 2-column layout (image left, description/spec right) ===== */

.product-card{
  display:grid !important;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

/* Явно закрепляем колонки */
.product-left{ grid-column: 1 !important; min-width:0; }
.product-info{ grid-column: 2 !important; min-width:0; }

/* Если у тебя вместо .product-info используется другое имя — добавь сюда */
.product-right{ grid-column: 2 !important; min-width:0; }

/* На всякий случай: если "описание/спеки" лежат в .product-desc/.spec-block,
   заставим их быть в правой колонке, если они прямые дети product-card */
.product-card > .product-desc,
.product-card > .spec-block,
.product-card > .product-price-row,
.product-card > .faq-block{
  grid-column: 2;
}
.product-card > .product-media{
  grid-column: 1;
}

/* Мобилка: в одну колонку */
@media (max-width: 980px){
  .product-card{
    grid-template-columns: 1fr !important;
  }
  .product-left,
  .product-info,
  .product-right,
  .product-card > .product-desc,
  .product-card > .spec-block,
  .product-card > .product-price-row,
  .product-card > .faq-block,
  .product-card > .product-media{
    grid-column: 1 !important;
  }
}
.product-card{
  display:grid;
  grid-template-columns: 420px 1fr;
  gap:18px;
  align-items:start;
}
@media (max-width: 980px){
  .product-card{ grid-template-columns: 1fr; }
}
/* === Price row: align price + buttons on one level === */
.product-price-row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:16px;
  align-items:end;           /* ключевое: низ в одну линию */
  padding-top:12px;
  margin-top:4px;
  border-top:1px solid rgba(255,255,255,.08);
}

.product-price-row .price{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;  /* цена “прилипает” вниз */
  min-width:0;
}

.product-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

/* мобилка — кнопки под ценой */
@media (max-width: 620px){
  .product-price-row{
    grid-template-columns: 1fr;
    align-items:start;
  }
  .product-actions{
    justify-content:flex-start;
  }
}
.product-price-row{
  margin-top:4px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);

  display:grid;
  grid-template-columns: 1fr auto;
  align-items:end;
  gap:16px;
}

.product-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

@media (max-width: 720px){
  .product-price-row{
    grid-template-columns: 1fr;
    align-items:start;
  }
  .product-actions{
    justify-content:flex-start;
  }
}
.header-row{
  height:88px;
  padding:0 12px;

  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:16px;
}

.header-left{ justify-self:start; min-width:0; }
.logo-link{ justify-self:center; }
.top-nav{ justify-self:end; min-width:0; display:flex; gap:12px; align-items:center; }
.product-price-row{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;        /* вот оно — центр по высоте одной линии */
  gap:16px;
  margin-top:18px;
}

.price{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.product-actions{
  display:flex;
  gap:10px;
  align-items:center;        /* центрируем кнопки внутри блока */
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:40px;              /* или 42 */
  padding:0 14px;
}
/* строка "цена + кнопки" */
.product-price-row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:16px;

  /* ключевое — прижать обе колонки вниз */
  align-items:end;
}

/* блок с кнопками тоже прижать вниз (на случай внутренних высот) */
.product-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;

  align-self:end;          /* <-- это опускает кнопки */
  padding-bottom:0px;      /* <-- микро-досадка, подгони 0-6px */
}
/* ===== Product card CTA: "Открыть" button ===== */
/* если "Открыть" — это .pt-cta внутри .pt-foot */
.pt-foot .pt-cta{
  border-radius: 10px;     /* было слишком круглое */
  font-weight: 600;        /* вес как у остальных кнопок */
  height: 36px;
  padding: 0 14px;

  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);

  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.pt-foot .pt-cta:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.22);
}
.pt-foot .pt-cta:active{ transform: translateY(0); }
/* FIX: text vertically centered inside "Открыть" */
.pt-foot .pt-cta{
  height: 36px;
  line-height: 36px;     /* ключевое */
  padding: 0 14px;       /* без вертикального паддинга */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* на случай если это <button> */
.pt-foot .pt-cta,
.pt-foot .pt-cta button{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
}
/* HOME ONLY */
.hero--home{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero--home p{
  max-width:80ch;
  margin-left:auto;
  margin-right:auto;
}

.hero--home .btn{
  align-self:center;
}
.hero--home .home-text{
  margin-top:14px;
  max-width:80ch;
}

.hero--home .home-text p{
  color: var(--muted);
}

.hero--home .home-text ul{
  margin: 8px 0 14px;
  padding-left: 18px;
  color: var(--muted);
}

.hero--home .home-text li{
  margin: 4px 0;
}
/* HOME ONLY */
.hero--home{
  text-align:center;
}

.hero--home .home-text{
  margin: 16px auto 0;
  max-width: 78ch;
}

.hero--home .home-title{
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

.hero--home .home-subtitle{
  margin-top: 14px;
  font-weight: 800;
  color: rgba(255,255,255,.88);
}

/* нормальный список в центре: маркеры не “висят слева” */
.hero--home .home-list{
  list-style: none;
  padding: 0;
  margin: 10px auto 14px;
  display: inline-grid;     /* ширина по контенту */
  gap: 6px;
  text-align: left;         /* пункты читаются нормально */
}

.hero--home .home-list li{
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}


/* кнопка на главной ниже и по центру */
.hero--home .btn{
  margin-top: 14px;
}
/* HOME ONLY: center everything incl. bullet list */
.home-center{
  text-align:center;
}

.home-center .home-text{
  max-width: 72ch;
  margin: 0 auto;
}

/* HOME: bullet list fix */
.home-center .home-list{
  list-style: disc;
  list-style-position: inside;
  padding: 0;
  margin: 14px auto 18px;
  display: inline-block;
  text-align: left;

  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.home-center .home-list li{
  margin: 6px 0;
  font-weight: 400;
}
.home-center .home-subtitle{
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}


.home-center .btn{
  margin-top: 10px;
}
.header-row{
  height:88px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.header-left{
  display:flex;
  align-items:center;
  min-width:180px;
}

.top-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex: 1 1 auto;      /* центр */
}

.header-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  min-width:180px;
}
@media (max-width:720px){
  .header-row{ height:72px; }
  .top-nav{ display:none; }
}
/* HEADER: logo left край, меню вправо, языки край справа с отступом */
.header-row{
  height:88px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between; /* левый блок и правый блок по краям */
  gap:16px;
}

.header-left{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-width:0;
}

/* правый блок = меню + языки */
.header-right{
  margin-left:auto;             /* всё вправо */
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;                     /* общий зазор */
  min-width:0;
}

/* меню прижато к правому краю внутри header-right */
.top-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}

/* языки край справа, отделены от меню */
.lang-switch{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:18px;             /* отделение от меню (подгони 12-24px) */
}

/* мобилка: меню можно скрывать, языки оставить справа */
@media (max-width:720px){
  .header-row{ height:72px; }
  .top-nav{ display:none; }
  .lang-switch{ margin-left:0; }
}
.product-price-under{ margin-top:14px; }
.product-left .product-actions{ margin-top:12px; }

/* компактнее "Цена по запросу" */
.price-value{
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.15;
  letter-spacing: .2px;
}

/* если у price-label слишком жирный отступ */
.price-label{
  display: block;
  margin-bottom: 3px;
}

/* чуть плотнее блок под фото */
.product-price-under{
  margin-top: 12px;
}

/* чтобы кнопки не давили вниз */
.product-left .product-actions{
  margin-top: 10px;
  gap: 10px;
}

/* фикс: цена + кнопки не должны вылезать за карточку */
.product-price-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;           /* ключ: разрешаем перенос */
}

.product-price-row .price{
  min-width:0;              /* ключ: разрешаем ужиматься */
  flex:1 1 220px;           /* занимает место, но может сжаться */
}

.product-price-row .product-actions{
  display:flex;
  gap:10px;
  flex:0 1 auto;
  flex-wrap:wrap;           /* кнопки переносятся */
  justify-content:flex-start;
}

.product-price-row .product-actions .btn{
  max-width:100%;
  white-space:nowrap;
}

/* если "Цена по запросу" очень длинная — пусть переносится аккуратно */
.price-value{
  display:inline-block;
  max-width:100%;
  white-space:normal;       /* можно переносить */
  overflow-wrap:anywhere;
  line-height:1.15;
}

/* чуть компактнее под фото */
.product-price-under{ margin-top:12px; }

.spec-table td { white-space: pre-line; }

/* spec: left column vertically centered */
.spec-table th{
  vertical-align: middle;
}
/* FAQ accordion animation */
.faq-item { border-radius: 14px; overflow: hidden; }
.faq-q { cursor: pointer; user-select: none; }

.faq-item > summary { list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }

/* Панель ответа */
.faq-a{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 280ms ease, opacity 220ms ease;
  will-change: max-height, opacity;
}

/* Когда открыто — opacity будет 1, max-height задаём из JS */
.faq-item.is-open .faq-a{
  opacity: 1;
}

/* ===== FAQ: premium look ===== */

.faq-block { padding: 18px; }

.faq-list{
  display: grid;
  gap: 10px;
}

.faq-item{
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.faq-item:hover{
  border-color: var(--stroke2);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
}

.faq-item.is-open{
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 18px 60px rgba(0,0,0,.35),
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 0 40px rgba(255,255,255,.06);
}

.faq-q{
  position: relative;
  padding: 14px 52px 14px 16px;
  font-weight: 650;
  color: var(--text);
  outline: none;
}

.faq-q:focus{
  box-shadow: 0 0 0 2px rgba(255,255,255,.10) inset;
}

/* убираем стандартный маркер */
.faq-item > summary{ list-style: none; }
.faq-item > summary::-webkit-details-marker{ display:none; }

/* стрелка справа */
.faq-q::after{
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%) rotate(0deg);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.faq-q::before{
  content: "›";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-52%) rotate(0deg);
  font-size: 20px;
  color: rgba(233,237,242,.78);
  transition: transform 220ms ease, color 220ms ease;
  z-index: 1;
}

.faq-item.is-open .faq-q::before{
  transform: translateY(-52%) rotate(90deg);
  color: rgba(233,237,242,.95);
}

/* панель ответа */
.faq-a{
  padding: 0 16px 14px 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* разделитель под вопросом */
.faq-item.is-open .faq-q{
  border-bottom: 1px solid rgba(255,255,255,.08);
}
/* Premium glass links (no "ancient blue") */
:root{
  --linkText: rgba(215, 240, 255, .92);
  --linkTextHover: rgba(245, 252, 255, .98);
  --linkBg: rgba(120, 190, 255, .10);
  --linkBgHover: rgba(120, 190, 255, .16);
  --linkStroke: rgba(140, 210, 255, .22);
  --linkStrokeHover: rgba(170, 235, 255, .34);
  --linkGlow: rgba(120, 190, 255, .22);
}

a{
  color: var(--linkText);
  text-decoration: none;
  border: 0;
  border-radius: 12px;
  padding: 2px 8px;
  background: transparent;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}

a:visited{ color: var(--linkText); }

a:hover{
  color: var(--linkTextHover);
  background: var(--linkBgHover);
  box-shadow: 0 0 0 1px var(--linkStrokeHover), 0 10px 26px rgba(0,0,0,.22);
}

a:active{
  background: rgba(120, 190, 255, .20);
}

a:focus-visible{
  outline: none;
  background: rgba(120, 190, 255, .16);
  box-shadow:
    0 0 0 2px rgba(140, 210, 255, .55),
    0 0 0 8px rgba(120, 190, 255, .10);
}

/* muted zones: keep it calm */
.muted a{
  color: rgba(200, 230, 250, .88);
}

/* Optional: inline link looks like a "chip" only on hover (less visual noise) */
a.link-quiet{
  padding: 0;
  border-radius: 10px;
}
a.link-quiet:hover,
a.link-quiet:focus-visible{
  padding: 2px 8px;
}
/* ===== FAQ FINAL OVERRIDES (place at the VERY END) ===== */
.faq-a{
  padding: 12px 16px 14px 16px !important; /* верхний отступ появился */
}

/* на всякий случай: при открытом details */
.faq-item[open] .faq-a{
  padding-top: 12px !important;
}
