/* --------------------------------------------------
   CSS RESET & BASE NORMALIZATION
-------------------------------------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  background: #f9fafc;
  color: #1A3D5A;
  letter-spacing: 0.01em;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #1A3D5A;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #F6C444;
  outline-offset: 2px;
}
button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* --------------------------------------------------
   BRAND TYPOGRAPHY (Luxury/Display)
-------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #1A3D5A;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.18;
  color: #1A3D5A;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
h4 {
  font-size: 1.12rem;
  font-weight: 500;
}
h5 {
  font-size: 1rem;
  font-weight: 500;
}
.subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: #3d536c;
  margin-bottom: 24px;
}
.text-center { text-align: center; }

/* --------------------------------------------------
   BRAND COLOR PALETTE & CSS VARIABLES
-------------------------------------------------- */
:root {
  --color-primary: #1A3D5A;
  --color-secondary: #FFFFFF;
  --color-accent: #F6C444;
  --color-accent-dark: #C69728;
  --color-bg: #f9fafc;
  --color-grey1: #eaeaea;
  --color-grey2: #b7b7b7;
  --color-black: #17171c;
  --color-nav: #fff;
  --shadow-base: 0 4px 14px rgba(60,65,90,0.08);
  --shadow-card: 0 2px 12px rgba(26,61,90,0.08);
  --radius-card: 20px;
}

/* --------------------------------------------------
   LAYOUT CONTAINERS (Only Flex)
-------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(26,61,90,0.15);
}
.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: #faf9f5;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(246,196,68,0.07);
  border: 1px solid #f2e3bb;
  margin-bottom: 20px;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  min-width: 240px;
  flex: 1 1 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.25s;
  border: 1.5px solid #f6c44422;
}
.feature-item img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  filter: drop-shadow(0 1px 2px rgba(246,196,68,0.12));
}
.feature-item:hover,
.feature-item:focus-within {
  box-shadow: 0 6px 24px rgba(246,196,68,0.10);
  border-color: var(--color-accent);
  z-index: 1;
}

/* --------------------------------------------------
   NAVIGATION & HEADER
-------------------------------------------------- */
header {
  background: var(--color-secondary);
  box-shadow: 0 2px 12px rgba(26,61,90,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 0;
  background: var(--color-nav);
}
.main-nav .logo {
  margin-right: 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: #1A3D5A;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 18px;
  top: 12px;
  z-index: 105;
  border: 2px solid var(--color-accent);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* --------------------------------------------------
   MOBILE MENU (Overlay Navigation)
-------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #1A3D5A;
  color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.78,-0.02,.33,1.08);
  box-shadow: 0 2px 24px rgba(26,61,90, 0.20);
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-close {
  font-size: 2.4rem;
  color: var(--color-accent);
  background: none;
  border: none;
  padding: 18px 22px 8px 0;
  margin: 0;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.13s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--color-accent-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 0 0 36px;
  margin-top: 38px;
  gap: 8px;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 14px 0;
  font-size: 1.3rem;
  border-radius: 6px;
  transition: background 0.14s, color 0.14s;
  width: 90%;
  display: block;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 1050px) {
  .container { max-width: 920px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.48rem; }
}
@media (max-width: 768px) {
  .container { max-width: 100%; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .mobile-menu {
    /* overlay always covers all */
    padding-top: 0;
    justify-content: flex-start;
  }
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
}

/* --------------------------------------------------
   HERO SECTION & CTA BUTTONS
-------------------------------------------------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.09rem;
  padding: 12px 32px;
  border: none;
  border-radius: 32px;
  transition: background .22s, color .22s, box-shadow .22s;
  box-shadow: 0 2px 10px rgba(246,196,68,0.06);
  margin-top: 14px;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(26,61,90,0.12);
  outline: none;
}
.btn-secondary {
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-accent);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-accent);
  color: #1A3D5A;
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(246,196,68,0.12);
}

/* --------------------------------------------------
   FEATURE GRID & SERVICE LIST
-------------------------------------------------- */
.feature-grid, .service-list, .course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
  justify-content: flex-start;
}
.service-list > .service-item, .course-list > .course-item, .service-list > .service-teaser {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 26px 18px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  border: 1.5px solid #f6c44413;
  min-width: 250px;
  transition: box-shadow 0.22s, border-color 0.21s;
}
.service-list > .service-item:hover,
.service-list > .service-teaser:hover,
.course-list > .course-item:hover {
  box-shadow: 0 6px 22px rgba(246,196,68,0.10);
  border-color: var(--color-accent);
}
.price {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 1.12rem;
  margin-top: 16px;
}
.callout {
  background: var(--color-primary);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(26,61,90,0.15);
  padding: 34px 28px;
  margin-bottom: 28px;
}
/* Course/Service Benefits */
.course-benefits, .value-props {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 22px;
  margin-top: 12px;
}
.course-benefits li, .value-props li {
  background: #fff;
  border: 1.5px solid #f3e1b7;
  border-radius: 14px;
  padding: 10px 18px 10px 46px;
  min-width: 195px;
  font-size: 1rem;
  color: #1A3D5A;
  position: relative;
  box-shadow: var(--shadow-card);
}
.value-props li img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  position: absolute;
  left: 8px;
  top: 8px;
  margin-right: 8px;
}

.short-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
}
.stat {
  background: var(--color-accent);
  color: #1A3D5A;
  border-radius: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  padding: 13px 36px;
  box-shadow: 0 1px 6px rgba(246,196,68,0.07);
}

/* --------------------------------------------------
   TESTIMONIALS & BLOG STYLING
-------------------------------------------------- */
blockquote {
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1E3C42;
  margin-bottom: 10px;
  quotes: "\201C" "\201D";
}
blockquote:before { content: open-quote; color: var(--color-accent); font-size: 2.2rem; line-height: 0.5; vertical-align: -0.4em; margin-right: 0.25em; }
blockquote:after { content: close-quote; }
.client-name, .alumni-name {
  color: #7d6b40;
  font-size: 0.98rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-top: 0;
}

.blog-articles {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 16px;
}
.featured-article {
  background: #fff8ed;
  border-left: 7px solid var(--color-accent);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(246,196,68,0.06);
  padding: 22px 20px;
}
.read-link {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom: 1.5px solid var(--color-accent);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.read-link:hover, .read-link:focus {
  color: var(--color-accent);
  border-color: var(--color-primary);
}

.blog-sidebar {
  margin-top: 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-base);
  padding: 18px 16px;
  color: #1A3D5A;
  font-family: 'Montserrat', Arial, sans-serif;
}
.blog-sidebar ul {
  list-style: none;
  margin-top: 10px;
}
.blog-sidebar li {
  padding: 3px 0;
  font-size: 0.97rem;
  color: #6c7a8a;
}

/* --------------------------------------------------
   CONTACT PAGE FLEX LAYOUTS
-------------------------------------------------- */
.contact-block {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-top: 18px;
}
.address-block, .features {
  flex: 1 1 340px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-base);
  padding: 25px 18px;
  min-width: 280px;
}
.map-placeholder {
  background: #dde5f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-top: 22px;
  padding: 10px;
}
.map-placeholder img {
  width: 68px;
  opacity: 0.8;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  background: #1A3D5A;
  color: #fff;
  padding-top: 28px;
  padding-bottom: 17px;
  margin-top: 60px;
  border-top: 5px solid var(--color-accent);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  max-width: 62px;
  margin-bottom: 8px;
}
.footer-links, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links a, .footer-legal a {
  color: #fff5e6;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 2px;
  transition: color 0.18s;
}
.footer-links a:hover, .footer-legal a:hover {
  color: var(--color-accent);
}
.footer-legal {
  margin-top: 4px;
}
.footer-contact {
  font-size: 0.97rem;
  color: #ffeebb;
  font-style: normal;
  line-height: 1.62;
  max-width: 260px;
}
.footer-contact a {
  color: #ffeebb;
  font-weight: 500;
}
.footer-contact address {
  font-style: normal;
  margin-top: 0;
  margin-bottom: 6px;
}

/* --------------------------------------------------
   COOKIE CONSENT BANNER & MODAL STYLES
-------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  z-index: 3000;
  background: #fffbe8;
  color: #1A3D5A;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -2px 18px rgba(26,61,90,0.06);
  padding: 20px 24px 20px 18px;
  gap: 18px;
  border-top: 2px solid var(--color-accent);
  min-height: 74px;
  animation: cc-fadein 0.66s cubic-bezier(.5,0,0,1.2);
}
@keyframes cc-fadein {
  from {opacity: 0; transform: translateY(60px);}
  to {opacity: 1; transform: none;}
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 10px 24px;
  font-size: 1rem;
  border-radius: 22px;
  border: 1.5px solid var(--color-accent);
  background: var(--color-accent);
  color: var(--color-primary);
  transition: background 0.17s, color 0.17s, box-shadow 0.17s;
}
.cookie-banner .cookie-settings-btn {
  background: #fff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-accent);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 2px 8px rgba(26,61,90,0.08);
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3300;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(26,61,90, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal-overlay.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #1A3D5A;
  border-radius: 20px;
  padding: 34px 30px 26px 30px;
  box-shadow: 0 8px 44px rgba(26,61,90,0.22);
  min-width: 320px;
  max-width: 95vw;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cc-slidein 0.45s cubic-bezier(.68,.02,.43,1.2);
}
@keyframes cc-slidein {
  from {transform: translateY(100px); opacity: 0;}
  to {transform: none; opacity: 1;}
}
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-cat {
  margin-bottom: 14px;
}
.cookie-cat label,
.cookie-cat span {
  font-size: 1rem;
}
.cookie-cat input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 18px; height: 18px;
  vertical-align: bottom;
  margin-right: 8px;
}
.cookie-cat input[disabled] { filter: grayscale(0.8); }
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 8px;
}
.cookie-modal button {
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 20px;
  border: 1.5px solid var(--color-accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 9px 22px;
  font-size: 1rem;
  margin: 0;
  transition: background 0.16s, color 0.14s;
}
.cookie-modal button:hover { background: var(--color-primary); color: var(--color-accent); }
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 9px;
  right: 14px;
  background: none;
  color: var(--color-primary);
  font-size: 1.7rem;
  padding: 7px;
  border-radius: 16px;
  transition: background 0.1s, color 0.12s;
  border: none;
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  background: #fff6d7;
  color: var(--color-accent);
}

/* --------------------------------------------------
   RESPONSIVE DESIGN
-------------------------------------------------- */
@media (max-width: 1050px) {
  .footer-content { gap: 20px; }
}
@media (max-width: 920px) {
  .feature-grid, .service-list, .course-list, .content-grid {
    gap: 18px;
  }
  .footer-content {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .testimonials { gap: 16px; }
  .feature-grid, .service-list, .course-list {
    flex-direction: column;
  }
  .short-stats { gap: 16px; }
  .content-grid { flex-direction: column; gap: 16px; }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 24px 8px;
    margin-bottom: 32px;
  }
  .content-wrapper {
    gap: 19px;
  }
  .feature-grid, .service-list, .course-list, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .short-stats {
    flex-direction: column;
    gap: 9px;
  }
  .footer-content {
    gap: 11px;
    flex-direction: column;
    align-items: flex-start;
  }
  .card {
    padding: 22px 10px;
  }
  .contact-block {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.01rem; }
  .container { padding: 0 4px; }
  .btn-primary, .btn-secondary { padding: 11px 9vw; }
  .footer-contact { font-size: 0.92rem; }
}

/* --------------------------------------------------
   UTILITY AND MICRO-INTERACTIONS
-------------------------------------------------- */
.text-section ul {
  margin: 10px 0 14px 18px;
  list-style: disc inside;
}
.text-section li {
  margin-bottom: 7px;
  color: #425362;
  font-size: 1rem;
}
.text-section a {
  color: var(--color-primary);
  border-bottom: 1px dashed var(--color-accent);
  transition: border-color 0.15s;
}
.text-section a:hover {
  color: var(--color-accent);
  border-bottom: 1.6px solid var(--color-accent);
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 10px;
}

::-webkit-input-placeholder { color: #b7b7b7; }
::-moz-placeholder { color: #b7b7b7; }
:-ms-input-placeholder { color: #b7b7b7; }
::-ms-input-placeholder { color: #b7b7b7; }
::placeholder { color: #b7b7b7; opacity:1; }

/* --------------------------------------------------
   PRINT IMPROVEMENT
-------------------------------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  main, .container { padding: 0 !important; margin: 0 !important; }
}

/* END: Luxury Premium "Финансов Пулс" */
