:root {
    --primary: #004b93;
    --primary-dark: #003366;
    --accent: #00a0e3;
    --accent-soft: #e6f4fa;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --radius: 14px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 75, 147, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 20px 30px -10px rgba(0, 75, 147, 0.15);
  }

  .page-template * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  .page-template {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  .page-template .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
  }

  /* Навигационная цепочка */
  .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
  }
  .breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
  }
  .breadcrumbs a:hover {
    color: var(--primary);
  }
  .breadcrumbs span {
    opacity: 0.5;
  }

  /* Главный баннер / Герой */
  .hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 20px;
    padding: 48px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-md);
  }
  .hero::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
  }
  .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
  }
  .hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 820px;
    margin-bottom: 24px;
  }
  .hero-registry {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent);
    padding: 12px 18px;
    border-radius: 0 10px 10px 0;
    font-size: 0.95rem;
    max-width: fit-content;
  }

  .page-template .ntc-lab__sell {
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    padding: 0.08em 0.42em;
    border-radius: 0.3em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .page-template .hero .ntc-lab__sell {
    color: #003366;
    background: #9aefff;
  }

  /* Заголовки разделов */
  .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 21px;
    letter-spacing: -0.01em;
  }
  
  .section-title::after {
    top: 40px;
  }
  .section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
  }

  /* Сетка услуг */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
  }
  .service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
  }
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
  }
  .service-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  .service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.35;
  }
  .service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* Инструментальная база / Оборудование */
  .equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
  }
  .equipment-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .equipment-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
  }

  /* Блок иллюстрации с поворотом под 45 градусов */
  .equipment-visual {
    height: 170px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  /* Ромбовидный элемент 45 градусов */
  .rhombus-frame {
    width: 90px;
    height: 90px;
    border: 2px solid var(--accent);
    background: #ffffff;
    transform: rotate(45deg);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .equipment-card:hover .rhombus-frame {
    transform: rotate(0deg) scale(1.08); /* Плавный возврат в исходное положение при наведении */
    border-color: var(--primary);
  }
  .rhombus-inner {
    font-size: 2.2rem;
    user-select: none;
  }

  .equipment-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  .equipment-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
  }
  .equipment-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
  }
  .tasks-heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
  }
  .task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-main);
  }
  .task-list li {
    position: relative;
    padding-left: 20px;
    line-height: 1.45;
  }
  .task-list li::before {
    content: "•";
    color: var(--accent);
    font-weight: bold;
    font-size: 1.4rem;
    position: absolute;
    left: 2px;
    top: -3px;
  }

  /* Футер контактов */
  .contact-box {
    margin-top: 60px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
  }
  .contact-info h4 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 4px;
  }
  .contact-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  .btn-contact {
    background-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s, transform 0.2s;
  }
  .btn-contact:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
  }

  @media (max-width: 768px) {
    .hero {
      padding: 32px 24px;
    }
    .services-grid, .equipment-grid {
      grid-template-columns: 1fr;
    }
    .contact-box {
      flex-direction: column;
      align-items: flex-start;
    }
  }