/* =========================================================
   Внутренние страницы: о компании, каталог, карточки, контакты.
   Дополняет css/style.css (переменные, шапка, меню, кнопки).
   ========================================================= */

body.inner-page{
  height:auto;
  overflow:visible;
  background:var(--navy-deep);
  color:var(--ink);
  font-family:var(--font);
  font-size:17px;
  line-height:1.6;
  margin:0;
  -webkit-font-smoothing:antialiased;
}
html:has(body.inner-page){ height:auto; overflow:visible; }

.wrap{ width:min(1180px,92%); margin:0 auto; }
.wrap.narrow{ width:min(820px,92%); }

.inner-page main{ display:block; }

/* ---------- Шапка ---------- */
.inner-page #headerwrap{ position:fixed; }
.inner-page .main-nav a.active{ opacity:1; border-color:var(--accent); }

/* ---------- Шапка страницы ---------- */
.page-hero{
  position:relative;
  display:flex;
  align-items:center;
  min-height:60vh;
  padding:calc(var(--header-h) + 90px) 0 200px;   /* снизу — место под растворение */
  background-size:cover;
  background-position:center;
  background-color:var(--navy);
}
.page-hero-cover{
  position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(6,16,26,.8) 0%, rgba(6,16,26,.62) 44%,
             rgba(6,16,26,.28) 74%, rgba(6,16,26,.06) 100%);
}
/* Низ фотографии уходит в фон страницы: размытие + затемнение по маске,
   поэтому границы между шапкой страницы и контентом не видно */
.page-hero::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:230px;
  z-index:1;
  pointer-events:none;
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  -webkit-mask-image:linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 62%);
  mask-image:linear-gradient(to bottom, rgba(0,0,0,0) 0%, #000 62%);
  background:linear-gradient(to bottom,
    rgba(8,21,31,0) 0%, rgba(8,21,31,.45) 45%, rgba(8,21,31,.85) 78%, var(--navy-deep) 100%);
}
.page-hero .wrap{ position:relative; z-index:2; }
.page-hero h1{ margin:0 0 14px; font-size:40px; line-height:1.15;
  text-shadow:0 2px 18px rgba(3,10,18,.8); }
.page-hero .lead{ margin:0; max-width:62ch; font-size:18px; color:rgba(255,255,255,.9);
  text-shadow:0 2px 14px rgba(3,10,18,.8); }
.page-hero .crumbs{ text-shadow:0 2px 12px rgba(3,10,18,.8); }

/* ---------- Хлебные крошки ---------- */
.crumbs{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  margin-bottom:18px;
  font-size:13px; letter-spacing:.04em;
  color:rgba(255,255,255,.6);
}
.crumbs a{ color:rgba(255,255,255,.72); transition:color .3s linear; }
.crumbs a:hover{ color:#fff; }
.crumbs i{ font-style:normal; opacity:.4; }
.crumbs span{ color:rgba(255,255,255,.5); }

/* ---------- Секции ---------- */
.section{ padding:64px 0; }
.page-hero + .section{ padding-top:26px; }
.section.alt{ background:rgba(255,255,255,.03); }
.section h2{ font-size:28px; line-height:1.25; margin:0 0 10px; }
.section p{ margin:0 0 18px; color:rgba(255,255,255,.82); }
.section .lead{ font-size:17px; max-width:62ch; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
  margin-bottom:28px;
}
.section-head .lead{ margin:0; }
/* заголовок категории ведёт на её страницу — путь остаётся,
   даже когда кнопка «Смотреть все» не нужна */
.section-link{ color:inherit; transition:color .3s linear; }
.section-link:hover{ color:var(--accent); text-decoration:none; }
.section-link::after{ content:" →"; font-size:.7em; opacity:.55; vertical-align:middle; }
.count{ font-size:14px; color:rgba(255,255,255,.55); margin-bottom:20px; }
.muted{ color:rgba(255,255,255,.6); }
.small{ font-size:14px; }
.cta-row{ display:flex; flex-wrap:wrap; gap:14px; margin-top:26px; }

/* ---------- Карточки товаров ---------- */
.cards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:22px;
}
.card{
  display:flex; flex-direction:column;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:6px;
  overflow:hidden;
  transition:transform .3s ease, border-color .3s ease, background-color .3s ease;
}
.card:hover{
  transform:translateY(-4px);
  border-color:var(--accent-soft);
  background:rgba(255,255,255,.08);
}
.card-media{ display:block; background:#fff; }
.card-media img{ width:100%; height:auto; aspect-ratio:3/4; object-fit:contain; }
.card-body{ display:block; padding:16px 18px 20px; }
.card-title{ display:block; font-weight:600; font-size:16px; line-height:1.35; }
.card-meta{ display:block; margin-top:6px; font-size:13px; color:rgba(255,255,255,.55); }

/* ---------- Карточка товара ---------- */
.product{ padding:calc(var(--header-h) + 42px) 0 56px; }
.product-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:52px;
  align-items:start;
  margin-top:26px;
}
.product-media{
  background:#fff;
  border-radius:6px;
  padding:18px;
}
.product-media img{ width:100%; height:auto; }
.product-info h1{ font-size:34px; line-height:1.2; margin:0 0 16px; }
.product-info .lead{ font-size:18px; color:rgba(255,255,255,.85); margin-bottom:28px; }
.product-info .eyebrow{ font-size:18px; letter-spacing:0; text-transform:none; }
.specs-title{ font-size:18px; letter-spacing:0; text-transform:none; font-weight:600;
  color:rgba(255,255,255,.62); margin:0 0 14px; }
/* преимущества товара */
.bullets{ margin:0 0 30px; padding:0; list-style:none; }
.bullets li{
  position:relative; padding-left:28px; margin-bottom:10px;
  font-size:17px; color:rgba(255,255,255,.88);
}
.bullets li::before{
  content:""; position:absolute; left:0; top:.4em;
  width:15px; height:8px;
  border-left:2px solid var(--brand-green);
  border-bottom:2px solid var(--brand-green);
  transform:rotate(-45deg);
}
.specs{ margin:0; padding:0; border-top:1px solid rgba(255,255,255,.12); }
.spec{
  display:grid; grid-template-columns:minmax(140px,.4fr) 1fr; gap:20px;
  padding:14px 0;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.spec dt{ color:rgba(255,255,255,.55); font-size:15px; }
.spec dd{ margin:0; color:#fff; }

/* ---------- Блоки текста на странице «О компании» ---------- */
.about-block{ margin-top:44px; }
.about-block h2{ font-size:24px; margin:0 0 14px; }
.ask-list{ margin:0 0 18px; padding:0; list-style:none; }
.ask-list li{
  position:relative; padding-left:26px; margin-bottom:9px;
  color:rgba(255,255,255,.88);
}
.ask-list li::before{
  content:""; position:absolute; left:2px; top:.62em;
  width:8px; height:8px; border-radius:50%;
  background:var(--accent);
}

/* ---------- Цифры на странице «О компании» ---------- */
.facts-row{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px;
  margin:38px 0 0; padding:0; list-style:none;
}
.facts-row li{ display:flex; flex-direction:column; }
.facts-row b{ font-size:32px; line-height:1.1; }
.facts-row b{ color:var(--brand-green); }
.facts-row span{ margin-top:6px; font-size:14px; color:rgba(255,255,255,.6); }

/* ---------- Контакты ---------- */
.contact-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:44px; }
.contact-block h2{ font-size:13px; letter-spacing:.16em; text-transform:uppercase;
  color:rgba(255,255,255,.5); margin:26px 0 8px; }
.contact-block h2:first-child{ margin-top:0; }
.contact-block .big{ font-size:19px; color:#fff; margin:0; }
.phones{ display:flex; flex-direction:column; gap:6px; margin:0; }
.phone{ font-size:19px; color:#fff; transition:color .3s linear; }
.phone:hover{ color:var(--accent); }
.map-frame{
  margin-top:44px; border-radius:6px; overflow:hidden;
  border:1px solid rgba(255,255,255,.1);
  height:380px;
}
.map-frame iframe{ width:100%; height:100%; border:0; display:block; filter:grayscale(.2); }

/* ---------- Футер ---------- */
.site-footer{
  background:#050d15;
  border-top:1px solid rgba(255,255,255,.1);
  padding:56px 0 28px;
}
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:36px; }
.site-footer h3{ font-size:20px; margin:0 0 12px; letter-spacing:.06em; }
.site-footer h4{ font-size:13px; letter-spacing:.16em; text-transform:uppercase;
  color:rgba(255,255,255,.5); margin:0 0 14px; }
.site-footer p{ color:rgba(255,255,255,.7); margin:0 0 18px; font-size:15px; }
.site-footer ul{ margin:0; padding:0; list-style:none; font-size:15px; }
.site-footer li{ margin-bottom:8px; }
.site-footer a{ color:rgba(255,255,255,.78); transition:color .3s linear; }
.site-footer a:hover{ color:#fff; }
.site-footer .copy{
  margin-top:38px; padding-top:20px;
  border-top:1px solid rgba(255,255,255,.08);
  font-size:13px; color:rgba(255,255,255,.45);
}

/* ---------- Переключатель языка ссылками ---------- */
.inner-page .lang{ display:inline-flex; align-items:center; text-decoration:none; }

/* ---------- Адаптив ---------- */
@media (max-width:1024px){
  .cards{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .product-grid{ grid-template-columns:1fr; gap:32px; }
  .product-media{ max-width:520px; }
  .facts-row{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px){
  .inner-page .main-nav{ display:none; }
  .inner-page .menu-icon{ display:flex; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .page-hero h1{ font-size:32px; }
}
@media (max-width:760px){
  .section{ padding:48px 0; }
  .page-hero{ min-height:44vh; padding:calc(var(--header-h) + 54px) 0 130px; }
  .page-hero-cover{
    background:linear-gradient(180deg, rgba(6,16,26,.74) 0%, rgba(6,16,26,.56) 45%,
               rgba(6,16,26,.3) 78%, rgba(6,16,26,.14) 100%);
  }
  .page-hero::after{ height:150px; backdrop-filter:blur(11px); -webkit-backdrop-filter:blur(11px); }
  .page-hero h1{ font-size:27px; }
  .page-hero .lead,.section .lead{ font-size:16px; }
  .cards{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:14px; }
  .contact-grid{ grid-template-columns:1fr; gap:28px; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .product-info h1{ font-size:26px; }
  .spec{ grid-template-columns:1fr; gap:4px; padding:12px 0; }
  .map-frame{ height:300px; }
}
@media (max-width:430px){
  .cards{ grid-template-columns:1fr; }
  .facts-row{ grid-template-columns:1fr 1fr; gap:18px; }
}
