/* ===============================================
   GRYPOLINKA INVEST - Monochrome Sophisticated CSS
   ===============================================
   Mobile-first, flexbox-only, high-contrast, elegant
   Brand: Montserrat (display), Open Sans (body)
   Palette: Black, white, gray, selective accent
   =============================================== */

/* === RESET & NORMALIZE === */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #222;
  min-height: 100vh;
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img, svg {
  max-width: 100%;
  display: block;
}
a { color: inherit; text-decoration: none; transition: color 0.16s; }
ul, ol { list-style: none; }
strong { font-weight: 600; }

/* === BRAND VARIABLES === */
:root {
  --primary: #233C51;
  --secondary: #fff;
  --accent: #F29D35;
  --gray-900: #111;
  --gray-800: #222;
  --gray-700: #2f2f2f;
  --gray-600: #444;
  --gray-400: #b3b8be;
  --gray-200: #ececec;
  --gray-100: #f8f8f8;
  --focus-outline: 2px solid var(--accent);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.23;
  margin-bottom: 12px;
}
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }
p {
  margin-bottom: 16px;
  color: var(--gray-700);
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

/* === COMMON STRUCTURE ELEMENTS === */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === FLEX UTILITY CLASSES === */
.card-container,
.card-grid,
.feature-grid,
.result-facts,
.blog-post-list,
.footer-content,
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--gray-100);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(40,48,56,0.07);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-800);
  transition: box-shadow 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 28px rgba(41,46,52,0.08);
  border-color: var(--gray-400);
}
.testimonial-meta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 0.2px;
  margin-left: auto;
}

.card {
  margin-bottom: 20px;
  background: var(--secondary);
  border-radius: 14px;
  box-shadow: 0px 2px 12px rgba(30,30,40,0.04);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.18s;
  position: relative;
  min-width: 210px;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  z-index: 2;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 22px;
}

/* === HEADER & NAVIGATION === */
header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(25,25,25,0.04);
  z-index: 100;
  position: sticky;
  top: 0;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
.main-nav a {
  color: var(--gray-700);
  padding: 7px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.16s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: #fff;
}
/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle { display: none; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  padding: 12px 28px;
  margin-left: 20px;
  box-shadow: 0 1px 8px rgba(50,55,80,0.12);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background .23s, color .16s, box-shadow .23s;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 18px rgba(50,55,80,0.20);
  outline: var(--focus-outline);
}
.mobile-nav {
  display: none;
}

/* === MOBILE NAVIGATION === */
@media (max-width: 990px) {
  .main-nav { display: none; }
  .btn-primary { margin-left: 0; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 2.1rem;
    color: #000;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 8px;
    margin-left: auto;
    transition: background .14s;
    z-index: 150;
  }
  .mobile-menu-toggle:focus {
    background: var(--gray-200);
    outline: var(--focus-outline);
  }
  .mobile-menu {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(252,252,252,.99);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 26px 0 26px;
    transform: translateX(105%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.36s cubic-bezier(.65,.01,.36,1),opacity 0.18s;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu-close {
    margin-bottom: 18px;
    margin-left: auto;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-900);
    cursor: pointer;
    border-radius: 10px;
    padding: 8px 14px;
    transition: background 0.14s;
  }
  .mobile-menu-close:focus {
    background: var(--gray-200);
    outline: var(--focus-outline);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 17px;
    width: 100%;
    margin-top: 16px;
  }
  .mobile-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.18rem;
    font-weight: 600;
    color: #000;
    padding: 10px 0;
    border-radius: 8px;
    transition: background .18s, color .16s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: var(--accent);
    color: #fff;
  }
}

/* === HERO & CTA === */
.hero {
  background: linear-gradient(130deg, #fff 80%, #f5f6f8 100%);
  border-bottom: 1.5px solid var(--gray-100);
  padding: 60px 0 48px 0;
  min-height: 340px;
  display: flex;
  align-items: center;
}
.hero h1, .cta h2 {
  color: #000;
  font-size: 2.3rem;
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
}
@media (max-width: 768px) {
  .hero {
    padding: 36px 0 30px 0;
    min-height: 220px;
  }
  .hero h1, .cta h2 { font-size: 1.45rem; }
}

.cta {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 6px 34px 0 rgba(28,28,31,0.066);
  text-align: center;
}
.cta .btn-primary {
  margin: 22px auto 0 auto;
  display: flex;
}

/* === FEATURES, SERVICES, LISTS === */
.feature-grid,
.feature-list,
.strategy-list,
.trend-list,
.service-list,
.result-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}
.feature-grid li,
.feature-list li,
.strategy-list li,
.trend-list li,
.service-list li,
.result-facts li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 18px 18px;
  min-width: 230px;
  font-size: 1rem;
  color: var(--gray-800);
  box-shadow: 0 2px 8px rgba(41,41,48,0.02);
  margin-bottom: 0;
}
.feature-grid li img,
.feature-list li img
{ width: 36px; height: 36px; margin-right: 8px; }

/* === BLOG SECTION === */
.blog-post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.blog-post-list li {
  background: var(--secondary);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(30,30,40,0.04);
  padding: 22px 24px 20px 24px;
  min-width: 250px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
  transition: box-shadow 0.2s;
}
.blog-post-list li a {
  color: var(--primary);
  font-weight: 700;
  transition: color .14s;
}
.blog-post-list li a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.featured-blog {
  background: #f7f8fa;
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 1px 14px rgba(25,25,30,0.07);
  margin-top: 16px;
}
.featured-blog .btn-primary {
  margin-top: 22px;
  min-width: 180px;
}

/* === CASE STUDIES === */
.case-study {
  background: #fff;
  border-left: 3px solid var(--primary);
  padding: 19px 20px 19px 26px;
  border-radius: 10px;
  margin-bottom: 22px;
  box-shadow: 0 1px 10px rgba(28,30,35,0.04);
}
.case-study h3 {
  margin-bottom: 10px;
  color: #000;
  font-size: 1.18rem;
}

/* === CONTACT DETAILS === */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
  font-size: 1.09rem;
  color: var(--gray-700);
}
.contact-details > div {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #f7f8fa;
  border-radius: 9px;
  padding: 12px 18px;
  min-width: 210px;
}
.contact-details a {
  color: var(--primary);
  text-decoration: underline;
}
.contact-details strong {
  font-weight: 700;
  color: #000;
}

/* === FOOTER === */
footer {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  padding: 38px 0 28px 0;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 24px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo img {
  width: 54px;
  margin-bottom: 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
}
.footer-nav a {
  color: var(--gray-700);
  font-size: 1rem;
  padding: 3px 0;
  transition: color .14s;
}
.footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.98rem;
  color: var(--gray-700);
  min-width: 210px;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-contact a {
  color: var(--primary);
  text-decoration: underline;
}

/* === COOKIE CONSENT BANNER === */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #111;
  color: #fff;
  padding: 22px 20px 20px 20px;
  box-shadow: 0 -3px 26px rgba(14,13,20,0.10);
  display: flex;
  align-items: flex-start;
  z-index: 4100;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
  transition: transform 0.30s cubic-bezier(.77,.05,.7,1), opacity 0.18s;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
#cookie-banner.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cookie-banner-actions {
  display: flex;
  gap: 16px;
  margin-top: 5px;
}
.cookie-btn {
  border: none;
  border-radius: 7px;
  padding: 10px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, color .14s;
  outline: none;
}
.cookie-btn.accept {
  background: var(--accent);
  color: #000;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #e1890c;
  color: #fff;
}
.cookie-btn.reject {
  background: #fff;
  color: var(--gray-900);
  border: 1px solid #aaa;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--gray-200);
  color: #000;
}
.cookie-btn.settings {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #151c24;
}

/* === COOKIE MODAL POPUP === */
#cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(6,8,18, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
#cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fff;
  color: #000;
  border-radius: 16px;
  padding: 36px 28px 30px 28px;
  box-shadow: 0 8px 36px rgba(20,20,28,0.17);
  max-width: 360px;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  font-size: 1rem;
  z-index: 4500;
}
.cookie-modal-close {
  position: absolute;
  top: 32px; right: 42px;
  background: none;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: var(--gray-800);
  transition: background .13s;
  border-radius: 8px;
}
.cookie-modal-close:focus {
  background: var(--gray-200);
  outline: var(--focus-outline);
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
  font-size: 1.07rem;
  border-bottom: 1px solid var(--gray-100);
}
.cookie-category label {
  font-weight: 600;
  color: #000;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-toggle {
  margin-left: auto;
  width: 40px;
  height: 24px;
  appearance: none;
  background: var(--gray-400);
  outline: none;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background .18s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle::-webkit-slider-thumb {
  content: '';
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  top: 2.5px;
  transition: left .23s cubic-bezier(.22,.61,.36,1);
}
.cookie-toggle:checked::-webkit-slider-thumb {
  left: 19px;
}
.cookie-toggle::-moz-range-thumb {
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  border: none;
}

/* Hide, fallback: */
.cookie-toggle[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-left: auto;
  accent-color: var(--accent);
}

/* Cookie essential label (always enabled) */
.cookie-category .essential {
  color: #888;
  font-size: .97em;
  margin-left: 7px;
  font-style: italic;
}

.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

/* === ANIMATIONS === */
.card, .blog-post-list li, .testimonial-card, .case-study,.cookie-modal-content {
  transition: box-shadow .23s, border .17s, background .18s, transform .21s;
}
.card:active, .blog-post-list li:active, .testimonial-card:active, .case-study:active {
  transform: scale(0.99);
}
.btn-primary:active {
  transform: scale(.97);
}

/* === SPACING, BUTTONS & INTERACTIVE ELEMENTS === */
button, .btn-primary, .cookie-btn {
  cursor: pointer;
}
button:focus, .btn-primary:focus, .cookie-btn:focus {
  outline: var(--focus-outline);
}

input, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: #fff;
  color: #111;
  margin-bottom: 16px;
}
input:focus, textarea:focus {
  border-color: var(--accent);
  outline: var(--focus-outline);
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .container { max-width: 96vw; }
  .footer-content { gap: 18px 8px; }
}
@media (max-width: 900px) {
  .container { max-width: 100vw; }
  .footer-content { flex-direction: column; gap: 22px; align-items: flex-start; }
}
@media (max-width: 768px) {
  .section, .hero, .cta { padding-left: 10px; padding-right: 10px; }
  .section { margin-bottom: 36px; padding-top: 22px; padding-bottom: 22px; }
  .container { padding-left: 10px; padding-right: 10px; }
  .footer-content { flex-direction: column; gap: 17px; }
  .testimonial-card, .content-wrapper, .feature-grid, .feature-list, .card-container, .card-grid, .blog-post-list, .result-facts, .contact-details {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 14px; }
  .main-nav { display: none !important; }
}

@media (max-width: 540px) {
  html { font-size: 15px; }
  .header-content, .footer-content { flex-direction: column; gap: 14px; align-items: flex-start; }
  .btn-primary { padding: 10px 18px; font-size: 0.98rem; }
  .card-content, .featured-blog { padding: 18px 8px; }
}

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