/* ── Дополнения к шаблону: телефон в шапке, квиз, WhatsApp, статусы ── */

/* Текстовый логотип */
.cs_text_brand { display: inline-flex; flex-direction: column; line-height: 1.05; text-decoration: none; font-family: var(--secondary-font); }
.cs_brand_l1 { font-size: 23px; font-weight: 700; color: var(--primary-color); letter-spacing: .3px; text-transform: uppercase; }
.cs_brand_l2 { font-size: 13px; font-weight: 600; color: var(--accent-color); letter-spacing: 6px; text-transform: uppercase; align-self: flex-end; margin-top: 3px; }
.cs_text_brand_footer { align-items: center; }
.cs_text_brand_footer .cs_brand_l1 { font-size: 30px; }
.cs_text_brand_footer .cs_brand_l2 { letter-spacing: 10px; }
@media (max-width: 575px) { .cs_brand_l1 { font-size: 18px; } .cs_brand_l2 { font-size: 11px; letter-spacing: 4px; } }


/* Телефон в шапке */
.cs_header_phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary-color); text-decoration: none; white-space: nowrap;
  transition: color .25s;
}
.cs_header_phone i { color: var(--accent-color); }
.cs_header_phone:hover { color: var(--accent-color); }
.cs_header_btns_wrapper { display: flex; align-items: center; gap: 24px; }
@media (max-width: 991px) { .cs_header_phone span { display: none; } }

/* Статус формы */
.cs_form_status { margin: 14px 0 0; font-weight: 600; min-height: 20px; }
.cs_form_status.is-success { color: #1a8f3c; }
.cs_form_status.is-error { color: var(--red-color); }

/* ── Квиз-калькулятор ── */
.qz_overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(13,13,13,.78); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.qz_overlay.open { display: flex; }
.qz_modal {
  background: #fff; width: 100%; max-width: 620px; padding: 48px 44px 36px;
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.35);
  animation: qzIn .3s ease;
}
@keyframes qzIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.qz_close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border: none; background: var(--gray-color); border-radius: 50%; cursor: pointer;
  font-size: 18px; color: var(--primary-color); transition: background .25s;
}
.qz_close:hover { background: var(--accent-color); color: #fff; }
.qz_progress { height: 6px; background: var(--gray-color); border-radius: 50px; overflow: hidden; margin-bottom: 32px; }
.qz_progress_bar { height: 100%; width: 25%; background: var(--accent-color); border-radius: 50px; transition: width .35s ease; }
.qz_step { display: none; }
.qz_step.active { display: block; animation: qzIn .3s ease; }
.qz_q { margin: 0 0 24px; color: var(--primary-color); text-transform: uppercase; }
.qz_options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .qz_options { grid-template-columns: 1fr; } }
.qz_opt { position: relative; cursor: pointer; margin: 0; }
.qz_opt input { position: absolute; opacity: 0; }
.qz_opt span {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; border: 2px solid var(--border-color); border-radius: 10px;
  font-weight: 600; color: var(--primary-color); transition: all .2s;
}
.qz_opt span small { font-weight: 600; color: var(--secondary-color); font-size: 13px; }
.qz_opt:hover span { border-color: var(--accent-color); }
.qz_opt input:checked + span { border-color: var(--accent-color); background: var(--gray-color); }
.qz_range { width: 100%; accent-color: var(--accent-color); margin: 10px 0 18px; }
.qz_area_val { text-align: center; font-size: 40px; font-weight: 700; color: var(--accent-color); font-family: var(--secondary-font); }
.qz_estimate {
  background: var(--gray-color); padding: 24px; text-align: center; margin-bottom: 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.qz_est_label { font-weight: 600; color: var(--secondary-color); }
.qz_est_value { font-size: 32px; font-weight: 700; color: var(--accent-color); font-family: var(--secondary-font); }
.qz_est_note { font-size: 13px; color: var(--secondary-color); }
.qz_form .cs_form_field { width: 100%; margin-bottom: 14px; }
.qz_nav { display: flex; gap: 12px; margin-top: 28px; }
.qz_btn {
  flex: 1; padding: 16px 24px; border: none; border-radius: 50px; cursor: pointer;
  font-weight: 700; font-family: var(--primary-font); font-size: 14px; text-transform: uppercase;
  transition: opacity .25s;
}
.qz_btn.cs_accent_bg { color: #fff; }
.qz_back { background: var(--gray-color); color: var(--primary-color); flex: 0 0 auto; padding-inline: 28px; }
.qz_btn:hover { opacity: .88; }
.qz_submit { display: none; }
.qz_shake { animation: qzShake .4s; }
@keyframes qzShake { 0%,100%{transform:none} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }

/* Иконки в iconbox (FontAwesome вместо SVG шаблона) */
.cs_iconbox_style_5 .cs_iconbox_icon i { font-size: 26px; color: #fff; line-height: 1; transition: color .4s ease; }
.cs_iconbox_style_5:hover .cs_iconbox_icon i { color: var(--accent-color); }
.cs_iconbox_style_3 .cs_iconbox_icon { display: inline-flex; align-items: center; justify-content: center; }
.cs_iconbox_style_3 .cs_iconbox_icon i { font-size: 46px; color: var(--accent-color); line-height: 1; }

/* Бейдж и акцент популярного тарифа */
.cs_pricing_table_style_1 { height: 100%; }
.cs_pricing_badge { display: inline-block; padding: 6px 16px; margin-bottom: 14px; }
.cs_pricing_table_style_1.cs_popular .cs_pricing_table_font { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.cs_mt_40 { margin-top: 40px; }

/* Плавающая кнопка WhatsApp */
.wa_float {
  position: fixed; right: 22px; bottom: 22px; z-index: 9998;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 30px; box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .25s;
}
.wa_float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 520px) { .wa_float { width: 52px; height: 52px; font-size: 26px; } }

/* ══════════════════════════════════════════════════════════════════
   remontkvartiri.kz - дополнения: кириллица, SEO-блок, формы, моб.
   ══════════════════════════════════════════════════════════════════ */

/* ── Кириллический фолбэк (Space Grotesk и Titillium Web не имеют кириллицы) ── */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/cyrillic-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope/latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2122;
}
/* Латиница берётся из родных шрифтов, кириллица падает в Manrope того же веса. */
:root {
  --secondary-font: "Space Grotesk", "Manrope", sans-serif;
  --primary-font: "Titillium Web", "Manrope", sans-serif;
}

/* ── Доступность ── */
.cs_skip_link {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: var(--accent-color); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
  font-weight: 700; text-decoration: none;
}
.cs_skip_link:focus { left: 0; }
.cs_visually_hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-color); outline-offset: 2px;
}

/* ── Адаптивный текст кнопки расчёта (п.26) ── */
.cs_btn_label_short { display: none; }
@media (max-width: 575px) {
  .cs_btn_label_full { display: none; }
  .cs_btn_label_short { display: inline; }
}

/* ── Телефон в мобильном меню, чистим дубли контактов ── */
.cs_nav_phone { display: none; }
@media (max-width: 991px) {
  .cs_main_header_right .cs_header_phone { display: none; }
  .cs_nav_phone {
    display: inline-flex; margin: 18px 0 0; padding: 14px 0 0;
    border-top: 1px solid var(--border-color); font-weight: 700; font-size: 17px;
  }
  .cs_nav_phone span { display: inline !important; }
}

/* ── Моб. фон: отключаем parallax/fixed на тач, чтобы фон не дёргался (п.25) ── */
@media (hover: none), (max-width: 991px) {
  .cs_bg_fixed { background-attachment: scroll !important; }
}

/* ── Бейдж типа на карточке работ (не ссылка, вид как кнопка) ── */
.cs_project_badge { pointer-events: none; }

/* ── Цены: единица, бейдж, акцент популярного тарифа ── */
.cs_price_unit { display: block; font-size: 12px; font-weight: 600; color: var(--secondary-color); margin-top: 2px; text-transform: lowercase; }
.cs_property_price { text-align: right; line-height: 1.1; }
.cs_price_badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--accent-color); color: #fff; font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 50px; text-transform: uppercase; letter-spacing: .3px;
}
.cs_card_style_5.cs_popular { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.cs_card_style_5 .cs_card_thumbnail { position: relative; }
.cs_property_features_list li i { color: var(--accent-color); font-size: 14px; width: 18px; text-align: center; }
.cs_price_note { color: var(--secondary-color); font-size: 14px; max-width: 760px; margin-left: auto; margin-right: auto; }

/* ── Секция-форма ── */
.cs_form_benefits { list-style: none; display: grid; gap: 12px; }
.cs_form_benefits li { display: flex; align-items: flex-start; gap: 10px; color: #fff; font-weight: 600; }
.cs_form_benefits li i { color: var(--accent-color); margin-top: 4px; }
.cs_form_phone { color: #fff; margin-top: 22px; font-size: 18px; font-weight: 700; }
.cs_form_phone span { display: inline !important; }
.cs_lead_card { padding: 36px 32px; }
.cs_field_wrap { margin-bottom: 14px; }
.cs_form_field {
  width: 100%; padding: 14px 22px; border: 1px solid var(--border-color);
  background: #fff; color: var(--primary-color); font-family: var(--primary-font); font-size: 15px;
}
textarea.cs_form_field { padding: 14px 22px; resize: vertical; min-height: 96px; }
.cs_form_field::placeholder { color: #9a9a9a; }
.cs_consent { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 18px; font-size: 13px; color: var(--secondary-color); line-height: 1.5; }
.cs_consent input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent-color); }
.cs_consent a { color: var(--accent-color); text-decoration: underline; }
.cs_form_submit { width: 100%; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 28px; background: var(--accent-color); color: #fff; }
.cs_form_submit:disabled { opacity: .6; cursor: default; }
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Подвал: контакты, мини-форма ── */
.cs_footer_contacts { list-style: none; display: grid; gap: 12px; }
.cs_footer_contacts a, .cs_footer_static { display: inline-flex; align-items: flex-start; gap: 10px; color: inherit; text-decoration: none; }
.cs_footer_contacts a:hover { color: var(--accent-color); }
.cs_footer_contacts i { color: var(--accent-color); width: 18px; text-align: center; margin-top: 4px; }
.cs_newsletter_style_1 .cs_form_status { color: var(--primary-color); }
.cs_footer_consent_note { font-size: 12px; margin: 12px 0 0; color: var(--secondary-color); line-height: 1.5; }
.cs_footer_consent_note a { color: var(--accent-color); text-decoration: underline; }

/* ── Квиз: подсказки и шаги ── */
.cs_accent_bg { background-color: var(--accent-color) !important; }
.qz_range_hint { display: flex; justify-content: space-between; font-size: 12px; color: var(--secondary-color); margin-top: 4px; }
.qz_form .cs_consent { margin-top: 6px; }

/* ══════════════════ SEO-блок ══════════════════ */
.cs_seo_rich { max-width: 1100px; }
.cs_seo_lead { font-size: 18px; line-height: 1.7; color: var(--primary-color); font-weight: 600; margin-bottom: 36px; }
.cs_seo_rich p { font-size: 16px; line-height: 1.75; color: #3a3a3a; margin-bottom: 18px; }
.cs_seo_h3 {
  display: flex; align-items: center; gap: 14px;
  font-size: 26px; line-height: 1.25; margin: 40px 0 16px; color: var(--primary-color);
  font-family: var(--secondary-font); text-transform: uppercase; font-weight: 600;
}
.cs_seo_chip {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-color); color: #fff; font-size: 18px;
}
.cs_seo_h4 { font-size: 20px; margin: 8px 0 12px; color: var(--primary-color); font-family: var(--secondary-font); }
.cs_seo_features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 28px; }
.cs_seo_feature {
  display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--border-color); border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--primary-color); transition: border-color .2s, transform .2s;
}
.cs_seo_feature:hover { border-color: var(--accent-color); transform: translateY(-2px); }
.cs_seo_feature i { color: var(--accent-color); margin-top: 3px; }
@media (max-width: 767px) { .cs_seo_features { grid-template-columns: 1fr; } }

/* SEO-таблицы: тёмная шапка, видимый контраст на светлой секции (п.19, п.33) */
.cs_seo_table_wrap { overflow-x: auto; margin: 6px 0 26px; border-radius: 10px; border: 1px solid var(--border-color); }
.cs_seo_table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.cs_seo_table thead th {
  background: var(--primary-color); color: #fff; text-align: left;
  padding: 16px 18px; font-size: 14px; text-transform: uppercase; letter-spacing: .3px;
  font-family: var(--secondary-font); font-weight: 600;
}
.cs_seo_table tbody td { padding: 15px 18px; border-top: 1px solid var(--border-color); font-size: 15px; color: var(--primary-color); vertical-align: top; }
.cs_seo_table tbody tr:nth-child(even) td { background: #fafafa; }
.cs_seo_price { color: var(--accent-color); font-weight: 700; white-space: nowrap; }
.cs_seo_muted { color: #5a5a5a; }
@media (max-width: 600px) {
  .cs_seo_table { min-width: 0; }
  .cs_seo_table thead { display: none; }
  .cs_seo_table tbody td { display: flex; justify-content: space-between; gap: 16px; border-top: none; border-bottom: 1px solid var(--border-color); }
  .cs_seo_table tbody tr { display: block; border-bottom: 2px solid var(--primary-color); }
  .cs_seo_table tbody td::before { content: attr(data-th); font-weight: 700; color: var(--primary-color); flex: 0 0 40%; }
  .cs_seo_table tbody td.cs_seo_muted, .cs_seo_table tbody td.cs_seo_price { text-align: right; }
}

.cs_seo_cols { margin: 8px 0 18px; }
.cs_seo_checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 8px 0 28px; }
.cs_seo_check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary-color); }
.cs_seo_check i { color: #1a8f3c; }
@media (max-width: 575px) { .cs_seo_checks { grid-template-columns: 1fr; } }
.cs_seo_tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 28px; }
.cs_seo_tag { display: inline-block; padding: 8px 16px; background: #fff; border: 1px solid var(--border-color); border-radius: 50px; font-size: 14px; font-weight: 600; color: var(--primary-color); }
.cs_seo_tag_alt { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.cs_seo_callout { background: #fff; border-left: 4px solid var(--accent-color); border-radius: 10px; padding: 28px 30px; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.cs_seo_callout .cs_btn_style_1 { margin-top: 8px; }

/* Кнопка наверх не перекрывает плавающий WhatsApp */
.cs_scrollup_btn { bottom: 92px !important; }
@media (max-width: 520px) { .cs_scrollup_btn { bottom: 84px !important; } }

/* ── Лайтбокс фото работ ── */
.cs_lightbox {
  position: fixed; inset: 0; z-index: 100001; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(13,13,13,.9); backdrop-filter: blur(4px);
}
.cs_lightbox.open { display: flex; }
.cs_lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.cs_lightbox_close {
  position: absolute; top: 20px; right: 24px; width: 48px; height: 48px;
  border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 26px;
  border-radius: 50%; cursor: pointer; line-height: 1; transition: background .2s;
}
.cs_lightbox_close:hover { background: var(--accent-color); }

/* RU: убираем Title Case у меню подвала (text-transform: capitalize безграмотен для кириллицы) */
.cs_footer_style_1 .cs_footer_menu_list a { text-transform: none; }
