/* ===========================================
   CSS RESET & NORMALIZE (MOBILE-FIRST) 
   =========================================== */
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%; }
body { background: #181B20; color: #F8F6F2; font-family: 'Open Sans', Arial, sans-serif; font-size: 16px; min-height: 100vh; }
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
img {
  border-style: none;
  max-width: 100%;
  display: block;
}
ul, ol { list-style: none; }
strong, b { font-weight: bold; }
a { text-decoration: none; color: inherit; }
:focus { outline: 2px solid #D6B075; outline-offset: 2px; }

/* =========================
  VARIABLES - FALLBACKS
   ========================= */
:root {
  --color-primary: #1E355C;
  --color-secondary: #D6B075;
  --color-accent: #F8F6F2;
  --color-bg: #181B20;
  --color-card: #22242A;
  --color-metal: #5D5E63;
  --color-metal-light: #878890;
  --color-border: #383B45;
  --color-error: #E24F4F;
  --shadow: 0 2px 24px 0 rgba(30,53,92,0.14);
  --shadow-muted: 0 1.5px 8px 0 rgba(34,36,42,0.09);
  --radius: 12px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: local('Montserrat Bold'), url('https://fonts.gstatic.com/s/montserrat/v20/JTUQjIg1_i6t8kCHKm45_dJE.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: local('Open Sans Regular'), url('https://fonts.gstatic.com/s/opensans/v27/mem8YaGs126MiZpBA-U1UpcaXcl0Aw.woff2') format('woff2');
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-accent);
  line-height: 1.12;
  margin-bottom: 18px;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.17rem; }

p, li, blockquote, cite, label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-accent);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 400;
}
.light-text { color: var(--color-accent); }
.muted-text { color: var(--color-metal-light); }

blockquote {
  font-style: italic;
  background: rgba(34,36,42,0.7);
  padding: 16px 20px;
  border-left: 4px solid var(--color-secondary);
  margin-bottom: 12px;
  border-radius: var(--radius);
}
cite {
  display: block;
  font-size: 0.98rem;
  margin-top: 6px;
  color: var(--color-secondary);
}

/* =========================
    OVERALL LAYOUT & CONTAINER
   ========================= */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  margin-bottom: 28px;
}
.text-section {
  max-width: 720px;
  margin: 0 auto 28px auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-muted);
  padding: 28px 20px;
  min-width: 260px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  background: #F8F6F2;
  color: #1E355C;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 280px;
  margin-bottom: 20px;
  flex-direction: column;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 16px;
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-muted);
  min-width: 180px;
  max-width: 300px;
}
.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
}
.step-list li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 10px 0 0 0;
}
.filters li {
  background: var(--color-metal);
  color: var(--color-accent);
  padding: 8px 18px;
  font-size: 0.97rem;
  border-radius: 20px;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

/* ==================
   NAVIGATION
   ==================*/
header {
  background: var(--color-primary);
  box-shadow: 0 2px 16px 0 rgba(30,53,92,0.06);
  position: relative;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
  padding: 0 18px;
}
.logo img, .logo-footer img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-display);
  color: var(--color-accent);
  font-size: 1.08rem;
  padding: 1px 6px;
  letter-spacing: 0.05em;
  transition: color 0.2s;
  border-radius: 4px;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
  background: rgba(214,176,117,0.12);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 40px;
  padding: 10px 30px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 0.24s, color 0.2s, box-shadow 0.2s;
  margin-left: 18px;
  box-shadow: var(--shadow-muted);
}
.btn-primary {
  background: var(--color-secondary);
  color: #181B20;
}
.btn-primary:hover, .btn-primary:focus {
  background: #B0905A;
  color: #fff;
  box-shadow: 0 2px 18px 0 rgba(214,176,117,0.13);
}
.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: #181B20;
  box-shadow: 0 2px 18px 0 rgba(214,176,117,0.08);
}

/* Burger menu button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-metal);
  color: var(--color-accent);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  margin-left: 10px;
  z-index: 121;
  transition: background 0.18s, color 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-secondary);
  color: #1E355C;
}

/* Hide main nav and show mobile menu toggle on small screens */
@media (max-width: 991px) {
  .main-nav, .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
  }
}
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ========================
   MOBILE SLIDE MENU
   ======================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 30, 36, 0.98);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 150;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.77,0.2,0.05,1.0);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  margin: 24px 0 24px 20px;
  background: transparent;
  color: var(--color-secondary);
  border: none;
  font-size: 2.1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 40px; height: 40px;
  align-self: flex-start;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-metal-light);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 28px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-accent);
  padding: 12px 0;
  width: 100%;
  border-radius: 6px;
  transition: background 0.16s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-secondary);
  color: #181B20;
}

/* ===================
    HERO SECTIONS
   =================== */
.hero, .catalog-hero, .services-hero, .contact-hero, .news-hero, .thank-you {
  background: linear-gradient(120deg, #181B20 65%, #23262D 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 0 32px 0;
}
.hero h1, .catalog-hero h1, .services-hero h1, .contact-hero h1, .news-hero h1, .thank-you h1 {
  font-size: 2.5rem;
  color: var(--color-secondary);
}
.hero .btn, .catalog-hero .btn, .news-hero .btn, .thank-you .btn {
  margin-top: 26px;
}

/* ===================
    ABOUT/LEGAL
   =================== */
.about-brief, .about, .community, .legal, .map, .contact-form, .services-preview {
  background: #22242A;
  border-radius: var(--radius);
  margin: 32px 0;
  padding: 40px 20px;
  box-shadow: var(--shadow-muted);
}

.values {
  background: #23262D;
  border-radius: var(--radius);
  margin: 32px 0;
  padding: 40px 20px 30px 20px;
  box-shadow: var(--shadow-muted);
}
.values h2 {
  color: var(--color-secondary);
}
.timeline li::before {
  content: '\2022';
  color: var(--color-secondary);
  margin-right: 8px;
  font-size: 1.3em;
  vertical-align: middle;
}

/* ============ CATALOG & SERVICES ============= */
.service-details .content-wrapper, .service-details .service-card {
  display: flex;
}
.service-details .content-wrapper {
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 310px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 4px solid var(--color-secondary);
  transition: box-shadow 0.22s, border-color 0.2s;
}
.service-card:hover, .service-card:focus-within {
  box-shadow: 0 4px 22px 0 rgba(214,176,117,0.10);
  border-top: 4px solid #F8F6F2;
}
.service-card img {
  width: 42px; height: 42px; margin-bottom:14px;
  filter: grayscale(47%);
}
.service-card h2 {
  color: var(--color-secondary);
  font-size: 1.17rem;
  margin-bottom: 10px;
}
.service-card .price {
  margin-top: 12px;
  color: var(--color-metal-light);
  font-weight: 700;
  font-size: 1.05rem;
}

.features .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 18px;
}
.feature-item img {
  width: 36px;
  height: 36px;
  filter: grayscale(31%);
}

/* =================
    TESTIMONIALS
   ================= */
.testimonials, .testimonial-card {
  margin-bottom: 24px;
}
.testimonials h2 {
  color: var(--color-secondary);
}
.testimonial-card {
  background: #F8F6F2;
  color: #1E355C !important;
  border-left: 6px solid var(--color-secondary);
  border-radius: var(--radius);
  margin-bottom: 24px;
  min-width: 240px;
  max-width: 100%;
}
.testimonial-card .stars {
  font-size: 1.1rem;
  letter-spacing: 0.11em;
  color: #efb923;
  margin-bottom: 5px;
}
.testimonial-card cite {
  color: #B0905A;
}
.testimonial-card blockquote {
  color: #1E355C;
  background: transparent;
  border-left: none;
  padding-left: 0;
}

/* ===============
    CTA
   =============== */
.cta-block {
  background: var(--color-primary);
  border-radius: var(--radius);
  padding: 40px 20px;
  margin: 40px 0;
  box-shadow: var(--shadow-muted);
  color: #fff;
}
.cta-block h2 {
  color: var(--color-secondary);
}

/* =================
   NEWS/NEWSLETTER
   ================= */
.news-list .content-wrapper + .content-wrapper {
  margin-top: 24px;
}
.newsletter {
  background: #23262D;
  border-radius: var(--radius);
  margin: 32px 0;
  padding: 40px 20px;
  box-shadow: var(--shadow-muted);
}
.newsletter h2 {
  color: var(--color-secondary);
}

/* ========== MAP/EMBED ============ */
.map-embed {
  margin-top: 20px;
  background: var(--color-metal);
  color: #fff;
  border-radius: 8px;
  padding: 18px;
  font-size: 0.97rem;
  text-align: center;
}

/* ========== FOOTER ============== */
footer {
  background: #16171C;
  color: var(--color-accent);
  padding: 32px 0 12px 0;
  border-top: 2px solid var(--color-secondary);
  box-shadow: 0 -1.5px 8px 0 rgba(30,53,92,0.09);
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 18px;
}
footer nav a {
  color: var(--color-secondary);
  font-size: 0.96rem;
  font-family: var(--font-display);
  padding: 2px 6px;
  opacity: 0.81;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-secondary);
  color: #22242A;
  opacity: 1.0;
}
.logo-footer img {
  height: 36px;
  filter: grayscale(44%) brightness(1.2);
  margin-bottom: 8px;
}
footer p {
  color: #B6BDC9;
  font-size: 0.98rem;
  margin-top: 8px;
}

/* ===============
  COOKIE BANNER
  =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #23262D;
  color: var(--color-accent);
  border-top: 3px solid var(--color-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 199;
  box-shadow: 0 -1.5px 24px 0 rgba(30,53,92,0.10);
  padding: 16px 8px 14px 8px;
  animation: cookie-slideup 0.9s cubic-bezier(.47,1.64,.41,.8);
  font-family: var(--font-body);
  gap: 12px;
}
@keyframes cookie-slideup {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p { font-size: 1.01rem; margin-bottom: 2px; color: var(--color-accent); }
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 2px;
}
.cookie-btn {
  background: var(--color-secondary);
  color: #22242A;
  font-family: var(--font-display);
  border-radius: 26px;
  border: none;
  padding: 7px 22px;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.16s, color 0.2s;
  cursor: pointer;
  margin-right: 0;
}
.cookie-btn.settings {
  background: transparent;
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #B0905A;
  color: #FFF;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-secondary);
  color: #181B20;
}

/* COOKIES MODAL */
.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 130%);
  min-width: 340px;
  max-width: 96vw;
  background: #181B20;
  color: var(--color-accent);
  border-radius: var(--radius);
  border: 2.5px solid var(--color-secondary);
  z-index: 211;
  box-shadow: 0 6px 34px 0 rgba(30,53,92,0.22);
  padding: 36px 24px 24px 24px;
  transition: transform 0.28s cubic-bezier(0.77,0.2,0.05,1.0), opacity 0.18s;
  opacity: 0.95;
}
.cookie-modal.open {
  transform: translate(-50%, 0);
  opacity: 1;
}
.cookie-modal h2 {
  color: var(--color-secondary);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 20px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--color-accent);
}
.cookie-modal input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--color-secondary);
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}
.cookie-modal .cookie-btn {
  min-width: 100px;
}
.cookie-modal .cookie-category-description {
  margin-left: 22px;
  font-size: 0.98rem;
  color: var(--color-metal-light);
}

/* ========== SPACING CONSISTENCY ========== */
main section, section.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
section:not(:last-child) {
  margin-bottom: 52px;
}
.card-container, .features .content-wrapper, .content-grid, .step-list {
  gap: 24px;
}
.card, .feature-item, .service-card, .testimonial-card {
  margin-bottom: 20px;
}

/* ====================
    RESPONSIVE DESIGN
   ==================== */
@media (max-width: 1199px) {
  .container { max-width: 1000px; }
  .features .content-wrapper, .service-details .content-wrapper {
    gap: 18px;
  }
}
@media (max-width: 991px) {
  .container {
    padding: 0 12px;
    max-width: 99vw;
  }
  .service-card, .feature-item {
    min-width: 160px;
  }
  .footer nav { gap: 10px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .main-nav, .btn-primary {
    display: none !important;
  }
  .section, main section {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
  .hero, .catalog-hero, .services-hero, .contact-hero, .news-hero, .thank-you {
    min-height: 220px;
    padding: 36px 0 20px 0;
  }
  .feature-item, .service-card {
    min-width: 120px;
    max-width: 100%;
    padding: 16px 10px;
  }
  .features .content-wrapper,
  .card-container, .content-grid, .step-list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section, .container, .footer .container {
    flex-direction: column;
    align-items: stretch !important;
    gap: 16px;
  }
  .testimonials .content-wrapper,
  .newsletter .content-wrapper,
  .about-brief .content-wrapper,
  .values .content-wrapper {
    padding: 0;
  }
  .footer .container {
    gap: 9px;
    padding: 0 6px;
  }
  .testimonial-card {
    min-width: 100%;
    padding: 16px 10px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.41rem; }
  .footer {
    padding: 18px 0 8px 0;
  }
  .cookie-modal {
    min-width: 90vw;
    padding: 18px 10px;
  }
}

/* =================
   MICRO-INTERACTIONS
   ================= */
.btn, .cookie-btn {
  transition: background 0.22s, color 0.18s, box-shadow 0.18s;
}
.btn:active, .cookie-btn:active {
  filter: brightness(0.97);
  scale: 0.98;
}
.card, .feature-item, .service-card {
  transition: box-shadow 0.19s, transform 0.18s;
}
.card:hover, .feature-item:hover, .service-card:hover {
  box-shadow: 0 4px 26px 0 rgba(214,176,117,0.15);
  transform: translateY(-5px) scale(1.015);
  border-color: var(--color-secondary);
}
.filters li:hover {
  background: var(--color-secondary);
  color: #181B20;
  transition: background 0.18s, color 0.16s;
}
.mobile-menu.open {
  animation: slideinMenu 0.32s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes slideinMenu {
  from { transform: translateX(-100vw); }
  to { transform: translateX(0); }
}

/* ===================
  UTILITY CLASSES
  =================== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.center { justify-content: center; align-items: center; }
.text-center { text-align: center !important; }
.w-100 { width: 100%; }

/* ===================
  FORM ELEMENTS (if present)
  =================== */
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1.6px solid var(--color-metal-light);
  background: #21222b;
  color: var(--color-accent);
  transition: border 0.16s;
  margin-bottom: 17px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-secondary);
  background: #262631;
}
label { font-weight: 700; }

/* =============
  ERROR STATES
  ============= */
input:invalid, textarea:invalid {
  border-color: var(--color-error) !important;
}

/* =============
  Z-INDEX HANDLING
  ============= */
header { z-index: 40; }
.mobile-menu { z-index: 150; }
.cookie-banner { z-index: 199; }
.cookie-modal { z-index: 211; }

/* ==================
  PRINT STYLES
  ================== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
}
