/* =====================================================================
   Beylon Limited — публичные стили
   Перенесены из inline <style>-блока index.php + новые компонентные классы.
   ===================================================================== */

/* ====== Variables / Base ====== */
:root {
    --teal: #2DD4BF;
    --blue: #38BDF8;
    --indigo: #6366F1;
    --purple: #8B5CF6;
    --graphite: #111827;
    --softgray: #F3F4F6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', system-ui, sans-serif; background-color: #FFFFFF; color: #111827; overflow-x: hidden; line-height: 1.6; }
.font-display { font-family: 'Manrope', 'Inter', system-ui, sans-serif; }

/* ====== Navbar ====== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1.25rem 2rem; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); background: transparent; }
.navbar.scrolled { background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(0, 0, 0, 0.06); padding: 0.85rem 2rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
.nav-link { position: relative; font-size: 0.9rem; font-weight: 500; color: #374151; transition: color 0.25s ease; letter-spacing: -0.01em; text-decoration: none; }
.nav-link:hover { color: #111827; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--teal); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 2px; }
.nav-link:hover::after { width: 100%; }
.navbar-brand { font-family: 'Manrope', 'Inter', sans-serif; font-weight: 800; font-size: 1.35rem; color: #111827; text-decoration: none; letter-spacing: -0.03em; }
.nav-desktop { display: flex; align-items: center; gap: 2.5rem; }
.btn-icon { background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; cursor: pointer; padding: 0.5rem; }

/* ====== Mobile ====== */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; max-width: 420px; height: 100vh; background: #fff; z-index: 200; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 2rem; display: flex; flex-direction: column; justify-content: center; gap: 1.75rem; box-shadow: -10px 0 40px rgba(0, 0, 0, 0.08); }
.mobile-menu.open { right: 0; }
.mobile-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.mobile-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-link { font-size: 1.5rem; font-weight: 600; color: #111827; letter-spacing: -0.02em; transition: color 0.2s ease; font-family: 'Manrope', 'Inter', sans-serif; text-decoration: none; }
.mobile-link:hover { color: var(--teal); }

/* ====== Hero orbs ====== */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.18; pointer-events: none; animation: orbFloat 20s ease-in-out infinite; }
.hero-orb-1 { width: 500px; height: 500px; background: var(--indigo); top: -15%; right: -8%; animation-delay: 0s; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--purple); bottom: -10%; left: -5%; animation-delay: -8s; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--teal); top: 40%; left: 50%; animation-delay: -15s; opacity: 0.1; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(40px, -30px) scale(1.08); }
    50%      { transform: translate(-20px, 25px) scale(0.94); }
    75%      { transform: translate(-35px, -20px) scale(1.04); }
}

/* Scroll-down bounce */
@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

/* ====== Reveal ====== */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ====== Glass card ====== */
.glass-card { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(0, 0, 0, 0.06); border-radius: 16px; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.04); }
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.07); border-color: rgba(0, 0, 0, 0.1); }

/* ====== Buttons ====== */
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.75rem; background: #2DD4BF; color: #111827; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; border-radius: 10px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; cursor: pointer; text-decoration: none; position: relative; overflow: hidden; }
.btn-primary:hover { background: #22c4b0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45, 212, 191, 0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.75rem; background: transparent; color: #111827; font-weight: 600; font-size: 0.95rem; letter-spacing: -0.01em; border-radius: 10px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1.5px solid rgba(0, 0, 0, 0.2); cursor: pointer; text-decoration: none; }
.btn-secondary:hover { border-color: #111827; background: rgba(0, 0, 0, 0.03); }

/* ====== Inputs ====== */
.input-field { width: 100%; padding: 0.9rem 1.1rem; border: 1.5px solid rgba(0, 0, 0, 0.12); border-radius: 10px; font-size: 0.95rem; font-family: 'Inter', sans-serif; transition: all 0.25s ease; background: #FAFAFA; color: #111827; outline: none; }
.input-field:focus { border-color: #2DD4BF; background: #fff; box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.08); }
.input-field::placeholder { color: #9CA3AF; }

/* ====== Misc ====== */
.section-divider { width: 48px; height: 3px; background: #2DD4BF; border-radius: 3px; }
.approach-number { font-size: 3.5rem; font-weight: 900; color: rgba(45, 212, 191, 0.2); line-height: 1; font-family: 'Manrope', 'Inter', sans-serif; letter-spacing: -0.04em; }

/* ====== Form messages ====== */
.form-msg { padding: 0.85rem 1rem; border-radius: 10px; font-size: 0.9rem; margin-bottom: 1rem; }
.form-msg.ok  { background: rgba(45, 212, 191, 0.12); color: #0f766e; border: 1px solid rgba(45, 212, 191, 0.3); }
.form-msg.err { background: rgba(220, 38, 38, 0.08); color: #991b1b; border: 1px solid rgba(220, 38, 38, 0.25); }

/* ====== Honeypot — hidden from humans (still readable by bots) ====== */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }

/* ====== Toast ====== */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: #111827; color: #fff; padding: 1rem 1.5rem; border-radius: 12px; font-weight: 500; z-index: 300; transform: translateY(120px); opacity: 0; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); }
.toast.show { transform: translateY(0); opacity: 1; }

/* =====================================================================
   Компонентные классы (замена inline style="")
   ===================================================================== */

/* --- Layout helpers --- */
.container { max-width: 1200px; margin: 0 auto; }
.container--narrow { max-width: 1100px; margin: 0 auto; }
.container--wide { max-width: 1280px; margin: 0 auto; width: 100%; }
.flex { display: flex; }
.flex--center { display: flex; align-items: center; justify-content: center; }
.flex--between { display: flex; align-items: center; justify-content: space-between; }
.flex--wrap { flex-wrap: wrap; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Sections --- */
.section { padding: 6rem 2rem; }
.section--gray { background: #F3F4F6; }
.section--white { background: #FFFFFF; }
.section--dark { background: #111827; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; color: #111827; margin-bottom: 1rem; }
.section-title--lg { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; color: #111827; }
.section-title--md { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.02em; color: #111827; margin-bottom: 1rem; }
.section-title--light { color: #FFFFFF; }
.section-sub { font-size: 1.05rem; color: #6B7280; max-width: 650px; margin: 0 auto; line-height: 1.6; }
.text-lead { font-size: 1.05rem; color: #6B7280; line-height: 1.7; }
.text-body { font-size: 1.05rem; color: #4B5563; line-height: 1.7; letter-spacing: -0.01em; }

/* --- Hero --- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6rem 2rem 4rem; }
.hero-inner { max-width: 900px; width: 100%; text-align: center; position: relative; z-index: 10; }
.hero-badge { display: inline-block; padding: 0.4rem 1rem; background: rgba(99, 102, 241, 0.06); border: 1px solid rgba(99, 102, 241, 0.15); border-radius: 99px; font-size: 0.8rem; font-weight: 600; color: #6366F1; letter-spacing: 0.02em; text-transform: uppercase; }
.hero-title { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; color: #111827; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.15rem; color: #4B5563; max-width: 680px; margin: 0 auto 2.5rem; line-height: 1.6; letter-spacing: -0.01em; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-stats { margin-top: 4rem; }
.stats-card { display: inline-block; padding: 1rem 2rem; text-align: left; width: 100%; }
.stats-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.stats-dot { width: 8px; height: 8px; background: #2DD4BF; border-radius: 50%; }
.stats-label { font-size: 0.8rem; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: 0.04em; }
.stats-row { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; width: 100%; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: #111827; font-family: 'Manrope', 'Inter', sans-serif; }
.stat-desc { font-size: 0.8rem; color: #6B7280; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; animation: bounceDown 2.5s ease-in-out infinite; }

/* --- Intro --- */
.intro-grid { display: flex; align-items: flex-start; gap: 4rem; flex-wrap: wrap; }
.intro-col { flex: 1; min-width: 280px; }
.intro-col h2 { margin-bottom: 1.25rem; }

/* --- Services --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card { display: flex; flex-direction: column; gap: 1rem; padding: 2.25rem; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.service-icon--teal { background: rgba(45, 212, 191, 0.1); }
.service-icon--indigo { background: rgba(99, 102, 241, 0.1); }
.service-icon--purple { background: rgba(139, 92, 246, 0.1); }
.service-title { font-size: 1.35rem; font-weight: 700; color: #111827; letter-spacing: -0.02em; }
.service-text { font-size: 0.95rem; color: #6B7280; line-height: 1.6; }
.service-link { font-weight: 600; color: #2DD4BF; text-decoration: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; }
.service-link-arrow { font-size: 1.1rem; }

/* --- Approach --- */
.approach-grid { display: flex; gap: 4rem; flex-wrap: wrap; align-items: center; }
.approach-info { flex: 1; min-width: 300px; }
.approach-info h2 { margin-bottom: 1rem; }
.approach-cards { flex: 1.2; min-width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.approach-card { padding: 1.5rem; background: #fff; border-radius: 14px; border: 1px solid rgba(0, 0, 0, 0.05); }
.approach-card-title { font-weight: 700; color: #111827; font-size: 1rem; margin-bottom: 0.4rem; }
.approach-card-text { font-size: 0.85rem; color: #6B7280; line-height: 1.5; }

/* --- Portfolio --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.portfolio-card { border-radius: 20px; overflow: hidden; position: relative; height: 480px; cursor: pointer; }
.port-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.port-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.3) 100%); transition: background 0.5s ease; }
.port-body { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem; color: #fff; }
.port-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.port-text { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); line-height: 1.6; margin-bottom: 1.25rem; }
.port-cta { display: inline-flex; align-items: center; gap: 0.5rem; color: #2DD4BF; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

/* --- Investment --- */
.invest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 4rem; align-items: center; }
.invest-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.invest-card { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 1.5rem; }
.invest-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.invest-icon--teal { background: rgba(45, 212, 191, 0.15); }
.invest-icon--indigo { background: rgba(99, 102, 241, 0.15); }
.invest-icon--purple { background: rgba(139, 92, 246, 0.15); }
.invest-label { font-size: 0.75rem; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.invest-value { font-size: 1rem; font-weight: 600; color: #fff; }
.invest-criteria { margin-top: 1.5rem; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 1.5rem; }
.invest-criteria-title { font-size: 0.75rem; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.criteria-item { display: flex; align-items: center; gap: 0.5rem; }
.criteria-item--full { grid-column: 1 / -1; }
.criteria-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.criteria-dot--teal { background: #2DD4BF; }
.criteria-dot--indigo { background: #6366F1; }
.criteria-dot--purple { background: #8B5CF6; }
.criteria-text { font-size: 0.9rem; color: #D1D5DB; }

/* --- Contact --- */
.contact-grid { display: flex; gap: 3rem; flex-wrap: wrap; }
.contact-col { flex: 1; min-width: 300px; }
.contact-col h2 { margin-bottom: 1rem; }
.contact-lead { font-size: 1.05rem; color: #6B7280; line-height: 1.7; margin-bottom: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-row { display: flex; align-items: flex-start; gap: 1rem; }
.contact-row--center { align-items: center; }
.contact-icon { width: 36px; height: 36px; background: rgba(45, 212, 191, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-label { font-weight: 600; color: #111827; font-size: 0.9rem; }
.contact-value { color: #6B7280; font-size: 0.9rem; line-height: 1.5; }
.contact-form { background: #fff; padding: 2.25rem; border-radius: 16px; border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 8px 24px rgba(0, 0, 0, 0.04); }
.form-grid { display: grid; gap: 1.25rem; }
.form-label { font-weight: 600; color: #111827; font-size: 0.85rem; display: block; margin-bottom: 0.4rem; }
.btn-block { width: 100%; justify-content: center; padding: 1rem; }
.map-wrap { border-radius: 1rem; overflow: hidden; border: 1px solid #f3f4f6; height: 20rem; }

/* --- Footer (замена мёртвых Tailwind-классов) --- */
.site-footer { background: #222222; padding: 3.5rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
.footer-col--span2 { grid-column: span 2; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; cursor: pointer; }
.footer-logo { width: 2rem; height: 2rem; background: #0070F3; border-radius: 0.25rem; display: flex; align-items: center; justify-content: center; }
.footer-logo span { color: #fff; font-weight: 700; font-size: 0.875rem; }
.footer-brand-name { font-size: 1rem; font-weight: 500; color: #fff; }
.footer-tagline { font-size: 0.875rem; color: #6B7280; line-height: 1.625; }
.footer-heading { font-size: 0.875rem; font-weight: 500; color: #fff; margin-bottom: 0.75rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; color: #6B7280; }
.footer-link { color: #6B7280; text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.75rem; }
.footer-copy { font-size: 0.75rem; color: #6B7280; margin: 0; }
.footer-legal { display: flex; align-items: center; gap: 1.25rem; }
@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-col--span2 { grid-column: auto; }
    .footer-inner { padding: 0 3rem; }
    .footer-bottom { flex-direction: row; }
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .hero-orb { display: none; }
    .approach-number { font-size: 2.5rem; }
    .navbar { padding: 1rem 1.25rem; }
    .navbar.scrolled { padding: 0.7rem 1.25rem; }
}
