/* ==========================================================================
   DELUXE 2026 — «Контакты» (/contacts), 17.11.2026.
   Вьюха application/views/index/home2026/contacts.php, подключается только на этой странице (Controller_Index_Pages).
   Приёмы главной и /dostavka: тёмный первый экран со знаком-листом и бегущей строкой (hero, marquee),
   кремовая полоса с картой, тёмная карточка с листом, красная полоса b2b (блок главной), eyebrow + sec-title, btn, chip.
   Здесь — только блоки ct-* и оформление общей формы index/v_contactsform.php (классы contact-form-*, contact-field) под .ct-form.
   Mobile first, брейкпоинты как в home2026.css: 480 / 600 / 700 / 960 / 1200.
   ========================================================================== */

/* Иконка в квадрате — как пункты «О компании» на главной (quality__ico) */
.dlx .ct-ico {
    flex: none; display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(221, 29, 29, .08); color: var(--red);
}
.dlx .ct-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Первый экран ---------- */
.dlx .ct-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    overflow: clip;
    margin: 12px clamp(0px, 1.2vw, 20px) 0;
    border-radius: clamp(0px, 3vw, 44px);
    background: radial-gradient(90% 80% at 100% 0%, rgba(221, 29, 29, .28), transparent 60%), var(--night);
    color: #fff;
}
.dlx .ct-hero__mark {
    position: absolute; z-index: -1;
    left: -140px; bottom: -120px;
    width: 520px; height: 588px;
    color: rgba(255, 255, 255, .04);
    transform: rotate(-8deg);
    pointer-events: none;
}
.dlx .ct-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 36px; padding-bottom: 40px; }
.dlx .ct-hero .hero__kicker { margin-bottom: 16px; }
.dlx .ct-hero__title {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: clamp(2.3rem, 1rem + 4.4vw, 4.6rem);
    line-height: .98;
    letter-spacing: -.05em;
    text-wrap: balance;
}
.dlx .ct-hero__title em { font-style: normal; color: var(--red); white-space: nowrap; }
.dlx .ct-hero__lead { max-width: 50ch; margin-top: 20px; font-size: clamp(16px, .95rem + .3vw, 18.5px); line-height: 1.6; color: rgba(255, 255, 255, .78); }
.dlx .ct-hero__facts {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px;
    margin: 34px 0 0; padding: 24px 0 0; list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.dlx .ct-hero__facts li { display: grid; align-content: start; gap: 6px; }
.dlx .ct-hero__facts b { font-family: var(--ff-display); font-weight: 700; font-size: clamp(24px, 1.1rem + 1.4vw, 36px); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.dlx .ct-hero__facts b small { font-family: var(--ff); font-size: .42em; font-weight: 700; letter-spacing: 0; color: rgba(255, 255, 255, .6); }
.dlx .ct-hero__facts span { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .62); }

/* Карточка телефонов (печати, как на /dostavka, здесь нет — решение владельца 17.11.2026) */
.dlx .ct-hero__side { position: relative; align-self: center; }
.dlx .ct-ticket {
    position: relative;
    padding: 26px 18px 20px;
    border-radius: var(--r-lg);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}
.dlx .ct-ticket__label { padding: 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.dlx .ct-phones { display: grid; gap: 4px; margin: 16px 0 0; padding: 0; list-style: none; }
.dlx .ct-phone {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 8px;
    border-radius: var(--r-sm);
    color: var(--ink);
    transition: background-color .2s;
}
.dlx .ct-phone:hover { background: var(--cream); }
.dlx .ct-phone__body { display: grid; gap: 2px; min-width: 0; }
.dlx .ct-phone b { font-family: var(--ff-display); font-weight: 700; font-size: clamp(14px, 4.5vw, 20px); line-height: 1.1; letter-spacing: -.035em; white-space: nowrap; }
.dlx .ct-phone__body span { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.dlx .ct-phone--main .ct-ico { background: var(--red); color: #fff; }
.dlx .ct-phone--main b { color: var(--red); }
.dlx .ct-msgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.dlx .ct-msg {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 14px;
    border-radius: 999px;
    color: #fff; font-size: 14.5px; font-weight: 800;
    transition: filter .2s, transform .2s var(--ease);
}
.dlx .ct-msg:hover { filter: brightness(.92); transform: translateY(-1px); }
.dlx .ct-msg--viber { background: #7360F2; }
.dlx .ct-msg--tg { background: #229ED9; }
.dlx .ct-ticket__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 14px 4px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.dlx .ct-ticket__note .i { margin-top: 2px; color: var(--red); }
.dlx .ct-ticket__note b { color: var(--ink); font-weight: 800; }

/* Телефон и планшет: карточка телефонов — сразу под кнопками, цифры магазина — после неё (на контактах сначала нужен номер) */
@media (max-width: 959.98px) {
.dlx .ct-hero__grid { gap: 0; }
.dlx .ct-hero__content { display: contents; }
.dlx .ct-hero__side { order: 1; margin-top: 28px; }
.dlx .ct-hero__facts { order: 2; margin-top: 28px; padding-top: 0; border-top: 0; }
}

/* Бегущая строка: оформление .marquee из home2026.css */
.dlx .ct-hero .marquee { padding-block: 14px; }

/* ---------- Секции: eyebrow + sec-title главной ---------- */
.dlx .ct-sec { padding-top: var(--section); }
.dlx .ct-sec__head { margin-bottom: clamp(22px, 1rem + 1.6vw, 40px); }

/* ---------- Адрес, график, карта: кремовая полоса во всю ширину с листом ---------- */
.dlx .ct-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    overflow: clip;
    margin-top: var(--section);
    padding-block: clamp(44px, 2rem + 3vw, 88px);
    background: var(--cream);
    scroll-margin-top: 80px;
}
.dlx .ct-band__leaf {
    position: absolute; z-index: -1;
    left: -180px; top: 40px;
    width: 520px; height: 588px;
    color: rgba(221, 29, 29, .07);
    transform: rotate(-10deg);
    pointer-events: none;
}
.dlx .ct-place { display: grid; gap: 12px; }
.dlx .ct-place__info { min-width: 0; padding: 22px 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.dlx .ct-facts { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.dlx .ct-facts li { display: flex; align-items: flex-start; gap: 12px; }
.dlx .ct-facts li > span:last-child { min-width: 0; }
.dlx .ct-facts b { display: block; margin-top: 2px; font-size: 16.5px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.dlx .ct-facts b a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.dlx .ct-facts b a:hover { text-decoration-color: var(--red); }
.dlx .ct-note { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.dlx .ct-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 800; color: var(--red); transition: gap .25s var(--ease); }
.dlx .ct-link:hover { gap: 10px; color: var(--red-600); }
/* телефоны-чипы — только на широком экране: на телефоне и планшете карточка телефонов стоит прямо над этим блоком */
.dlx .ct-place__phones { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.dlx .ct-place__phones .chip .i { color: var(--red); }
.dlx .ct-place__phones .chip:hover { border-color: var(--red); }
.dlx .ct-map { position: relative; min-height: 300px; overflow: hidden; border-radius: var(--r-lg); background: var(--cream-2); box-shadow: var(--shadow-sm); }
.dlx .ct-map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Форма + соцсети ---------- */
.dlx #contact-form { scroll-margin-top: 20px; }
.dlx .ct-write { display: grid; gap: 12px; }
.dlx .ct-form {
    min-width: 0;
    padding: 26px 18px 22px;
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.dlx .ct-form .contact-form-title {
    margin: 0;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -.035em;
    color: var(--ink);
}
.dlx .ct-form .contact-form-subtitle {
    display: flex; align-items: center; gap: 10px;
    margin: 14px 0 0;
    font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--muted);
}
.dlx .ct-form .contact-form-subtitle::before {
    content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 0 4px rgba(23, 136, 76, .18);
}
.dlx .ct-form form { margin: 0; }
.dlx .ct-form .contact-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.dlx .ct-form .contact-field { min-width: 0; }
/* Проверка Turnstile стоит в разметке между телефоном и сообщением — показываем её после сообщения, перед кнопкой */
.dlx .ct-form .contact-field:has(.cf-turnstile) { order: 2; }
.dlx .ct-form .contact-field:has(.contact-submit-btn) { order: 3; }
/* style.css задаёт всем label float и ширину 140 px — подписи полей держим блоком на всю ширину */
.dlx .ct-form .contact-field label {
    display: block; float: none; width: auto;
    margin: 0 0 7px; padding: 0;
    font-size: 13px; font-weight: 700; letter-spacing: 0; line-height: 1.3; text-align: left; text-transform: none;
    color: var(--ink-2);
}
.dlx .ct-form .contact-field input,
.dlx .ct-form .contact-field textarea {
    display: block; box-sizing: border-box;
    width: 100%; min-height: 52px;
    margin: 0; padding: 13px 16px;
    font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.4;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line-2);
    border-radius: 14px;
    box-shadow: none; outline: 0;
    -webkit-appearance: none; appearance: none;
    transition: border-color .2s, box-shadow .2s;
}
.dlx .ct-form .contact-field textarea { min-height: 140px; resize: vertical; }
.dlx .ct-form .contact-field input::placeholder,
.dlx .ct-form .contact-field textarea::placeholder { color: var(--muted-2); font-weight: 500; opacity: 1; }
.dlx .ct-form .contact-field input:hover,
.dlx .ct-form .contact-field textarea:hover { border-color: var(--muted-2); }
.dlx .ct-form .contact-field input:focus,
.dlx .ct-form .contact-field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(31, 29, 30, .08); }
.dlx .ct-form .contact-submit-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; min-height: 56px;
    margin: 4px 0 0; padding: 0 32px;
    border: 0; border-radius: 999px;
    background: var(--red); color: #fff;
    font-family: inherit; font-size: 16px; font-weight: 800; letter-spacing: 0; text-transform: none;
    box-shadow: 0 10px 24px -12px rgba(221, 29, 29, .8);
    cursor: pointer;
    transition: background-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.dlx .ct-form .contact-submit-btn:hover { background: var(--red-600); box-shadow: 0 14px 30px -12px rgba(221, 29, 29, .9); }
.dlx .ct-form .contact-submit-btn:active { transform: translateY(1px) scale(.99); }
/* Ошибки: под полем (проверка в браузере) и общим блоком (ответ сервера) */
.dlx .ct-form .cf-err-msg { margin-top: 6px; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--red); }
.dlx .ct-form .contact-error {
    padding: 14px 16px;
    border-radius: var(--r-sm);
    background: var(--red-50);
    box-shadow: inset 4px 0 0 var(--red);
    font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--red-700);
}
.dlx .ct-form .cf-turnstile:empty { display: none; }

/* Соцсети: тёмная карточка с листом (как «Делюкс в цифрах») */
.dlx .ct-dark {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    align-self: start;
    padding: 28px 18px 24px;
    border-radius: var(--r-lg);
    background: radial-gradient(120% 70% at 100% 0%, rgba(221, 29, 29, .22), transparent 60%), var(--night);
    color: #F3EFEA;
}
.dlx .ct-dark__leaf {
    position: absolute; z-index: -1;
    right: -110px; bottom: -150px;
    width: 400px; height: 452px;
    color: rgba(221, 29, 29, .26);
    transform: rotate(14deg);
    pointer-events: none;
}
.dlx .ct-dark__label { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 239, 234, .7); }
.dlx .ct-dark__label .i { color: var(--red); }
.dlx .ct-dark__title { margin-top: 12px; padding: 0 4px; font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.05; letter-spacing: -.04em; color: #fff; }
.dlx .ct-socials { display: grid; gap: 2px; margin: 18px 0 0; padding: 0; list-style: none; }
.dlx .ct-soc {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 8px 10px 4px;
    border-radius: var(--r-sm);
    color: #fff;
    transition: background-color .2s;
}
.dlx .ct-soc:hover { background: rgba(255, 255, 255, .07); }
.dlx .ct-soc .ct-ico { background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .2s; }
.dlx .ct-soc:hover .ct-ico { background: var(--red); }
.dlx .ct-soc__body { display: grid; gap: 1px; min-width: 0; margin-right: auto; }
.dlx .ct-soc__body b { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.dlx .ct-soc__body span { font-size: 13px; line-height: 1.3; color: rgba(243, 239, 234, .62); }
.dlx .ct-soc > .i { color: rgba(243, 239, 234, .45); transition: color .2s, transform .25s var(--ease); }
.dlx .ct-soc:hover > .i { color: #fff; transform: translate(2px, -2px); }
.dlx .ct-dark__mail { margin-top: 16px; padding: 16px 4px 0; border-top: 1px solid rgba(243, 239, 234, .14); font-size: 13.5px; line-height: 1.55; color: rgba(243, 239, 234, .65); }
.dlx .ct-dark__mail a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.dlx .ct-dark__mail a:hover { text-decoration-color: var(--red); }
.dlx .ct-dark :focus-visible { outline-color: #fff; }

/* ---------- Красная полоса «для бизнеса» (блок главной) ---------- */
.dlx .ct-b2b { margin-top: var(--section); }

@media (min-width: 480px) {
.dlx .ct-ticket { padding: 28px 22px 22px; }
}

@media (min-width: 600px) {
.dlx .ct-form { padding: 34px 30px 30px; }
.dlx .ct-form .contact-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
/* имя — на всю ширину, e-mail и телефон — парой (иначе рядом с телефоном пустая ячейка) */
.dlx .ct-form .contact-form-grid > .contact-error,
.dlx .ct-form .contact-field:has(input[name="name"]),
.dlx .ct-form .contact-field-full { grid-column: 1 / -1; }
.dlx .ct-form .contact-submit-btn { width: auto; min-width: 240px; }
.dlx .ct-socials { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.dlx .ct-dark { padding: 34px 28px 28px; }
}

@media (min-width: 700px) {
.dlx .ct-hero__facts { grid-template-columns: repeat(4, auto); justify-content: start; gap: 36px; }
.dlx .ct-map { min-height: 380px; }
}

@media (min-width: 960px) {
.dlx .ct-hero__grid { grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 64px; padding-top: 64px; padding-bottom: 56px; }
.dlx .ct-hero__mark { left: -160px; bottom: -160px; width: 700px; height: 792px; }
.dlx .ct-ticket { padding: 32px 26px 26px; }
.dlx .ct-phone b { font-size: 22px; }
.dlx .ct-band__leaf { left: -290px; top: 60px; width: 700px; height: 792px; }
.dlx .ct-place { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 18px; }
.dlx .ct-place__info { padding: 30px; }
.dlx .ct-place__phones { display: flex; }
.dlx .ct-map { min-height: 340px; }
.dlx .ct-write { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.dlx .ct-form { padding: 44px 44px 40px; }
.dlx .ct-socials { grid-template-columns: 1fr; }
.dlx .ct-dark { align-self: stretch; padding: 40px 32px 32px; }
}
