/* Universal components layered over the preserved KENES EXPERT design system. */

.template-hero {
    position: relative;
    display: flex;
    min-height: 66vh;
    align-items: center;
    padding: 88px 0;
    color: #fff;
    background: var(--dark);
    overflow: hidden;
}

.template-hero::after,
.page-hero::after {
    position: absolute;
    right: -120px;
    bottom: -220px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(211,154,34,.2);
    border-radius: 50%;
    box-shadow: 0 0 0 54px rgba(211,154,34,.04), 0 0 0 110px rgba(211,154,34,.025);
    content: "";
}

.template-hero .vb-content { max-width: 790px; }
.template-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.template-hero .vb-btn-secondary {
    padding: 17px 34px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}
.template-hero .vb-btn-secondary:hover { color: var(--dark); background: #fff; border-color: #fff; }

.home-hero-features.template-features { display: block; }
.template-features .home-feature-grid { transform: translateY(-40px); }

.section-head {
    max-width: 830px;
    margin: 0 auto 38px;
    text-align: center;
}
.section-head.align-left { margin-left: 0; text-align: left; }
.section-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    align-items: center;
    gap: 8px;
    color: var(--accent-dark, #a8710d);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}
.section-kicker::before { width: 22px; height: 2px; background: var(--accent); content: ""; }
.section-head h2 { margin-bottom: 16px; color: #172033; font-size: clamp(30px, 4vw, 42px); }
.section-head p { color: #64748b; font-size: 16px; line-height: 1.75; }

.about-layout {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: stretch;
}
.about-panel,
.content-card {
    padding: 36px;
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(15,23,42,.07);
}
.about-panel--dark { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.about-panel--dark::after {
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(211,154,34,.28);
    border-radius: 50%;
    content: "";
}
.about-panel h3 { margin-bottom: 17px; font-size: 28px; }
.about-panel--dark h3 { color: #fff; }
.about-panel p { color: #667085; line-height: 1.75; }
.about-panel--dark p { color: #cbd5e1; }
.about-list { display: grid; gap: 14px; margin-top: 22px; }
.about-list article { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.about-list i {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: var(--accent);
    background: var(--accent-light, #fff8e8);
    border-radius: 12px;
}
.about-list h3 { margin: 1px 0 5px; font-size: 17px; }
.about-list p { margin: 0; font-size: 13px; line-height: 1.55; }

.catalog-grid,
.services-grid,
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.product-card,
.service-card,
.advantage-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 15px;
    box-shadow: 0 14px 34px rgba(15,23,42,.07);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover,
.service-card:hover,
.advantage-card:hover {
    border-color: rgba(211,154,34,.45);
    box-shadow: 0 20px 40px rgba(15,23,42,.12);
    transform: translateY(-5px);
}
.product-card[hidden] { display: none; }
.product-image { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #111b31, #26344f); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; height: 100%; flex-direction: column; padding: 24px; }
.product-category,
.service-badge {
    align-self: flex-start;
    margin-bottom: 13px;
    padding: 6px 10px;
    color: #8d610d;
    background: var(--accent-light, #fff8e8);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.product-card h2,
.product-card h3,
.service-card h2,
.service-card h3 { margin-bottom: 10px; color: #172033; font-size: 21px; }
.product-card p,
.service-card p { color: #667085; font-size: 13px; line-height: 1.65; }
.product-specs { display: grid; gap: 7px; margin: 4px 0 20px; padding: 0; list-style: none; }
.product-specs li { color: #475569; font-size: 12px; }
.product-specs li::before { margin-right: 8px; color: var(--accent); content: "•"; }
.product-footer { display: flex; margin-top: auto; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { color: #172033; font-family: "Oswald", sans-serif; font-size: 15px; font-weight: 700; text-transform: uppercase; }

.card-link,
.button-primary,
.button-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.card-link,
.button-primary { color: #fff; background: var(--accent); }
.card-link:hover,
.button-primary:hover { color: #fff; background: #111827; transform: translateY(-1px); }
.button-dark { color: #fff; background: var(--dark); }
.button-dark:hover { background: var(--accent); }

.catalog-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 32px; }
.catalog-filter {
    padding: 10px 18px;
    color: #475569;
    background: #fff;
    border: 1px solid #dce1e8;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}
.catalog-filter:hover,
.catalog-filter.is-active { color: #fff; background: var(--dark); border-color: var(--dark); box-shadow: inset 0 -3px 0 var(--accent); }

.service-card { padding: 28px; }
.service-icon,
.advantage-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 20px;
    place-items: center;
    color: var(--accent);
    background: var(--accent-light, #fff8e8);
    border-radius: 15px;
    font-size: 25px;
}
.service-points { display: grid; gap: 8px; margin: 5px 0 22px; padding: 0; list-style: none; }
.service-points li { color: #475569; font-size: 12px; }
.service-points li::before { margin-right: 8px; color: var(--accent); content: "✓"; font-weight: 800; }
.service-card .card-link { margin-top: auto; }

.process-section { position: relative; color: #fff; background: var(--dark); overflow: hidden; }
.process-section .section-head h2 { color: #fff; }
.process-section .section-head p { color: #aeb9ca; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.process-step { position: relative; padding: 26px 20px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(255,255,255,.035); }
.process-number { display: block; margin-bottom: 12px; color: var(--accent); font-family: "Oswald", sans-serif; font-size: 38px; font-weight: 700; }
.process-step h3 { margin-bottom: 9px; color: #fff; font-size: 18px; }
.process-step p { margin: 0; color: #aeb9ca; font-size: 12px; line-height: 1.65; }

.advantage-card { padding: 28px; }
.advantage-card h3 { margin-bottom: 10px; color: #172033; font-size: 19px; }
.advantage-card p { margin: 0; color: #667085; font-size: 13px; line-height: 1.65; }

.faq-list { display: grid; max-width: 900px; margin: 0 auto; gap: 12px; }
.faq-list details { padding: 22px 24px; background: #fff; border: 1px solid #e2e7ee; border-radius: 12px; box-shadow: 0 8px 25px rgba(15,23,42,.05); }
.faq-list summary { position: relative; padding-right: 34px; color: #172033; cursor: pointer; font-family: "Oswald", sans-serif; font-size: 17px; font-weight: 700; list-style: none; text-transform: uppercase; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: -4px; right: 0; color: var(--accent); content: "+"; font-size: 26px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 13px 0 0; color: #667085; font-size: 14px; line-height: 1.7; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 25px; align-items: stretch; }
.contact-card { padding: 34px; color: #fff; background: var(--dark); border-radius: 16px; box-shadow: 0 18px 42px rgba(15,23,42,.14); }
.contact-card h2 { margin-bottom: 22px; color: #fff; font-size: 29px; }
.contact-list { display: grid; gap: 16px; }
.contact-item { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; }
.contact-item i { display: grid; width: 42px; height: 42px; place-items: center; color: var(--accent); background: rgba(255,255,255,.07); border-radius: 11px; }
.contact-item small { display: block; margin-bottom: 3px; color: #94a3b8; font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.contact-item a,
.contact-item span { color: #fff; font-size: 14px; line-height: 1.5; }
.map-link { display: flex; min-height: 170px; margin-top: 24px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: #fff; background: linear-gradient(135deg, rgba(211,154,34,.18), rgba(255,255,255,.04)); border: 1px solid rgba(211,154,34,.35); border-radius: 13px; text-align: center; }
.map-link i { color: var(--accent); font-size: 30px; }
.map-link span { font-family: "Oswald", sans-serif; font-size: 16px; text-transform: uppercase; }

.contact-form { padding: 34px; background: #fff; border: 1px solid #e4e8ee; border-radius: 16px; box-shadow: 0 18px 42px rgba(15,23,42,.08); }
.contact-form h2 { margin-bottom: 9px; color: #172033; font-size: 29px; }
.contact-form > p { color: #667085; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #475569; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 13px 14px;
    color: #172033;
    background: #f8fafc;
    border: 1px solid #dce2ea;
    border-radius: 8px;
    outline: none;
    font: inherit;
    font-size: 13px;
}
.form-field textarea { min-height: 115px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(211,154,34,.14); }
.form-actions { display: flex; margin-top: 16px; align-items: center; gap: 14px; }
.form-status { min-height: 20px; margin: 0; color: #8b5f0e; font-size: 12px; }
.form-note { margin-top: 13px; color: #8791a2; font-size: 10px; line-height: 1.55; }

.page-hero { position: relative; padding: 86px 0 74px; color: #fff; background: var(--dark); overflow: hidden; }
.page-hero .vb-container { max-width: 1000px; }
.page-hero .section-kicker { color: var(--accent); }
.page-hero h1 { max-width: 830px; margin-bottom: 20px; color: #fff; font-size: clamp(42px, 6vw, 64px); }
.page-hero p { max-width: 720px; margin: 0; color: #cbd5e1; font-size: 17px; line-height: 1.75; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; color: #98a5b8; font-size: 11px; }
.breadcrumbs a { color: var(--accent); }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.story-card { min-height: 250px; padding: 31px; background: #fff; border: 1px solid #e4e8ee; border-radius: 15px; }
.story-card h2 { margin-bottom: 15px; color: #172033; font-size: 27px; }
.story-card p { color: #667085; line-height: 1.75; }
.story-card--accent { color: #fff; background: linear-gradient(135deg, #101a2e, #25344f); border-color: transparent; }
.story-card--accent h2 { color: #fff; }
.story-card--accent p { color: #cbd5e1; }

.cta-strip { padding: 55px 0; color: #fff; background: linear-gradient(110deg, #111b30, #22314d); }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-strip h2 { margin-bottom: 8px; color: #fff; font-size: 31px; }
.cta-strip p { margin: 0; color: #b8c2d2; }

.site-footer { position: relative; padding: 52px 0 28px; color: #fff; background: #0b1221; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 34px; }
.footer-brand { display: flex; align-items: center; gap: 13px; }
.footer-brand img { width: 48px; height: 48px; }
.footer-brand strong { color: #fff; font-family: "Oswald", sans-serif; font-size: 22px; text-transform: uppercase; }
.footer-brand strong span { color: var(--accent); }
.footer-about { max-width: 410px; margin-top: 17px; color: #94a3b8; font-size: 12px; line-height: 1.75; }
.footer-title { margin-bottom: 15px; color: #fff; font-size: 15px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { color: #aab4c4; font-size: 12px; }
.footer-links a:hover { color: var(--accent); padding-left: 3px; }
.footer-bottom { display: flex; margin-top: 38px; padding-top: 20px; justify-content: space-between; gap: 15px; color: #667085; border-top: 1px solid rgba(255,255,255,.08); font-size: 10px; }

.demo-notice { padding: 9px 15px; color: #6f4a08; background: #fff4d7; border-bottom: 1px solid #efd18a; font-size: 11px; font-weight: 700; text-align: center; }

.no-results { padding: 34px; color: #667085; background: #fff; border: 1px dashed #ccd4df; border-radius: 13px; text-align: center; }

@media (max-width: 1024px) {
    .template-features { display: none !important; }
    .catalog-grid,
    .services-grid,
    .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-layout,
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .template-hero { min-height: 610px; padding: 70px 0 64px; }
    .template-hero .vb-content { max-width: none; }
    .template-hero .vb-label { margin-bottom: 18px; font-size: 10px; }
    .template-hero h1 { margin-bottom: 22px; font-size: 38px; }
    .template-hero .vb-desc { margin-bottom: 30px; padding-left: 18px; font-size: 15px; }
    .template-hero .hero-actions { display: grid; }
    .template-hero .vb-btn,
    .template-hero .vb-btn-secondary { width: 100%; padding: 15px 18px; }
    .vb-section { padding: 62px 0; }
    .section-head { margin-bottom: 29px; text-align: left; }
    .section-head h2 { font-size: 31px; }
    .section-head p { font-size: 14px; }
    .catalog-grid,
    .services-grid,
    .advantages-grid,
    .process-grid,
    .story-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .about-panel,
    .content-card,
    .contact-card,
    .contact-form { padding: 25px 21px; }
    .product-body,
    .service-card,
    .advantage-card { padding: 22px; }
    .product-footer { align-items: flex-start; flex-direction: column; }
    .product-footer .card-link { width: 100%; }
    .catalog-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; scrollbar-width: none; }
    .catalog-filters::-webkit-scrollbar { display: none; }
    .catalog-filter { flex: 0 0 auto; }
    .form-grid { grid-template-columns: 1fr; }
    .form-actions { align-items: stretch; flex-direction: column; }
    .form-actions .button-primary { width: 100%; }
    .page-hero { padding: 70px 0 60px; }
    .page-hero h1 { font-size: 39px; }
    .page-hero p { font-size: 14px; }
    .cta-strip-inner { align-items: stretch; flex-direction: column; }
    .cta-strip .button-primary { width: 100%; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
    .template-hero h1 { font-size: 34px; }
    .page-hero h1 { font-size: 35px; }
    .section-head h2 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
