/* ==========================================================================
   Витраж — основные стили сайта
   Цвета из логотипа:
     --gray   #4C4C4C
     --yellow #F5D432
     --blue   #0085FF
   Для смены шрифтов достаточно поменять --font-body и --font-heading.
   ========================================================================== */

:root {
    --gray: #4C4C4C;
    --gray-dark: #2f2f2f;
    --gray-light: #f3f4f6;
    --yellow: #F5D432;
    --yellow-dark: #d8b800;
    --blue: #0085FF;
    --blue-dark: #0069cc;
    --green: #43CB83;
    --border: #e5e7eb;
    --bg-soft: #f7f8fa;

    --font-body: 'Roboto', 'Segoe UI', Arial, sans-serif;
    --font-heading: 'Exo 2', 'Roboto Condensed', 'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: #1e1e22;
    background: #fff;
    line-height: 1.55;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.font-heading,
.navbar-brand,
.btn,
.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--gray-dark);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

section { padding: 3.5rem 0; }
@media (max-width: 576px) { section { padding: 2.5rem 0; } }

.section-title { margin-bottom: 2rem; }
.bg-soft { background: var(--bg-soft); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Кнопки ---------- */
.btn { border-radius: 2px; font-weight: 500; padding: 0.65rem 1.4rem; box-shadow: none !important; }
.btn-lg { padding: 0.85rem 1.8rem; font-size: 1.05rem; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-accent { background: var(--yellow); border-color: var(--yellow); color: #1a1a1a; }
.btn-accent:hover, .btn-accent:focus { background: var(--yellow-dark); border-color: var(--yellow-dark); color: #1a1a1a; }
.btn-outline-light-accent { border: 2px solid var(--yellow); color: var(--yellow); background: transparent; }
.btn-outline-light-accent:hover { background: var(--yellow); color: #1a1a1a; }

/* ---------- Шапка ---------- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.site-header .navbar { padding: 0.6rem 0; }

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    text-decoration: none;
}
.brand:hover { text-decoration: none; color: inherit; }
.brand__logo { height: 42px; width: auto; display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--gray-dark);
}
.brand__tag {
    font-size: 0.68rem;
    color: #777;
    letter-spacing: 0.02em;
    margin-top: 2px;
    text-transform: uppercase;
}

.site-header .nav-link {
    color: var(--gray-dark);
    font-weight: 500;
    padding: 0.6rem 0.9rem;
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--blue); }

.site-header .dropdown-menu {
    border-radius: 0;
    border: 1px solid var(--border);
    margin-top: 0;
    padding: 0.25rem 0;
}
.site-header .dropdown-item { padding: 0.55rem 1rem; }
.site-header .dropdown-item:hover { background: var(--gray-light); color: var(--blue); }

.header-phone {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gray-dark);
    font-size: 1.15rem;
    white-space: nowrap;
    text-decoration: none;
}
.header-phone:hover { color: var(--blue); text-decoration: none; }

.messenger-icon {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--gray-light);
    transition: background .15s;
}
.messenger-icon img { width: 22px; height: 22px; }
.messenger-icon:hover { background: var(--yellow); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    color: #fff;
    background: linear-gradient(100deg, rgba(20,30,45,0.75) 0%, rgba(20,30,45,0.35) 100%),
                url('/images/hero-bg.jpg') top center / cover no-repeat,
                #2b3a4e;
    padding: 4rem 0;
}
.hero__offer {
    max-width: 720px;
    padding: 1rem 0;
}
.hero__title {
    color: #fff;
    font-size: clamp(1.8rem, 3.7vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero__sub {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--yellow);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.hero__actions .btn { min-width: 220px; }

/* ---------- Преимущества ---------- */
.advantages__intro p.lead {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}
.advantage {
    padding: 1.2rem 1.3rem;
    background: #fff;
    border-left: 3px solid var(--yellow);
    height: 100%;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
.advantage__icon {
    flex: 0 0 32px;
    color: var(--blue);
}
.advantage__text { font-weight: 500; color: var(--gray-dark); }

/* ---------- CTA fullwidth ---------- */
.cta-band {
    position: relative;
    color: #fff;
    background: linear-gradient(100deg, #1a2a3a 0%, #223448 100%);
    padding: 3.5rem 0;
}
.cta-band::before {
    content: '';
    position: absolute; inset: 0;
    background: url('/images/cta-bg.jpg') center/cover no-repeat;
    opacity: 0.22;
    z-index: 0;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band .form-control,
.cta-band .form-control:focus {
    background: rgba(255,255,255,0.96);
    border: 1px solid transparent;
}
.cta-band .form-check-label { color: #e6ecf2; font-size: 0.88rem; }
.cta-band a { color: var(--yellow); }

/* ---------- Акции ---------- */
.promo-card {
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.promo-card__img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    border-bottom: 3px solid var(--yellow);
}
.promo-card__body { padding: 1.1rem 1.2rem 1.3rem; }
.promo-card__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 0.4rem;
}
.promo-card__note { color: #777; font-size: 0.82rem; }

/* ---------- Примеры расчетов ---------- */
.calc {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}
.calc:last-child { border-bottom: none; }
.calc__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* object-fit: cover; */
}
.calc__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--gray-dark);
    margin-bottom: 0.8rem;
}
.calc__props { list-style: none; padding: 0; margin: 0 0 1.1rem; }
.calc__props li { padding: 0.25rem 0; color: var(--gray); }
.calc__props strong { color: var(--gray-dark); font-weight: 600; }
.calc__price {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--blue);
}

/* ---------- CTA замер (фото + форма на брендовом синем) ---------- */
.measure-cta { padding: 0; }
.measure-cta__image {
    min-height: 320px;
    background: #0b2744;
    overflow: hidden;
}
.measure-cta__image img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}
.measure-cta__form {
    background: var(--blue);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.measure-cta__form::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(255,255,255,0.12) 0, transparent 45%),
        linear-gradient(135deg, var(--blue) 0%, #006ad6 100%);
    z-index: 0;
}
.measure-cta__inner {
    position: relative;
    z-index: 1;
    padding: 3rem 3rem;
    max-width: 620px;
}
.measure-cta__form h2 { color: #fff; }
.measure-cta__form .form-control,
.measure-cta__form .form-control:focus {
    background: #fff;
    border: 1px solid #fff;
    color: #1e1e22;
}
.measure-cta__form .form-control::placeholder { color: #7f8792; }
.measure-cta__form a { color: #fff; text-decoration: underline; }
.measure-cta__form .btn-accent { font-weight: 600; }

@media (max-width: 991px) {
    .measure-cta__image { min-height: 260px; }
    .measure-cta__image img { min-height: 260px; }
    .measure-cta__inner { padding: 2.2rem 1.2rem; max-width: 100%; }
}

/* ---------- Производство (профили/аксессуары/дизайн) ---------- */
.prod-group { margin-bottom: 2.2rem; }
.prod-group__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 1.1rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--yellow);
}
.prod-card {
    background: #fff;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.prod-card__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    background: var(--gray-light);
}
.prod-card__body { padding: 1rem 1.1rem 1.2rem; }
.prod-card__title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gray-dark);
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
}
.prod-card__text { color: var(--gray); font-size: 0.95rem; margin: 0; }

/* ---------- Отзывы ---------- */
.review-slide {
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.5rem;
    text-align: center;
    margin: 0 2px;
}
.review-slide img {
    width: 100%;
    /* aspect-ratio: 3 / 4; */
    object-fit: cover;
    display: block;
}
.review-slide__caption {
    padding-top: 0.6rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* ---------- CTA звонок (жёлтая полоса) ---------- */
.cta-call {
    background: var(--yellow);
    color: #1a1a1a;
    padding: 3rem 0;
    text-align: center;
}
.cta-call h2 { color: #1a1a1a; margin-bottom: 0.7rem; }
.cta-call p.lead { font-size: 1.1rem; margin-bottom: 1.3rem; color: #333; }
.cta-call a.phone {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 3px solid rgba(0,0,0,0.2);
    padding-bottom: 4px;
}
.cta-call a.phone:hover { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }

/* ---------- Наши работы ---------- */
.works-item {
    display: block;
    overflow: hidden;
    background: var(--gray-light);
}
.works-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.25s;
}
.works-item:hover img { transform: scale(1.04); }

.works-grid .works-item { margin-bottom: 1rem; }

/* ---------- Подвал ---------- */
.site-footer {
    background: #242a31;
    color: #cfd5dc;
    padding: 2.8rem 0 1.2rem;
    font-size: 0.93rem;
}
.site-footer a { color: #cfd5dc; }
.site-footer a:hover { color: var(--yellow); text-decoration: none; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #8e98a4; }

.site-footer h6 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.site-footer .footer-bottom {
    border-top: 1px solid #394350;
    margin-top: 1.8rem;
    padding-top: 1.1rem;
    font-size: 0.82rem;
    color: #8e98a4;
}
.site-footer .identx-a { color: var(--green); font-weight: 700; }

/* ---------- Плавающая кнопка звонка (моб.) ---------- */
.floating-call {
    position: fixed;
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1040;
    animation: pulse-call 2s infinite;
}
.floating-call:hover { background: #1fb558; color: #fff; }
.floating-call svg { width: 26px; height: 26px; fill: #fff; }

@keyframes pulse-call {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Формы ---------- */
.form-control, .form-select {
    border-radius: 2px;
    padding: 0.7rem 0.9rem;
    border-color: #cfd5dc;
}
.form-control:focus, .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(0, 133, 255, 0.15);
}
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px; height: 1px;
    opacity: 0; pointer-events: none;
}

.alert-inline { font-size: 0.95rem; }

/* ---------- Страницы услуг ---------- */
.page-hero {
    background: var(--bg-soft);
    padding: 2.8rem 0;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero .lead { color: var(--gray); max-width: 820px; }

.service-gallery .works-item { margin-bottom: 1rem; }

/* ---------- Контакты ---------- */
.contacts-block { padding: 0.8rem 0; }
.contacts-block h3 {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 500;
}
.contacts-phones .phone-primary {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-dark);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.3rem;
}
.contacts-phones .phone-primary:hover { color: var(--blue); text-decoration: none; }
.contacts-phones .phone-secondary {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gray-dark);
    text-decoration: none;
    display: block;
    padding: 0.15rem 0;
}
.contacts-phones .phone-secondary:hover { color: var(--blue); }

.map-placeholder {
    width: 100%;
    min-height: 360px;
    border: 1px dashed #b4bdc7;
    background: repeating-linear-gradient(45deg, #f7f8fa 0 12px, #eef1f5 12px 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e98a4;
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

/* ---------- Политика ---------- */
.privacy-content { max-width: 860px; }
.privacy-content h2 { font-size: 1.4rem; margin-top: 2rem; }
.privacy-content h3 { font-size: 1.15rem; margin-top: 1.4rem; }
.privacy-content p, .privacy-content li { color: #3a3a42; }

/* ---------- Owl tweaks ---------- */
.owl-theme .owl-dots .owl-dot span {
    background: #c5cbd3;
    width: 10px; height: 10px;
}
.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span { background: var(--blue); }
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    width: 40px; height: 40px;
    border-radius: 50% !important;
    color: var(--gray-dark) !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

/* ---------- Адаптивка ---------- */
@media (min-width: 768px) {
    .floating-call { display: none; }
}
@media (max-width: 991px) {
    .header-phone { font-size: 1rem; }
    .brand__logo { height: 36px; }
    .brand__name { font-size: 1.15rem; }
    .brand__tag { font-size: 0.62rem; }
}
@media (max-width: 767px) {
    .hero { min-height: 420px; }
}