/* ===== 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, main, 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 {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  height: 100%;
  width: 100%;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #F9F7F3;
  color: #3A405A;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #3A405A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F2B880;
  outline: none;
}
ul, ol {
  padding-left: 1.5rem;
}
input, button, textarea, select {
  font-family: inherit;
  font-size: 100%;
  box-sizing: border-box;
  outline: none;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}
:focus {
  outline: 2px solid #3A405A;
  outline-offset: 2px;
}

/* ===== BRAND FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@700&family=Montserrat:wght@400;600;700&display=swap');
:root {
  --color-primary: #3A405A;
  --color-secondary: #F2B880;
  --color-accent: #F9F7F3;
  --color-dark: #2B2E43;
  --color-blue: #44627C;
  --color-gray: #E3E7ED;
  --color-card-bg: #fff;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --header-height: 76px;
  --transition: 0.22s cubic-bezier(.6,.36,0,1.05);
}

body {
  background: var(--color-accent);
  color: var(--color-primary);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ====== TYPOGRAPHY ====== */
h1, .hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--color-primary);
}
h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
}
h3 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}
p {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--color-primary);
}
li {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
em {
  font-style: italic;
  color: var(--color-blue);
}

/* Typography spacing */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(58,64,90,0.04), 0 1.5px 0 #E3E7ED;
  z-index: 101;
  width: 100%;
  position: sticky;
  top: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 32px;
}
header img {
  height: 44px;
  width: auto;
  margin-right: 24px;
  flex-shrink: 0;
}

/* Navigation */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-left: 16px;
}
.main-nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 6px;
  position: relative;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-secondary);
}

.cta-btn {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 32px;
  padding: 12px 28px;
  font-weight: 700;
  margin-left: 18px;
  box-shadow: 0 3px 14px rgba(58,64,90,0.07);
  transition: background var(--transition), box-shadow var(--transition), color var(--transition), transform var(--transition);
  border: none;
  display: inline-block;
  cursor: pointer;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 6px 24px rgba(58,64,90,0.13);
  transform: translateY(-2px) scale(1.03);
}

/* Burger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 2rem;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 200;
  margin-left: 16px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 3000;
  transition: transform 0.35s cubic-bezier(.55,.15,0,1), opacity 0.22s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  background: var(--color-primary);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 50%;
  align-self: flex-end;
  margin: 28px 24px 0 0;
  padding: 4px 18px 0 18px;
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 48px 40px;
  width: calc(100vw - 80px);
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.3rem;
  padding: 12px 0;
  border-radius: 5px;
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  background: var(--color-gray);
}

/* Responsive HEADER + MOBILE NAV Styles */
@media (max-width: 1024px) {
  header .container {
    gap: 10px;
  }
  .main-nav {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-btn {
    margin-left: auto;
  }
}
@media (max-width: 600px) {
  header .container {
    padding: 0 10px;
  }
  .mobile-nav {
    margin: 32px 12px;
    width: calc(100vw - 24px);
  }
}

/* ===== LAYOUT SECTIONS & FLEX SPACING ===== */
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  border-radius: 16px;
}
.hero {
  background: linear-gradient(94deg, #3A405A 78%, #F2B880 220%);
  color: #fff;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero .container {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-top: 8px;
  max-width: 620px;
}
.hero h1 {
  color: #fff;
  font-size: 2.7rem;
}
.hero p {
  color: #fff;
  font-size: 1.16rem;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card Container (flex only) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--color-card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(58,64,90,0.07);
  padding: 32px 22px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(58,64,90,0.13);
  transform: translateY(-2px) scale(1.022);
}

.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 Flex Layout */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 14px rgba(44,56,98,0.08);
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border var(--transition);
  border-left: 5px solid var(--color-secondary);
}
.testimonial-card:hover {
  box-shadow: 0 4px 22px rgba(44,56,98,0.16);
  border-left: 8px solid var(--color-primary);
}
.testimonial-card p {
  color: #23293b;
  font-style: italic;
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: #82A4CE;
  font-size: 0.98rem;
  font-weight: 500;
}

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

ul {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Section Titles Spacing */
.section h2, .container > h2 {
  margin-bottom: 18px;
}

/* Lists inside features */
.content-wrapper ul {
  gap: 11px;
}

/* Icon + Text List in Contacts */
.content-wrapper ul li img {
  vertical-align: middle;
  margin-right: 10px;
  height: 23px;
  width: auto;
}

/* =============== FOOTER =============== */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 38px 0 22px 0;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
footer img {
  height: 46px;
  margin-right: 16px;
}
.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-nav a {
  color: #fff;
  font-size: 0.98rem;
  font-family: var(--font-body);
  font-weight: 600;
  transition: color var(--transition);
  opacity: 0.85;
}
.footer-nav a:hover {
  color: var(--color-secondary);
  opacity: 1;
}
.footer-contacts {
  color: #F9F7F3;
  opacity: 0.92;
  font-size: 0.98rem;
  font-family: var(--font-body);
  max-width: 390px;
}
.footer-contacts a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color var(--transition);
}
.footer-contacts a:hover {
  color: #fff;
}

@media (max-width: 950px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-contacts {
    margin-top: 12px;
  }
}
@media (max-width: 700px) {
  .footer-nav {
    gap: 9px;
  }
}

/* =============== RESPONSIVE SECTIONS =============== */
@media (max-width: 1000px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 800px) {
  .hero {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
  .card {
    padding: 26px 12px;
    min-width: 170px;
  }
  .content-grid, .card-container {
    gap: 12px;
  }
}
@media (max-width: 600px) {
  .section, main > section {
    padding: 22px 5px;
    margin-bottom: 32px;
  }
  .hero {
    padding-top: 16px;
    padding-bottom: 22px;
  }
  h1, .hero h1 {
    font-size: 1.45rem;
  }
  h2 {
    font-size: 1.13rem;
  }
  .card {
    min-width: 90vw;
    padding: 16px 6px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 8px;
    font-size: 0.99rem;
  }
}

/* ====== FLEX COLUMN ON MOBILE ====== */
@media (max-width: 768px) {
  .hero .container,
  .content-grid,
  .text-image-section,
  .card-container,
  footer .container {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .content-wrapper {
    gap: 16px;
    padding-top: 2px;
    align-items: flex-start;
    width: 100%;
    max-width: 98vw;
  }
}

/* ===== INTERACTIVITY, HOVER & MICRO-ANIMATION ===== */
a, .cta-btn, button, .main-nav a, .footer-nav a, .mobile-nav a {
  transition: all 0.22s cubic-bezier(.6,.36,0,1.05);
}

.card, .testimonial-card {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:active, .testimonial-card:active {
  transform: scale(0.97) translateY(1px);
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #3A405A;
  color: #fff;
  z-index: 4000;
  box-shadow: 0 -2px 12px rgba(44,56,98,0.07);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 22px 12px 18px 12px;
  font-size: 1rem;
  opacity: 1;
  transition: transform 0.4s cubic-bezier(.55,.1,0,1), opacity 0.24s;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-message {
  flex: 1 1 280px;
  color: #fff;
  font-size: 1.04rem;
  margin-right: 8px;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  margin: 0 2px;
  min-width: 120px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  box-shadow: 0 1.5px 6px rgba(44,56,98,0.045);
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ffd09c;
  color: var(--color-primary);
}
.cookie-btn.reject {
  background: #fff;
  color: var(--color-primary);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #E3E7ED;
  color: var(--color-dark);
}
.cookie-btn.settings {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #fff;
  color: var(--color-primary);
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4100;
  top:0; left:0; right:0; bottom:0;
  background: rgba(42,51,74,0.47);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.26s linear;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary);
  border-radius: 18px;
  box-shadow: 0 14px 58px rgba(44,56,98,0.19);
  padding: 32px 26px 22px 26px;
  max-width: 360px;
  min-width: 250px;
  width: 93vw;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInScaleIn 0.38s cubic-bezier(.55,.2,0,1);
}
@keyframes fadeInScaleIn {
  0% { transform: scale(0.93); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-dark);
  font-size: 1.22rem;
  font-family: var(--font-display);
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  font-size: 1.06rem;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
  margin-right: 4px;
}
.cookie-category .essential {
  font-weight: 700;
  color: var(--color-primary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  min-width: 90px;
  font-size: 0.97rem;
}

@media (max-width: 700px) {
  .cookie-modal {
    padding: 17px 7px 11px 7px;
    min-width: 70vw;
    font-size: 0.99rem;
  }
}

/* =============== GENERAL STYLES FOR ACCESSIBILITY & SPACING =============== */
hr {
  border: 0;
  border-top: 1px solid #E3E7ED;
  margin: 32px 0;
}
section:last-child, .section:last-child {
  margin-bottom: 0 !important;
}

/* =============== MISC FIXES =============== */
::-webkit-scrollbar {
  width: 12px;
  background: #F9F7F3;
}
::-webkit-scrollbar-thumb {
  background: #E3E7ED;
  border-radius: 8px;
}

/* =============== TRANSITION UTILS =============== */
.fade-in {
  animation: fadeInE 0.38s cubic-bezier(.44,.1,0,1);
}
@keyframes fadeInE {
  from { opacity: 0; }
  to { opacity: 1; }
}

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