/* ===== ШРИФТЫ ===== */
@@font-face {
  font-family: 'Cygre';
  src: url('/common/fonts/Cygre.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ===== КОМПЛЕКСНАЯ СИСТЕМА ДИЗАЙНА ===== */
:root {
  /* ===== Палитра ===== */
  --color-black: #333;
  --color-black4: #131313;
  --color-yellow: #FDC018;
  --color-white: #FFFFFF;
  --color-white2: #fafafa;
  --color-grey: #888;
  --color-grey-light: #afafaf44;
  --color-grey-light2: #1b1b1c;
  --logo: var(--color-yellow);
  --callback: var(--color-black);

  /* ===== Фоны ===== */
  --common-background: var(--color-white2);
  --header-background: var(--color-white2);
  --menu-background: var(--color-white2);
  --form-background: var(--color-white2);
  --other-product-background: var(--color-white2);
  --constructor-product-background: var(--color-white2);

  /* ===== Тексты ===== */
  --primary: var(--color-black);
  --primary-text: #424242;
  --secondary-text: #4a4a4ad6;
  --focus-text: #FDC018;

  /* ===== Основные ===== */
  --secondary: var(--color-white);
  --third: var(--color-grey-light);
  --fourth: var(--color-yellow);
  --fifth: var(--color-grey);
  --static: var(--color-black);
  --static2: var(--color-white);
  --border: #cccccc;

  /* ===== Тени ===== */
  --shadow-base: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.25), 0 10px 10px -5px rgba(0,0,0,0.15);

  /* ===== Типографика ===== */
  --font-family: 'Cygre', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Основные размеры */
  --font-size-h1: 32px;
  --font-size-h2: 26px;
  --font-size-h3: 20px;
  --font-size-h4: 18px;
  --font-size-p: 16px;
  --font-size-sm: 14px;
  --font-size-xs: 12px;
  
  /* Планшеты */
  --font-size-h1-tablet: 28px;
  --font-size-h2-tablet: 24px;
  --font-size-h3-tablet: 20px;
  --font-size-h4-tablet: 18px;
  --font-size-p-tablet: 15px;
  
  /* Мобильные */
  --font-size-h1-mobile: 24px;
  --font-size-h2-mobile: 22px;
  --font-size-h3-mobile: 18px;
  --font-size-h4-mobile: 16px;
  --font-size-p-mobile: 14px;
  --font-size-sm-mobile: 12px;
  --font-size-xs-mobile: 10px;
  
  /* Веса шрифтов */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Высота строки */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;

  /* ===== Скругления ===== */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-btn: 30px;
  
  /* Алиасы для скруглений (для совместимости) */
  --border-radius-background: var(--radius-lg);
  --border-radius-button: var(--radius-btn);
  --border-radius-form: var(--radius-md);

  /* ===== Анимации ===== */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;

  /* ===== Отступы ===== */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* ===== Header ===== */
  --header-height: 60px;
  --header-height-scrolled: 60px;
  --high-header-height: 40px;

  /* ===== Z-index ===== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1050;
  --z-popover: 1060;

  /* ===== Кнопки ===== */
  --btn-height-sm: 36px;
  --btn-height-md: 48px;
  --btn-height-lg: 56px;
  --btn-font-size-sm: 14px;
  --btn-font-size-md: 16px;
  --btn-font-size-lg: 18px;
  --btn-padding-sm: 16px;
  --btn-padding-md: 24px;
  --btn-padding-lg: 32px;
  --btn-shadow: 0 4px 12px rgba(0,0,0,0.15);
  --btn-shadow-hover: 0 6px 20px rgba(0,0,0,0.2);

  /* ===== Алиасы для совместимости ===== */
  --font-family-primary: var(--font-family);
}

/* ===== Тёмная тема ===== */
[data-theme="dark"] {
  --primary: #FFFFFF;
  --secondary: #1A1A1C;
  --common-background: #0F0F10;
  --header-background: #1A1A1C;
  --menu-background: #1A1A1C;
  --form-background: #1A1A1C;
  --other-product-background: #1A1A1C;
  --constructor-product-background: #1A1A1C;
  --third: #252528;
  --primary-text: #B0B0B5;
  --secondary-text: #7A7A80;
  --border: #3A3A3E;
  --fifth: #7A7A80;
  --logo: var(--primary);
  --callback: var(--color-yellow);
  
  --shadow-base: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.6), 0 10px 10px -5px rgba(0,0,0,0.4);
  --btn-shadow: 0 4px 12px rgba(0,0,0,0.5);
  --btn-shadow-hover: 0 6px 20px rgba(0,0,0,0.7);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  background: var(--common-background);
  color: var(--primary);
  line-height: var(--line-height-normal);
  transition: background var(--transition-base), color var(--transition-base);
  min-height: 100vh;
}

/* ===== Типографика ===== */
h1, .h1 { 
  font-size: var(--font-size-h1); 
  font-weight: var(--font-weight-normal); 
  line-height: var(--line-height-tight); 
  margin-bottom: var(--spacing-lg); 
}

h2, .h2 { 
  font-size: var(--font-size-h2); 
  font-weight: var(--font-weight-normal); 
  line-height: var(--line-height-tight); 
  margin-bottom: var(--spacing-md); 
}

h3, .h3 { 
  font-size: var(--font-size-h3); 
  font-weight: var(--font-weight-normal); 
  line-height: var(--line-height-tight); 
}

h4, .h4 { 
  font-size: var(--font-size-h4); 
  font-weight: 100; 
  line-height: var(--line-height-tight); 
  margin-bottom: var(--spacing-sm); 
}

p { 
  font-size: var(--font-size-p); 
  color: var(--primary); 
}

button { 
  font-family: var(--font-family); 
  border: none; 
  cursor: pointer; 
  transition: var(--transition-base); 
  background: none; 
  padding: 0; 
}

/* ===== Формы ===== */
input, textarea, select {
  font-family: var(--font-family);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(---spacing-sm) var(--spacing-md);
  background: var(--secondary);
  color: var(--primary);
  transition: border-color var(--transition-base);
  font-size: var(--font-size-p);
}

input:focus, textarea:focus, select:focus { 
  outline: none; 
  border-color: var(--fourth); 
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-base);
  border-radius: var(--radius-md);
}

.btn-sm { 
  height: var(--btn-height-sm); 
  padding: 0 var(--btn-padding-sm); 
  font-size: var(--btn-font-size-sm); 
}

.btn-md { 
  height: var(--btn-height-md); 
  padding: 0 var(--btn-padding-md); 
  font-size: var(--btn-font-size-md); 
}

.btn-lg { 
  height: var(--btn-height-lg); 
  padding: 0 var(--btn-padding-lg); 
  font-size: var(--btn-font-size-lg); 
}

.btn-primary { 
  background: var(--fourth); 
  color: var(--static); 
  box-shadow: var(--btn-shadow); 
  text-decoration: none
}

.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: var(--btn-shadow-hover); 
}

/* ===== Контейнер ===== */
.container { 
  width: 100%; 
  max-width: 1400px; 
  margin: 0 auto; 
}

/* ===== Изображения ===== */
img { 
  max-width: 100%; 
  height: auto; 
  display: block; 
}

/* ===== Хелперы ===== */
.hidden { display: none !important; }
.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0,0,0,0); 
  border: 0; 
}
.truncate { 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

/* Фокус для клавиатуры */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.social-icon:focus-visible,
.cart-button:focus-visible,
.burger-menu:focus-visible,
.theme-switcher:focus-visible {
    outline: 2px solid var(--fourth, #FDC018);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Анимации ===== */
@keyframes fadeIn { 
  from { opacity: 0; transform: translateY(20px); } 
  to { opacity: 1; transform: translateY(0); } 
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  h1, .h1 { font-size: var(--font-size-h1-tablet); }
  h2, .h2 { font-size: var(--font-size-h2-tablet); }
  h3, .h3 { font-size: var(--font-size-h3-tablet); }
  h4, .h4 { font-size: var(--font-size-h4-tablet); }
  p  { font-size: var(--font-size-p-tablet); }
}

@media (max-width: 768px) {
  h1, .h1 { font-size: var(--font-size-h1-mobile); }
  h2, .h2 { font-size: var(--font-size-h2-mobile); }
  h3, .h3 { font-size: var(--font-size-h3-mobile); }
  h4, .h4 { font-size: var(--font-size-h4-mobile); }
  p  { font-size: var(--font-size-p-mobile); }
  .container { padding: var(--spacing-md); }
}

@media (max-width: 480px) {
  h1, .h1 { font-size: 20px; }
  h2, .h2 { font-size: 18px; }
  h3, .h3 { font-size: 15px; }
  p  { font-size: 13px; }
}/* common/text-block/css/text-block.css */

.text-block {
    /* margin-left: var(--spacing-3xl); */
    padding: var(--spacing-xl) 0 var(--spacing-xl) 0;
    box-sizing: border-box;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.text-block--align-center {
    justify-content: center;
    text-align: center;
}

.text-block--align-left {
    justify-content: flex-start;
    text-align: left;
}

.text-block--align-right {
    justify-content: flex-end;
    text-align: right;
}

.text-block-content {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    width: 100%;
}

.text-block--align-center .text-block-content {
    justify-content: center;
}

.text-block--align-left .text-block-content {
    justify-content: flex-start;
}

.text-block--align-right .text-block-content {
    justify-content: flex-end;
}

.text-block-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    color: var(--primary);
    line-height: 1.1;
    margin: 0;
}

.text-block-title--h1 {
    font-size: var(--font-size-h1);
}

.text-block-title--h2 {
    font-size: var(--font-size-h2);
}

.text-block-title--h3 {
    font-size: var(--font-size-h3);
}

.text-block-title--h4 {
    font-size: var(--font-size-h4);
}

.text-block-description {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
    color: var(--primary);
    line-height: var(--line-height-normal);
    margin: 0;
}

.text-block-description--lead {
    font-size: var(--font-size-lead);
}

.text-block-description--p {
    font-size: var(--font-size-p);
}

.text-block-description--small {
    font-size: var(--font-size-small);
}

.text-block-description-link {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

.text-block-description-link:hover,
.text-block-description-link:focus {
    color: var(--color-primary);
    text-decoration: underline;
}

.text-block-description-link:active {
    color: var(--color-primary-dark);
}

/* Адаптивность */
@media (max-width: 1023px) {
    .text-block-title--h1 {
        font-size: var(--font-size-h1-tablet);
    }
    
    .text-block-title--h2 {
        font-size: var(--font-size-h2-tablet);
    }
    
    .text-block-title--h3 {
        font-size: var(--font-size-h3-tablet);
    }
}

@media (max-width: 767px) {
    .text-block {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .text-block--align-center {
        align-items: center;
    }
    
    .text-block--align-right {
        align-items: flex-end;
    }
    
    .text-block-content {
        flex-direction: column;
        align-items: inherit;
        gap: var(--spacing-xs);
    }
    
    .text-block-title--h1 {
        font-size: var(--font-size-h1-mobile);
    }
    
    .text-block-title--h2 {
        font-size: var(--font-size-h2-mobile);
    }
    
    .text-block-title--h3 {
        font-size: var(--font-size-h3-mobile);
    }
    
    .text-block-description--p {
        font-size: var(--font-size-p-mobile);
    }
}/* common/footer/css/footer.css */

.footer {
  background: #1A1A1C;
  padding: var(--spacing-xl) 0;
  font-family: var(--font-family-primary);
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--third);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-md);
  color: var(--fourth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: center;
}

.footer-list-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.footer-link {
  color: var(--color-white);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--fourth);
}

/* Нижняя секция */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--third);
  padding-top: var(--spacing-lg);
}

.footer-copyright {
  /* font-size: var(--font-size-xs); */
  color: var(--color-white);
  /* opacity: 0.5;
  margin: 0; */
}

/* Sticky Footer */
body.sticky-footer {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

body.sticky-footer main {
  flex: 1 0 auto;
  width: 100%;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .footer {
    padding: var(--spacing-lg) 0;
  }
  .footer-grid {
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
  }
  .footer-title {
    font-size: var(--font-size-sm-tablet);
  }
  .footer-link {
    font-size: var(--font-size-sm-tablet);
  }
}

@media (max-width: 768px) {
  .footer {
    padding: var(--spacing-md) 0;
  }
  .footer-container {
    padding: 0 var(--spacing-sm);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
  }
  /* .footer-column {
    align-items: center;
  } */
  .footer-title {
    text-align: center;
    font-size: var(--font-size-sm-mobile);
  }
  .footer-list-item {
    justify-content: center;
  }
  .footer-link {
    font-size: var(--font-size-sm-mobile);
  }
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: var(--spacing-sm) 0;
  }
  .footer-container {
    padding: 0 var(--spacing-xs);
  }
  .footer-grid {
    gap: var(--spacing-md);
  }
  .footer-title {
    font-size: var(--font-size-xs);
    margin-bottom: var(--spacing-sm);
  }
  .footer-link {
    font-size: var(--font-size-xs);
  }
}

@media (min-width: 1025px) {
  /* .footer-column {
    align-items: flex-start;
  } */
  .footer-title {
    text-align: left;
  }
  .footer-list-item {
    justify-content: flex-start;
  }
}/* common/callback/css/callback.css - с использованием глобальных переменных */

.callback-fab {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: var(--z-fixed);
}

.callback-form-section {
    position: fixed;
    bottom: 100px;
    right: var(--spacing-xl);
    width: 340px;
    max-width: calc(100vw - var(--spacing-xl) * 2);
    z-index: var(--z-modal);
    display: none;
}

/* FIXED: изменено с #callback-fab-btn на .callback-fab-btn */
.callback-fab-btn {
    width: 52px;
    height: 52px;
    transition: all var(--transition-base);
    background: var(--callback);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.callback-fab-btn:hover {
    transform: scale(1.05);
    /* background: var(--fourth);
    color: var(--primary); */
}

.callback-card {
    background: var(--secondary);
    border: 1px solid var(--third);
    border-radius: var(--border-radius-background);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.callback-card-header {
    background: transparent;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--fourth);
}

.callback-card-header h3 {
    margin: 0;
    font-family: var(--font-family-primary);
    font-size: var(--font-size-h4);
    font-weight: var(--font-weight-normal);
    color: var(--primary);
}

/* FIXED: изменено с #callback-close-btn на .callback-close-btn */
.callback-close-btn {
    background: none;
    border: none;
    color: var(--primary-text);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-button);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.callback-close-btn:hover {
    color: var(--fourth);
    background: var(--third);
}

.callback-card-body {
    padding: var(--spacing-lg);
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .callback-form-section {
        width: 320px;
    }
    
    .callback-card-header h3 {
        font-size: var(--font-size-h4-tablet);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .callback-fab {
        bottom: 84px;
        right: var(--spacing-lg);
    }
    
    .callback-form-section {
        bottom: 80px;
        right: var(--spacing-md);
        left: var(--spacing-md);
        width: auto;
        max-width: none;
    }
    
    .callback-fab-btn {
        width: 48px;
        height: 48px;
    }
    
    .callback-card-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .callback-card-header h3 {
        font-size: var(--font-size-h4-mobile);
    }
    
    .callback-card-body {
        padding: var(--spacing-md);
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
    .callback-fab {
        right: var(--spacing-lg);
    }
    
    .callback-form-section {
        bottom: 70px;
        right: var(--spacing-sm);
        left: var(--spacing-sm);
    }
    
    .callback-fab-btn {
        width: 44px;
        height: 44px;
    }
    
    .callback-fab-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .callback-card-header h3 {
        font-size: var(--font-size-p);
    }
    
    .callback-card-body {
        padding: var(--spacing-sm);
    }
}