/* Флагман — редизайн, шаг 1: шрифты, цвета, кнопки.
   Разметку не меняет. Подключается последним (functions.php, flagman_redesign_styles).
   Чтобы отключить весь слой — убрать подключение в functions.php. */

/* --- Шрифты: Inter (текст) и Manrope (заголовки), лежат в assets/fonts --- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../../fonts/Inter/inter-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../../fonts/Inter/inter-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../../fonts/Inter/inter-cyrillic-500-normal.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../../fonts/Inter/inter-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../../fonts/Inter/inter-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../../fonts/Inter/inter-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../../fonts/Manrope/manrope-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../../fonts/Manrope/manrope-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../../fonts/Manrope/manrope-cyrillic-700-normal.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../../fonts/Manrope/manrope-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../../fonts/Manrope/manrope-cyrillic-800-normal.woff2) format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../../fonts/Manrope/manrope-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --fl-ink: #0b2a45;
  --fl-text: #33485c;
  --fl-muted: #5b6b7a;
  --fl-blue: #0f72c2;
  --fl-blue-dark: #0a5a9c;
  --fl-red: #d6242b;
  --fl-line: #dbe6f0;
  --fl-surface: #f3f8fc;
}

/* --- Типографика ---
   Тема задаёт шрифты через классы на <html> (.oswald, .source-sans),
   поэтому селекторы ниже начинаются с html — иначе они проигрывают. */
html body,
html.source-sans body {
  font-family: Inter, "Source Sans Pro", Arial, sans-serif;
  color: var(--fl-text);
}

html h1, html h2, html h3, html h4, html h5,
html .h1, html .h2, html .h3, html .h4, html .h5,
html.oswald h1, html.oswald h2, html.oswald h3, html.oswald h4, html.oswald h5,
html.oswald .h1, html.oswald .h2, html.oswald .h3, html.oswald .h4, html.oswald .h5 {
  font-family: Manrope, Inter, Arial, sans-serif;
  letter-spacing: 0;
}

html h1, html .h1,
html h1.block-title {
  font-weight: 800;
  font-size: clamp(28px, 3.3vw, 46px);
  line-height: 1.12;
  text-transform: none;
}

html h2, html .h2 {
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.2;
}

html h3, html .h3 {
  font-weight: 700;
  line-height: 1.25;
}

h1.block-title span {
  color: var(--fl-blue);
}

h1.block-title::before {
  display: none;
}

.content.text a:not(.btn):not(.single-cta__link) {
  color: var(--fl-blue);
}

/* Точечные места, где тема отдельно задаёт шрифт заголовков */
html .block-16 .content-1 .year span,
html.oswald .block-16 .content-1 .year span,
html .block-16 .right-container .sidebar-phone-block .phone,
html.oswald .block-16 .right-container .sidebar-phone-block .phone,
html .block-16 .right-container .sidebar-program .title-container .title,
html.oswald .block-16 .right-container .sidebar-program .title-container .title,
html .block-20 .block-container .content .left .first .l,
html.oswald .block-20 .block-container .content .left .first .l,
html .block-3 .items .item-container .item .cost .currency,
html.oswald .block-3 .items .item-container .item .cost .currency,
html .block-3 .items .item-container .item .cost .number,
html.oswald .block-3 .items .item-container .item .cost .number,
html .block-30 .block-container .content .head .title,
html.oswald .block-30 .block-container .content .head .title,
html .block-32 .block-container .left .title,
html.oswald .block-32 .block-container .left .title,
html .block-35 .review-message .title,
html.oswald .block-35 .review-message .title,
html .block-40 .left .questions .q-left .q-title,
html.oswald .block-40 .left .questions .q-left .q-title,
html .block-5 .left-container .content-1 .year span,
html.oswald .block-5 .left-container .content-1 .year span,
html .block.block-1 .slider .slide .title,
html.oswald .block.block-1 .slider .slide .title,
html .info-block .left .phone-button,
html.oswald .info-block .left .phone-button {
  font-family: Manrope, Inter, Arial, sans-serif;
  letter-spacing: 0;
}

/* --- Кнопки --- */
.btn {
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 10px;
}

.btn.btn-red-gradient,
.btn.btn-red-gradient:hover,
.btn.btn-red-gradient:focus {
  background: var(--fl-blue);
  background-image: none;
  box-shadow: none;
  color: #fff;
}

.btn.btn-red-gradient:hover,
.btn.btn-red-gradient:focus {
  background: var(--fl-blue-dark);
}

.btn.btn-red-gradient .animate {
  display: none;
}

.btn.btn-outline-blue {
  border-color: var(--fl-blue);
  color: var(--fl-blue);
}

.btn.btn-outline-blue:hover,
.btn.btn-outline-blue:focus {
  background: var(--fl-blue);
  color: #fff;
}

/* --- Три кнопки связи на первом экране: один цвет действия, красный только у звонка --- */
.single-cta__link {
  border-radius: 12px;
}

.single-cta__link.cta-link--tel {
  background-color: var(--fl-red);
}

.single-cta__link.cta-link--whatsapp,
.single-cta__link.cta-link--telegram {
  background-color: var(--fl-blue);
}

.single-cta__link p {
  font-size: 15px;
  line-height: 1.35;
}

/* Мобильная шапка: телефон без значка WhatsApp — значок наезжал на номер. */
html .header.header-mobile .container .contacts-container.phone a.whatsapp {
  width: auto;
  height: auto;
  padding-right: 0;
}

html .header.header-mobile .container .contacts-container.phone a.whatsapp::after {
  content: none;
}
