/* ElectraFrame J9zyki e style.css e Creative Artistic / Flex-only / Mobile-first */
/* -----------------------------------------------------
   0) Google Fonts
----------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@700;800;900&display=swap');

/* -----------------------------------------------------
   1) Reset & Normalize
----------------------------------------------------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2em; }

/* -----------------------------------------------------
   2) Theme Tokens (with fallbacks)
----------------------------------------------------- */
:root {
  --color-primary: #1F3A8A; /* deep blue */
  --color-secondary: #0F766E; /* teal */
  --color-accent: #F8FAFC; /* very light */
  --color-ink: #0B132B; /* dark ink */
  --color-ink-soft: #334155; /* slate-ish */
  --color-rose: #E11D48; /* artistic pop */
  --color-amber: #F59E0B; /* artistic pop */
  --color-lime: #84CC16; /* artistic pop */

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-1: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-2: 0 10px 30px rgba(0,0,0,0.12);
  --container-max: 1120px;
}

/* -----------------------------------------------------
   3) Base Typography & Body
----------------------------------------------------- */
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--color-accent, #F8FAFC);
  color: var(--color-ink, #0B132B);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: Montserrat, Inter, system-ui, sans-serif;
  color: var(--color-ink, #0B132B);
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
}

h1 { font-size: 34px; line-height: 1.15; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.25; }

p { margin: 0 0 16px 0; color: var(--color-ink-soft, #334155); }
strong { color: var(--color-ink, #0B132B); font-weight: 700; }

/* Links */
a { color: var(--color-primary, #1F3A8A); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
a:hover { opacity: 0.9; }
a:focus-visible { outline: 2px solid var(--color-amber, #F59E0B); outline-offset: 2px; border-radius: 6px; text-decoration: none; }

/* -----------------------------------------------------
   4) Layout Primitives (Flex-only)
----------------------------------------------------- */
.container {
  display: flex; /* flex-only requirement */
  justify-content: center;
  width: 100%;
  padding: 0 16px;
}
.content-wrapper {
  display: flex; /* flex-only requirement */
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: var(--container-max, 1120px);
  gap: 20px; /* global spacing rhythm */
}

/* Sections */
section { padding: 40px 0; }
.section { margin-bottom: 60px; padding: 40px 20px; } /* Mandatory pattern */

/* Grids (flex-only) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; } /* Mandatory pattern */
.card { margin-bottom: 20px; position: relative; } /* Mandatory pattern */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; } /* Mandatory pattern */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; } /* Mandatory pattern */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; } /* Mandatory pattern */
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; } /* Mandatory pattern */

/* -----------------------------------------------------
   5) Header & Navigation
----------------------------------------------------- */
header { position: sticky; top: 0; background: #FFFFFF; border-bottom: 1px solid rgba(2,6,23,0.06); z-index: 1000; }
header .container { padding-top: 12px; padding-bottom: 12px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }

.logo img { height: 36px; width: auto; }

.main-nav { display: none; gap: 8px; flex-wrap: wrap; align-items: center; }
.main-nav a { display: flex; align-items: center; padding: 8px 12px; border-radius: 999px; color: var(--color-ink, #0B132B); text-decoration: none; transition: background-color .2s ease, transform .15s ease; }
.main-nav a:hover { background: var(--color-accent, #F8FAFC); transform: translateY(-1px); }
.main-nav a:focus-visible { outline: 2px solid var(--color-amber, #F59E0B); outline-offset: 2px; }

.cta-group { display: none; gap: 10px; align-items: center; }
.cta-group a { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.cta-group a:first-child { background: var(--color-secondary, #0F766E); color: #fff; box-shadow: var(--shadow-1); }
.cta-group a:first-child:hover { transform: translateY(-2px); }
.cta-group a:last-child { background: #ffffff; color: var(--color-primary, #1F3A8A); border: 2px solid var(--color-primary, #1F3A8A); }
.cta-group a:last-child:hover { background: var(--color-primary, #1F3A8A); color: #fff; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: none; background: var(--color-primary, #1F3A8A); color: #fff; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .15s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-2px); }
.mobile-menu-toggle:focus-visible { outline: 2px solid var(--color-amber, #F59E0B); outline-offset: 2px; }

/* Mobile Menu Overlay (slide-in panel) */
.mobile-menu { position: fixed; inset: 0; background: rgba(2,6,23,0.55); display: flex; justify-content: flex-end; align-items: stretch; opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 2000; }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; border: none; background: #fff; color: var(--color-ink, #0B132B); cursor: pointer; box-shadow: var(--shadow-1); }
.mobile-nav { background: #FFFFFF; width: 85%; max-width: 420px; display: flex; flex-direction: column; gap: 8px; padding: 24px; transform: translateX(100%); transition: transform .35s ease; }
.mobile-menu.open .mobile-nav { transform: translateX(0); }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border-radius: 12px; color: var(--color-ink, #0B132B); text-decoration: none; font-weight: 600; }
.mobile-nav a:hover { background: var(--color-accent, #F8FAFC); }
.mobile-nav a:focus-visible { outline: 2px solid var(--color-amber, #F59E0B); outline-offset: 2px; }

/* Desktop breakpoint: show main nav & ctas, hide burger */
@media (min-width: 960px) {
  .main-nav { display: flex; }
  .cta-group { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -----------------------------------------------------
   6) Hero Section (Creative Artistic)
----------------------------------------------------- */
.hero { position: relative; background: var(--color-primary, #1F3A8A); color: #fff; overflow: hidden; }
.hero .container { padding-top: 40px; padding-bottom: 40px; }
.hero .content-wrapper { gap: 16px; }
.hero h1, .hero p, .hero a, .hero li, .hero strong { color: #fff; }
.hero h1 { color: #fff; font-size: 32px; }
.hero p { color: rgba(255,255,255,0.9); }

/* Artistic solid shapes (decorative only) */
.hero::before, .hero::after { content: ""; position: absolute; z-index: 0; opacity: 0.16; }
.hero::before { width: 220px; height: 220px; background: var(--color-secondary, #0F766E); border-radius: 36% 64% 57% 43%/41% 38% 62% 59%; top: -40px; right: -40px; }
.hero::after { width: 160px; height: 160px; background: var(--color-rose, #E11D48); border-radius: 50%; bottom: -30px; left: -30px; }

/* Actions */
.actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.actions a { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; padding: 12px 16px; border-radius: 14px; border: 2px solid transparent; text-decoration: none; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease; box-shadow: var(--shadow-1); }
.hero .actions a:first-child { background: #fff; color: var(--color-primary, #1F3A8A); }
.hero .actions a:first-child:hover { transform: translateY(-2px); }
.hero .actions a:last-child { background: transparent; color: #fff; border-color: #fff; }
.hero .actions a:last-child:hover { background: rgba(255,255,255,0.12); }

/* Trust and Stats */
.trust ul, .stats ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 8px 0 0 0; }
.trust li, .stats li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: rgba(255,255,255,0.12); color: #fff; }
.trust img { width: 18px; height: 18px; }
.stats strong { font-size: 18px; }

/* -----------------------------------------------------
   7) Content Sections & Lists
----------------------------------------------------- */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.text-section li { position: relative; padding-left: 28px; color: var(--color-ink-soft, #334155); }
.text-section li::before { content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 4px; background: var(--color-lime, #84CC16); }
.text-section h3 { margin-top: 8px; }

/* Ordered lists styling (flex-wrap friendly) */
ol { display: flex; flex-direction: column; gap: 8px; padding-left: 1.2em; }
ol li { color: var(--color-ink-soft, #334155); }

/* Quick info badges (numbers blocks) */
ul:not(.trust ul):not(.stats ul) strong { color: var(--color-ink, #0B132B); }

/* -----------------------------------------------------
   8) Testimonials (Readable contrast)
----------------------------------------------------- */
.testimonial-card { background: #FFFFFF; border: 1px solid rgba(2,6,23,0.06); border-radius: 16px; box-shadow: var(--shadow-1); color: var(--color-ink, #0B132B); }
.testimonial-card p { margin: 0; }
.testimonial-card p:first-child { font-style: italic; color: var(--color-ink-soft, #334155); }

/* -----------------------------------------------------
   9) Footer
----------------------------------------------------- */
footer { background: #FFFFFF; border-top: 1px solid rgba(2,6,23,0.06); }
footer .container { padding-top: 32px; padding-bottom: 32px; }
footer .content-wrapper { flex-direction: column; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .logo img { height: 32px; }
.footer-nav, .footer-legal, .footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h3, .footer-legal h3, .footer-contact h3 { font-size: 16px; color: var(--color-ink, #0B132B); margin-bottom: 6px; }
.footer-nav a, .footer-legal a { text-decoration: none; color: var(--color-ink-soft, #334155); padding: 6px 0; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--color-primary, #1F3A8A); }
.footer-contact p, .newsletter-note p { margin: 0; color: var(--color-ink-soft, #334155); }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.social a { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: var(--color-accent, #F8FAFC); color: var(--color-ink, #0B132B); text-decoration: none; }

/* Footer responsive columns via flex-only */
@media (min-width: 960px) {
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
  .footer-brand { flex: 1 1 280px; }
  .footer-nav { flex: 1 1 200px; }
  .footer-legal { flex: 1 1 200px; }
  .footer-contact { flex: 1 1 280px; }
}

/* -----------------------------------------------------
   10) Cards / Generic UI Elements
----------------------------------------------------- */
.card { background: #FFFFFF; border: 1px solid rgba(2,6,23,0.06); border-radius: 16px; box-shadow: var(--shadow-1); padding: 20px; }
.card:hover { box-shadow: var(--shadow-2); }

/* Buttons in context */
.actions a, .cta-group a { text-decoration: none; }

/* Inputs (if any appear later) */
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-secondary, #0F766E); }

/* -----------------------------------------------------
   11) Alternating Section Styles (subtle)
----------------------------------------------------- */
main > section:nth-of-type(odd):not(.hero) { background: #FFFFFF; }
main > section:nth-of-type(even) { background: #FDFDFE; }

/* -----------------------------------------------------
   12) Cookie Consent (banner + modal)
----------------------------------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000; display: flex; flex-direction: column; gap: 12px; background: var(--color-primary, #1F3A8A); color: #fff; padding: 16px; box-shadow: 0 -8px 24px rgba(0,0,0,0.15); transform: translateY(110%); transition: transform .35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; color: rgba(255,255,255,0.95); }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn-accept, .cookie-buttons .btn-reject, .cookie-buttons .btn-settings { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 700; border: 2px solid transparent; cursor: pointer; text-decoration: none; }
.cookie-buttons .btn-accept { background: var(--color-lime, #84CC16); color: #0b1b2b; }
.cookie-buttons .btn-accept:hover { filter: brightness(0.95); }
.cookie-buttons .btn-reject { background: #ffffff; color: var(--color-ink, #0B132B); }
.cookie-buttons .btn-settings { background: transparent; color: #fff; border-color: #fff; }

.cookie-modal { position: fixed; inset: 0; background: rgba(2,6,23,0.55); display: flex; justify-content: center; align-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 4000; }
.cookie-modal.open { opacity: 1; pointer-events: auto; }
.cookie-modal-content { background: #FFFFFF; width: 100%; max-width: 680px; border-radius: 16px; box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid rgba(2,6,23,0.08); border-radius: 12px; }
.cookie-category .hint { color: var(--color-ink-soft, #334155); font-size: 14px; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-modal .btn-primary { background: var(--color-secondary, #0F766E); color: #fff; padding: 10px 14px; border-radius: 12px; border: none; cursor: pointer; }
.cookie-modal .btn-outline { background: transparent; color: var(--color-ink, #0B132B); border: 2px solid var(--color-ink, #0B132B); padding: 8px 12px; border-radius: 12px; cursor: pointer; }

/* -----------------------------------------------------
   13) Responsive Rules
----------------------------------------------------- */
/* Text-image sections stack on mobile */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* Type scaling */
@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .hero h1 { font-size: 48px; }
}
@media (min-width: 1120px) {
  h1 { font-size: 48px; }
  .hero h1 { font-size: 56px; }
}

/* Hero vertical rhythm on larger screens */
@media (min-width: 960px) {
  .hero .container { padding-top: 60px; padding-bottom: 60px; }
}

/* Content cards and grids via flex-only */
.responsive-row { display: flex; flex-wrap: wrap; gap: 20px; }

/* -----------------------------------------------------
   14) Accessibility & Focus
----------------------------------------------------- */
:focus-visible { scroll-margin-top: 80px; }
button:focus-visible, .actions a:focus-visible, .cta-group a:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible { outline: 2px solid var(--color-amber, #F59E0B); outline-offset: 2px; }

/* -----------------------------------------------------
   15) Page-specific Touches
----------------------------------------------------- */
/* Pricing / plans lists more airy */
section h2 + .text-section ul li { background: #FFFFFF; border: 1px solid rgba(2,6,23,0.06); border-radius: 12px; padding: 12px 16px 12px 32px; }
section h2 + .text-section ul li::before { top: 14px; left: 12px; border-radius: 50%; background: var(--color-amber, #F59E0B); width: 10px; height: 10px; }

/* Success & numbers strips */
main > section ul:has(strong) { display: flex; flex-wrap: wrap; gap: 12px; padding-left: 0; list-style: none; }
main > section ul:has(strong) li { background: #ffffff; border: 1px solid rgba(2,6,23,0.06); border-radius: 12px; padding: 10px 14px; }

/* Contact icons list */
.text-section ul li img { width: 18px; height: 18px; position: relative; top: 3px; margin-right: 6px; }

/* -----------------------------------------------------
   16) Ensuring spacing between blocks
----------------------------------------------------- */
/* All direct children in content-wrapper spaced with gap already; add margin between sibling sections */
main > section + section { margin-top: 8px; }

/* -----------------------------------------------------
   17) Dark text on light backgrounds for testimonials/reviews (contrast)
----------------------------------------------------- */
/* Already enforced via .testimonial-card white background and dark text */

/* -----------------------------------------------------
   18) Utility (no absolute for content cards; decorative only) 
----------------------------------------------------- */
.u-center { display: flex; align-items: center; justify-content: center; }
.u-row { display: flex; flex-wrap: wrap; gap: 20px; }

/* -----------------------------------------------------
   19) Print basics (optional light) 
----------------------------------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
