/* --- RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFF;
  color: #222;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
a {
  color: #E63946;
  text-decoration: none;
  transition: color 0.22s;
}
a:hover, a:focus {
  color: #1D3557;
  outline: none;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.6em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  transition: background 0.22s;
}

/* --- BRAND PRIMARY COLORS & FONTS --- */
:root {
  --color-primary: #1D3557;
  --color-secondary: #E63946;
  --color-accent: #F1FAEE;
  --color-bg: #FFF7F3;
  --color-card: #FFF;
  --color-border: #F1FAEE;
  --color-warning: #fff3cd;
  --color-shadow: rgba(29,53,87,0.07);
  --radius-main: 16px;
  --radius-btn: 24px;
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

@media (max-width: 768px) {
  html { font-size: 15px; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
}

/* --- CONTAINER SYSTEM --- */
.container {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
h1 { font-size: 2.375rem; margin-bottom: 18px; }
h2 { font-size: 1.75rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.12rem; }
p, small {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2C2C2C;
  margin-bottom: 12px;
}
small {
  font-size: 0.97rem;
  color: #555;
}
strong {
  font-weight: 600;
  color: #cd313f;
}

@media (max-width: 568px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.07rem; }
}

/* --- LAYOUT PATTERNS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius-main);
  box-shadow: 0 3px 24px var(--color-shadow);
  padding: 24px 18px;
  transition: box-shadow 0.22s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(29,53,87,0.13);
}
.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: #FFF;
  border-radius: 20px;
  box-shadow: 0 2px 20px var(--color-shadow);
  padding: 20px 28px 20px 22px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, border-color 0.2s;
  min-width: 0;
  max-width: 560px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(29,53,87,0.13);
  border-color: #e9ecef;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 3px 13px var(--color-shadow);
}

/* --- UTILITY ALIGNMENT --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.text-section {
  max-width: 800px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-grid > div {
  background: #FFFDFC;
  border-radius: var(--radius-main);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 20px 18px 15px 18px;
  text-align: center;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 290px;
  transition: box-shadow 0.18s;
}
.feature-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: var(--color-accent);
  padding: 6px;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 32px rgba(29,53,87,0.11);
}

/* --- HERO SECTION --- */
.hero {
  background: linear-gradient(90deg,#F1FAEE 70%,#ffd6d6 100%);
  padding: 50px 0 50px 0;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  margin-bottom: 46px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 0;
}
.hero h1 {
  color: var(--color-secondary);
  text-shadow: 1px 1px 0 #fff8f8;
  font-size: 2.6rem;
}

/* --- CTA BUTTONS --- */
.cta-btn {
  background: var(--color-secondary);
  color: #FFF;
  border-radius: var(--radius-btn);
  padding: 14px 38px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 1.12rem;
  box-shadow: 0 3px 10px rgba(230,57,70,0.10);
  transition: background 0.2s, box-shadow 0.15s, transform 0.12s;
  display: inline-block;
  margin-top: 10px;
  border: none;
}
.cta-btn:hover,
.cta-btn:focus {
  background: #b8212b;
  box-shadow: 0 5px 20px rgba(230,57,70,0.18);
  transform: translateY(-2px) scale(1.03);
  color: #FFF;
}

/* --- HEADER --- */
header {
  background: var(--color-bg);
  padding: 0 0 0.5rem 0;
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 900;
}
header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 12px;
}
header img {
  width: 164px;
  min-width: 115px;
  border-radius: 0;
}
header nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.19s, color 0.19s;
}
header nav a:hover,
header nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  outline: none;
}
header .cta-btn {
  margin-left: 18px;
  margin-right: 0;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  color: #fff;
  padding: 9px 14px 7px 14px;
  border-radius: 50%;
  font-size: 1.45rem;
  border: none;
  line-height: 0.9;
  cursor: pointer;
  transition: background 0.14s;
  margin-left: auto;
  z-index: 1002;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #b8212b;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #FFF;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.56,.2,.15,1);
  display: flex;
  flex-direction: column;
  padding: 20px 0 0 0;
  box-shadow: 0 6px 32px rgba(29,53,87,0.12);
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--color-secondary);
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  padding: 8px 16px;
  margin-right: 24px;
  margin-bottom: 18px;
  border: none;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #1D3557;
  color: #FFF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding-left: 34px;
  padding-bottom: 32px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: var(--color-primary);
  padding: 10px 0 10px 4px;
  border-radius: 10px;
  width: 100%;
  display: block;
  font-weight: 600;
  font-family: var(--font-display);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  outline: none;
}

@media (max-width: 990px) {
  header nav {
    display: none;
  }
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--color-bg);
  padding: 40px 0 12px 0;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -2px 12px rgba(29,53,87,0.06);
  margin-top: 24px;
}
footer .container {
  display: flex;
  flex-direction: column;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}
footer img {
  width: 115px;
  border-radius: 0;
  margin-bottom: 14px;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 10px; 
}
.footer-social a {
  background: var(--color-accent);
  border-radius: 50%;
  padding: 7px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.footer-social a:hover {
  background: #E63946;
}
.footer-social img {
  width: 28px;
  height: 28px;
  background: none;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  max-width: 320px;
  margin-top: 18px;
}
.footer-nav a {
  color: #676767;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  padding: 3px 6px;
  border-radius: 7px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  outline: none;
}
footer strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 700;
  margin-right: 3px;
}
footer p {
  margin-bottom: 5px;
  color: #31425f;
  font-size: 1rem;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
}
.faq-list li {
  background: #FFFDFC;
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--color-shadow);
  padding: 14px 16px 10px 18px;
}
.faq-list h3 {
  font-size: 1.14rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

/* --- CARDS (optional section pattern) --- */
.catalog-card, .service-card {
  background: #FFF;
  border-radius: var(--radius-main);
  box-shadow: 0 2px 16px var(--color-shadow);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.catalog-card:hover, .service-card:hover {
  box-shadow: 0 7px 20px rgba(230,57,70,0.15);
}

/* --- SERVICES & CATALOG LISTS --- */
.services ul, .catalog ul {
  background: #F1FAEE;
  border-radius: 13px;
  padding: 20px 20px 14px 24px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  font-size: 1.03rem;
}
.services li, .catalog li {
  margin-bottom: 10px;
  color: var(--color-primary);
}
.services strong, .catalog strong {
  color: var(--color-secondary);
  font-weight: 600;
}
.catalog h3 {
  color: var(--color-secondary);
  margin-top: 32px;
  margin-bottom: 12px;
}

/* --- TESTIMONIALS --- */
.testimonials {
  margin-bottom: 20px;
}
.testimonials h2 {
  color: var(--color-primary);
}
.testimonial-card p {
  color: #24292f;
  font-size: 1.13rem;
  font-family: var(--font-body);
  margin-bottom: 8px;
}
.testimonial-card small {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fffef6;
  border-top: 2px solid #f1faee;
  box-shadow: 0 -2px 14px rgba(29,53,87,0.10);
  z-index: 1700;
  padding: 20px 26px 20px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 1rem;
  animation: ccbanner-slideup 0.7s cubic-bezier(.16,.87,.62,.98);
}
@keyframes ccbanner-slideup {
  0% { transform: translateY(100%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-banner button {
  background: var(--color-secondary);
  color: #fff;
  border-radius: 20px;
  padding: 9px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.03rem;
  border: none;
  box-shadow: 0 1px 8px var(--color-shadow);
  transition: background 0.17s;
}
.cookie-banner button.cookie-settings {
  background: var(--color-primary);
  color: #FFF;
  font-weight: 500;
}
.cookie-banner button.cookie-reject {
  background: #F1FAEE;
  color: #1D3557;
  font-weight: 600;
  border: 1px solid #CED4DA;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #b8212b;
  color: #fff;
}
.cookie-banner button.cookie-settings:hover, .cookie-banner button.cookie-settings:focus {
  background: #0e233c;
}
.cookie-banner button.cookie-reject:hover, .cookie-banner button.cookie-reject:focus {
  background: #e9ecef;
  color: #b8212b;
}

/* --- COOKIE MODAL --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(29,53,87,0.43);
  z-index: 1800;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cmodal-fadein 0.28s;
}
@keyframes cmodal-fadein {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal-content {
  background: #fffef9;
  padding: 30px 24px 22px 24px;
  border-radius: 26px;
  max-width: 410px;
  width: 96vw;
  box-shadow: 0 6px 48px rgba(29,53,87,0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cmodal-popin 0.2s cubic-bezier(.37,.85,.46,1.31);
}
@keyframes cmodal-popin {
  0% { transform: scale(0.92); opacity:0; }
  100% { transform: scale(1); opacity:1; }
}
.cookie-categories {
  margin: 8px 0 12px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f8f9fa;
  padding: 10px 12px 10px 12px;
  border-radius: 14px;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #252525;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
}
.cookie-category.cookie-essential {
  opacity: 0.7;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal button {
  padding: 9px 22px;
  border-radius: 19px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--color-secondary);
  color: #FFF;
  transition: background 0.15s;
  font-size: 1rem;
}
.cookie-modal button.cookie-close {
  background: var(--color-primary);
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: #b8212b;

}

/* --- RESPONSIVE LAYOUT --- */
@media (max-width: 990px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .feature-grid { flex-wrap: wrap; }
  .feature-grid > div { min-width: 180px; }
  .footer-nav { max-width: 100%; }
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .content-grid, .feature-grid, .card-container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section { flex-direction: column; gap: 20px; }
  .section { padding: 28px 8px; margin-bottom: 40px; }
  .hero { padding: 30px 0 30px 0; border-radius: 0 0 20px 20px; }
  .feature-grid > div, .card, .catalog-card, .service-card {
    min-width: 0;
    max-width: 100%;
  }
  .testimonial-card {
    max-width: 99vw;
    padding: 16px 10px 16px 14px;
  }
  .cookie-banner { font-size: 0.98rem; gap: 10px; padding: 18px 6px 18px 10px; }
  .footer-social img { width: 24px; height: 24px; }
}
@media (max-width: 480px) {
  .container { padding-left: 5px; padding-right: 5px; }
  .section { padding: 18px 2px; }
  .footer-nav { flex-direction: column; gap: 8px; }
}

/* --- TRANSITIONS & MICRO-INTERACTIONS --- */
.card, .feature-grid > div, .testimonial-card, .cta-btn, .footer-nav a,
header nav a, .mobile-nav a, .footer-social a, .cookie-banner button, .cookie-modal button {
  transition: box-shadow 0.16s, background 0.16s, color 0.16s, border-color 0.17s, transform 0.15s;
}
.card:hover, .feature-grid > div:hover {
  transform: translateY(-2px) scale(1.02);
}
.cta-btn:active, .cookie-banner button:active, .cookie-modal button:active {
  transform: scale(0.97);
}

/* --- ACCENT ELEMENTS --- */
.feature-grid > div {
  border-left: 6px solid #E63946;
}
.feature-grid > div:hover {
  border-left: 7px solid #1D3557;
}
.testimonial-card {
  border-left: 7px solid #1D3557;
}

/* --- MISC --- */
::-webkit-scrollbar {
  width: 10px; background: #F1FAEE;
}
::-webkit-scrollbar-thumb {
  background: #E63946; border-radius: 6px;
}
::selection {
  background: #faf0ed;
}

/* Hide scroll on mobile menu when open on body */
body.mobile-menu-open {
  overflow: hidden;
}