*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1e293b; line-height: 1.6; background: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 1.5rem; font-weight: 700; color: #1e40af; text-decoration: none; }
.logo span { color: #3b82f6; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { text-decoration: none; color: #475569; font-weight: 500; font-size: .925rem; transition: color .2s; }
.nav a:hover, .nav a.active { color: #1e40af; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: #1e293b; border-radius: 2px; transition: .3s; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px 24px; gap: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
  .nav.open { display: flex; }
}

/* Hero */
.hero { padding: 100px 0 80px; background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); color: #fff; text-align: center; }
.hero h1 { font-size: 3rem; font-weight: 700; max-width: 800px; margin: 0 auto 16px; line-height: 1.2; }
.hero p { font-size: 1.2rem; opacity: .9; max-width: 600px; margin: 0 auto 32px; }
.hero .btn { display: inline-block; padding: 14px 40px; background: #fff; color: #1e40af; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 1rem; transition: box-shadow .2s; }
.hero .btn:hover { box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.hero .btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); margin-left: 12px; }
.hero .btn-outline:hover { border-color: #fff; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero .btn-outline { margin-left: 0; margin-top: 12px; }
}

/* Sections */
.section { padding: 80px 0; }
.section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 16px; color: #1e293b; }
.section-subtitle { text-align: center; color: #64748b; max-width: 600px; margin: 0 auto 48px; font-size: 1.1rem; }
.section-light { background: #f8fafc; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: 12px; padding: 40px 32px; box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; border: 1px solid #e2e8f0; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.1); }
.card.featured { border-color: #3b82f6; border-width: 2px; position: relative; }
.card .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #3b82f6; color: #fff; padding: 4px 16px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card .price { font-size: 2.5rem; font-weight: 700; color: #1e40af; margin: 16px 0 4px; }
.card .price span { font-size: 1rem; font-weight: 400; color: #64748b; }
.card ul { list-style: none; margin: 24px 0; }
.card ul li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; gap: 8px; }
.card ul li::before { content: "✓"; color: #3b82f6; font-weight: 700; }
.card ul li.na { color: #94a3b8; }
.card ul li.na::before { content: "✗"; color: #cbd5e1; }
.card .btn { display: block; text-align: center; padding: 12px; background: #1e40af; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; transition: background .2s; }
.card .btn:hover { background: #1e3a8a; }
.card.featured .btn { background: #3b82f6; }
.card.featured .btn:hover { background: #2563eb; }

/* About / Content */
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 768px) { .content-grid { grid-template-columns: 1fr; gap: 32px; } }
.content-grid img { width: 100%; border-radius: 12px; }
.content-grid h2 { font-size: 2rem; margin-bottom: 16px; }
.content-grid p { color: #475569; margin-bottom: 16px; }

/* Plan detail page */
.plan-hero { padding: 80px 0; text-align: center; background: #f8fafc; }
.plan-hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 8px; }
.plan-hero .price-big { font-size: 3.5rem; font-weight: 700; color: #1e40af; margin: 16px 0; }
.plan-hero .price-big span { font-size: 1.25rem; color: #64748b; font-weight: 400; }
.plan-hero p { color: #475569; max-width: 600px; margin: 0 auto 24px; }
.plan-hero .btn { display: inline-block; padding: 14px 40px; background: #1e40af; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; }
.plan-hero .btn:hover { background: #1e3a8a; }

.features-list { max-width: 700px; margin: 0 auto; }
.features-list .feature-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid #e2e8f0; }
.features-list .feature-item:last-child { border: none; }
.features-list .feature-icon { color: #3b82f6; font-size: 1.25rem; flex-shrink: 0; }
.features-list h3 { font-size: 1.1rem; margin-bottom: 4px; }
.features-list p { color: #64748b; font-size: .95rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.25rem; margin-bottom: 16px; color: #1e293b; }
.contact-info p { color: #475569; margin-bottom: 8px; }
.contact-info .info-block { margin-bottom: 24px; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 6px; color: #334155; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit; font-size: 1rem; margin-bottom: 16px; transition: border-color .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #3b82f6; }
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn { width: 100%; padding: 14px; background: #1e40af; color: #fff; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .2s; }
.contact-form .btn:hover { background: #1e3a8a; }
.contact-form .msg { margin-top: 12px; padding: 12px; border-radius: 8px; display: none; }
.contact-form .msg.success { display: block; background: #dcfce7; color: #166534; }
.contact-form .msg.error { display: block; background: #fee2e2; color: #991b1b; }

/* Footer */
.footer { background: #1e293b; color: #94a3b8; padding: 60px 0 32px; }
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .footer .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .container { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer p, .footer a { font-size: .9rem; color: #94a3b8; text-decoration: none; display: block; margin-bottom: 8px; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; display: inline-block; margin-bottom: 12px; }
.footer .logo span { color: #60a5fa; }
.footer-bottom { text-align: center; padding-top: 32px; margin-top: 32px; border-top: 1px solid #334155; font-size: .85rem; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Cookie Consent */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #1e293b; color: #e2e8f0; z-index: 9999; padding: 20px 0; transform: translateY(100%); transition: transform .4s ease; box-shadow: 0 -4px 20px rgba(0,0,0,.3); }
.cookie-bar.show { transform: translateY(0); }
.cookie-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-bar p { font-size: .9rem; line-height: 1.5; margin: 0; max-width: 650px; }
.cookie-bar p a { color: #60a5fa; text-decoration: underline; }
.cookie-bar .btns { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.cookie-bar .btns button { padding: 10px 20px; border: none; border-radius: 6px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: opacity .2s; }
.cookie-bar .btns button:hover { opacity: .9; }
.cookie-btn-accept { background: #3b82f6; color: #fff; }
.cookie-btn-refuse { background: transparent; color: #94a3b8; border: 1px solid #475569 !important; }
.cookie-btn-custom { background: transparent; color: #94a3b8; border: 1px solid #475569 !important; }

/* Cookie Modal */
.cookie-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10000; align-items: center; justify-content: center; }
.cookie-overlay.open { display: flex; }
.cookie-modal { background: #fff; color: #1e293b; border-radius: 12px; max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; padding: 32px; }
.cookie-modal h2 { font-size: 1.25rem; margin-bottom: 20px; }
.cookie-category { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.cookie-category-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; background: #f8fafc; }
.cookie-category-header h3 { font-size: .95rem; font-weight: 600; }
.cookie-category-header .toggle { width: 40px; height: 22px; background: #cbd5e1; border-radius: 11px; position: relative; transition: background .2s; flex-shrink: 0; margin-left: 12px; cursor: pointer; }
.cookie-category-header .toggle.on { background: #3b82f6; }
.cookie-category-header .toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform .2s; }
.cookie-category-header .toggle.on::after { transform: translateX(18px); }
.cookie-category-header .disabled-toggle { opacity: .5; cursor: not-allowed; }
.cookie-category-body { padding: 0 16px 14px; font-size: .85rem; color: #475569; display: none; }
.cookie-category.open .cookie-category-body { display: block; }
.cookie-category-body p { margin: 0 0 8px; }
.cookie-category-body label { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: #64748b; cursor: pointer; }
.cookie-category-body input[type="checkbox"] { accent-color: #3b82f6; }
.cookie-modal-actions { display: flex; gap: 8px; margin-top: 20px; justify-content: flex-end; }
.cookie-modal-actions button { padding: 10px 24px; border: none; border-radius: 6px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.cookie-modal-save { background: #1e40af; color: #fff; }
.cookie-modal-accept { background: #3b82f6; color: #fff; }
.cookie-modal-refuse { background: transparent; color: #475569; border: 1px solid #cbd5e1 !important; }

/* Legal pages */
.legal { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: 2rem; margin-bottom: 24px; }
.legal h2 { font-size: 1.25rem; margin: 32px 0 12px; color: #1e293b; }
.legal p { color: #475569; margin-bottom: 12px; line-height: 1.8; }

/* Page header */
.page-header { padding: 60px 0; background: #f8fafc; text-align: center; }
.page-header h1 { font-size: 2.5rem; font-weight: 700; }
.page-header p { color: #64748b; margin-top: 8px; }
