/* ============================================
   Печатный Дворик — Design System
   Промышленный, строгий B2B-дизайн
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', Arial, sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1A3A5C; text-decoration: none; transition: color .2s; }
a:hover { color: #C0392B; }
ul, ol { list-style: none; }

:root {
  --blue: #1A3A5C;
  --red: #C0392B;
  --red-dark: #A93226;
  --light-blue: #EAF0F8;
  --light-gray: #F5F5F5;
  --text: #333;
  --gray: #555;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-h: 0 6px 24px rgba(0,0,0,.14);
  --r: 4px;
  --max: 1200px;
  --t: .25s ease;
}

/* Typography */
h1, h2, h3, h4 { line-height: 1.25; }
h1 { font-size: 42px; font-weight: 700; color: var(--blue); margin-bottom: 24px; }
h2 { font-size: 30px; font-weight: 600; color: var(--blue); margin-bottom: 20px; }
h3 { font-size: 21px; font-weight: 600; color: var(--red); margin-bottom: 14px; }
p { margin-bottom: 16px; }

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

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--blue); transition: var(--t);
  box-shadow: 0 2px 16px rgba(0,0,0,.15);
}
.header .container { padding: 0 24px; }
.header-content {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.logo-section {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.logo-section .logo { height: 44px; width: 44px; border-radius: 50%; }
.logo-section .company-name {
  color: #fff; font-size: 18px; font-weight: 600; white-space: nowrap;
}
.logo-link {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: #fff;
}
.logo-link:hover { opacity: .9; color: #fff; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r); transition: var(--t);
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-right .phone {
  color: #fff; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.header-right .phone:hover { color: rgba(255,255,255,.7); }

/* CTA Button (reused across site) */
.cta-button {
  display: inline-block; padding: 12px 24px; font-size: 15px; font-weight: 500;
  background: var(--red); color: #fff; border-radius: var(--r);
  transition: var(--t); border: 2px solid var(--red); cursor: pointer; text-align: center;
}
.cta-button:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

/* Burger (mobile) */
.burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; justify-content: center;
  align-items: center; width: 40px; height: 40px;
}
.burger span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 3px 0; transition: var(--t); border-radius: 2px;
  transform-origin: center;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background-size: cover; background-position: center; background-color: var(--blue);
  padding-top: 76px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,40,64,.88) 0%, rgba(26,58,92,.7) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 700px; padding: 64px 0; }
.hero h1 { font-size: 50px; color: #fff; line-height: 1.12; margin-bottom: 20px; }
.hero-subtitle {
  color: rgba(255,255,255,.8); font-size: 19px; line-height: 1.65;
  margin-bottom: 36px;
}
.hero .cta-button { font-size: 16px; padding: 16px 32px; }

/* ============================================
   ABOUT INTRO / STATS
   ============================================ */
.about-intro {
  padding: 80px 0; background: #fff;
}
.about-intro h2 { text-align: center; margin-bottom: 16px; }
.about-intro > .container > p {
  text-align: center; max-width: 650px; margin: 0 auto 48px;
  color: var(--gray); font-size: 17px;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; text-align: center;
}
.stat {}
.stat-value {
  display: block; font-size: 44px; font-weight: 700; color: var(--red);
  margin-bottom: 8px;
}
.stat-label { font-size: 15px; color: var(--gray); }

/* ============================================
   PILLARS
   ============================================ */
.pillars { padding: 80px 0; background: var(--light-gray); }
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.pillar {
  background: #fff; padding: 32px; border-radius: var(--r);
  box-shadow: var(--shadow); border-top: 3px solid var(--red);
  transition: var(--t);
}
.pillar:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.pillar h3 { color: var(--blue); }
.pillar p { font-size: 15px; color: var(--gray); margin-bottom: 0; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 80px 0; background: #fff; }
.testimonials h2 { text-align: center; margin-bottom: 48px; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial {
  padding: 32px; background: var(--light-gray); border-radius: var(--r);
  border-left: 3px solid var(--red); position: relative;
}
.testimonial p { font-style: italic; font-size: 15px; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.testimonial-author { font-size: 13px; color: var(--gray); font-style: normal; }

/* ============================================
   CTA FINAL
   ============================================ */
.cta-final {
  padding: 72px 0; background: var(--blue); text-align: center;
}
.cta-final h2 { color: #fff; font-size: 36px; margin-bottom: 16px; }
.cta-final p { color: rgba(255,255,255,.75); font-size: 18px; margin-bottom: 32px; }
.cta-final .cta-button {
  background: #fff; color: var(--blue); border-color: #fff;
}
.cta-final .cta-button:hover { background: var(--light-blue); }

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
  background: var(--blue); padding: 80px 0 0;
}
.breadcrumbs ol {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px 16px;
  display: flex; flex-wrap: wrap; gap: 0;
}
.breadcrumbs li { display: flex; align-items: center; font-size: 14px; }
.breadcrumbs li a { color: rgba(255,255,255,.55); }
.breadcrumbs li a:hover { color: #fff; }
.breadcrumbs li span { color: rgba(255,255,255,.85); }
.breadcrumbs li + li::before {
  content: '→'; margin: 0 10px; color: rgba(255,255,255,.3); font-size: 12px;
}

/* ============================================
   INNER PAGES
   ============================================ */
.main-content { min-height: 60vh; }
.main-content > section:first-child { padding-top: 64px; }
.main-content > section:first-child h1 { margin-top: 0; }

/* Page header (for pages with breadcrumbs) */
.page-header {
  background: var(--blue); padding: 100px 0 56px; color: #fff;
}
.page-header h1 { color: #fff; margin-bottom: 16px; }
.page-header p { color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.7; max-width: 800px; }

/* Tech detail page */
.tech-detail { padding: 56px 0 72px; }
.tech-detail h1 { margin-top: 12px; margin-bottom: 28px; }
.tech-content { }
.tech-image {
  width: 100%;
  margin: 0 0 40px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,58,92,.12);
}
.tech-image img { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.tech-text { overflow-wrap: break-word; }
.tech-text p,
.tech-detail > .container > p { line-height: 1.85; margin-bottom: 20px; font-size: 16.5px; color: var(--gray); max-width: 800px; }
.tech-detail > .container > h2,
.tech-text h2 { margin-top: 40px; font-size: 22px; margin-bottom: 16px; color: var(--blue); padding-left: 16px; border-left: 3px solid var(--red); }
.tech-text ul.product-list,
.tech-detail > .container > ul.product-list { margin-bottom: 20px; padding-left: 20px; }
.tech-text ul.product-list li,
.tech-detail > .container > ul.product-list li { margin-bottom: 8px; line-height: 1.7; font-size: 16px; }
.tech-gallery { grid-column: 1 / -1; }

/* ============================================
   TECH DETAIL — extended components
   ============================================ */

/* Hero image (full-width banner) */
.tech-hero {
  width: 100%; margin: 0 0 40px; border-radius: 12px;
  overflow: hidden; box-shadow: 0 4px 24px rgba(26,58,92,.12);
}
.tech-hero img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* Description block */
.tech-description {
  max-width: 800px; margin-bottom: 40px;
}
.tech-description p {
  line-height: 1.85; margin-bottom: 20px; font-size: 16.5px; color: var(--gray);
}
.tech-description h2 {
  margin-top: 32px; font-size: 22px; margin-bottom: 16px; color: var(--blue);
  padding-left: 16px; border-left: 3px solid var(--red);
}

/* Subsections */
.tech-subsection {
  margin-top: 48px; margin-bottom: 40px;
}
.tech-subsection h2 {
  font-size: 22px; margin-bottom: 20px; color: var(--blue);
  padding-left: 16px; border-left: 3px solid var(--red);
}
.tech-subsection p {
  line-height: 1.85; margin-bottom: 16px; font-size: 16.5px; color: var(--gray);
  max-width: 800px;
}

/* Spec cards grid */
.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin: 24px 0 28px;
}
.spec-card {
  background: #fff; padding: 24px 20px; border-radius: var(--r);
  box-shadow: var(--shadow); border-top: 3px solid var(--red);
  transition: var(--t);
}
.spec-card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.spec-card h3 {
  font-size: 16px; color: var(--blue); margin-bottom: 10px; font-weight: 600;
}
.spec-card p {
  font-size: 14.5px; line-height: 1.7; color: var(--gray); margin-bottom: 0;
}

/* Specs table */
.specs-table {
  margin: 24px 0 28px; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow);
}
.table-row {
  display: grid; grid-template-columns: 180px 1fr 200px;
  border-bottom: 1px solid #eee;
}
.table-row:last-child { border-bottom: none; }
.table-cell {
  padding: 14px 16px; font-size: 14.5px; line-height: 1.6; color: var(--gray);
}
.table-cell.th {
  background: var(--blue); color: #fff; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em;
}
.table-row:nth-child(even) .table-cell:not(.th) { background: var(--light-gray); }

/* Use cases grid */
.use-cases {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin: 24px 0 28px;
}
.use-case {
  padding: 24px 20px; background: var(--light-gray); border-radius: var(--r);
  border-left: 3px solid var(--red);
}
.use-case h3 {
  font-size: 16px; color: var(--blue); margin-bottom: 8px; font-weight: 600;
}
.use-case p {
  font-size: 14.5px; line-height: 1.7; color: var(--gray); margin-bottom: 0;
}

/* Order params */
.order-params {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin: 24px 0 28px;
}
.param-item {
  padding: 24px 20px; background: #fff; border-radius: var(--r);
  box-shadow: var(--shadow); border-left: 3px solid var(--blue);
}
.param-item h3 {
  font-size: 16px; color: var(--blue); margin-bottom: 8px; font-weight: 600;
}
.param-item p {
  font-size: 14.5px; line-height: 1.7; color: var(--gray); margin-bottom: 0;
}

/* CTA section (inline) */
.cta-section {
  margin-top: 48px; padding: 40px 32px; background: var(--blue);
  border-radius: var(--r); text-align: center;
}
.cta-section h2 {
  color: #fff; font-size: 24px; margin-bottom: 12px;
  border: none; padding-left: 0;
}
.cta-section p {
  color: rgba(255,255,255,.75); font-size: 16px; margin-bottom: 24px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.cta-section .cta-button {
  background: #fff; color: var(--blue); border-color: #fff;
}
.cta-section .cta-button:hover { background: var(--light-blue); }

/* Related section */
.related-section {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid #eee;
}
.related-section h3 {
  font-size: 18px; color: var(--blue); margin-bottom: 16px;
}
.related-links { padding-left: 0; }
.related-links li {
  padding: 8px 0 8px 20px; position: relative; font-size: 15px;
}
.related-links li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; background: var(--red); border-radius: 50%;
}
.related-links li a { color: var(--blue); }
.related-links li a:hover { color: var(--red); }

/* Tech detail content (s-klapanom style) */
.tech-detail-content { margin-bottom: 32px; }
.tech-detail-image {
  width: 100%; max-height: 420px; object-fit: cover; display: block;
  border-radius: 12px; margin-bottom: 32px;
  box-shadow: 0 4px 24px rgba(26,58,92,.12);
}
.tech-detail-text p {
  line-height: 1.85; margin-bottom: 20px; font-size: 16.5px; color: var(--gray);
  max-width: 800px;
}
.tech-detail-text h2 {
  margin-top: 40px; font-size: 22px; margin-bottom: 16px; color: var(--blue);
  padding-left: 16px; border-left: 3px solid var(--red);
}
.tech-detail-cta { margin-top: 32px; }
.tech-detail-related,
.tech-detail-other { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eee; }
.tech-detail-related h2,
.tech-detail-other h2 {
  font-size: 18px; color: var(--blue); margin-bottom: 16px;
  border: none; padding-left: 0;
}
.tech-detail-related ul,
.tech-detail-other ul { padding-left: 0; }
.tech-detail-related li,
.tech-detail-other li {
  padding: 8px 0 8px 20px; position: relative; font-size: 15px;
}
.tech-detail-related li::before,
.tech-detail-other li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 6px; height: 6px; background: var(--red); border-radius: 50%;
}

/* Responsive for new components */
@media (max-width: 960px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .use-cases { grid-template-columns: repeat(2, 1fr); }
  .order-params { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .specs-grid { grid-template-columns: 1fr; }
  .use-cases { grid-template-columns: 1fr; }
  .order-params { grid-template-columns: 1fr; }
  .table-row { grid-template-columns: 1fr; }
  .table-cell.th { font-size: 12px; }
  .cta-section { padding: 28px 20px; }
  .cta-section h2 { font-size: 20px; }
  .tech-hero img { max-height: 260px; }
}

.related-products { padding: 56px 0 80px; background: var(--light-gray); }
.related-products h2 { margin-bottom: 16px; border: none; padding-left: 0; }
.related-products p { max-width: 600px; margin-bottom: 24px; color: var(--gray); }

/* Catalog grids (tech, products, industries) */
.catalog-section { padding: 48px 0 80px; }
.catalog-section .catalog-intro {
  font-size: 17px; color: var(--gray); max-width: 600px; margin-bottom: 40px; line-height: 1.6;
}
.calculator-section { padding: 64px 0 80px; }
.calculator-section .container { padding-bottom: 80px; }
.calculator-form { padding-bottom: 56px; }
.calculator-form > .cta-button { margin-bottom: 48px; display: inline-block; }
.catalog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.catalog-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--t); text-decoration: none; display: flex;
  flex-direction: column; border: 1px solid rgba(0,0,0,.04);
}
.catalog-card:hover {
  box-shadow: 0 12px 32px rgba(26,58,92,.12); transform: translateY(-3px);
  border-color: rgba(26,58,92,.1);
}
.catalog-card-body {
  padding: 28px 24px; display: flex; flex-direction: column; flex: 1;
}
.catalog-card-head {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 12px;
}
.catalog-icon {
  width: 48px; height: 48px; min-width: 48px; border-radius: 12px;
  background: var(--light-blue); display: flex; align-items: center; justify-content: center;
  transition: var(--t);
}
.catalog-icon svg { width: 24px; height: 24px; color: var(--blue); transition: var(--t); }
.catalog-card:hover .catalog-icon { background: var(--blue); }
.catalog-card:hover .catalog-icon svg { color: #fff; }
.catalog-card-head .catalog-text { flex: 1; }
.catalog-card-body .catalog-tag {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--blue); background: var(--light-blue);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 8px; width: fit-content;
}
.catalog-card-body h3 {
  font-size: 17px; line-height: 1.4; margin-bottom: 0; color: var(--dark);
  font-weight: 600;
}
.catalog-card:hover h3 { color: var(--blue); }
.catalog-card-body p {
  font-size: 14px; line-height: 1.6; color: var(--gray); margin-bottom: 0; flex: 1;
}
.catalog-read-more {
  display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500;
  color: var(--blue); transition: var(--t);
}
.catalog-card:hover .catalog-read-more { color: var(--red); }

/* Category / overview pages */
.category-overview { padding: 56px 0 80px; }
.category-overview h1 { margin-bottom: 20px; }
.category-overview > .container > p { max-width: 800px; color: var(--gray); margin-bottom: 48px; font-size: 17px; line-height: 1.75; }

/* Product category pages (blanki, zhurnaly etc.) */
.product-category { padding: 56px 0 72px; }
.product-category h1 { margin-top: 12px; margin-bottom: 28px; }
.product-category p { font-size: 16.5px; line-height: 1.85; max-width: 800px; color: var(--gray); margin-bottom: 24px; }
.product-category h2 { margin-top: 40px; font-size: 22px; margin-bottom: 16px; color: var(--blue); padding-left: 16px; border-left: 3px solid var(--red); }
.product-category .cta-button { margin-top: 24px; }

.cards-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--t);
  border-bottom: 3px solid transparent; text-decoration: none; display: block;
}
.card:hover { box-shadow: var(--shadow-h); border-bottom-color: var(--red); transform: translateY(-2px); }
.card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--light-blue); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px 24px; }
.card-body h3 { font-size: 18px; margin-bottom: 10px; }
.card-body p { font-size: 14px; color: var(--gray); margin-bottom: 0; }

/* Product detail */
.product-detail { padding: 56px 0 80px; }
.product-detail h1 { margin-bottom: 28px; }
.product-detail .intro { font-size: 17px; max-width: 800px; line-height: 1.85; margin-bottom: 36px; }
.product-list { margin: 20px 0 36px; }
.product-list li { padding: 10px 0 10px 24px; position: relative; font-size: 15px; line-height: 1.7; }
.product-list li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 6px; height: 6px; background: var(--red); border-radius: 50%;
}

/* Industry pages */
.industry-detail { padding: 56px 0 80px; }
.industry-detail h1 { margin-bottom: 28px; }
.industry-detail .intro { font-size: 17px; max-width: 800px; line-height: 1.85; margin-bottom: 28px; }

/* ============================================
   FORMS
   ============================================ */
.form-section { padding: 56px 0 80px; }
.form-section h1 { margin-bottom: 28px; }
.contact-form, .order-form {
  max-width: 640px; background: #fff; padding: 36px;
  border-radius: var(--r); box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--blue); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid #D0D0D0;
  border-radius: var(--r); font-size: 15px; font-family: inherit;
  transition: var(--t); background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,58,92,.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { margin-top: 8px; }
.form-submit .cta-button {
  width: 100%; font-size: 16px; padding: 14px; border: none;
  font-family: inherit; cursor: pointer;
}
.alert-success {
  padding: 16px 20px; background: #D4EDDA; color: #155724;
  border-radius: var(--r); margin-bottom: 20px; display: none;
}
.alert-error {
  padding: 16px 20px; background: #FDE2E2; color: #8A1C1C;
  border-radius: var(--r); margin-bottom: 20px; display: none;
}

/* ============================================
   BLOG
   ============================================ */
.blog-archive { padding: 56px 0 80px; }
.blog-archive h1 { margin-bottom: 12px; }
.blog-intro {
  font-size: 17px; color: var(--gray); max-width: 600px; margin-bottom: 44px;
}
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.blog-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--t); text-decoration: none; display: flex;
  flex-direction: column; border: 1px solid rgba(0,0,0,.04);
}
.blog-card:hover {
  box-shadow: 0 12px 32px rgba(26,58,92,.12); transform: translateY(-3px);
  border-color: rgba(26,58,92,.1);
}
.blog-card-image { width: 100%; height: 180px; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-body {
  padding: 28px 24px; display: flex; flex-direction: column; flex: 1;
}
.blog-tag {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--blue); background: var(--light-blue);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 14px; width: fit-content;
}
.blog-card-body h3 {
  font-size: 17px; line-height: 1.4; margin-bottom: 10px; color: var(--dark);
  font-weight: 600;
}
.blog-card:hover h3 { color: var(--blue); }
.blog-card-body p {
  font-size: 14px; line-height: 1.6; color: var(--gray); margin-bottom: 0; flex: 1;
}
.blog-read-more {
  display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500;
  color: var(--blue); transition: var(--t);
}
.blog-card:hover .blog-read-more { color: var(--red); }

/* Blog Article */
.blog-article { padding: 56px 0 80px; }
.blog-article .article-header { max-width: 800px; margin-bottom: 40px; }
.blog-article .article-header h1 { margin-bottom: 16px; }
.blog-article .article-lead {
  font-size: 18px; line-height: 1.6; color: var(--gray); margin-bottom: 0;
}
.blog-article .article-hero-image { max-width: 800px; margin: 32px 0; border-radius: 8px; overflow: hidden; }
.blog-article .article-hero-image img { width: 100%; height: auto; display: block; }
.blog-article .article-content { max-width: 800px; }
.blog-article .article-content h2 { margin-top: 48px; font-size: 24px; margin-bottom: 20px; }
.blog-article .article-content p { line-height: 1.9; margin-bottom: 20px; }

/* Article Navigation */
.article-nav {
  display: flex; gap: 24px; margin-top: 56px; padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}
.article-nav-link {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  padding: 16px 20px; border-radius: 10px; flex: 1;
  background: var(--light-blue); transition: var(--t);
}
.article-nav-link:hover { background: #dae5f3; }
.article-nav-link .nav-dir {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--blue);
}
.article-nav-link .nav-title {
  font-size: 14px; color: var(--dark); line-height: 1.4;
}
.article-nav-link.next { text-align: right; margin-left: auto; }

/* Article CTA */
.article-cta {
  background: var(--light-blue); padding: 56px 0; text-align: center;
}
.article-cta h2 { margin-bottom: 12px; }
.article-cta p { color: var(--gray); margin-bottom: 24px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0F2840; color: rgba(255,255,255,.7); padding: 56px 0 32px;
}
.footer-columns {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-col .footer-logo { height: 48px; width: 48px; margin-bottom: 12px; border-radius: 50%; }
.footer-col .company-name { color: #fff; font-size: 16px; font-weight: 600; }
.footer-logo-link {
  display: inline-block; text-decoration: none; color: #fff;
  transition: opacity .2s;
}
.footer-logo-link:hover { opacity: .85; color: #fff; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; margin-bottom: 6px; }
.footer-col p a { color: rgba(255,255,255,.7); }
.footer-col p a:hover { color: #fff; }
.messengers { display: flex; gap: 12px; margin-top: 12px; }
.messengers a {
  padding: 6px 14px; background: rgba(255,255,255,.08);
  border-radius: 20px; font-size: 13px; color: rgba(255,255,255,.7);
}
.messengers a:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ============================================
   FLOATING WIDGET
   ============================================ */
.floating-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.widget-item {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; text-decoration: none;
  box-shadow: 0 3px 12px rgba(0,0,0,.15); transition: var(--t);
}
.widget-item:hover { transform: scale(1.12); color: #fff; }
.widget-item.telegram { background: #0088cc; }
.widget-item.whatsapp { background: #25D366; }
.widget-item.phone { background: var(--blue); }
.widget-item.email { background: var(--red); }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-page { padding: 56px 0 80px; }
.about-page h1 { margin-bottom: 28px; }
.about-page p { max-width: 800px; line-height: 1.85; margin-bottom: 20px; }
.about-page h2 { margin-top: 48px; margin-bottom: 20px; }

/* ============================================
   CONTACTS PAGE (combined)
   ============================================ */
.about-block {
  padding: 56px 0 48px; background: var(--light-gray);
}
.about-block h1 { margin-bottom: 20px; }
.about-block p {
  max-width: 800px; font-size: 17px; line-height: 1.85; color: var(--gray);
}

.contacts-page-section { padding: 56px 0 80px; }
.contacts-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start;
}

/* Info card */
.contacts-info-card {
  background: var(--light-blue); border-radius: 12px; padding: 40px 36px;
}
.contacts-info-card h2 { font-size: 24px; margin-bottom: 28px; }
.contact-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(26,58,92,.08);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.contact-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--gray); margin-bottom: 4px; font-weight: 500;
}
.contact-value {
  font-size: 16px; font-weight: 500; color: var(--blue);
}
a.contact-value:hover { color: var(--red); }

.contact-messengers {
  display: flex; gap: 12px; margin-top: 24px;
}
.messenger-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #fff;
  transition: var(--t);
}
.messenger-btn:hover { opacity: .88; color: #fff; transform: translateY(-1px); }
.messenger-btn.tg { background: #0088cc; }
.messenger-btn.wa { background: #25D366; }
.messenger-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700;
}

/* Form card */
.feedback-form-card {
  background: #fff; border-radius: 12px; padding: 40px 36px;
  box-shadow: 0 4px 24px rgba(26,58,92,.08); border: 1px solid rgba(26,58,92,.06);
}
.feedback-form-card h2 { font-size: 24px; margin-bottom: 8px; }
.form-subtitle {
  font-size: 15px; color: var(--gray); margin-bottom: 28px; line-height: 1.5;
}
.feedback-form .form-group { margin-bottom: 20px; }
.feedback-form label {
  display: block; font-size: 13px; font-weight: 600; color: var(--blue);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px;
}
.feedback-form input,
.feedback-form textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid #D8DFE8;
  border-radius: 8px; font-size: 15px; font-family: inherit;
  transition: var(--t); background: #FAFBFC;
}
.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,58,92,.08); background: #fff;
}
.feedback-form input::placeholder,
.feedback-form textarea::placeholder { color: #B0B8C4; }
.feedback-form textarea { resize: vertical; min-height: 120px; }

.form-row-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

.form-footer { margin-top: 8px; }
.form-btn {
  width: 100%; padding: 14px; font-size: 16px; border: none;
  font-family: inherit; cursor: pointer; border-radius: 8px;
}
.form-privacy {
  font-size: 12px; color: var(--gray); margin-top: 12px; text-align: center; line-height: 1.5;
}
.form-privacy a { color: var(--blue); text-decoration: underline; }
.form-privacy a:hover { color: var(--red); }

.feedback-form .alert-success {
  display: none; padding: 16px 20px; background: #D4EDDA; color: #155724;
  border-radius: 8px; margin-top: 16px; font-size: 15px; text-align: center;
}
.feedback-form .alert-error,
.calculator-form .alert-success,
.calculator-form .alert-error {
  display: none; padding: 16px 20px; border-radius: 8px; margin-top: 16px;
  font-size: 15px; text-align: center;
}
.feedback-form .alert-error,
.calculator-form .alert-error {
  background: #FDE2E2; color: #8A1C1C;
}
.calculator-form .alert-success {
  background: #D4EDDA; color: #155724;
}

/* Map */
.map-section { margin-top: 56px; }
.map-section h2 { margin-bottom: 20px; }
.map-wrapper {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,58,92,.08); border: 1px solid rgba(26,58,92,.06);
}
.map-wrapper iframe { display: block; }
.map-address {
  margin-top: 12px; font-size: 15px; color: var(--gray); text-align: center;
}

/* Privacy */
.privacy-page { padding: 56px 0 80px; }
.privacy-page h1 { margin-bottom: 28px; }
.privacy-page p, .privacy-page li { max-width: 800px; line-height: 1.85; margin-bottom: 16px; }

/* ============================================
   TABLES (for tech pages)
   ============================================ */
.params-table { width: 100%; border-collapse: collapse; margin: 24px 0; max-width: 800px; }
.params-table th, .params-table td {
  padding: 12px 16px; text-align: left; font-size: 14px;
  border-bottom: 1px solid #E0E0E0;
}
.params-table th { background: var(--light-blue); font-weight: 600; color: var(--blue); }

/* ============================================
   RESPONSIVE
   ============================================ */

/* — Tablet / small desktop — */
@media (max-width: 1199px) {
  .contact-info { grid-template-columns: 1fr; }
  /* Header layout: logo | phone + CTA | burger — равномерно */
  .header-content {
    gap: 8px;
  }
  .logo-section { flex: 1; min-width: 0; }
  /* Mobile nav — dropdown */
  .main-nav {
    display: none; position: fixed; top: 76px; left: 0; width: 100%;
    background: var(--blue); flex-direction: column; padding: 16px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 999;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 24px; font-size: 16px; border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .main-nav a:hover { background: rgba(255,255,255,.08); }

  /* Burger — справа */
  .burger {
    display: flex; flex-direction: column; justify-content: center;
    order: 3;
  }
  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Header right — CTA + телефон */
  .header-right { order: 2; }
  .header-right .phone { font-size: 13px; }
  .header-right .cta-button {
    display: inline-block; padding: 8px 16px; font-size: 13px;
  }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-image img, .product-image img { max-height: 320px; }
  .hero h1 { font-size: 36px; }
}

/* — Mobile — */
@media (max-width: 767px) {
  h1 { font-size: 26px; margin-bottom: 18px; }
  h2 { font-size: 22px; margin-bottom: 16px; }
  h3 { font-size: 18px; }
  p { margin-bottom: 14px; }

  .container { padding: 0 16px; }

  /* Header */
  .header-content { height: 56px; gap: 8px; }
  .logo-section .logo { height: 32px; width: 32px; }
  .logo-section .company-name { font-size: 14px; }
  .main-nav { top: 56px; }
  .header-right .phone { font-size: 12px; }
  .header-right .cta-button { padding: 6px 12px; font-size: 12px; }

  /* Hero */
  .hero { min-height: auto; padding-top: 64px; }
  .hero-content { padding: 40px 0; }
  .hero h1 { font-size: 28px; line-height: 1.2; }
  .hero-subtitle { font-size: 16px; margin-bottom: 28px; }
  .hero .cta-button { font-size: 15px; padding: 14px 24px; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-value { font-size: 32px; }
  .stat-label { font-size: 13px; }
  .about-intro { padding: 48px 0; }
  .about-intro > .container > p { font-size: 15px; margin-bottom: 32px; }

  /* Pillars */
  .pillars { padding: 48px 0; }
  .pillars-grid { grid-template-columns: 1fr; gap: 16px; }
  .pillar { padding: 24px; }
  .pillar p { font-size: 14px; }

  /* Testimonials */
  .testimonials { padding: 48px 0; }
  .testimonials h2 { margin-bottom: 32px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial { padding: 24px; }

  /* CTA Final */
  .cta-final { padding: 48px 0; }
  .cta-final h2 { font-size: 24px; }
  .cta-final p { font-size: 16px; margin-bottom: 24px; }

  /* Cards grid */
  .cards-grid { grid-template-columns: 1fr; gap: 16px; }
  .catalog-grid { grid-template-columns: 1fr; gap: 16px; }
  .catalog-card-body { padding: 20px 18px; }
  .catalog-card-body h3 { font-size: 16px; }
  .catalog-icon { width: 40px; height: 40px; min-width: 40px; border-radius: 10px; }
  .catalog-icon svg { width: 20px; height: 20px; }
  .catalog-card-head { gap: 12px; }
  .catalog-section { padding: 36px 0 60px; }
  .card-body { padding: 16px; }
  .card-body h3 { font-size: 16px; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-archive { padding: 40px 0 60px; }
  .blog-card-body { padding: 20px 18px; }
  .blog-card-body h3 { font-size: 16px; }
  .blog-article { padding: 40px 0 60px; }
  .blog-article .article-lead { font-size: 16px; }
  .blog-article .article-content h2 { margin-top: 32px; font-size: 20px; }
  .article-nav { flex-direction: column; gap: 12px; }
  .article-nav-link.next { text-align: left; }
  .article-cta { padding: 40px 0; }

  /* Inner pages — отступы */
  .breadcrumbs { padding-top: 64px; }
  .breadcrumbs ol { padding: 12px 16px; }
  .breadcrumbs li { font-size: 12px; }
  .breadcrumbs li + li::before { margin: 0 6px; }

  .page-header { padding: 88px 0 40px; }
  .page-header h1 { font-size: 24px; }
  .page-header p { font-size: 15px; }

  .tech-detail { padding: 36px 0 56px; }
  .tech-image { margin-bottom: 28px; }
  .tech-image img, .product-image img { max-height: 260px; }
  .tech-text p { font-size: 15px; }

  .product-category { padding: 36px 0 56px; }
  .product-category p { font-size: 15px; }
  .product-detail { padding: 36px 0 56px; }
  .category-overview { padding: 36px 0 56px; }
  .industry-detail { padding: 36px 0 56px; }
  .about-page { padding: 36px 0 56px; }
  .contact-page { padding: 36px 0 56px; }
  .privacy-page { padding: 36px 0 56px; }
  .form-section { padding: 36px 0 56px; }

  /* Forms */
  .contact-form, .order-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .form-group input, .form-group textarea { padding: 10px 14px; font-size: 14px; }

  /* Footer */
  .footer { padding: 40px 0 24px; }
  .footer-columns { grid-template-columns: 1fr; gap: 24px; }
  .footer h4 { margin-bottom: 12px; }

  /* Floating widget */
  .floating-widget { bottom: 16px; right: 16px; gap: 8px; }
  .widget-item { width: 42px; height: 42px; font-size: 16px; }

  /* CTA button */
  .cta-button { padding: 10px 20px; font-size: 14px; }

  /* Product image */
  .product-image { margin: 0 0 20px 0; }
  .product-image img { max-height: 220px; }

  /* Contacts page */
  .contacts-grid { grid-template-columns: 1fr; gap: 24px; }
  .contacts-info-card { padding: 28px 20px; }
  .feedback-form-card { padding: 28px 20px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .contact-messengers { flex-direction: column; }
  .about-block { padding: 40px 0 32px; }
  .about-block p { font-size: 15px; }

  /* Tables */
  .params-table { font-size: 13px; }
  .params-table th, .params-table td { padding: 8px 10px; }

  /* Main content minimum */
}

/* — Small phones — */
@media (max-width: 374px) {
  h1 { font-size: 22px; }
  .hero h1 { font-size: 24px; }
  .logo-section .company-name { font-size: 13px; }
  .breadcrumbs li { font-size: 11px; }
  .stat-value { font-size: 28px; }
}

/* ============================================
   Product Images & Tech Gallery
   ============================================ */
.product-image {
  width: 100%;
  margin: 0 0 40px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26,58,92,.12);
}
.product-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.tech-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,58,92,.08);
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item img:hover {
  transform: scale(1.03);
}
@media (max-width: 600px) {
  .tech-gallery {
    grid-template-columns: 1fr;
  }
  .product-image img, .tech-image img {
    max-height: 300px;
  }
}

/* ============================================
   Промо-баннер Демобоксы
   ============================================ */
.promo-banner {
  background: linear-gradient(135deg, #0F2840 0%, #1A3A5C 60%, #2A5A8C 100%);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}
.promo-banner .container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.promo-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.promo-content h2 { color: #fff; font-size: 36px; margin-bottom: 16px; }
.promo-content p { color: rgba(255,255,255,.8); font-size: 17px; line-height: 1.7; max-width: 500px; margin-bottom: 24px; }
.cta-button--light { background: #fff; color: var(--blue); border-color: #fff; }
.cta-button--light:hover { background: transparent; color: #fff; }
.promo-image { flex: 0 0 400px; position: relative; }
.promo-image img { width: 100%; height: auto; }

/* Promo slider crossfade */
.promo-slider {
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.promo-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s ease;
  transform: scale(1.03);
}
.promo-slide.active {
  opacity: 1;
  transform: scale(1);
  animation: none;
}
.promo-banner .promo-content {
  opacity: 0; transform: translateX(-40px);
  transition: opacity .6s ease, transform .6s ease;
}
.promo-banner .promo-image {
  opacity: 0; transform: translateX(40px);
  transition: opacity .6s ease .2s, transform .6s ease .2s;
}
.promo-banner.visible .promo-content,
.promo-banner.visible .promo-image {
  opacity: 1; transform: translateX(0);
}
@media (max-width: 768px) {
  .promo-banner { padding: 48px 0; }
  .promo-banner .container { flex-direction: column; gap: 32px; text-align: center; }
  .promo-content h2 { font-size: 26px; }
  .promo-content p { max-width: 100%; }
  .promo-image { flex: none; max-width: 300px; width: 100%; }
}

/* ============================================
   Каталог демобоксов — сетка карточек
   ============================================ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 48px;
}
.catalog-card {
  display: block;
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.catalog-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.catalog-card h3 {
  padding: 16px 20px 4px;
  font-size: 18px;
  color: var(--blue);
}
.catalog-card p {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}
@media (max-width: 768px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
