/* =============================================
   ДИЗАЙН-СИСТЕМА (DEEP SYNAPSE)
   Версия: 1.0
   Назначение: Унифицированные переменные, типографика, утилиты и стилизация блоков Tilda
   ============================================= */

/* =================== ПЕРЕМЕННЫЕ =================== */
:root {
  /* Отступы */
  --main-margin: 40px;
  --margin-xxl: 96px;
  --margin-xl: 64px;
  --margin-lg: 48px;
  --margin-md: 32px;
  --margin-sm: 24px;
  --margin-xs: 16px;
  
  --gap: 24px;
  --padding: 24px;

  
  --padding-card-lg: 96px 64px;
  
  /* Отступы у кнопок */
  --padding-btn_lg: 24px 64px;
  --padding-btn_md: 20px 32px;
  --padding-btn_smd: 14px 22px;
  --padding-btn_sm: 10px 18px;
  
  /* Отступы у кнопок */
  --btn-padding-y-md: 20px;
  --btn-padding-x-md: 32px;
  --btn-padding-y-smd: 14px;
  --btn-padding-x-smd: 22px;
  --btn-padding-y-sm: 10px;
  --btn-padding-x-sm: 18px;

  /* Скругления */
    --border-lg: 48px;
    --border-md: 24px;
    --border-sm: 16px;
    --border-xs: 8px;

  /* Размеры шрифта */
  --letter-spacing: -0.05em;
  
    /*--h1: clamp(60px, 6vw, 128px);*/
    /*--h2: clamp(48px, 4.2vw, 64px);*/
    /*--h3: clamp(36px, 3.6vw, 48px);*/
  
  --h1-hero: clamp(60px, 6vw, 128px);
  --h1: clamp(48px, 4.2vw, 68px);
  --h2: clamp(36px, 3.6vw, 48px);
  --h3: clamp(26px, 2.3vw, 36px);
  --h4: clamp(22px, 1.8vw, 28px);
  --h5: clamp(18px, 1.5vw, 24px);
  --p1: clamp(18px, 1.4vw, 20px);
  --p2: clamp(16px, 1.3vw, 18px);
  --p3: clamp(14px, 1.2vw, 16px);
  --caption: clamp(18px, 1.4vw, 20px);
  --btn_md: clamp(20px, 1.6vw, 22px);
  --btn_smd: clamp(16px, 1.4vw, 18px);
  --btn_sm: clamp(14px, 1.3vw, 16px);

  /* Цвета */
  --white: #E6E6E6;
  --black: #202020;
  --gray: #DEDEDE;
  --gray-2: #838383;
  --gray-hover: #D2D2D2;
  --gray-line: #cecece;
  --red: #E3182C;

  /* Размеры иконок */
  --icon-xl: 32px;
  --icon-lg: 24px;
  --icon-md: 20px;
  --icon-sm: 16px;
  
    /* --- Тени --- */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06); /* лёгкая тень */
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);  /* средняя тень */
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.2);  /* глубокая тень */
  --shadow-btn: 
    0 7px 18px -15px hsla(0,0%,5%,.04),
    0 20px 20px 0 hsla(0,0%,5%,.05),
    0 24px 19px -30px hsla(0,0%,5%,.25);

  /* --- Базовое плавное поведение при hover и transition --- */
  --transition-base: 0.3s ease-in-out;
  --transition-cubic: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== АДАПТИВНЫЕ ПЕРЕМЕННЫЕ ===== */
@media screen and (max-width: 1200px) {
  :root {
    --padding: 24px;
    --icon-xl: 28px;
  }
}

@media screen and (max-width: 960px) {
  :root {
    --padding-card-lg: 64px 48px;
    --padding-btn_lg: 24px 36px;
    --padding-btn_md: 20px 26px;
    --padding-btn_smd: 14px 20px;
    --h1-hero: clamp(32px, 7vw, 56px);
    --h1: clamp(36px, 5.6vw, 48px);
    --h2: clamp(30px, 4.5vw, 36px);
    --h3: clamp(24px, 4vw, 28px);
    --h4: clamp(20px, 3.4vw, 22px);
    --btn_md: clamp(18px, 3vw, 20px);
    --p1: clamp(16px, 2.4vw, 18px);
    --p2: clamp(15px, 2.2vw, 16px);
    --caption: clamp(16px, 3vw, 18px);
    --margin-xxl: 64px;
    --margin-xl: 48px;
    --margin-lg: 32px;
    --margin-md: 24px;
    --margin-sm: 16px;
    --margin-xs: 12px;
  }
}

@media screen and (max-width: 640px) {
  :root {
    --h1-hero: clamp(32px, 9vw, 48px);
    --p1: clamp(16px, 4vw, 18px);
    --main-margin: 20px;
    --gap: 16px;
    --padding: 16px;
    --padding-btn_lg: 20px 32px;
    --padding-btn_md: 18px 24px;
    --padding-card-lg: 48px 32px;
    --border-lg: 16px;
    --icon-xl: 26px;
    --icon-lg: 20px;
    --icon-md: 18px;
    --icon-sm: 14px;
  }
}

@media screen and (max-width: 320px) {
  :root {
    --padding-btn_lg: 20px 24px;
    --padding-btn_md: 18px 20px;
  }
}

/* =================== ТИПОГРАФИКА =================== */
h1, h2, h3, h4, h5, h6, p1, p2, p3, caption {
  font-weight: 400 !important;
  letter-spacing: var(--letter-spacing) !important;
  text-wrap-style: balance;
}

h1 { font-size: var(--h1) !important; line-height: 110% !important; }
h2 { font-size: var(--h2) !important; line-height: 110% !important; }
h3 { font-size: var(--h3) !important; line-height: 110% !important; }
h4 { font-size: var(--h4) !important; line-height: 110% !important; }
h5 { font-size: var(--h5) !important; line-height: 110% !important; }
h6 { font-size: var(--h6) !important; line-height: 110% !important; }
p1 { font-size: var(--p1) !important; line-height: 140% !important; }
p2 { font-size: var(--p2) !important; line-height: 140% !important; }
p3 { font-size: var(--p3) !important; line-height: 140% !important; }
caption { font-size: var(--caption) !important; }

/* =================== КНОПКИ =================== */
.t-btn_md, .t-btn_smd, .t-btn_sm {
  display: flex;
  align-items: center;
  justify-content: center;
  height: fit-content !important;
  gap: 6px;
  font-weight: 500 !important;
  line-height: 120% !important;
  transition: 0.3s ease-in-out !important;
  border-radius: 20px !important;
}


.t-btn_md {
  padding: var(--padding-btn_md) !important;
  font-size: var(--btn_md) !important;
}

.t-btn_smd {
  padding: var(--padding-btn_smd) !important;
  font-size: var(--btn_smd) !important;
}

.t-btn_sm {
  padding: var(--padding-btn_sm) !important;
  font-size: var(--btn_sm) !important;
}

/* =================== СЕТКА И ОБОЛОЧКИ TILDA =================== */

/*Линия*/
    .uc-line .t118__line {
            background-color: var(--gray-line) !important;
    }
    
    .uc-line .t118{
        padding: 0 !important;
        margin: 0 !important;
    }

.t-col_12 {
  max-width: 1920px !important;
}

.t-col {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

.t-container, .t896, .t649, .t605, .t-cover-outer,
.t823__container, .t897__container, .t280__menu__container,
.t280__container, .t228__maincontainer, .t-card__container,
.t389__maincontainer {
  max-width: 1920px !important;
  padding: 0 var(--main-margin) !important;
  box-sizing: border-box;
}

.t823__container, .t649, .t605 {
  margin: 0 auto;
}

/* =================== МЕЖБЛОКОВЫЕ ОТСТУПЫ =================== */

.t-rec_pt_180 { padding-top: 196px !important; }
.t-rec_pb_180 { padding-bottom: 196px !important; }
.t-rec_pt_120 { padding-top: 128px !important; }
.t-rec_pb_120 { padding-bottom: 128px !important; }
.t-rec_pt_90  { padding-top: 96px !important; }
.t-rec_pb_90  { padding-bottom: 96px !important; }
.t-rec_pt_60  { padding-top: 64px !important; }
.t-rec_pb_60  { padding-bottom: 64px !important; }
.t-rec_pt_45  { padding-top: 48px !important; }
.t-rec_pb_45  { padding-bottom: 48px !important; }
.t-rec_pt_30  { padding-top: 32px !important; }
.t-rec_pb_30  { padding-bottom: 32px !important; }
.t-rec_pt_15  { padding-top: 24px !important; }
.t-rec_pb_15  { padding-bottom: 24px !important; }

@media screen and (max-width: 1200px) {
    .t-rec_pt_120 { padding-top: 96px !important; }
    .t-rec_pb_120 { padding-bottom: 96px !important; }
    .t-rec_pt_90  { padding-top: 64px !important; }
    .t-rec_pb_90  { padding-bottom: 64px !important; }
    .t-rec_pt_60  { padding-top: 48px !important; }
    .t-rec_pb_60  { padding-bottom: 48px !important; }
    .t-rec_pt_45  { padding-top: 32px !important; }
    .t-rec_pb_45  { padding-bottom: 32px !important; }
    .t-rec_pt_30  { padding-top: 24px !important; }
    .t-rec_pb_30  { padding-bottom: 24px !important; }
}

@media screen and (max-width: 980px) {
    .t-rec_pt_180 { padding-top: 144px !important; }
    .t-rec_pb_180 { padding-bottom: 144px !important; }
}

@media screen and (max-width: 640px) {
    .t-rec_pt_180 { padding-top: 96px !important; }
    .t-rec_pb_180 { padding-bottom: 96px !important; }
    .t-rec_pt_120 { padding-top: 64px !important; }
    .t-rec_pb_120 { padding-bottom: 64px !important; }
    .t-rec_pt_90  { padding-top: 48px !important; }
    .t-rec_pb_90  { padding-bottom: 48px !important; }
    .t-rec_pt_60  { padding-top: 32px !important; }
    .t-rec_pb_60  { padding-bottom: 32px !important; }
    .t-rec_pt_45  { padding-top: 24px !important; }
    .t-rec_pb_45  { padding-bottom: 24px !important; }
    .t-rec_pt_30  { padding-top: 16px !important; }
    .t-rec_pb_30  { padding-bottom: 16px !important; }
    .t-rec_pt_15  { padding-top: 12px !important; }
    .t-rec_pb_15  { padding-bottom: 12px !important; }
}

/* =================== УТИЛИТАРНЫЕ КЛАССЫ =================== */
.t228__padding40px {
    display: none !important;
    width: 0 !important;
}
