/*! RESET & VINTAGE RETRO CSS — Energy Glade Tłumaczenia */
/* CSS RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f7f4ec;
  color: #27404f;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  outline: none;
  border: none;
  background: none;
  color: inherit;
}

/* ===== VINTAGE RETRO DESIGN TOKENS & VARIABLES ===== */
:root {
  --eg-primary: #184468;
  --eg-accent: #1C935D;
  --eg-secondary: #F2F7FC;
  --eg-retro-bg: #f7f4ec;
  --eg-retro-dark: #36362d;
  --eg-retro-mustard: #f8c471;
  --eg-retro-orange: #e87233;
  --eg-retro-red: #b23a48;
  --eg-retro-blue: #356077;
  --eg-retro-green: #1C935D;
  --eg-retro-border: #bcb8ad;
  --eg-retro-paper: #fffdf7;
  --eg-shadow-lg: 0 6px 32px 0 rgba(80,62,36,.09);
  --eg-shadow-sm: 0 2px 8px 0 rgba(80,62,36,0.08);
  --eg-font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Montserrat Alternates', 'Arial', sans-serif;
  --eg-font-body: 'Roboto', 'Verdana', 'Segoe UI', Arial, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
body {
  font-family: var(--eg-font-body);
  font-size: 16px;
  background: var(--eg-retro-bg);
  color: var(--eg-retro-dark);
  letter-spacing: 0.01em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--eg-font-display);
  font-weight: 700;
  color: var(--eg-primary);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  line-height: 1.13;
  text-shadow: 1px 2px 0 #e8dab0;
}
h1 {
  font-size: 2.6rem;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
p, ul li, ol li, dl, dd {
  font-size: 1.08rem;
  color: var(--eg-retro-dark);
  line-height: 1.7;
  margin-bottom: 16px;
}
small, .small {
  color: #8c8371;
  font-size: 0.95em;
}
strong {
  font-weight: 700;
}
.main,
.content-wrapper, .text-section {
  font-family: var(--eg-font-body);
  font-size: 1.08rem;
}

/* VINTAGE HEADLINE */
h1, h2, h3 {
  font-family: var(--eg-font-display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ============ GENERAL SPACING & FLEXBOX LAYOUTS ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--eg-retro-paper);
  border-radius: 18px;
  box-shadow: var(--eg-shadow-sm);
  border: 1.5px solid var(--eg-retro-border);
  position: relative;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 22px 8px;
    border-radius: 12px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffdf7;
  border-radius: 16px;
  border: 1.5px solid var(--eg-retro-border);
  box-shadow: var(--eg-shadow-sm);
  padding: 28px 26px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.17s;
}
.card:hover {
  box-shadow: var(--eg-shadow-lg);
  transform: translateY(-4px) scale(1.01);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; gap: 24px; }
  .content-grid { flex-direction: column; }
}

/* Additional Lists & Guides */
.step_by_step_guide,
.value_list,
.benefit_list,
.feature_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.step_by_step_guide li,
.value_list li,
.benefit_list li,
.feature_grid li {
  flex: 1 1 240px;
  background: #fffef7;
  border-radius: 12px;
  border: 1.2px solid var(--eg-retro-border);
  padding: 18px 16px 16px 14px;
  box-shadow: 0 2px 8px rgba(137, 102, 27, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--eg-font-body);
  font-size: 1.02rem;
  min-width: 180px;
  margin-bottom: 12px;
}
.step_by_step_guide li img,
.value_list li img,
.benefit_list li img,
.feature_grid li img {
  width: 38px;
  height: 38px;
  margin-right: 8px;
}
.feature_grid { margin-bottom: 28px; }

/* =============== BUTTONS =============== */
.cta-btn, button.cta-btn {
  font-family: var(--eg-font-display);
  background: var(--eg-retro-orange);
  color: #fffdf7;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 14px;
  padding: 12px 32px;
  border: 2.2px solid var(--eg-retro-blue);
  box-shadow: 0 2px 8px rgba(24,68,104,0.07);
  transition: background 0.16s, color 0.22s, transform 0.18s;
  margin: 10px 0;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--eg-retro-red);
  color: #fffef7;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(178,58,72,0.18);
}
button, .btn {
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--eg-font-body);
  background: var(--eg-retro-mustard);
  color: #36362d;
  border-radius: 13px;
  border: 1.3px solid var(--eg-retro-blue);
  padding: 10px 22px;
  margin: 0 6px;
  transition: background 0.13s, color 0.13s, box-shadow 0.17s;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--eg-retro-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(178,58,72,0.13);
}

/* =============== HEADER & NAV =============== */
header {
  background: #fff6de;
  border-bottom: 2px solid var(--eg-retro-border);
  padding: 0;
  box-shadow: 0 2px 12px rgba(232, 218, 176, 0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 16px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: var(--eg-font-display);
  font-size: 1.06rem;
  padding: 8px 12px;
  color: var(--eg-primary);
  border-radius: 8px;
  transition: background 0.11s, color 0.11s;
}
header nav a:hover, header nav a:focus {
  background: var(--eg-retro-orange);
  color: #fffef7;
}
header a.cta-btn {
  margin-left: 16px;
  letter-spacing: 0.03em;
}
header img {
  height: 46px;
}
@media (max-width: 1024px) {
  header .container { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===================== HERO SECTION ===================== */
.hero {
  background: repeating-linear-gradient(
    135deg,
    #fffdf7,
    #fffdf7 20px,
    #f7f4ec 22px,
    #f7f4ec 42px
  );
  border-radius: 20px;
  box-shadow: var(--eg-shadow-lg);
  margin-bottom: 60px;
  min-height: 260px;
  border: 2.5px solid var(--eg-retro-border);
}
.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  height: 100%;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 30px 0;
}
.hero h1 {
  color: var(--eg-retro-red);
  text-shadow: 2px 4px #f8c471, 1px 2px #fff6de;
}
.hero p {
  font-size: 1.2rem;
  color: var(--eg-retro-blue);
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fffef7;
  border: 2.2px solid var(--eg-retro-border);
  border-radius: 15px;
  box-shadow: 0 4px 18px rgba(232,196,113,0.09);
  transition: box-shadow 0.22s, transform 0.2s;
}
.testimonial-card p {
  color: #2a2922;
  font-size: 1.10rem;
  font-style: italic;
}
.testimonial-card span {
  font-family: var(--eg-font-display);
  color: var(--eg-retro-blue);
  font-size: 1.02rem;
}
.testimonial-card div {
  display: flex;
  gap: 2px;
  align-items: center;
}
.testimonial-card img {
  width: 26px;
  height: 26px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 26px rgba(24,68,104,0.10);
  transform: translateY(-3px) scale(1.03);
}

/* ==== RETRO PATTERNS & DECOR (backgrounds and borders) ==== */
.section {
  background: repeating-linear-gradient(135deg, #fff6de, #fffdf7 38px, #f7f4ec 45px);
  border: 1.7px dashed var(--eg-retro-border);
}
@media (max-width: 768px) {
  .testimonial-card { flex-direction: column; gap: 11px; padding: 16px; }
}

/* ============== PRICING TABLE ============== */
.pricing_table {
  width: 100%;
  margin-bottom: 22px;
  border-radius: 11px;
  overflow: hidden;
  background: #fffdf7;
  border: 1.2px solid var(--eg-retro-border);
  box-shadow: 0 3px 18px rgba(248,196,113,0.06);
}
.pricing_table th {
  background: var(--eg-retro-mustard);
  color: var(--eg-retro-dark);
  font-size: 1.1rem;
  padding: 13px 16px;
  font-family: var(--eg-font-display);
  letter-spacing: 0.02em;
}
.pricing_table td {
  padding: 12px 15px;
  font-size: 1.02rem;
  color: var(--eg-retro-dark);
  border-bottom: 1px solid #eae7dc;
}
.pricing_table tr:last-child td {
  border-bottom: none;
}

/* ================= CONTENT ================= */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 10px;
}
.text-section {
  background: none;
  border: 0;
  padding: 0;
}

/* ========= SUPPORTED LANGUAGES GRID ========= */
.supported_languages_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 24px;
  margin: 12px 0 19px 0;
}
.supported_languages_grid span {
  background: var(--eg-retro-mustard);
  color: var(--eg-retro-dark);
  border-radius: 7px;
  padding: 5px 16px;
  font-family: var(--eg-font-display);
  font-size: 1.01rem;
  font-weight: 600;
  border: 1.2px solid #f7d393;
}

/* ================ CONTACT BOX ================ */
.contact-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fffdf7;
  border: 1.7px solid var(--eg-retro-border);
  border-radius: 10px;
  box-shadow: 0 3px 18px rgba(200,153,15,0.08);
  padding: 26px 18px;
  margin-bottom: 22px;
}
.contact-box div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.04rem;
  color: var(--eg-retro-blue);
}
.contact-box strong {
  font-family: var(--eg-font-display);
}

/* =================== FOOTER =================== */
footer {
  background: #ece6d7;
  border-top: 2px solid var(--eg-retro-border);
  margin-top: 60px;
  padding: 0;
}
.footer-main {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 28px 0 10px 0;
  flex-wrap: wrap;
}
.footer-main > nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 1.01rem;
  color: var(--eg-retro-dark);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact p img {
  display: inline-block;
  margin-right: 7px;
  height: 19px;
  width: 19px;
}
.footer-main a {
  color: var(--eg-retro-blue);
  font-family: var(--eg-font-body);
  font-size: 1.01rem;
}
.footer-main a:hover {
  color: var(--eg-retro-orange);
}
footer img {
  height: 36px;
  margin-bottom: 10px;
}
@media (max-width: 1024px) {
  .footer-main { flex-direction: column; gap: 16px; }
}

/* ================== MODAL/CARDS (for cookie details) ================== */
.card-content, .feature-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
}

/* ============= BURGER MENU (MOBILE NAV) ============= */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  background: var(--eg-retro-orange);
  border-radius: 14px;
  z-index: 1035;
  font-size: 2rem;
  color: #fffdf7;
  border: 2px solid var(--eg-retro-blue);
  transition: box-shadow 0.12s, background 0.18s;
  text-align: center;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--eg-retro-red);
  box-shadow: 0 2px 12px rgba(232,114,51,0.14);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fffdf7;
  box-shadow: 0 14px 38px 0 rgba(36,32,17,0.14);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(.68,-0.55,.27,1.55);
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--eg-retro-mustard);
  color: var(--eg-retro-red);
  border-radius: 13px;
  padding: 14px 18px;
  font-size: 1.8rem;
  margin: 17px 19px 0 0;
  border: 1.5px solid var(--eg-retro-blue);
  cursor: pointer;
  transition: background 0.11s, color 0.15s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--eg-retro-red);
  color: #fffdf7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 35px 32px;
}
.mobile-nav a {
  font-family: var(--eg-font-display);
  font-size: 1.26rem;
  padding: 11px 18px;
  border-radius: 10px;
  color: var(--eg-retro-blue);
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--eg-retro-orange);
  color: #fffdf7;
}
@media (max-width: 990px) {
  header nav, header .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (min-width: 991px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* =============== COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 10400;
  background: #fff6de;
  color: #232015;
  border-top: 2px solid var(--eg-retro-border);
  box-shadow: 0 -5px 22px 0 rgba(36,32,17,0.08);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 16px 22px 22px;
  font-family: var(--eg-font-body);
  font-size: 1.04rem;
}
.cookie-banner button, .cookie-banner .btn {
  margin: 0 6px;
  font-size: 1.04rem;
  font-family: var(--eg-font-body);
  border-radius: 11px;
  border: 1px solid var(--eg-retro-blue);
  padding: 9px 21px;
  font-weight: bold;
  background: var(--eg-retro-mustard);
  color: #353311;
  transition: background .11s, color .12s;
}
.cookie-banner button:focus, .cookie-banner button:hover {
  background: var(--eg-retro-red);
  color: #fffdf7;
}
.cookie-banner a {
  text-decoration: underline dotted;
  color: var(--eg-retro-blue);
  font-weight: 700;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.97rem;
    padding: 16px 4px 16px 8px;
  }
  .cookie-banner button {
    width: 100%;
    margin-bottom: 7px;
  }
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 10500;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(47,35,10,0.29);
  animation: cookie-modal-fadein .44s both;
}
.cookie-modal-overlay.open {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fffdf7;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -6px 24px 0 rgba(200,170,25,0.20);
  padding: 44px 28px 32px 28px;
  min-width: 320px;
  max-width: 98vw;
  width: 410px;
  margin-bottom: 0px;
  animation: cookie-slideup .33s cubic-bezier(.37,1.4,.44,.98);
}
@keyframes cookie-slideup {
  from { transform: translateY(100px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-modal h3 {
  font-family: var(--eg-font-display);
  font-size: 1.23rem;
  margin-bottom: 14px;
  color: var(--eg-retro-red);
}
.cookie-modal .category-list {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-modal .cookie-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-left: 8px;
}
.toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background: #e5dfc6;
  border-radius: 12px;
  top: 0; left: 0; right:0; bottom:0;
  transition: background 0.2s;
}
.toggle-slider:before {
  position: absolute;
  content: '';
  height: 20px; width: 20px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 9px rgba(178,58,72,0.08);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--eg-retro-green);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(19px);
  background: var(--eg-retro-orange);
}
.cookie-modal-close {
  background: none;
  color: var(--eg-retro-red);
  border: 0;
  font-size: 2rem;
  position: absolute;
  right: 14px; top: 13px;
  cursor: pointer;
}
.cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* =========== HTML ELEMENTS & FORMATTING =========== */
main a {
  color: var(--eg-retro-red);
  transition: color .13s;
  font-weight: 600;
}
main a:hover {
  text-decoration: underline dashed;
  color: var(--eg-retro-blue);
}
ul li::marker, ol li::marker { color: var(--eg-retro-blue); }

ol, ul {
  margin-left: 1em;
}

pre, code {
  background: #ece6d7;
  color: #5e4c26;
  font-family: 'Fira Mono', monospace;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 0.97em;
}

dl {
  margin-bottom: 18px;
}
dl dt {
  font-weight: bold;
  color: var(--eg-retro-blue);
  font-size: 1.09em;
  margin-top: 10px;
}
dl dd {
  margin-bottom: 4px;
  margin-left: 1.2em;
  color: #48432e;
}

/* ============= UTILITIES & MICRO-INTERACTIONS ============= */
[tabindex]:focus-visible {
  outline: 2px dashed var(--eg-retro-orange);
  outline-offset: 3px;
}

section:last-child {
  margin-bottom: 0 !important;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.9s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* Animations for hover micro-interactions */
.cta-btn, .btn, button {
  transition: background 0.18s, color 0.18s, box-shadow 0.17s, transform 0.17s;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 8px; }
  .card { padding: 17px 10px; }
  .footer-main { padding: 16px 0 0 0; }
  .pricing_table th, .pricing_table td { font-size: 0.97rem; padding: 9px 7px; }
}

/* ============= PRINT (optional) ============= */
@media print {
  body { background: #fff !important; color: #000 !important; }
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  main { padding: 0; }
}
