/**
 * Theme Name: Adv Medical Pro Child
 * Template: generatepress
 * Version: 2.0.0
 * Description: Advanced Medical Products — brandbook blue design system
 */

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  color: var(--amp-dark);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --amp-primary: #055AA0;
  --amp-primary-dark: #232D55;
  --amp-primary-light: #2896CD;
  --amp-b2c-surface: #FAEBD2;
  --amp-accent: #2896CD;
  --amp-accent-dark: #055AA0;
  --amp-dark: #232D55;
  --amp-dark-2: #1a2344;
  --amp-gray-50: #F8FAFC;
  --amp-gray-100: #F1F5F9;
  --amp-gray-200: #E2E8F0;
  --amp-gray-300: #CBD5E1;
  --amp-gray-400: #94A3B8;
  --amp-gray-500: #64748B;
  --amp-gray-600: #475569;
  --amp-gray-700: #334155;
  --amp-shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --amp-shadow-md: 0 4px 6px -1px rgba(15,23,42,.08), 0 2px 4px -2px rgba(15,23,42,.05);
  --amp-shadow-lg: 0 10px 15px -3px rgba(15,23,42,.08), 0 4px 6px -4px rgba(15,23,42,.04);
  --amp-shadow-xl: 0 20px 25px -5px rgba(15,23,42,.1), 0 8px 10px -6px rgba(15,23,42,.04);
  --amp-radius-sm: 6px;
  --amp-radius-md: 10px;
  --amp-radius-lg: 16px;
  --amp-radius-xl: 24px;
  --amp-transition: .2s cubic-bezier(.4,0,.2,1);
  --amp-container: 1200px;
}

/* ============================================
   NEUTRALIZE GENERATEPRESS
   ============================================ */
.site,
.site-content,
.content-area,
.inside-article,
.one-container .site-content,
.separate-containers .site-main,
.separate-containers .inside-article,
.separate-containers .site-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
.widget-area.sidebar,
#right-sidebar,
#left-sidebar {
  display: none !important;
}
body:not(.home) .site-content .content-area {
  width: 100% !important;
}
.site {
  overflow-x: hidden;
}
.site-header,
.mobile-menu-control-wrapper,
.main-navigation,
.inside-header,
.site-branding,
.main-title,
.entry-header {
  display: none !important;
}
.site-footer.site-info,
.footer-widgets {
  display: none !important;
}
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  font-family: inherit;
}

/* ============================================
   SITE WRAPPER
   ============================================ */
.amp-site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.amp-site-content {
  flex: 1;
}

/* ============================================
   HEADER
   ============================================ */
.amp-header {
  background: #fff;
  border-bottom: 1px solid var(--amp-gray-200);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.amp-header-inner {
  max-width: var(--amp-container);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.amp-logo {
  flex: 0 0 auto;
  min-width: 0;
}
.amp-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--amp-dark);
  line-height: 0;
}
.amp-logo-icon {
  flex-shrink: 0;
}
.amp-logo-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.amp-logo-title span {
  color: var(--amp-primary);
}
.amp-logo img.amp-logo-img {
  height: 52px;
  width: auto;
  min-width: 160px;
  max-width: min(320px, 42vw);
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* Navigation */
.amp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--amp-gray-600);
}
.amp-nav-menu {
  display: flex;
  align-items: center;
}
.amp-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  align-items: center;
}
.amp-nav-list li {
  position: relative;
  margin: 0;
}
.amp-nav-list a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--amp-gray-600);
  text-decoration: none;
  line-height: 72px;
  height: 72px;
  letter-spacing: .01em;
  transition: color var(--amp-transition);
  white-space: nowrap;
}
.amp-nav-list a:hover,
.amp-nav-list .current-menu-item > a,
.amp-nav-list .current_page_item > a {
  color: var(--amp-primary);
}
.amp-nav-list .current-menu-item > a,
.amp-nav-list .current_page_item > a {
  font-weight: 600;
}
.amp-nav-list .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border: solid var(--amp-gray-400);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-top: -2px;
}

/* Dropdown */
.amp-nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--amp-gray-200);
  border-radius: var(--amp-radius-sm);
  box-shadow: var(--amp-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--amp-transition);
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.amp-nav-list li:hover > .sub-menu,
.amp-nav-list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.amp-nav-list .sub-menu a {
  line-height: 1.3;
  height: auto;
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--amp-gray-600);
}
.amp-nav-list .sub-menu a:hover {
  background: var(--amp-gray-50);
  color: var(--amp-primary);
}
.amp-nav-list .sub-menu .current-menu-item > a,
.amp-nav-list .sub-menu .current_page_item > a {
  background: rgba(13,148,136,.04);
  color: var(--amp-primary);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.amp-nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.amp-lang-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--amp-gray-200);
}
.amp-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--amp-gray-500);
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 4px;
  transition: background var(--amp-transition);
  font-family: inherit;
  line-height: 1;
}
.amp-lang-btn:hover {
  background: var(--amp-gray-100);
}
.amp-lang-btn img {
  border-radius: 2px;
  width: 16px;
  height: 11px;
}
.amp-lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--amp-gray-200);
  border-radius: var(--amp-radius-sm);
  box-shadow: var(--amp-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--amp-transition);
  z-index: 999;
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.amp-lang-dropdown.open,
.amp-lang-wrap:hover .amp-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.amp-lang-dropdown li {
  margin: 0;
}
.amp-lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: .85rem;
  color: var(--amp-gray-600);
  text-decoration: none;
  line-height: 1.4;
  height: auto;
}
.amp-lang-dropdown a:hover {
  background: var(--amp-gray-50);
  color: var(--amp-primary);
}
.amp-lang-dropdown .current-lang a {
  color: var(--amp-primary);
  font-weight: 600;
  background: rgba(13,148,136,.04);
}
.amp-lang-dropdown img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  object-fit: cover;
}

/* ============================================
   CONTAINER
   ============================================ */
.amp-container {
  max-width: var(--amp-container);
  margin: 0 auto;
}

/* ============================================
   HERO
   ============================================ */
.amp-hero {
  background:
    radial-gradient(circle at 18% 18%, rgba(40,150,205,.35), transparent 34%),
    radial-gradient(circle at 82% 22%, rgba(250,235,210,.15), transparent 32%),
    linear-gradient(135deg, #232D55 0%, #055AA0 55%, #2896CD 100%);
  color: #fff;
  padding: 72px 24px 64px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
/* Главная: hero на один экран (минус шапка ~72px) */
body.home .entry-content > .amp-hero,
body.page-id-103 .entry-content > .amp-hero {
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  padding: 24px 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
body.home .entry-content > .amp-hero .amp-hero-content,
body.page-id-103 .entry-content > .amp-hero .amp-hero-content {
  width: 100%;
}
.amp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 85%);
  pointer-events: none;
}
.amp-hero::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  right: max(-180px, calc((100vw - var(--amp-container)) / 2 - 250px));
  bottom: -240px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 40px rgba(255,255,255,.1);
  pointer-events: none;
}
.amp-hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}
.amp-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -.04em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 18px 50px rgba(15,23,42,.2);
}
body.home .amp-hero h1,
body.page-id-103 .amp-hero h1 {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  margin: 0 0 12px;
  line-height: 1.12;
}
.amp-hero p {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  line-height: 1.6;
  margin: 0 auto 28px;
  color: #fff;
  max-width: 720px;
  text-wrap: pretty;
  text-shadow: 0 10px 28px rgba(15,23,42,.18);
}
body.home .amp-hero p,
body.page-id-103 .amp-hero p {
  font-size: clamp(.875rem, 1.25vw, 1rem);
  line-height: 1.55;
  margin: 0 auto 20px;
  max-width: 640px;
}
.entry-content .amp-hero p,
.amp-site-content .amp-hero p {
  color: #fff !important;
  text-shadow: 0 10px 28px rgba(15,23,42,.2);
}
.amp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 16px 40px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(14px);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
body.home .amp-hero-badge,
body.page-id-103 .amp-hero-badge {
  margin-bottom: 14px;
  font-size: .7rem;
  padding: 6px 12px;
}
.amp-hero-badge svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amp-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.amp-hero .amp-btn {
  min-height: 44px;
  padding: 12px 22px;
  font-size: .9rem;
  border-radius: 999px;
}
body.home .amp-hero .amp-btn,
body.page-id-103 .amp-hero .amp-btn {
  min-height: 40px;
  padding: 10px 20px;
  font-size: .875rem;
}
.amp-hero .amp-btn-primary {
  background: #fff;
  color: var(--amp-dark);
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
}
.amp-hero .amp-btn-primary:hover {
  background: #F8FAFC;
  color: var(--amp-dark);
}
.amp-hero .amp-btn-outline {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.amp-hero--cover {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  text-align: left;
}
.amp-hero--cover,
.amp-page-header--cover {
  isolation: isolate;
}
body.home .amp-hero--cover,
body.page-id-103 .amp-hero--cover {
  background-position: 72% center;
}
.amp-hero-overlay,
.amp-page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(35,45,85,.92) 0%, rgba(35,45,85,.78) 42%, rgba(5,90,160,.55) 100%);
  pointer-events: none;
}
.amp-hero--cover .amp-hero-content {
  text-align: left;
  max-width: 560px;
  margin: 0;
}
.amp-hero--cover .amp-hero-actions {
  justify-content: flex-start;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.amp-page-header {
  background: linear-gradient(135deg, var(--amp-primary-dark), var(--amp-primary));
  padding: 60px 24px 48px;
  text-align: center;
  color: #fff;
}
.amp-page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.amp-page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.entry-content .amp-page-header h1,
.entry-content .amp-page-header p,
.amp-site-content .amp-page-header h1,
.amp-site-content .amp-page-header p {
  color: #fff !important;
}
.amp-page-header--cover {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.amp-page-header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--amp-container);
  margin: 0 auto;
  padding: 56px 24px 48px;
  text-align: left;
}
.amp-page-header--cover .amp-page-header-inner {
  text-align: left;
}
.amp-page-header--cover h1,
.amp-page-header--cover p {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 640px;
}

/* ============================================
   MEDIA / BANNERS
   ============================================ */
.amp-banner {
  margin: 0;
  border-radius: var(--amp-radius-lg);
  overflow: hidden;
  box-shadow: var(--amp-shadow-lg);
}
.amp-banner img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.amp-cat-card--media {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}
.amp-cat-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--amp-gray-100);
}
.amp-cat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--amp-transition);
}
.amp-cat-card--media:hover .amp-cat-card-media img {
  transform: scale(1.03);
}
.amp-cat-card-body {
  padding: 22px 22px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.amp-cat-card--media .amp-cat-card-icon {
  display: none;
}
.amp-cat-card--media h3 {
  margin: 0 0 8px;
}
.amp-cat-card--media p {
  flex: 1;
}
.amp-service-card--media {
  padding: 0;
  overflow: hidden;
}
.amp-service-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.amp-service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.amp-service-card-body {
  padding: 28px 28px 32px;
}
.amp-service-card--media .icon {
  display: none;
}
.amp-value-card--media {
  padding: 0;
  overflow: hidden;
}
.amp-value-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.amp-value-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.amp-value-card-body {
  padding: 22px 24px 24px;
}
.amp-value-card--media > .icon {
  display: none;
}

/* ============================================
   SECTIONS
   ============================================ */
.amp-section {
  padding: 80px 24px;
}
.amp-section-sm {
  padding: 48px 24px;
}
.amp-section-title {
  text-align: center;
  margin-bottom: 48px;
}
.amp-section-title h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -.02em;
  color: var(--amp-dark);
}
.amp-section-title p {
  color: var(--amp-gray-500);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Тёмные секции — светлый текст (перебивает .entry-content p) */
.amp-section-dark {
  color: #fff;
}
.entry-content .amp-section-dark .amp-section-title h2,
.entry-content .amp-section-dark h2 {
  color: #fff !important;
}
.entry-content .amp-section-dark .amp-section-title p {
  color: #FAEBD2 !important;
}
.entry-content .amp-section-dark .amp-value-card p {
  color: #fff !important;
}
.entry-content .amp-section-dark .amp-value-card h3 {
  color: var(--amp-primary-light) !important;
}
.entry-content .amp-section-dark p {
  color: #fff !important;
}
.entry-content .amp-section-dark .amp-dark-accent {
  color: var(--amp-primary-light) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.amp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--amp-radius-sm);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--amp-transition);
}
.amp-btn-primary {
  background: var(--amp-primary);
  color: #fff;
  box-shadow: var(--amp-shadow-md);
}
.amp-btn-primary:hover {
  background: var(--amp-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--amp-shadow-lg);
  color: #fff;
}
.amp-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
}
.amp-btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  color: #fff;
}
.amp-btn-lg { padding: 16px 32px; font-size: 1rem; }
.amp-btn-sm { padding: 10px 20px; font-size: .875rem; }

/* ============================================
   CATEGORY CARDS
   ============================================ */
.amp-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.amp-cat-card {
  background: #fff;
  border: 1px solid var(--amp-gray-200);
  border-radius: var(--amp-radius-lg);
  padding: 36px 28px 32px;
  text-align: center;
  transition: all var(--amp-transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.amp-cat-card:hover {
  border-color: var(--amp-primary);
  box-shadow: var(--amp-shadow-lg);
  transform: translateY(-3px);
}
.amp-cat-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amp-primary), var(--amp-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.amp-cat-card-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.amp-cat-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--amp-dark);
}
.amp-cat-card p {
  font-size: .9rem;
  color: var(--amp-gray-500);
  margin: 0;
  line-height: 1.5;
}
.amp-cat-card .count {
  display: inline-block;
  margin-top: 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--amp-primary);
  background: rgba(13,148,136,.08);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ============================================
   VALUE CARDS
   ============================================ */
.amp-values { background: var(--amp-gray-50); }
.amp-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.amp-value-card {
  background: #fff;
  border-radius: var(--amp-radius-md);
  padding: 28px;
  border: 1px solid var(--amp-gray-200);
  transition: all var(--amp-transition);
}
.amp-value-card:hover { box-shadow: var(--amp-shadow-md); }
.amp-value-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(13,148,136,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.amp-value-card .icon svg {
  width: 20px;
  height: 20px;
  fill: var(--amp-primary);
}
.amp-value-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--amp-dark);
}
.amp-value-card p {
  font-size: .875rem;
  color: var(--amp-gray-500);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CTA
   ============================================ */
.amp-cta {
  background: linear-gradient(135deg, var(--amp-dark), var(--amp-dark-2));
  color: #fff;
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--amp-radius-lg);
}
.amp-cta h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}
.amp-cta p {
  font-size: 1rem;
  color: #fff;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.entry-content .amp-cta h2,
.entry-content .amp-cta p {
  color: #fff !important;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.amp-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.amp-service-card {
  background: #fff;
  border: 1px solid var(--amp-gray-200);
  border-radius: var(--amp-radius-lg);
  padding: 36px 28px;
  transition: all var(--amp-transition);
}
.amp-service-card:hover {
  border-color: var(--amp-primary);
  box-shadow: var(--amp-shadow-lg);
  transform: translateY(-2px);
}
.amp-service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amp-primary), var(--amp-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.amp-service-card .icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.amp-service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--amp-dark);
}
.amp-service-card p {
  font-size: .9rem;
  color: var(--amp-gray-500);
  line-height: 1.6;
  margin: 0 0 16px;
}
.amp-service-card .features {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--amp-gray-100);
}
.amp-service-card .features li {
  font-size: .85rem;
  color: var(--amp-gray-600);
  padding: 4px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.amp-service-card .features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amp-primary);
  flex-shrink: 0;
  display: inline-block;
}

/* ============================================
   TEAM GRID
   ============================================ */
.amp-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.amp-team-card {
  text-align: center;
  padding: 28px 20px;
  background: #fff;
  border-radius: var(--amp-radius-md);
  border: 1px solid var(--amp-gray-200);
}
.amp-team-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amp-primary), var(--amp-primary-light));
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
}
.amp-team-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 4px; color: var(--amp-dark); }
.amp-team-card .role { font-size: .8rem; color: var(--amp-gray-400); margin: 0; }

/* ============================================
   CONTACT
   ============================================ */
.amp-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.amp-contact-info h3 { font-size: 1.2rem; font-weight: 600; margin: 0 0 12px; color: var(--amp-dark); }
.amp-contact-info p { color: var(--amp-gray-500); line-height: 1.6; margin: 0 0 24px; }
.amp-contact-detail {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: .9rem;
}
.amp-contact-detail svg { width: 20px; height: 20px; fill: var(--amp-primary); flex-shrink: 0; margin-top: 2px; }

/* ============================================
   FEATURES LIST
   ============================================ */
.amp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.amp-feature-item {
  display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--amp-gray-600);
}
.amp-feature-item svg { width: 18px; height: 18px; fill: var(--amp-primary); flex-shrink: 0; }

/* ============================================
   BREADCRUMBS
   ============================================ */
.amp-breadcrumbs {
  padding: 16px 0;
  font-size: .8rem;
  color: var(--amp-gray-400);
}
.amp-breadcrumbs a { color: var(--amp-gray-500); text-decoration: none; }
.amp-breadcrumbs a:hover { color: var(--amp-primary); }

/* ============================================
   PAGINATION
   ============================================ */
.amp-pagination { margin-top: 40px; text-align: center; }
.amp-pagination a, .amp-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border: 1px solid var(--amp-gray-200); border-radius: var(--amp-radius-sm);
  font-size: .85rem; text-decoration: none; color: var(--amp-gray-600);
  transition: all var(--amp-transition);
}
.amp-pagination .current span { background: var(--amp-primary); border-color: var(--amp-primary); color: #fff; }

/* ============================================
   PRODUCT CARDS
   ============================================ */
.amp-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.amp-product-card {
  background: #fff;
  border: 1px solid var(--amp-gray-200);
  border-radius: var(--amp-radius-md);
  overflow: hidden;
  transition: all var(--amp-transition);
  text-decoration: none;
  display: block;
}
.amp-product-card:hover {
  box-shadow: var(--amp-shadow-lg);
  transform: translateY(-2px);
}
.amp-product-card .thumb {
  background: var(--amp-gray-100);
  height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.amp-product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.amp-product-card .body { padding: 20px; }
.amp-product-card .body .cat {
  font-size: .75rem; font-weight: 600; color: var(--amp-primary);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.amp-product-card .body h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; line-height: 1.3; color: var(--amp-dark); }
.amp-product-card .body p { font-size: .85rem; color: var(--amp-gray-500); margin: 0 0 10px; line-height: 1.5; }
.amp-link-arrow { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--amp-primary); }

/* ============================================
   PRODUCT SINGLE
   ============================================ */
.amp-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.amp-product-media { position: sticky; top: 88px; }
.amp-gallery-main {
  background: var(--amp-gray-50);
  border-radius: var(--amp-radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  border: 1px solid var(--amp-gray-200);
}
.amp-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.amp-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.amp-gallery-thumb {
  border: 2px solid var(--amp-gray-200);
  border-radius: var(--amp-radius-sm);
  overflow: hidden; cursor: pointer; aspect-ratio: 1;
  transition: all var(--amp-transition);
}
.amp-gallery-thumb:hover, .amp-gallery-thumb.active { border-color: var(--amp-primary); }
.amp-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.amp-product-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700; line-height: 1.2; margin: 0 0 16px; color: var(--amp-dark);
}
.amp-specs-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.amp-specs-table tr { border-bottom: 1px solid var(--amp-gray-100); }
.amp-specs-table td { padding: 10px 0; }
.amp-spec-label { font-weight: 500; color: var(--amp-dark); width: 40%; }
.amp-spec-value { color: var(--amp-gray-600); }
.amp-pdfs-list { display: flex; flex-direction: column; gap: 8px; }
.amp-pdf-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--amp-gray-50);
  border: 1px solid var(--amp-gray-200); border-radius: var(--amp-radius-sm);
  text-decoration: none; font-size: .9rem; color: var(--amp-dark);
}
.amp-pdf-item:hover { border-color: var(--amp-primary); }
.amp-product-cta {
  padding: 24px;
  background: linear-gradient(135deg, var(--amp-gray-50), #fff);
  border: 1px solid var(--amp-gray-200);
  border-radius: var(--amp-radius-lg);
  margin-top: 32px;
}
.amp-product-cta .amp-btn { width: 100%; justify-content: center; }

/* ============================================
   CATEGORY FILTER
   ============================================ */
.amp-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}
.amp-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px;
  background: #fff;
  border: 1px solid var(--amp-gray-200);
  border-radius: var(--amp-radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--amp-transition);
  box-shadow: var(--amp-shadow-sm);
}
.amp-brand-card:hover {
  border-color: var(--amp-primary);
  box-shadow: var(--amp-shadow-lg);
  transform: translateY(-2px);
}
.amp-brand-card img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 16px;
}
.amp-brand-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--amp-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.amp-brand-card p {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--amp-gray-500);
  margin: 0;
}
.entry-content .amp-product-benefits {
  margin: 16px 0;
  padding-left: 20px;
  color: var(--amp-gray-600);
}
.entry-content .amp-product-benefits li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.amp-cat-filter {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; justify-content: center;
}
.amp-filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 100px;
  font-size: .85rem; font-weight: 500; color: var(--amp-gray-600);
  background: #fff; border: 1px solid var(--amp-gray-200);
  text-decoration: none; transition: all var(--amp-transition);
}
.amp-filter-chip:hover { border-color: var(--amp-primary); color: var(--amp-primary); background: rgba(13,148,136,.04); }
.amp-filter-chip.active { background: var(--amp-primary); border-color: var(--amp-primary); color: #fff; }
.chip-count { font-size: .75rem; opacity: .7; }

/* ============================================
   FOOTER
   ============================================ */
.amp-footer {
  background: var(--amp-dark);
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  margin-top: 80px;
}
.amp-footer-main {
  padding: 56px 24px 40px;
}
.amp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.amp-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.amp-footer-brand span span { color: var(--amp-primary-light); }
.amp-footer-desc {
  font-size: .85rem;
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  margin: 0;
}
.amp-footer-col h4 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin: 0 0 16px;
}
.amp-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.amp-footer-links li {
  margin-bottom: 8px;
}
.amp-footer-links a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color var(--amp-transition);
}
.amp-footer-links a:hover {
  color: #fff;
}
.amp-footer-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.amp-footer-bar .amp-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.amp-footer-bar-links {
  display: flex;
  gap: 20px;
}
.amp-footer-bar-links a {
  color: rgba(255,255,255,.3);
  text-decoration: none;
}
.amp-footer-bar-links a:hover {
  color: #fff;
}

/* ============================================
   CONTENT PAGES — GENERIC
   ============================================ */
.entry-content {
  max-width: 100%;
}
.entry-content p {
  line-height: 1.7;
  color: var(--amp-gray-600);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .amp-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .amp-values-grid { grid-template-columns: repeat(2, 1fr); }
  .amp-team-grid { grid-template-columns: repeat(2, 1fr); }
  .amp-products-grid { grid-template-columns: repeat(2, 1fr); }
  .amp-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .amp-mobile-toggle { display: flex; }
  .amp-nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--amp-gray-200);
    box-shadow: var(--amp-shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .amp-nav-menu.open {
    max-height: 500px;
    overflow-y: auto;
  }
  .amp-nav-list {
    flex-direction: column;
    padding: 8px 0;
  }
  .amp-nav-list a {
    line-height: 44px;
    height: 44px;
    padding: 0 24px;
    width: 100%;
  }
  .amp-nav-list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: var(--amp-gray-50);
  }
  .amp-nav-list .sub-menu a {
    padding-left: 40px;
  }

  /* Mobile language switcher inside nav menu */
  .amp-lang-wrap {
    margin-left: 0;
    padding-left: 24px;
    border-left: none;
    border-top: 1px solid var(--amp-gray-200);
    padding-top: 12px;
    padding-bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .amp-lang-wrap .amp-lang-btn {
    padding: 8px 24px;
    width: 100%;
    justify-content: flex-start;
  }
  .amp-lang-wrap .amp-lang-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    min-width: 100%;
  }
  .amp-lang-wrap .amp-lang-dropdown.open {
    max-height: 300px;
    overflow-y: auto;
  }
  .amp-lang-wrap .amp-lang-dropdown a {
    padding: 10px 24px;
    padding-left: 48px;
  }

  /* Sections */
  .amp-section { padding: 48px 16px; }
  .amp-hero { padding: 48px 16px 40px; }
  body.home .entry-content > .amp-hero,
  body.page-id-103 .entry-content > .amp-hero {
    min-height: calc(100svh - 72px);
    padding: 20px 16px 24px;
  }
  .amp-hero--cover {
    background-position: center center;
    text-align: center;
  }
  .amp-hero--cover .amp-hero-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }
  .amp-hero--cover .amp-hero-actions {
    justify-content: center;
  }
  .amp-page-header--cover {
    min-height: 220px;
  }
  .amp-page-header-inner {
    padding: 40px 16px 32px;
  }
  .amp-cat-grid { grid-template-columns: 1fr; }
  .amp-values-grid { grid-template-columns: 1fr; }
  .amp-services-grid { grid-template-columns: 1fr; }
  .amp-products-grid { grid-template-columns: 1fr; }
  .amp-team-grid { grid-template-columns: repeat(2, 1fr); }
  .amp-contact-grid { grid-template-columns: 1fr; }
  .amp-product-layout { grid-template-columns: 1fr; }
  .amp-features { grid-template-columns: 1fr; }
  
  /* Footer */
  .amp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .amp-footer-bar .amp-container { flex-direction: column; gap: 8px; text-align: center; }

  /* Page header */
  .amp-page-header { padding: 40px 16px 32px; }
}

@media (max-width: 480px) {
  .amp-team-grid { grid-template-columns: 1fr; }
  .amp-products-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.amp-fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: ampFadeIn .5s ease-out forwards;
}
@keyframes ampFadeIn {
  to { opacity: 1; transform: translateY(0); }
}
.amp-delay-1 { animation-delay: .1s; }

/* ============================================
   BRANDBOOK TYPOGRAPHY (Magistral → Lato caps)
   ============================================ */
.amp-hero h1,
.amp-section-title h2,
.amp-product-hero h1,
.amp-footer-col h4 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.lang-ru .amp-footer-contact-ru { display: block; }
body.lang-ru .amp-footer-contact-en { display: none; }
body:not(.lang-ru) .amp-footer-contact-ru { display: none; }
body:not(.lang-ru) .amp-footer-contact-en { display: block; }
.amp-delay-2 { animation-delay: .2s; }
.amp-delay-3 { animation-delay: .3s; }
