/* CSS RESET & NORMALIZATION ----------------------- */
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 { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; color: #222; min-height: 100vh; background: #FCFAF3; }
img { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; outline: 0; transition: color 0.18s; }
button { background: none; border: none; font: inherit; cursor: pointer; padding: 0; outline: 0; }

/* FONTS ------------------------------------------------ */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');

:root {
  --color-primary: #675C23;
  --color-secondary: #B8572F;
  --color-accent: #F2D974;
  --color-dark: #2D2A1F;
  --color-light: #FCFAF3;
  --color-white: #fff;
  --color-bg-section: #FFF9EA;
  --color-success: #42C47F;
  --color-danger: #D34A4A;
  --color-shadow: rgba(183,87,47,0.10);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, Helvetica, sans-serif;
  --radius: 18px;
  --transition: 0.28s cubic-bezier(.53,.02,.32,1.45);
  --shadow: 0 4px 28px -10px var(--color-shadow);
  --transition-ease: cubic-bezier(.22,.61,.36,1);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-light);
  color: var(--color-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 2rem; line-height: 1.15; }
h3 { font-size: 1.32rem; line-height: 1.2; }
h4, h5, h6 { font-size: 1.05rem; }

@media (min-width: 600px) {
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.58rem; }
}

p, ul, ol, li, span {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #3d3728;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* HEADER & NAV ---------------------------------------- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 24px -15px var(--color-shadow);
  position: sticky;
  top: 0;
  z-index: 60;
}
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  min-height: 76px;
  padding: 9px 0;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-weight: 600;
  padding: 10px 8px;
  color: var(--color-secondary);
  border-radius: 7px;
  transition: background .18s;
  letter-spacing: .02em;
  font-size: 1rem;
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
.cta-header {
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 26px;
  padding: 10px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
  box-shadow: 0 2px 10px -6px var(--color-shadow);
}
.cta-header:hover, .cta-header:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 2.1rem;
  width: 46px;
  height: 46px;
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 3px 12px -6px var(--color-shadow);
  margin-left: 10px;
  z-index: 103;
  border: 2px solid var(--color-primary);
  transition: filter .15s, background .2s;
  cursor: pointer;
}
.mobile-menu-toggle:active { filter: brightness(1.06); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-white);
  z-index: 105;
  transform: translateX(-100%);
  transition: transform .38s var(--transition-ease);
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  padding: 0 30px 30px 30px;
  box-shadow: 0 0 42px -18px var(--color-shadow);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  font-size: 2rem;
  color: var(--color-danger);
  align-self: flex-end;
  margin: 28px 0 16px 0;
  background: none;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background .22s;
  border: 2px solid var(--color-danger);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fbe6e6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 22px;
  margin-top: 16px;
}
.mobile-nav a {
  font-size: 1.16rem;
  color: var(--color-secondary);
  padding: 16px 0 12px 8px;
  border-bottom: 1px solid #f0e3d4;
  border-radius: 0 12px 12px 0;
  font-weight: 700;
  transition: background .15s, color .17s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}
@media (min-width: 1100px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}
@media (max-width: 1099px) {
  header nav, .cta-header { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* ----- MAIN LAYOUT SECTIONS ----------------------------------------------------- */
main {
  background: var(--color-light);
  min-height: 80vh;
}
.section, section, .hero-section, .about-short, .services-list, .features, .features-benefits, .steps-section, .articles-section, .contact-section, .contact-form-section, .how-to-find-us-section, .thank-you-section, .cta-banner, .testimonials, .legal-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius);
  background: var(--color-bg-section);
}
.hero-section {
  background: linear-gradient(105deg, var(--color-accent) 65%, #fff0c6 100%);
  box-shadow: 0 10px 40px -15px var(--color-shadow);
  min-height: 285px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
}
@media (max-width: 992px) {
  .hero-section, .section, section, .features, .features-benefits, .about-short, .testimonials, .cta-banner, .contact-section, .contact-form-section, .how-to-find-us-section, .legal-section {
    margin-bottom: 34px;
    padding: 32px 7px;
  }
  .hero-section { min-height: 180px; }
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
}

/* FLEXIBLE CARD CONTAINERS --------------------------------------------------------- */
.card-container, .card-grid, .feature-grid, .benefit-grid, .article-teasers, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 16px;
  justify-content: flex-start;
}
.feature-grid > div, .benefit-grid > div, .article-teasers > div {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 26px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow .22s, transform .22s;
  margin-bottom: 20px;
}
.feature-grid > div:hover, .benefit-grid > div:hover, .article-teasers > div:hover {
  box-shadow: 0 12px 40px -10px var(--color-shadow);
  transform: translateY(-5px) scale(1.03);
}

@media (max-width: 768px) {
  .feature-grid, .benefit-grid, .article-teasers, .card-container, .card-grid {
    flex-direction: column;
    gap: 18px;
  }
}

/* TESTIMONIALS --------------------------------------------------------------- */
.testimonials {
  background: var(--color-accent);
  box-shadow: var(--shadow);
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px -7px var(--color-shadow);
  padding: 20px;
  gap: 16px;
  margin-bottom: 20px;
  max-width: 420px;
  min-width: 220px;
}
.testimonial-card p {
  color: var(--color-dark);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.testimonial-info, .testimonial-card span  {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: var(--color-secondary);
}
.star-rating {
  font-size: 1.2rem;
  color: #f9b543;
  letter-spacing: 1px;
}
.star-ratings{margin:16px 0 0 0;font-size:1.1rem;color:var(--color-primary); font-weight:600;}
@media (max-width: 700px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card { min-width: unset; max-width: unset; }
}

/* CTA BANNER --------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(100deg, var(--color-secondary) 25%, var(--color-accent) 100%);
  color: var(--color-primary);
  box-shadow: 0 6px 26px -12px var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-banner h2 {
  color: var(--color-bg-section);
  text-shadow: 0 2px 24px rgba(0,0,0,0.13);
  font-weight: 900;
}
.cta-banner .secondary-note { color: var(--color-white); font-weight: 700; font-size: 1rem; margin-top: 10px; }

.cta-main {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  border-radius: 30px;
  padding: 14px 42px;
  box-shadow: 0 3px 16px -8px var(--color-shadow);
  margin-top: 14px;
  margin-bottom: 12px;
  border: 2px solid var(--color-primary);
  transition: background var(--transition), color var(--transition), transform .17s;
  cursor: pointer;
  letter-spacing: .02em;
}
.cta-main:hover, .cta-main:focus {
  background: var(--color-secondary);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  border-color: var(--color-accent);
}

/* LISTS, INFO, FEATURE ITEMS -------------------------------------- */
ul.tips-list, .features ul, .benefits-list, .about-short ul, .steps-section ol, .services-list ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 14px 0;
  position: relative;
}
ul.tips-list li, .features ul li, .about-short ul li, .steps-section ol li, .services-list ul li {
  padding-left: 30px;
  position: relative;
  line-height: 1.43;
  font-size: 1.06rem;
}
ul.tips-list li::before, .features ul li::before, .about-short ul li::before, .steps-section ol li::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  position: absolute;
  left: 0; top: 7px;
  border: 3px solid var(--color-secondary);
}
.services-list ul li {
  border-bottom: 1.5px dashed var(--color-accent);
  padding-bottom: 12px;
  margin-bottom: 10px;
}
.services-list ul li:last-child { border-bottom: none; }
.price { 
  font-size: 1.04rem; 
  background: var(--color-success); 
  color: #fff; 
  border-radius: 8px; 
  padding: 2px 10px; 
  font-weight: bold; 
  margin-left: 12px; 
}
.guarantees { margin-top: 20px; color: var(--color-dark); font-weight: 600; }

.info-box {
  background: #FFF7CC;
  border-left: 6px solid var(--color-secondary);
  padding: 16px 20px;
  color: #8f7043;
  font-weight: 600;
  border-radius: 9px;
  margin: 18px 0;
}

.map-embed {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-bg-section);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 17px;
  box-shadow: var(--shadow);
}
@media (max-width: 768px) {
  .map-embed { flex-direction: column; gap: 14px; }
}

/* FOOTER --------------------------------------------- */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 38px 0 18px 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 30px -13px var(--color-shadow);
  position: relative;
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.footer-brand img {
  width: 69px;
  margin-bottom: 10px;
}
.footer-brand p {
  color: var(--color-accent);
  font-size: 1.05rem;
  margin-bottom: 0;
}
.footer-nav, .footer-legal, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a, .footer-legal a {
  color: var(--color-accent);
  font-size: 1.01rem;
  font-weight: 700;
  transition: color .16s;
  letter-spacing: 0.03em;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--color-secondary);
}
.footer-contact li {
  display: flex; align-items: center; gap: 8px;
  color: var(--color-accent); font-size: .98rem;
}
.footer-contact a { color: var(--color-accent); text-decoration: underline dotted; }
.footer-contact a:hover { color: #fff; }
.footer-contact img { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .footer-flex { flex-wrap: wrap; gap: 24px; }
  .footer-brand, .footer-nav, .footer-legal, .footer-contact {
    min-width: 170px;
  }
}
@media (max-width: 630px) {
  .footer-flex { flex-direction: column; gap: 18px; }
}

/* THANK YOU PAGE ---------------------------------------- */
.thank-you-section {
  text-align: center;
  background: #FEF7E0;
  padding-top: 54px;
  padding-bottom: 54px;
}
.thank-you-section h1 {
  color: var(--color-secondary);
}
.thank-you-section .cta-main {
  margin-top: 20px;
}

/* LEGAL PAGES ---------------------- */
.legal-section {
  background: #FFF9EA;
}
.legal-section ol > li {
  margin-bottom: 16px;
}

/* COOKIE CONSENT BANNER ------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-white);
  border-top: 3px solid var(--color-secondary);
  box-shadow: 0 -2px 19px -8px var(--color-shadow);
  padding: 22px 12px;
  z-index: 3000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 1rem;
  animation: cookieBannerIn .6s var(--transition-ease) 1;
}
@keyframes cookieBannerIn {
  from { transform: translateY(42px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-left: 18px;
}
.cookie-banner button {
  min-width: 120px;
  min-height: 38px;
  border-radius: 18px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0 2px;
  padding: 6px 18px;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.cookie-banner .accept {
  background: var(--color-success);
  color: #fff;
  border-color: var(--color-success);
}
.cookie-banner .accept:hover { background: #28ab60; }
.cookie-banner .reject {
  background: #fff;
  color: var(--color-danger);
  border-color: var(--color-danger);
}
.cookie-banner .reject:hover { background: var(--color-danger); color: #fff; }
.cookie-banner .settings {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}
.cookie-banner .settings:hover {
  background: var(--color-primary); color: var(--color-accent); }

/* Cookie Modal ---------------------------- */
.cookie-modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(50,44,33,0.45);
  display: flex; justify-content: center; align-items: center;
  z-index: 4000;
  animation: cookieModalIn .48s var(--transition-ease) 1;
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-window {
  background: var(--color-white);
  border-radius: 22px;
  box-shadow: 0 12px 54px -18px var(--color-shadow);
  padding: 42px 36px;
  min-width: 320px;
  max-width: 97vw;
  animation: slideModalUp .41s var(--transition-ease) 1;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
}
@keyframes slideModalUp {
  from { transform: translateY(64px); }
  to { transform: translateY(0); }
}
.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  color: var(--color-danger);
  font-size: 1.5rem;
  background: none;
  border: none;
  line-height: 1;
  border-radius: 50%;
  padding: 5px 10px;
  cursor: pointer;
  transition: background .17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: #fdeaea; }

.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
}
.cookie-category label {
  font-weight: bold;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px; height: 20px;
  border-radius: 7px;
}
.cookie-category.essential label { color: var(--color-success); }
.cookie-category.essential input[type="checkbox"] { accent-color: var(--color-success); }
.cookie-category .category-desc {
  color: #96813d; font-size: 0.98rem; font-weight: 500; margin-left: 8px;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 13px;
}
.cookie-modal-actions button {
  min-width: 130px;
  padding: 8px 20px;
  border-radius: 13px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid var(--color-secondary);
  cursor: pointer;
}
.cookie-modal-actions .save {
  background: var(--color-accent); color: var(--color-primary); border-color: var(--color-accent);
}
.cookie-modal-actions .save:hover { background: var(--color-primary); color: var(--color-accent); }
.cookie-modal-actions .cancel {
  background: #fff; color: var(--color-danger); border-color: var(--color-danger);
}
.cookie-modal-actions .cancel:hover { background: var(--color-danger); color: #fff; }

/* FLEXBOX PATTERNS - MANDATORY SPACING/ALIGNMENT --------- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Content Alignment Responsive --- */
@media (max-width: 768px) {
  .content-wrapper, .text-image-section, .content-grid { flex-direction: column !important; gap: 17px; }
}

/* MICROINTERACTIONS, FOCUS, ETC. ------------------ */
button:focus, a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.card, .feature-grid > div, .benefit-grid > div { transition: box-shadow .18s, transform .18s; }
.card:hover, .feature-grid > div:hover, .benefit-grid > div:hover {
  box-shadow: 0 8px 30px -8px var(--color-shadow);
  transform: translateY(-6px) scale(1.03);
}
@media (hover: hover) {
  a:hover, button:hover { filter: brightness(1.04); }
}

/* SCROLLBAR THEME ------------------ */
::-webkit-scrollbar { width: 14px; background: #FAF6E0; border-radius: 7px; }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 7px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-secondary); }

/* MISC ------------------------------------------ */
@media (max-width: 530px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.14rem; }
  .footer-flex { padding-inline: 5px; }
}
