/* ===== 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;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}
body {
  min-height: 100vh;
  background: #F6F5F5;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: #0F3460;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1A1A2E;
  outline: none;
}
button, input, select, textarea {
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

/* ===== Brand Variables and Fallbacks ===== */
:root {
  --color-primary: #1A1A2E;
  --color-secondary: #0F3460;
  --color-accent: #F6F5F5;
  --color-bg: #F6F5F5;
  --color-heading: #1A1A2E;
  --color-text: #222;
  --color-footer-bg: #0F3460;
  --color-card-bg: #fff;
  --color-shadow: rgba(19,33,68,0.08);
  --color-shadow-hover: rgba(19,33,68,0.14);
  --color-border: #e4e7ee;
  --color-testimonial-bg: #f0f4fa;
  --color-nav-link: #222;
  --color-nav-link-active: #0F3460;
  --color-nav-link-hover: #1A1A2E;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
  --radius: 12px;
  --transition: 0.2s cubic-bezier(.4,0,.2,1);
}

/* ===== Layout Containers ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.text-section {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 -12px 20px -12px;
}
.card {
  margin-bottom: 20px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  padding: 28px 24px;
  min-width: 240px;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 4px 16px 0 var(--color-shadow-hover);
  transform: translateY(-2px) scale(1.02);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.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;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--color-testimonial-bg);
  color: #181A20;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(0,24,80,0.06);
}
.testimonial-card blockquote {
  font-size: 18px;
  line-height: 1.45;
  color: #181A20;
}
.testimonial-card strong {
  font-weight: 700;
  color: var(--color-secondary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 8px;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.35rem; margin-bottom: 14px; }
h4 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 500; }
h5 { font-size: 1rem; margin-bottom: 10px; }
h6 { font-size: 0.9rem; margin-bottom: 8px; }
p, ul li, ol li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 12px;
}
ul, ol {
  padding-left: 0;
}
.text-section ul, .text-section ol {
  padding-left: 16px;
  margin-bottom: 12px;
}
.text-section ul li, .text-section ol li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.text-section ul li:before {
  content: '•';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-secondary);
  font-size: 1.2em;
}
.text-section ol li:before {
  display: none;
}
strong { font-weight: 600; color: #21253e; }

/* ===== Header & Navigation ===== */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 6px 0 var(--color-shadow);
  z-index: 1002;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 18px;
}
.logo { display: flex; align-items: center; height: 50px; }
.logo img {
  max-height: 46px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-nav-link);
  font-size: 1rem;
  padding: 10px 2px;
  border-bottom: 2px solid transparent;
  transition: color .18s, border-color .18s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-nav-link-hover);
  border-color: var(--color-secondary);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  background: var(--color-secondary);
  color: #fff !important;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 12px 28px;
  margin-left: 12px;
  box-shadow: 0 3px 12px 0 rgba(15,52,96,.14);
  cursor: pointer;
  border: none;
  transition: background .18s, transform .13s;
  text-shadow: none;
  outline: none;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-primary);
  color: #fff !important;
  transform: translateY(-1px) scale(1.03);
}

/* ===== Mobile Nav Hamburger ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-secondary);
  cursor: pointer;
  padding: 8px 10px;
  z-index: 1102;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
.mobile-menu-toggle:focus {
  background: #f0f4fa;
  color: var(--color-primary);
}

/* ===== Mobile Menu Styles ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26,26,46,0.92);
  overflow-y: auto;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform .36s cubic-bezier(.9,0,.3,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.3rem;
  border: none;
  position: absolute;
  top: 24px; right: 30px;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 4px 11px 4px 8px;
  z-index: 2100;
  transition: background .16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: rgba(15,52,96,0.14);
}
.mobile-nav {
  margin-top: 68px;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  padding: 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 500;
  padding: 16px 12px;
  border-radius: 8px;
  transition: background .16s, color .16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: rgba(15,52,96,0.12);
  color: #F6F5F5;
}

@media (max-width: 1100px) {
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
}

/* Hide desktop nav/show mobile burger below 960px */
@media (max-width: 959px) {
  .main-nav, .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 960px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ===== Hero Styles ===== */
section:first-of-type h1 {
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--color-secondary);
}
section:first-of-type p {
  font-size: 1.18rem;
  color: #222;
  margin-bottom: 22px;
  max-width: 750px;
}

/* ===== Feature List Styles ===== */
.content-wrapper ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.content-wrapper ul li {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  padding: 28px 22px 22px 22px;
  flex: 1 1 225px;
  min-width: 210px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e6eaf7;
  position: relative;
  transition: box-shadow .19s, transform .17s;
}
.content-wrapper ul li:hover, .content-wrapper ul li:focus-within {
  box-shadow: 0 6px 22px 0 var(--color-shadow-hover);
  transform: translateY(-2px) scale(1.017);
}
.content-wrapper ul li img {
  max-width: 46px;
  margin-bottom: 6px;
  filter: grayscale(0.09) brightness(1.02) drop-shadow(0 2px 2px #e8edfb77);
}
.content-wrapper ul li h3 {
  font-size: 1.20rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.content-wrapper ul li p {
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.96;
}
/* Price tag styling (for uslugi.html) */
.price {
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 8px;
}

/* ===== Footer ===== */
footer {
  background: var(--color-footer-bg);
  color: #fff;
  padding: 38px 0 14px 0;
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.footer-nav a {
  color: #e5eaf6;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  transition: color .19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-logo img {
  max-height: 33px;
}
footer p {
  color: #f6f6fb;
  opacity: 0.8;
  text-align: center;
}

/* ===== Cards & Callout Sections ===== */
.card, .content-wrapper ul li {
  border-radius: var(--radius);
  background: var(--color-card-bg);
  box-shadow: 0 2px 8px 0 var(--color-shadow);
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  section, .section {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-wrapper ul {
    gap: 14px;
    flex-direction: column;
  }
  .content-wrapper ul li {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
  .main-nav, .cta-button {
    display: none;
  }
  section:first-of-type h1 {
    font-size: 1.55rem;
  }
  h1 { font-size: 1.67rem; }
  h2 { font-size: 1.31rem; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 3vw;
  }
  .logo img {
    max-height: 32px;
  }
  .footer-logo img { max-height: 22px; }
}

/* ===== FAQ and Content Smaller Boxes ===== */
.content-wrapper > div:not(.testimonial-card) {
  background: #fff;
  box-shadow: 0 2px 8px 0 var(--color-shadow);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-bottom: 20px;
  flex: 1 1 220px;
  min-width: 165px;
  max-width: 380px;
  border: 1px solid #e7ebf6;
  transition: box-shadow .19s, transform .17s;
}
.content-wrapper > div:not(.testimonial-card):hover,
.content-wrapper > div:not(.testimonial-card):focus-within {
  box-shadow: 0 6px 14px 0 var(--color-shadow-hover);
  transform: scale(1.012);
}

/* ===== Forms, Inputs, Newsletter (if any) ===== */
input[type=email], input[type=text], textarea, select {
  width: 100%;
  border: 1px solid #c7cedd;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  background: #fff;
  font-size: 1rem;
  color: #23233c;
  transition: border-color .16s;
}
input[type=email]:focus, input[type=text]:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  background: #f0f4fa;
}

/* ===== Navigation Category Menu (eg. Blog) ===== */
.content-wrapper nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.content-wrapper nav ul li a {
  background: #edf1fb;
  color: var(--color-secondary);
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 500;
  font-family: var(--font-display);
  transition: background .13s, color .13s;
}
.content-wrapper nav ul li a:hover, .content-wrapper nav ul li a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ===== Animations & Micro-Interactions ===== */
.cta-button, .card, .content-wrapper ul li, .testimonial-card {
  transition: box-shadow .19s, transform .17s, background .15s, color .13s;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #181A20;
  border-top: 1px solid #dbe6f6;
  box-shadow: 0 -2px 18px 3px rgba(16,32,60,0.10);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 20px 32px;
  z-index: 3200;
  transition: transform .25s cubic-bezier(.55,0,.12,1), opacity .23s;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__text {
  flex: 1 1 175px;
  font-size: 1.03rem;
  color: #141B24;
}
.cookie-banner__actions {
  display: flex;
  gap: 13px;
  flex: 0 0 auto;
}
.cookie-btn {
  border-radius: 8px;
  padding: 8px 19px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s, box-shadow .13s;
  margin: 0;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-primary);
}
.cookie-btn.reject {
  background: #e3eaf7;
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #dbdcec;
  color: var(--color-secondary);
}
.cookie-btn.settings {
  background: transparent;
  color: var(--color-secondary);
  border: 1.5px solid var(--color-secondary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* ===== Cookie Consent Modal Popup ===== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3400;
  background: rgba(22, 31, 51, 0.56);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .23s, visibility .21s;
}
.cookie-modal.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-modal__content {
  background: #fff;
  padding: 36px 28px 30px 28px;
  border-radius: var(--radius);
  min-width: 315px;
  max-width: 500px;
  box-shadow: 0 8px 44px 0 rgba(26, 26, 46, 0.14);
  color: #131a21;
  position: relative;
}
.cookie-modal__close {
  position: absolute; right: 12px; top: 12px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #7e89a2;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 9px;
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  background: #f1f4fb;
  color: #0F3460;
}
.cookie-modal__header {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.17rem;
  margin-bottom: 7px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f7fa;
  border-radius: 8px;
  padding: 11px 16px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #141d2f;
}
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
/* Custom toggle switch for cookies */
.cookie-switch {
  appearance: none;
  width: 36px;
  height: 20px;
  border-radius: 12px;
  background: #d5dfee;
  cursor: pointer;
  position: relative;
  outline: none;
  transition: background .13s;
}
.cookie-switch:checked {
  background: #0F3460;
}
.cookie-switch::before {
  content: '';
  display: block;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(52,86,180,0.14);
  position: absolute;
  top: 1.5px; left: 2px;
  transition: transform .15s cubic-bezier(.39,.13,.26,1);
}
.cookie-switch:checked::before {
  transform: translateX(15px);
}
.cookie-category-desc {
  font-size: 0.96rem;
  color: #444d66;
  margin-bottom: 11px;
}
.cookie-modal__actionbar {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
}

/* ===== Utility Styles ===== */
::-webkit-scrollbar {width:8px; background:#f2f3fa;}
::-webkit-scrollbar-thumb {background: #d4dcec; border-radius:10px;}

hr {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #e5eaf5;
  margin: 24px 0;
}

/* ===== Accessibility Focus ===== */
a:focus, button:focus, .cookie-btn:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===== Spacing Rules ===== */
.section, section, .content-wrapper, .card, .card-container, .text-image-section, .feature-item, .testimonial-card {
  margin-bottom: 20px;
}
.content-wrapper, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}

/* Ensure no overlapping */
.card, .card-container, .testimonial-card, .content-wrapper > div, .content-wrapper ul li {
  position: relative;
  z-index:1;
}

/* ===== END OF CSS ===== */