/* Theme CSS — generated by WebGen */
:root {
  --primary: #dc2626;
  --primary-foreground: #ffffff;
  --secondary: #2563eb;
  --secondary-foreground: #ffffff;
  --accent: #64748b;
  --accent-foreground: #111827;
  --background: #ffffff;
  --foreground: #111827;
  --card: #ffffff;
  --card-foreground: #111827;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --ring: #dc2626;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --font-family: 'Roboto', sans-serif;
  --radius: 0.5rem;
  /* Legacy aliases for backward compat */
  --color-primary: var(--primary);
  --color-secondary: var(--secondary);
  --color-accent: var(--accent);
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-border: var(--border);
  --color-muted: var(--muted-foreground);
  --border-radius: var(--radius);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-family); line-height: 1.6; color: var(--foreground); background: var(--background); margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; }

/* === Layout === */
.container { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
.section { padding: 3rem 0; background: var(--background); }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Buttons === */
.btn-primary { background-color: var(--primary); color: var(--primary-foreground); padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 500; text-decoration: none; display: inline-block; transition: opacity 0.2s; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background-color: var(--secondary); color: var(--secondary-foreground); padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 500; text-decoration: none; display: inline-block; transition: opacity 0.2s; border: none; cursor: pointer; font-size: 1rem; }
.btn-secondary:hover { opacity: 0.9; }
.btn-outline { background: transparent; color: var(--foreground); padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 500; text-decoration: none; display: inline-block; transition: background 0.2s; border: 1px solid var(--border); cursor: pointer; font-size: 1rem; }
.btn-outline:hover { background: rgba(0,0,0,0.05); }

/* === Card === */
.card { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* === Forms === */
.form-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--input); border-radius: var(--radius); font-size: 1rem; font-family: inherit; background: var(--card); color: var(--foreground); }
.form-input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 2px rgba(37,99,235,0.15); }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--foreground); margin-bottom: 0.25rem; }
.form-group { margin-bottom: 1rem; }
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; background: var(--primary); color: var(--primary-foreground); }

/* === Typography === */
.text-xl { font-size: 1.5rem; line-height: 1.3; }
.text-lg { font-size: 1.125rem; line-height: 1.4; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }

/* === Spacing === */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }

/* === Navigation === */
.navbar { background: var(--card); border-bottom: 1px solid var(--border); padding: 1rem 0; position: sticky; top: 0; z-index: 40; }
.nav-brand { font-size: 1.5rem; font-weight: 700; color: var(--foreground); text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { color: var(--foreground); text-decoration: none; padding: 0.5rem 0; transition: color 0.2s; }
.nav-link:hover { color: var(--primary); }
.logicstreamhubum_mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
@media (max-width: 767px) {
  .logicstreamhubum_mobile-menu-btn { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 1rem; }
  .nav-links:not(.hidden) { display: flex; }
}

/* === Hero === */
.hero { background: var(--primary); color: #fff; padding: 5rem 0 4rem; }
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; max-width: 40rem; }
.hero-cta { margin-top: 2rem; }
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }

/* === Footer === */
.footer { background: transparent; border-top: 1px solid var(--border); color: var(--foreground); padding: 3rem 0; }
.footer .text-muted { color: var(--muted-foreground); }
.footer-link { display: block; color: var(--primary); text-decoration: none; padding: 0.25rem 0; transition: color 0.2s; }
.footer-link:hover { color: var(--foreground); }

/* === CTA === */
.cta-section { background: var(--background); padding: 3rem 0; }
.cta-section .cta-card { max-width: 40rem; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* === Icons === */
.icon-box { display: flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: var(--radius); background: rgba(0,0,0,0.05); }
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-md { width: 1.75rem; height: 1.75rem; }
.icon-lg { width: 3rem; height: 3rem; }
.logo-img { height: 2.5rem; }

/* === Utilities === */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.flex { display: flex; }
.inline { display: inline; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* === Prose (legal pages) === */
.prose { max-width: 65ch; line-height: 1.75; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.25rem; }
.prose h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
.list-disc { list-style-type: disc; padding-left: 1.5rem; }

/* === Table === */
.table-wrap { overflow-x: auto; }
.table-full { width: 100%; border-collapse: collapse; border: 1px solid var(--border); }
.table-head { background: rgba(0,0,0,0.04); }
.table-cell { border: 1px solid var(--border); padding: 0.75rem 1rem; text-align: left; }

/* === Cookie banner & modal === */
.logicstreamhubum_cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -4px 6px -1px rgba(0,0,0,0.1); z-index: 50; padding: 1rem; }
.logicstreamhubum_cookie-banner.hidden, #logicstreamhubum_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#logicstreamhubum_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
.logicstreamhubum_cookie-banner-inner { display: flex; flex-direction: column; gap: 1rem; align-items: center; }
@media (min-width: 768px) { .logicstreamhubum_cookie-banner-inner { flex-direction: row; justify-content: space-between; } }
.logicstreamhubum_cookie-banner-text { font-size: 0.875rem; color: var(--muted-foreground); }
.logicstreamhubum_cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.logicstreamhubum_cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 60; }
.logicstreamhubum_cookie-modal.hidden, #logicstreamhubum_cookie-modal.hidden { display: none !important; }
.logicstreamhubum_cookie-modal-overlay { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.logicstreamhubum_cookie-modal-content { background: var(--card); border-radius: var(--radius); max-width: 28rem; width: 100%; padding: 1.5rem; }
.cookie-toggles { display: flex; flex-direction: column; gap: 1rem; }
.logicstreamhubum_cookie-toggle-row { display: flex; align-items: center; justify-content: space-between; }
.logicstreamhubum_cookie-modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.logicstreamhubum_cookie-modal-actions .btn-primary, .logicstreamhubum_cookie-modal-actions .btn-outline { flex: 1; text-align: center; }

@media print { .no-print, .logicstreamhubum_cookie-banner, .logicstreamhubum_cookie-modal { display: none; } }


/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* ============================================
   LOGICSTREAMHUBUM — REPAIR PATCH
   ============================================ */

/* Mobile toggle */
[class*="mobile-menu-toggle"],[class*="mobile-menu-btn"]{display:none!important}
@media(max-width:767px){[class*="mobile-menu-toggle"],[class*="mobile-menu-btn"]{display:flex!important;align-items:center;justify-content:center}}

/* Topbar */
.topbar{background:#1f2937;color:#fff;padding:.4rem 0;font-size:.8rem}
.topbar-content{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.topbar-contact{display:flex;gap:1.5rem}
.topbar-contact a{color:rgba(255,255,255,.8);text-decoration:none}
.topbar-hours{color:rgba(255,255,255,.7)}

/* Nav */
.nav-content{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.nav-logo{display:flex;align-items:center;gap:.5rem;text-decoration:none;font-weight:700;color:var(--foreground)}
.mobile-nav-link{display:block;padding:.75rem 1rem;color:var(--foreground);text-decoration:none;font-weight:500;border-bottom:1px solid var(--border)}
.mr-2{margin-right:.5rem}
.rounded-lg{border-radius:var(--radius)}

/* Hero с фоновым фото */
.hero{position:relative;min-height:80vh;display:flex;align-items:center;color:#fff;overflow:hidden}
.hero-background{position:absolute;inset:0;z-index:1}
.hero-bg-image{width:100%;height:100%;object-fit:cover;display:block}
.hero-overlay{position:absolute;inset:0;background:rgba(0,0,0,.55)}
.hero .container{position:relative;z-index:2}
.hero-content{max-width:700px;display:flex;flex-direction:column;gap:1.5rem}
.hero-actions{display:flex;gap:1rem;flex-wrap:wrap}
.btn-lg{padding:1rem 2rem;font-size:1.05rem}
.hero .btn-outline,.hero-actions .btn-outline{color:#fff!important;border-color:rgba(255,255,255,.7)!important;background:transparent!important}
.hero .btn-outline:hover{background:rgba(255,255,255,.12)!important}

/* Section header */
.section-header{text-align:center;margin-bottom:3rem}
.section-header h2{font-size:2rem;font-weight:700;margin-bottom:.75rem;color:var(--foreground)}
.section-header p{font-size:1.05rem;color:var(--muted-foreground);max-width:600px;margin:0 auto}

/* Why choose */
.why-choose-us{padding:5rem 0;background:var(--muted)}
.feature-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;display:flex;flex-direction:column;gap:.75rem}

/* Testimonials */
.testimonials{padding:5rem 0}
.testimonial-slider{max-width:800px;margin:0 auto}
.testimonial-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:2rem}
.testimonial-content{font-style:italic;color:var(--muted-foreground);line-height:1.7;margin-bottom:1.5rem}
.testimonial-author{display:flex;align-items:center;gap:1rem}
.quote-icon{color:var(--primary);margin-bottom:1rem}
.testimonial-navigation{display:flex;gap:.75rem;justify-content:center;margin-top:1.5rem}
.testimonial-prev,.testimonial-next{background:var(--primary);color:#fff;border:none;width:2.5rem;height:2.5rem;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}

/* Gallery */
.gallery-preview{padding:5rem 0;background:var(--muted)}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.gallery-item{border-radius:var(--radius);overflow:hidden;height:240px;position:relative}
.gallery-item img{width:100%;height:100%;object-fit:cover;display:block}
.gallery-overlay{position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.7) 0%,transparent 60%);display:flex;align-items:flex-end;padding:1rem;opacity:0;transition:opacity .3s}
.gallery-item:hover .gallery-overlay{opacity:1}
.gallery-overlay h4,.gallery-overlay p{color:#fff;margin:0}

/* Team preview */
.team-preview{padding:5rem 0}
.team-content{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
@media(max-width:768px){.team-content{grid-template-columns:1fr}}
.team-text{display:flex;flex-direction:column;gap:1rem}
.team-text h2{color:var(--foreground)}
.team-text p{color:var(--muted-foreground);line-height:1.7}
.team-image{border-radius:var(--radius);overflow:hidden;height:380px}
.team-image img{width:100%;height:100%;object-fit:cover;display:block}

/* About preview */
.about-preview{padding:5rem 0}
.about-content{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
@media(max-width:768px){.about-content{grid-template-columns:1fr}}
.about-text{display:flex;flex-direction:column;gap:1rem}
.about-text h2{color:var(--foreground)}
.about-text p{color:var(--muted-foreground);line-height:1.7}
.about-image{border-radius:var(--radius);overflow:hidden;height:380px}
.about-image img{width:100%;height:100%;object-fit:cover;display:block}

/* Newsletter */
.newsletter{padding:4rem 0;background:var(--muted)}
.newsletter-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:2rem}
.newsletter-content{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center}
@media(max-width:768px){.newsletter-content{grid-template-columns:1fr}}
.newsletter-text h2{color:var(--foreground);margin-bottom:.5rem}
.newsletter-text p{color:var(--muted-foreground)}
.newsletter-form{display:flex;gap:.75rem;flex-wrap:wrap}
.newsletter-form .form-input{flex:1;min-width:200px}

/* CTA — белый фон → градиент */
.cta-section{background:linear-gradient(135deg,var(--primary),var(--secondary))!important;color:#fff!important;padding:5rem 0!important}
.cta-content{text-align:center;max-width:700px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:1.25rem}
.cta-content h2,.cta-content p{color:#fff!important}
.cta-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}
.cta-section .btn-outline{color:#fff!important;border-color:rgba(255,255,255,.7)!important;background:transparent!important}

/* Contact */
.contact-info{display:flex;flex-direction:column;gap:1rem}

/* Footer */
.footer-content{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:2rem;margin-bottom:2rem}
@media(max-width:900px){.footer-content{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.footer-content{grid-template-columns:1fr}}
.footer-section{display:flex;flex-direction:column;gap:.5rem}
.footer-logo{height:2rem;filter:brightness(0) invert(1)}
.footer-links-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem}
.footer-links-column{display:flex;flex-direction:column;gap:.5rem}
.footer-links-column h4{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.5rem}
.footer-links-column ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:.35rem}
.footer-links-column a{font-size:.875rem;text-decoration:none;opacity:0.7;transition:opacity .2s}
.footer-links-column a:hover{opacity:1}
.footer-contact-injected{margin-top:.5rem;font-size:.875rem}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding-top:1.5rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.footer-bottom p{font-size:.8rem;margin:0;opacity:0.6}
.footer-legal{display:flex;gap:1.5rem}
.legal-links,.footer-legal{display:flex;gap:1.5rem;flex-wrap:wrap}
.legal-links a,.footer-legal a{font-size:.8rem;text-decoration:none;opacity:0.6}
.legal-links a:hover,.footer-legal a:hover{opacity:1}

/* Icon-box */
.icon-box{color:var(--primary)}
.icon-box i,.icon-box svg{color:var(--primary)!important}

/* PATCH 2: .cta (не .cta-section!) — градиентный фон */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  padding: 5rem 0 !important;
}
.cta .cta-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.cta h2, .cta p, .cta-content h2, .cta-content p { color: #fff !important; }
.cta .btn-outline {
  color: #fff !important;
  border-color: rgba(255,255,255,0.7) !important;
  background: transparent !important;
}
.cta .btn-outline:hover { background: rgba(255,255,255,0.15) !important; }
