/* BEM-compliant Mobile-First CSS for TD AstraHimOpt */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Tokens - Light & White Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc; /* Slate 50 */
  --bg-tertiary: #f1f5f9;  /* Slate 100 */
  --bg-card: #ffffff;
  
  --accent-sky: #0284c7;   /* Sky 600 */
  --accent-sky-hover: #0369a1; /* Sky 700 */
  --accent-sky-light: rgba(2, 132, 199, 0.08);
  --accent-amber: #d97706; /* Amber 600 */
  --accent-teal: #0f766e;
  
  --text-main: #0f172a;    /* Slate 900 */
  --text-muted: #475569;   /* Slate 600 */
  --text-muted-light: #64748b; /* Slate 500 */
  
  --border-color: #e2e8f0; /* Slate 200 */
  --border-focus: #38bdf8; /* Sky 300 */
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles & Resets (Mobile Default)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout Utilities (Mobile Default)
   ========================================================================== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Section Paddings on Mobile */
.hero,
.features,
.benefits,
.cta-section,
.catalog,
.calculator,
.contacts,
.product,
.blog,
.article {
  padding: 2.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 2rem auto;
}

.section-header__title {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.section-header__subtitle {
  color: var(--text-muted-light);
  font-size: 0.95rem;
}

/* ==========================================================================
   Reusable Buttons Block
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: 0.5rem;
}

.btn_primary {
  background-color: var(--accent-sky);
  color: var(--bg-primary);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

.btn_primary:hover {
  background-color: var(--accent-sky-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.3);
}

.btn_secondary {
  background-color: var(--bg-primary);
  color: var(--text-main);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn_secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-muted-light);
}

.btn_sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Site Header Block (Mobile First Default)
   ========================================================================== */
.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.site-header__logo {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 5vw, 1.4rem);
  font-weight: 800;
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.site-header__logo-dot {
  width: 0.65rem;
  height: 0.65rem;
  background-color: var(--accent-sky);
  border-radius: 50%;
}

.site-header__burger {
  display: flex;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 24px;
  height: 18px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 110;
}

.site-header__burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* Burger Animation to Close State (X) */
.site-header_menu-open .site-header__burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header_menu-open .site-header__burger-line:nth-child(2) {
  opacity: 0;
}

.site-header_menu-open .site-header__burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header__menu {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 4.5rem;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  pointer-events: none;
  list-style: none;
}

.site-header_menu-open .site-header__menu {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-header__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
  display: block;
}

.site-header__link:hover, 
.site-header__link_active {
  color: var(--accent-sky);
}

/* Hide desktop CTA on mobile view */
.site-header__cta {
  display: none;
}

/* Mobile-only CTA menu item styling */
.site-header__menu-mobile-cta {
  display: block;
  margin-top: 1rem;
}

.site-header__menu-mobile-cta .btn {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   Hero Section Block (Mobile Default)
   ========================================================================== */
.hero {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.hero__content h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.hero__content h1 span {
  color: var(--accent-sky);
}

.hero__content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__actions .btn {
  width: 100%;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
}

.hero__image-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.hero__image-card img {
  border-radius: var(--radius-md);
  width: 100%;
}

/* ==========================================================================
   Features Block (Mobile Default)
   ========================================================================== */
.features_theme_white {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.features_theme_gray {
  background-color: var(--bg-secondary);
}

.features__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.features__card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.features__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-sky);
}

.features__card_type_row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  text-align: left;
}

.features__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  background-color: var(--accent-sky-light);
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.features__card_type_row .features__icon {
  margin-bottom: 0;
}

.features__card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.features__card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.features__link {
  color: var(--accent-sky);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
  transition: color var(--transition-fast);
}

.features__link:hover {
  color: var(--accent-sky-hover);
}

.features__card-emoji {
  font-size: 2.2rem;
  line-height: 1.2;
}

/* ==========================================================================
   Benefits Block (Mobile Default)
   ========================================================================== */
.benefits {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.benefits__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefits__card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.benefits__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefits__card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.benefits__card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Catalog Page Block Additions & Core (catalog.html)
   ========================================================================== */
.catalog {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.catalog__sidebar {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  height: fit-content;
}

.catalog__sidebar-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.catalog__menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin-bottom: 1.5rem;
}

.catalog__menu li {
  flex: 0 0 auto;
}

.catalog__menu::-webkit-scrollbar {
  display: none;
}

.catalog__btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.catalog__btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
}

.catalog__btn_active {
  background-color: var(--accent-sky-light);
  border-color: var(--accent-sky-light);
  color: var(--accent-sky);
  font-weight: 600;
}

.catalog__badge {
  font-size: 0.75rem;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 0.15rem 0.4rem;
  border-radius: 9999px;
}

.catalog__btn_active .catalog__badge {
  background-color: var(--accent-sky);
  color: var(--bg-primary);
}

.catalog__info-box {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.catalog__info-title {
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.catalog__info-text {
  margin-bottom: 0.5rem;
}

.catalog__info-text_last {
  margin-bottom: 0;
}

.catalog__table-wrapper {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

/* Catalog Table Mobile First (Card View by default) */
.catalog__table,
.catalog__table thead,
.catalog__table tbody,
.catalog__table tr,
.catalog__table td {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.catalog__table thead {
  display: none; /* Hide header on mobile cards */
}

.catalog__table tr {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
}

.catalog__table tbody tr:last-child {
  border-bottom: none;
}

.catalog__table td {
  border: none;
  padding: 0.35rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: right;
  font-size: 0.9rem;
}

/* Product name as title card block styling */
.catalog__table td:nth-of-type(1) {
  display: block;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.catalog__table td:nth-of-type(2)::before {
  content: "Фасовка / Тара:";
  font-weight: 500;
  color: var(--text-muted);
  float: left;
  text-align: left;
}

.catalog__table td:nth-of-type(3)::before {
  content: "Минимальный заказ:";
  font-weight: 500;
  color: var(--text-muted);
  float: left;
  text-align: left;
}

.catalog__table td:nth-of-type(4)::before {
  content: "Цена с НДС:";
  font-weight: 700;
  color: var(--text-main);
  float: left;
  text-align: left;
}

.catalog__table td:nth-of-type(5) {
  display: block;
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
  margin-top: 0.5rem;
}

.catalog__table td:nth-of-type(5) .btn {
  width: 100%;
}

.catalog__prod-name {
  font-weight: 600;
  color: var(--text-main);
}

.catalog__prod-pack {
  color: var(--text-muted);
}

.catalog__prod-min {
  font-size: 0.85rem;
  background-color: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.catalog__prod-price {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-sky-hover);
}

.catalog__th-order,
.catalog__td-order {
  text-align: center;
}

.catalog__btn-calc {
  padding: 0.35rem 0.75rem;
}

/* ==========================================================================
   Calculator Page Block Additions & Core (calculator.html)
   ========================================================================== */
.calculator {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calculator__sheet {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.calculator__sheet_scrollable {
  overflow-x: auto;
}

.calculator__sheet-title {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

/* Calculator Table Mobile Default (Card View) */
.calculator__table,
.calculator__table thead,
.calculator__table tbody,
.calculator__table tr,
.calculator__table td {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.calculator__table thead {
  display: none; /* Hide header */
}

.calculator__table tr {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

/* Category headers rows styling */
.calculator__row_type_category {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.calculator__cat-header {
  background-color: var(--bg-tertiary);
  color: var(--accent-teal);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  text-align: center;
  border: none !important;
}

.calculator__table td:not(.calculator__cat-header) {
  border: none;
  padding: 0.35rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: right;
  font-size: 0.9rem;
}

/* First TD - Product name */
.calculator__table td:nth-of-type(1):not(.calculator__cat-header) {
  display: block;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.calculator__table td:nth-of-type(2):not(.calculator__cat-header)::before {
  content: "Фасовка:";
  font-weight: 500;
  color: var(--text-muted);
  float: left;
  text-align: left;
}

.calculator__table td:nth-of-type(3):not(.calculator__cat-header)::before {
  content: "Цена за ед.:";
  font-weight: 500;
  color: var(--text-muted);
  float: left;
  text-align: left;
}

.calculator__table td:nth-of-type(4):not(.calculator__cat-header)::before {
  content: "Количество:";
  font-weight: 500;
  color: var(--text-muted);
  float: left;
  text-align: left;
}

.calculator__table td:nth-of-type(5):not(.calculator__cat-header)::before {
  content: "Сумма:";
  font-weight: 500;
  color: var(--text-muted);
  float: left;
  text-align: left;
}

.calculator__qty-wrapper {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  overflow: hidden;
  height: 38px;
}

.calculator__qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 100%;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  user-select: none;
}

.calculator__qty-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-sky);
}

.calculator__qty-btn:active {
  background-color: var(--border-color);
}

.calculator__qty {
  width: 48px;
  height: 100%;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  margin: 0;
  -moz-appearance: textfield;
}

.calculator__qty::-webkit-outer-spin-button,
.calculator__qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calculator__col-subtotal {
  font-weight: 600;
  color: var(--accent-sky);
}

.calculator__th-qty {
  width: 130px;
  text-align: center;
}

.calculator__th-sum {
  text-align: right;
}

.calculator__pkg {
  color: var(--text-muted-light);
}

.calculator__sidebar {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.calculator__sidebar-title {
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.calculator__summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.calculator__summary-row_total {
  border-top: 2px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.calculator__summary-val {
  font-weight: 600;
  color: var(--text-main);
}

.calculator__transport-val {
  font-weight: 600;
}

.calculator__submit-btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.9rem;
  margin-top: 1.5rem;
}

.calculator__form-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 600;
}

.calculator__form-note {
  font-size: 0.75rem;
  color: var(--text-muted-light);
  margin-top: 0.75rem;
  text-align: center;
  line-height: 1.4;
}

.calculator__transport-tip {
  background-color: var(--accent-sky-light);
  border-left: 4px solid var(--accent-sky);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.calculator__transport-tip strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

/* Calculator Floating Bar Base Styles */
.calculator__floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
}

.calculator__floating-bar.calculator__floating-bar_visible {
  display: flex;
}

body:has(.calculator__floating-bar.calculator__floating-bar_visible) {
  padding-bottom: 60px;
}

.calculator__floating-info {
  display: flex;
  flex-direction: column;
}

.calculator__floating-label {
  font-size: 0.75rem;
  color: var(--text-muted-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.calculator__floating-total {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-sky);
  line-height: 1;
}

.calculator__floating-btn {
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
}

/* ==========================================================================
   Forms System (BEM Block: form)
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-input_textarea {
  height: 80px;
  resize: none;
}

.form-group_mt-4 {
  margin-top: 1rem;
}

/* ==========================================================================
   Contacts Layout Block (Mobile Default)
   ========================================================================== */
.contacts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacts__item {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.contacts__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--accent-sky);
  margin-bottom: 0.5rem;
}

.contacts__label_theme_teal {
  color: var(--accent-teal);
}

.contacts__value {
  color: var(--text-main);
}

.contacts__value_margin_bottom {
  margin-bottom: 0.5rem;
}

.contacts__desc {
  font-size: 0.9rem;
  color: var(--text-muted-light);
  line-height: 1.4;
}

.contacts__phone {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.contacts__email-link {
  color: var(--accent-sky);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.contacts__email-link:hover {
  color: var(--accent-sky-hover);
}

.contacts__item_delivery {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.contacts__delivery-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contacts__requisites-container {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.contacts__requisites-title {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contacts requisites table horizontal scroll */
.contacts__requisites-table {
  display: block;
  width: 100%;
  overflow-x: visible;
  white-space: normal;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.contacts__requisites-row {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.contacts__requisites-cell {
  display: block;
  padding: 0;
}

.contacts__requisites-cell_label {
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contacts__requisites-cell_value {
  color: var(--text-main);
  word-break: break-all;
}

.contacts__map {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.contacts__map-header {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contacts__map-header-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted-light);
}

.contacts__map-badge {
  font-size: 0.8rem;
  background-color: var(--success);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.contacts__map-body {
  background-color: #f1f5f9;
  flex-grow: 1;
  position: relative;
}

.contacts__map-svg-wrap {
  width: 100%;
  height: auto;
  min-height: 300px;
  display: block;
}

.contacts__directions {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.contacts__directions-title {
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contacts__directions-text {
  margin-bottom: 0.5rem;
}

.contacts__directions-text:last-child {
  margin-bottom: 0;
}

.contacts__map-pulse {
  animation: contactsMapPulse 2s infinite;
  transform-origin: center;
}

@keyframes contactsMapPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.5;
  }
}

/* ==========================================================================
   Product Page Block (product.html - Mobile Default)
   ========================================================================== */
.product {
  padding: 2.5rem 0;
}

.product__detail {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.product__gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product__main-image-wrapper {
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.product__main-image-wrapper img {
  max-height: 90%;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-sky);
  color: var(--bg-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

.product__thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.product__thumbnail {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  transition: all var(--transition-fast);
}

.product__thumbnail:hover {
  border-color: var(--text-muted-light);
  transform: translateY(-2px);
}

.product__thumbnail img {
  max-height: 85%;
  width: auto;
  object-fit: contain;
}

.product__thumbnail_active {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.product__configurator {
  display: flex;
  flex-direction: column;
}

.product__breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  margin-bottom: 1rem;
}

.product__breadcrumbs a {
  transition: color var(--transition-fast);
}

.product__breadcrumbs a:hover {
  color: var(--accent-sky);
}

.product__title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.2;
}

.product__rating-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.product__stars {
  color: var(--warning);
  font-size: 1.1rem;
}

.product__reviews-count {
  color: var(--text-muted-light);
}

.product__status {
  font-weight: 500;
  color: var(--success);
}

.product__config-group {
  margin-bottom: 1.5rem;
}

.product__config-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.product__color-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product__color-option {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.product__color-option:hover {
  transform: scale(1.1);
}

.product__color-option_active {
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent-sky);
}

.product__color-option_color_white { background-color: #ffffff; }
.product__color-option_color_gray { background-color: #94a3b8; }
.product__color-option_color_green { background-color: #10b981; }
.product__color-option_color_red { background-color: #ef4444; }
.product__color-option_color_blue { background-color: #3b82f6; }
.product__color-option_color_black { background-color: #1e293b; }

.product__active-color {
  color: var(--text-main);
  font-weight: 600;
}

.product__volume-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.product__volume-chip {
  padding: 0.5rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.product__volume-chip:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-muted-light);
}

.product__volume-chip_active {
  background-color: var(--accent-sky-light);
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  font-weight: 600;
}

.product__purchase-card {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-inset);
  gap: 1rem;
}

.product__price-col {
  display: flex;
  flex-direction: column;
}

.product__price-label {
  font-size: 0.8rem;
  color: var(--text-muted-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product__price-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-sky);
}

.product__purchase-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.product__qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  height: 2.75rem;
  overflow: hidden;
}

.product__qty-btn {
  width: 2.5rem;
  height: 100%;
  border: none;
  background: none;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.product__qty-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}

.product__qty-value {
  width: 2.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
}

.product__image-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Product Tabs Navigation scrollable on Mobile */
.product__tabs-section {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.product__tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.product__tabs-nav::-webkit-scrollbar {
  display: none;
}

.product__tab-btn {
  display: block;
  width: 100%;
  text-align: left;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: all var(--transition-fast);
}

.product__tab-btn:hover {
  color: var(--accent-sky);
  background-color: var(--bg-tertiary);
}

.product__tab-btn::after {
  content: none;
}

.product__tab-btn_active {
  background-color: var(--accent-sky-light);
  border-color: var(--accent-sky-light);
  color: var(--accent-sky);
  font-weight: 700;
}

.product__tab-btn_active::after {
  content: none;
}

.product__tab-content {
  display: none;
}

.product__tab-content_active {
  display: block;
}

.product__seo-text h2,
.product__seo-text h3 {
  font-family: var(--font-heading);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.product__seo-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.product__seo-text ul {
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.product__seo-text li {
  margin-bottom: 0.5rem;
}

.product__alert {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--warning);
  padding: 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.product__alert-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.product__alert-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Specs table horizontal scroll on mobile */
.product__specs-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
}

.product__specs-table {
  display: table;
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  border-bottom: 1px solid var(--border-color);
  table-layout: auto;
}

.product__specs-table th,
.product__specs-table td {
  padding: 0.5rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.product__specs-table th:nth-child(1),
.product__specs-table td:nth-child(1) {
  width: 45%;
}

.product__specs-table th:nth-child(2),
.product__specs-table td:nth-child(2),
.product__specs-table th:nth-child(3),
.product__specs-table td:nth-child(3) {
  width: 27.5%;
}

.product__specs-table th {
  font-weight: 600;
  background-color: var(--bg-secondary);
  color: var(--text-main);
}

.product__reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.product__review-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.product__review-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.product__review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.product__review-author {
  font-weight: 600;
  color: var(--text-main);
}

.product__review-stars {
  color: var(--warning);
}

.product__review-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   Blog Block (blog.html - Mobile Default)
   ========================================================================== */
.blog {
  padding: 2.5rem 0;
}

.blog__grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.blog__card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.blog__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-sky);
}

.blog__image-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-secondary);
  position: relative;
}

.blog__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.blog__card:hover .blog__image-wrapper img {
  transform: scale(1.05);
}

.blog__card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog__card-meta {
  font-size: 0.8rem;
  color: var(--text-muted-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.blog__card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  line-height: 1.3;
  font-family: var(--font-heading);
}

.blog__card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog__card-link {
  color: var(--accent-sky);
  font-weight: 600;
  font-size: 0.9rem;
  align-self: flex-start;
  position: relative;
  transition: color var(--transition-fast);
}

.blog__card-link::after {
  content: ' →';
  transition: transform var(--transition-fast);
  display: inline-block;
}

.blog__card-link:hover {
  color: var(--accent-sky-hover);
}

.blog__card-link:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   Article Block (article.html - Mobile Default)
   ========================================================================== */
.article {
  padding: 2.5rem 1rem;
  max-width: 850px;
  margin: 0 auto;
}

.article__header {
  margin-bottom: 1.5rem;
}

.article__breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  margin-bottom: 0.75rem;
}

.article__breadcrumbs a {
  transition: color var(--transition-fast);
}

.article__breadcrumbs a:hover {
  color: var(--accent-sky);
}

.article__title {
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.article__meta {
  font-size: 0.8rem;
  color: var(--text-muted-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.article__featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  aspect-ratio: 16 / 9;
}

.article__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.article__body p {
  margin-bottom: 1.25rem;
}

.article__body h2,
.article__body h3 {
  font-family: var(--font-heading);
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article__body h2 {
  font-size: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.article__body h3 {
  font-size: 1.25rem;
}

.article__body ol,
.article__body ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article__body li {
  margin-bottom: 0.5rem;
}

.article__body strong {
  color: var(--text-main);
}

.article__quote {
  border-left: 4px solid var(--accent-sky);
  background-color: var(--bg-secondary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  box-shadow: var(--shadow-sm);
}

.article__quote p {
  margin-bottom: 0;
  color: var(--text-main);
  font-weight: 500;
}

.article__alert {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--warning);
  padding: 1rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}

.article__alert-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.article__alert-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Article Table Horizontal Scroll */
.article__table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
}

.article__table {
  display: table;
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  table-layout: auto;
}

.article__table th,
.article__table td {
  padding: 0.5rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article__table th:nth-child(1),
.article__table td:nth-child(1) {
  width: 35%;
}

.article__table th:nth-child(2),
.article__table td:nth-child(2),
.article__table th:nth-child(3),
.article__table td:nth-child(3),
.article__table th:nth-child(4),
.article__table td:nth-child(4) {
  width: 21.6%;
}

.article__table th {
  font-weight: 600;
  background-color: var(--bg-tertiary);
  color: var(--text-main);
}

.article__table tr:hover {
  background-color: rgba(248, 250, 252, 0.5);
}

/* ==========================================================================
   General / Reusable Blocks & Modifiers (Mobile Default)
   ========================================================================== */
.page-header {
  background-color: var(--bg-primary);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.page-header__title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.page-header__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.5;
}

/* CTA Section Block */
.cta-section {
  background-color: var(--bg-primary);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.cta-section_theme_secondary {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.cta-section_compact {
  padding: 2rem 0;
}

.cta-section__container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section__title {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.cta-section__text {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__btn {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

/* ==========================================================================
   Site Footer Block (Mobile Default)
   ========================================================================== */
.site-footer {
  background-color: #0f172a; /* Slate 900 */
  color: #94a3b8; /* Slate 400 */
  padding: 3rem 0 1.5rem 0;
  border-top: 1px solid var(--border-color);
}

.site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer__title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer__links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.site-footer__links a:hover {
  color: #ffffff;
}

.site-footer__bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.site-footer__copyright {
  font-size: 0.85rem;
}

.site-footer__socials {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.site-footer__socials a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.site-footer__socials a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}


/* ==========================================================================
   Progressive Enhancement: Media Query for Tablets/Tables (min-width: 600px)
   ========================================================================== */
@media (min-width: 600px) {
  /* Containers & Padding */
  .container {
    padding: 0 1.25rem;
  }

  /* Grid adaptations */
  .features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  
  .blog__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }

  .hero__actions {
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
  }

  .hero__actions .btn {
    width: auto;
  }

  .site-footer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Revert Catalog Cards to Table View */
  .catalog__table,
  .catalog__table thead,
  .catalog__table tbody,
  .catalog__table tr,
  .catalog__table td {
    display: table;
    width: 100%;
  }

  .catalog__table thead {
    display: table-header-group;
  }

  .catalog__table tr {
    display: table-row;
    background: none;
    border-bottom: none;
    padding: 0;
  }

  .catalog__table td {
    display: table-cell;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    text-align: left;
    font-size: 0.95rem;
  }

  /* Remove card pseudo labels */
  .catalog__table td::before {
    content: none !important;
  }

  /* First cell product title name */
  .catalog__table td:nth-of-type(1) {
    display: table-cell;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    margin-bottom: 0;
  }

  .catalog__table td:nth-of-type(5) {
    display: table-cell;
    text-align: center;
    padding-top: 1rem;
    border-top: none;
    margin-top: 0;
  }

  .catalog__table td:nth-of-type(5) .btn {
    width: auto;
  }

  /* Revert Calculator Cards to Table View */
  .calculator__table,
  .calculator__table thead,
  .calculator__table tbody,
  .calculator__table tr,
  .calculator__table td {
    display: table;
    width: 100%;
  }

  .calculator__table thead {
    display: table-header-group;
  }

  .calculator__table tr {
    display: table-row;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 0;
    box-shadow: none;
  }

  .calculator__row_type_category {
    margin-top: 0;
    margin-bottom: 0;
  }

  .calculator__cat-header {
    display: table-cell;
    text-align: left;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0;
  }

  .calculator__table td:not(.calculator__cat-header) {
    display: table-cell;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0.75rem;
    text-align: left;
    font-size: 0.95rem;
    vertical-align: middle;
  }

  /* Remove calculator card pseudo labels */
  .calculator__table td:not(.calculator__cat-header)::before {
    content: none !important;
  }

  /* Column 1: Product name – takes remaining space */
  .calculator__table td:nth-of-type(1):not(.calculator__cat-header) {
    display: table-cell;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0;
    min-width: 160px;
  }

  /* Column 2: Package/Fasovka */
  .calculator__table td:nth-of-type(2):not(.calculator__cat-header) {
    white-space: nowrap;
    width: 110px;
    color: var(--text-muted-light);
  }

  /* Column 3: Unit price — must NOT wrap */
  .calculator__table td:nth-of-type(3):not(.calculator__cat-header) {
    white-space: nowrap;
    width: 100px;
    font-weight: 600;
    color: var(--text-main);
  }

  /* Column 4: Quantity controls */
  .calculator__table td:nth-of-type(4):not(.calculator__cat-header) {
    width: 140px;
    text-align: center;
  }

  /* Column 5: Row subtotal — must NOT wrap */
  .calculator__table td:nth-of-type(5):not(.calculator__cat-header) {
    white-space: nowrap;
    width: 90px;
    text-align: right;
    font-weight: 700;
    color: var(--accent-sky);
  }

  .calculator__qty-wrapper {
    margin-left: 0;
    justify-content: center;
  }
}

/* ==========================================================================
   Progressive Enhancement: Media Query for Tablets (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  /* Typography Scale */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.4rem;
  }

  .section-header__title {
    font-size: 2.25rem;
  }

  .section-header__subtitle {
    font-size: 1.05rem;
  }

  /* Container */
  .container {
    padding: 0 1.5rem;
  }

  /* Spacing */
  .hero,
  .features,
  .benefits,
  .cta-section,
  .catalog,
  .calculator,
  .contacts,
  .product,
  .blog,
  .article {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }

  /* Header adjustments: Hide Burger, show Horizontal Menu */
  .site-header__burger {
    display: none;
  }

  .site-header__menu {
    position: static;
    display: flex;
    flex-direction: row;
    padding: 0;
    gap: 2rem;
    box-shadow: none;
    background-color: transparent;
    backdrop-filter: none;
    border-bottom: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    z-index: auto;
  }

  .site-header__link {
    display: inline-block;
  }

  .site-header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-sky);
    transition: width var(--transition-normal);
  }

  .site-header__link:hover::after, 
  .site-header__link_active::after {
    width: 100%;
  }

  .site-header__cta {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .site-header__menu-mobile-cta {
    display: none;
  }

  /* Catalog list menu changes back to sidebar style */
  .catalog__menu {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
    white-space: normal;
    padding-bottom: 0;
    margin-bottom: 0;
    gap: 0.25rem;
  }

  .catalog__btn {
    width: 100%;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
  }

  .catalog__btn_active {
    background-color: var(--accent-sky-light);
    border-color: transparent;
    color: var(--accent-sky);
  }

  /* Product details */
  .product__detail {
    padding: 2rem;
  }

  .product__purchase-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .product__purchase-actions {
    justify-content: flex-start;
  }

  .product__tabs-section {
    padding: 2.5rem;
  }

  .product__tabs-nav {
    flex-direction: row;
    border-bottom: 2px solid var(--border-color);
    gap: 2rem;
    margin-bottom: 1.5rem;
  }

  .product__tab-btn {
    display: inline-block;
    width: auto;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0.5rem 0;
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
  }

  .product__tab-btn:hover {
    color: var(--accent-sky);
    background: none;
  }

  .product__tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-sky);
    transition: width var(--transition-normal);
  }

  .product__tab-btn_active {
    background: none;
    border: none;
    color: var(--accent-sky);
  }

  .product__tab-btn_active::after {
    content: '';
    width: 100%;
  }

  /* Benefits layouts */
  .benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  /* Article details scale up */
  .article {
    padding: 3rem 0;
  }

  .article__featured-image {
    aspect-ratio: 21 / 9;
    margin-bottom: 3rem;
  }

  .article__title {
    font-size: 2.5rem;
  }

  .article__meta {
    font-size: 0.85rem;
    gap: 0.75rem;
  }

  /* Requisites and Spec tables on tablet layout */
  .contacts__requisites-table {
    display: table;
  }

  .contacts__requisites-row {
    display: table-row;
  }

  .contacts__requisites-cell {
    display: table-cell;
    padding: 0.5rem 1rem 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .contacts__requisites-cell_label {
    width: 40%;
  }

  .contacts__requisites-cell_value {
    word-break: normal;
  }

  .product__specs-table,
  .article__table {
    display: table;
    table-layout: fixed;
    min-width: 0;
  }

  .product__specs-table th,
  .product__specs-table td {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .article__table th,
  .article__table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Footer bottom layout horizontal */
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .site-footer__socials {
    justify-content: flex-end;
  }

  /* Hide floating bar on tablet and desktop */
  .calculator__floating-bar {
    display: none !important;
  }

  body:has(.calculator__floating-bar.calculator__floating-bar_visible) {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Progressive Enhancement: Media Query for Desktop (min-width: 992px)
   ========================================================================== */
@media (min-width: 992px) {
  /* Typography Scale */
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  /* Section Padding */
  .hero {
    padding: 4.5rem 0;
  }

  .cta-section {
    padding: 5rem 0;
  }

  .cta-section_compact {
    padding: 4rem 0;
  }

  /* Hero section grid */
  .hero__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    text-align: left;
  }

  .hero__content h1 {
    font-size: 3rem;
    margin-bottom: 1.25rem;
  }

  .hero__content p {
    font-size: 1.15rem;
    margin-bottom: 2.25rem;
    margin-left: 0;
    margin-right: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  /* Features block grid */
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features__grid_columns_large {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  /* Catalog grid with sticky sidebar */
  .catalog {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
  }

  .catalog__sidebar {
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
  }

  /* Calculator layouts */
  .calculator {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2rem;
    align-items: start;
  }

  /* Contacts layout side-by-side */
  .contacts {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }

  .contacts__map-svg-wrap {
    min-height: 400px;
  }

  /* Product details side-by-side */
  .product__detail {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    padding: 2.5rem;
  }

  /* Blog page layout */
  .blog__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer layout */
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* ==========================================================================
   Legal Pages Block (privacy.html, consent.html, terms.html)
   ========================================================================== */
.legal {
  padding: 2.5rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal__header {
  margin-bottom: 2rem;
}

.legal__breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  margin-bottom: 1rem;
}

.legal__breadcrumbs a {
  color: var(--accent-sky);
}

.legal__breadcrumbs a:hover {
  text-decoration: underline;
}

.legal__title {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.legal__date {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  font-style: italic;
}

.legal__body {
  line-height: 1.7;
}

.legal__section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal__section:last-child {
  border-bottom: none;
}

.legal__section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.legal__section h3 {
  font-size: 1.1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.legal__section p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal__section ul,
.legal__section ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal__section li {
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.legal__section a {
  color: var(--accent-sky);
}

.legal__section a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Cookie Consent Banner Block
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner_visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  line-height: 1.55;
}

.cookie-banner__text a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: #7dd3fc;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.cookie-banner__btn_accept {
  background-color: var(--accent-sky);
  color: #ffffff;
}

.cookie-banner__btn_accept:hover {
  background-color: var(--accent-sky-hover);
}

.cookie-banner__btn_necessary {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.cookie-banner__btn_necessary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Form Consent Checkbox Block
   ========================================================================== */
.form-group_checkbox {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--accent-sky);
  cursor: pointer;
}

.form-checkbox a {
  color: var(--accent-sky);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-checkbox a:hover {
  color: var(--accent-sky-hover);
}

/* ==========================================================================
   Footer Legal Links Block
   ========================================================================== */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}

.site-footer__legal a {
  color: var(--text-muted-light);
  font-size: 0.8rem;
  transition: color var(--transition-fast);
}

.site-footer__legal a:hover {
  color: var(--accent-sky);
  text-decoration: underline;
}

/* ==========================================================================
   Progressive Enhancement: Tablet & Up (min-width: 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__actions {
    flex-direction: row;
    flex-shrink: 0;
  }

  .cookie-banner__text {
    font-size: 0.85rem;
  }

  .site-footer__legal {
    margin-top: 0.75rem;
  }
}

/* ==========================================================================
   Progressive Enhancement: Large Desktop Container (min-width: 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* ==========================================================================
   Toast Notification System (calc-toast)
   ========================================================================== */
.calc-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  max-width: calc(100vw - 2rem);
  min-width: 280px;
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}

.calc-toast_visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.calc-toast_success {
  background-color: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.calc-toast_error {
  background-color: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.calc-toast__icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1;
}

.calc-toast__msg {
  flex: 1;
  line-height: 1.45;
}

.calc-toast__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: currentColor;
  opacity: 0.6;
  padding: 0.2rem;
  border-radius: 4px;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.calc-toast__close:hover {
  opacity: 1;
}

@media (min-width: 600px) {
  .calc-toast {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    transform: translateY(120%);
    max-width: 420px;
  }

  .calc-toast_visible {
    transform: translateY(0);
  }
}

