/* ===== RESET & BASE ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #fafafb;
  color: #222;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #20477D;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:hover,
a:focus {
  color: #FFC82F;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
  padding-left: 1em;
}
ul li, ol li {
  margin-bottom: 6px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #162947;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.16;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
.lead {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.2rem;
  color: #38485c;
  margin-bottom: 24px;
}
strong, b {
  font-weight: 700;
  color: #162947;
}

/* ===== LUXURY PREMIUM COLORS ===== */
:root {
  --color-primary: #20477D;
  --color-secondary: #F3F3F3;
  --color-accent: #FFC82F;
  --color-gold: #BFA046;
  --color-white: #fff;
  --color-background: #fafafb;
  --color-shadow: rgba(32,71,125,0.06);
  --color-border: #e3e3e3;
  --color-footerbg: #171c26;
  --color-footertext: #e5e2d6;
}

/* ===== CONTAINER & FLEX LAYOUTS ===== */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 6px 24px var(--color-shadow);
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 10px 36px rgba(191,160,70,0.18);
  transform: translateY(-4px) scale(1.012);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}
.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service-card {
  background: var(--color-white);
  border-radius: 16px;
  padding: 32px 20px 24px 24px;
  box-shadow: 0 4px 20px var(--color-shadow);
  border: 1px solid var(--color-accent);
  min-width: 260px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card h3 {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.service-card p {
  font-size: 1rem;
  color: #444;
}
.service-card strong {
  color: var(--color-gold);
  font-size: 1.04rem;
  letter-spacing: 0.04em;
}
.service-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 8px 24px rgba(191,160,70,0.16);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #3c4151;
}
.card-content > p:last-child, .service-card > p:last-child {
  margin-bottom: 0;
}

/* ====== SPACING & FLEX LAYOUTS (MANDATORY PATTERNS) ====== */
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--color-secondary);
  border-radius: 18px;
  padding: 20px 32px 20px 28px;
  margin-bottom: 20px;
  border: 1px solid var(--color-gold);
  box-shadow: 0 2px 16px rgba(32,71,125,0.12);
  max-width: 520px;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  color: #222;
  font-size: 1.04rem;
}
.testimonial-card strong {
  color: var(--color-primary);
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(191,160,70,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  padding: 14px 38px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  position: relative;
  text-align: center;
  box-shadow: 0 2px 8px rgba(191,160,70,0.04);
  outline: none;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1.5px solid var(--color-gold);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-gold);
  color: #20477D;
  border-color: #20477D;
}
.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-gold);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--color-gold);
  color: #20477D;
  border-color: var(--color-primary);
}

/* ===== MAIN NAVIGATION ===== */
header {
  background: var(--color-secondary);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
}
header img {
  height: 50px;
  width: auto;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #20477D;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  font-size: 1rem;
  position: relative;
}
.main-nav a:hover,
.main-nav a.active {
  color: #BFA046;
  background: #e9e6de;
}
header .btn-primary {
  margin-left: auto;
  margin-right: 0;
  font-size: 1rem;
  padding: 10px 28px;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  background: var(--color-gold);
  color: #20477D;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  z-index: 1101;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(191,160,70,0.08);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #20477D;
  color: var(--color-gold);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(23, 28, 38, 0.96);
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.58,.22,.2,1.04);
  z-index: 1200;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-gold);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  border-radius: 48px;
  align-self: flex-end;
  margin: 22px 18px 8px 0;
  width: 48px;
  height: 48px;
  cursor: pointer;
  outline: none;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px rgba(191,160,70,0.13);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #20477D;
  color: var(--color-gold);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 32px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  color: var(--color-gold);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 500;
  padding: 14px 0;
  letter-spacing: 0.03em;
  border-radius: 6px;
  background: none;
  transition: color 0.18s, background 0.18s;
  width: 100%;
  display: block;
  outline: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
  background: #bfa04611;
}

/* ===== HERO SECTION ===== */
main > section:first-of-type {
  background: linear-gradient(110deg, #fafdff 70%, #fbeed2 120%);
  padding-bottom: 24px;
}
main h1 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  margin-top: 8px;
}
main h2 {
  font-size: 1.7rem;
  margin-bottom: 24px;
}

/* ===== BLOG ===== */
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.blog-post {
  background: #fffbe6;
  border: 1px solid var(--color-gold);
  border-radius: 16px;
  padding: 22px 18px 20px 20px;
  min-width: 220px;
  box-shadow: 0 2px 12px rgba(191,160,70,0.11);
  flex: 1 1 220px;
  max-width: 330px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.featured-post {
  background: #e9e6de;
  border-left: 5px solid var(--color-gold);
  padding: 22px 20px;
  border-radius: 11px;
  margin-top: 18px;
  font-size: 1.1rem;
  color: #2a2737;
  box-shadow: 0 1px 4px rgba(32,71,125,0.05);
}
.blog-filter {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

/* ===== TABLES ===== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 24px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 16px rgba(32,71,125,0.06);
  overflow: hidden;
}
thead {
  background: #e9e6de;
}
thead th {
  color: #20477D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 14px 12px;
  border-bottom: 1.5px solid #bfa046;
  font-size: 1rem;
  text-align: left;
}
tbody tr {
  border-bottom: 1px solid #e7e4ce;
}
td {
  padding: 12px 12px;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2d3250;
  font-size: 1rem;
}
tbody tr:last-child {
  border-bottom: none;
}

/* ===== FEATURES LIST ===== */
ul {
  list-style: none;
}
section ul {
  margin-left: 0;
  padding-left: 0;
}
section ul li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 11px;
  padding-left: 2px;
  position: relative;
}
section ul li:before {
  content: '\2022';
  color: #bfa046;
  font-size: 1.2em;
  position: relative;
  top: 2px;
  margin-right: 8px;
  font-weight: bold;
}

/* ===== FOOTER ===== */
footer {
  background: var(--color-footerbg);
  color: var(--color-footertext);
  padding: 54px 0 40px 0;
  position: relative;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
footer .container {
  flex-direction: column;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
}
.footer-nav a {
  color: #FFC82F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  font-size: 1rem;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-contact {
  margin-bottom: 12px;
}
.footer-contact p,
.footer-contact a {
  color: #e5e2d6;
  font-size: 0.98rem;
}
footer p {
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #191c25;
  color: #f8f5e8;
  font-size: 1rem;
  width: 100vw;
  z-index: 1500;
  box-shadow: 0 -2px 18px rgba(32,71,125,0.13);
  padding: 22px 28px 16px 28px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  transition: transform 0.32s cubic-bezier(.57, .19, .32, 1.06);
}
.cookie-banner.hide {
  transform: translateY(100vh);
}
.cookie-banner-msg {
  flex: 2 1 220px;
  color: #ffe7a3;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn-cookie,
.btn-cookie.accept,
.btn-cookie.reject,
.btn-cookie.settings {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  padding: 10px 28px;
  margin: 0 2px;
  transition: background 0.18s, color 0.18s;
}
.btn-cookie.accept {
  background: var(--color-gold);
  color: #20477D;
}
.btn-cookie.accept:hover {
  background: #20477D;
  color: var(--color-gold);
}
.btn-cookie.reject {
  background: #222;
  color: #fff;
  border: 1.2px solid #BFA046;
}
.btn-cookie.reject:hover {
  background: #BFA046;
  color: #191c25;
}
.btn-cookie.settings {
  background: #faf8ee;
  color: #20477D;
  border: 1.2px solid #BFA046;
}
.btn-cookie.settings:hover {
  background: #20477D;
  color: #FFC82F;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  z-index: 1510;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(23,28,38,0.70);
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
  pointer-events: none;
}
.cookie-modal.open {
  display: flex;
  pointer-events: all;
  opacity: 1;
}
.cookie-modal-content {
  background: #fffbe6;
  border: 2px solid #BFA046;
  border-radius: 22px;
  box-shadow: 0 10px 48px rgba(191,160,70,0.18);
  max-width: 370px;
  width: 95%;
  padding: 34px 34px 24px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #222;
}
.cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: var(--color-gold);
  color: #20477D;
  font-size: 1.6rem;
  border: none;
  border-radius: 12px;
  padding: 4px 14px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-modal-close:hover {
  background: #20477D;
  color: var(--color-gold);
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 1.01rem;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #e9e6de;
  border-radius: 10px;
  position: relative;
  outline: none;
  transition: background .19s;
}
.cookie-toggle:checked {
  background: #BFA046;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 70px;
  box-shadow: 0 1px 3px rgba(32,47,85,.18);
  transition: left 0.18s;
}
.cookie-toggle:checked::after {
  left: 21px;
}
.cookie-category label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.98rem;
  color: #20477D;
  margin-right: 8px;
}
.cookie-category .locked {
  color: #aaa;
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  margin-left: 7px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1180px) {
  .container { max-width: 970px; }
  .service-cards { flex-direction: column; }
}
@media (max-width: 980px) {
  .container { max-width: 770px; }
  header .container { flex-direction: column; align-items: flex-start; gap: 7px; }
  .main-nav { flex-wrap: wrap; gap: 14px; font-size: 0.97rem; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.3rem; }
  header .btn-primary { margin-left: 0; width: 100%; margin-top: 8px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .container { padding-left: 8px; padding-right: 8px; }
  .service-cards { flex-direction: column; gap: 14px; }
  .blog-list { flex-direction: column; gap: 12px; }
  .footer-nav { gap: 10px; }
  .content-wrapper, .text-section {
    gap: 15px;
  }
  .section { padding: 32px 8px; margin-bottom: 38px; }
  .testimonial-card { padding: 16px 10px; }
  .card, .service-card, .blog-post { padding: 18px 8px 16px 14px; border-radius: 10px; }
  .featured-post { padding: 14px 10px; }
  table { font-size: 0.98rem; }
}
@media (max-width: 600px) {
  html { font-size: 14px; }
  main h1 { font-size: 1.4rem; }
  main h2 { font-size: 1.08rem; }
  .container { padding-left: 2px; padding-right: 2px; }
  .section { padding: 18px 2px; }
  .footer-contact { font-size: 0.89rem; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 14px 5vw 16px 5vw; }
  .cookie-modal-content { padding: 22px 8px; }
}
@media (max-width: 450px) {
  .cookie-banner { font-size: 0.93rem; }
  .mobile-nav { padding-left: 14px; }
}

/* ===== UTILITIES & MICRO-INTERACTIONS ===== */
.fade-in {
  animation: fadeIn 0.65s cubic-bezier(.28,.5,.4,1.24) both;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(24px); }
  60% { opacity: 0.8; }
  100% { opacity: 1; transform: translateY(0); }
}
.btn-primary, .btn-secondary, .btn-cookie { transition: box-shadow 0.2s, background 0.21s, color 0.17s; }
.btn-primary:active,
.btn-secondary:active,
.btn-cookie:active {
  box-shadow: 0 1px 4px rgba(191,160,70,0.10);
  transform: scale(0.97);
}

/* ===== REMOVE GRID/COLUMNS (STRICT CHECK) ===== */
/* No display: grid, grid-*, column-* used. Strictly flex only. */