
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --primary: #2E86AB;
  --secondary: #F24C4E;
  --accent: #F9CB40;
  --bg-light: #F8F8F8;
  --bg-dark: #1C3144;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #FFFFFF;
  --border: #DDDDDD;
  --success: #4CAF50;
  --warning: #FFC107;
  --error: #FF5252;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
}


.comic-border {
  border: 3px solid black;
  box-shadow: 5px 5px 0px black;
}

.comic-text {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.comic-card {
  background-color: white;
  border: 3px solid black;
  border-radius: 8px;
  box-shadow: 5px 5px 0px black;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comic-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0px black;
}

.comic-button {
  background-color: var(--accent);
  color: black;
  font-weight: bold;
  text-transform: uppercase;
  border: 3px solid black;
  border-radius: 8px;
  padding: 8px 16px;
  box-shadow: 4px 4px 0px black;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comic-button:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0px black;
}

.comic-button:active {
  transform: translateY(0);
  box-shadow: 2px 2px 0px black;
}


.swipe-card-container {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; 
}

.swipe-card-container::-webkit-scrollbar {
  display: none; 
}

.swipe-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 280px;
  margin-right: 20px;
}


.form-input {
  border: 2px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  width: 100%;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-color: var(--primary);
  outline: none;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}


.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232E86AB' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}


.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  border: 3px solid black;
  border-radius: 10px;
  box-shadow: 8px 8px 0px black;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}


.cookie-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: white;
  border: 3px solid black;
  border-radius: 10px;
  box-shadow: 5px 5px 0px black;
  padding: 20px;
  z-index: 999;
  display: none;
}

.cookie-settings-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  border: 2px solid black;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 3px 3px 0px black;
  z-index: 998;
  cursor: pointer;
}


.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.5s ease-in-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


.calculator-container {
  background-color: white;
  border: 3px solid black;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 5px 5px 0px black;
}

.calculator-result {
  background-color: var(--bg-light);
  border: 2px solid black;
  border-radius: 8px;
  padding: 15px;
  margin-top: 20px;
}


.kz-map {
  position: relative;
  width: 100%;
  height: 400px;
  border: 3px solid black;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 5px 5px 0px black;
}

.kz-map-region {
  cursor: pointer;
  transition: fill 0.3s ease;
}

.kz-map-region:hover {
  fill: var(--accent);
}

.kz-map-tooltip {
  position: absolute;
  background-color: white;
  border: 2px solid black;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 3px 3px 0px black;
  z-index: 10;
  display: none;
}


.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: black;
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 40px;
  position: relative;
}

.timeline-content {
  background-color: white;
  border: 3px solid black;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 5px 5px 0px black;
  width: calc(50% - 30px);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  border: 3px solid black;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}


.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
  border: 2px solid black;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  border: 2px solid black;
}

input:checked + .toggle-slider {
  background-color: var(--primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}


.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background-color: white;
  z-index: 1000;
  transition: right 0.3s ease;
  border-left: 3px solid black;
  box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu-items {
  padding: 60px 20px 20px;
}

.mobile-menu-items a {
  display: block;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}


.iti {
  width: 100%;
}


.blog-card {
  border: 3px solid black;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 5px 5px 0px black;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0px black;
}

.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 5px;
  margin-bottom: 5px;
  border: 2px solid black;
}


.article-content {
  font-family: 'Merriweather', serif;
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.article-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-secondary);
}


a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}


@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  
  .timeline-item::before {
    left: 30px;
  }
  
  .swipe-card {
    width: 85%;
  }
  
  .comic-border {
    border-width: 2px;
    box-shadow: 3px 3px 0px black;
  }
  
  .comic-card {
    border-width: 2px;
    box-shadow: 3px 3px 0px black;
  }
  
  .comic-button {
    border-width: 2px;
    box-shadow: 3px 3px 0px black;
  }
  
  .modal-content {
    border-width: 2px;
    box-shadow: 5px 5px 0px black;
  }
}