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

:root {
  --primary: #2C3E50;
  --secondary: #8E44AD;
  --accent: #D4AF37;
  --background: #F5F5F5;
  --text: #333333;
  --light-text: #FFFFFF;
  --border: #E0E0E0;
  --success: #27AE60;
  --error: #E74C3C;
  --highlight: #F39C12;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--secondary));
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

/* Custom Diagonal Section Dividers */
.diagonal-divider {
  position: relative;
  height: 100px;
  margin-top: -50px;
  margin-bottom: -50px;
  z-index: 1;
}

.diagonal-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  transform: skewY(-3deg);
  z-index: -1;
}

/* Header */
header {
  background-color: var(--primary);
  color: var(--light-text);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

nav ul {
  display: none;
  list-style: none;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  padding: 1rem;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  z-index: 999;
}

nav ul.active {
  display: block;
}

nav ul li {
  margin-bottom: 0.5rem;
}

nav ul li a {
  color: var(--light-text);
  font-weight: 600;
  display: block;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent);
}

/* Hero Banner */
.hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 80px;
  background-color: var(--primary);
  color: var(--light-text);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--light-text);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--light-text);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--primary);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-text);
  border: 2px solid var(--light-text);
}

.btn-secondary:hover {
  background-color: var(--light-text);
  color: var(--primary);
}

/* About Section */
.about {
  padding: 4rem 0;
  position: relative;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  height: 100%;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Benefits Section */
.benefits {
  padding: 4rem 0;
  background-color: rgba(44, 62, 80, 0.05);
  position: relative;
}

.benefits-title {
  text-align: center;
  margin-bottom: 3rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.benefit-card {
  background-color: var(--light-text);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--secondary));
}

.benefit-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.benefit-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form-section {
  padding: 4rem 0;
}

.contact-form {
  background-color: var(--light-text);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-title {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

.form-check {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.form-check input {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.btn-form {
  width: 100%;
  padding: 1rem;
  background-color: var(--secondary);
  color: var(--light-text);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-form:hover {
  background-color: var(--primary);
}

/* Metodologie Section */
.metodologie {
  padding: 4rem 0;
}

.metodologie-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.metodologie-card {
  background-color: var(--light-text);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.metodologie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.metodologie-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.metodologie-content {
  padding: 1.5rem;
}

.metodologie-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Instrumenty Section */
.instrumenty {
  padding: 4rem 0;
  background-color: rgba(44, 62, 80, 0.05);
}

.instrumenty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.instrumenty-card {
  background-color: var(--light-text);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.instrumenty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.instrumenty-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.instrumenty-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.instrumenty-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.instrumenty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
}

.tag {
  background-color: rgba(142, 68, 173, 0.1);
  color: var(--secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Contact Page */
.contact-page {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info {
  background-color: var(--light-text);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-right: 1rem;
  min-width: 24px;
}

.contact-map {
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--light-text);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-links h3 {
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent);
}

.footer-contact h3 {
  color: var(--light-text);
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.footer-contact i {
  margin-right: 0.5rem;
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  color: var(--light-text);
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
  display: none;
}

.cookie-consent.active {
  display: block;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-text {
  flex-grow: 1;
}

.cookie-text p {
  margin-bottom: 0.5rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn-accept {
  background-color: var(--accent);
  color: var(--primary);
  border: none;
}

.cookie-btn-settings {
  background-color: transparent;
  color: var(--light-text);
  border: 1px solid var(--light-text);
}

.cookie-btn-accept:hover {
  background-color: #c39b2e;
}

.cookie-btn-settings:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.cookie-settings-modal.active {
  display: flex;
}

.cookie-settings-content {
  background-color: var(--light-text);
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
}

.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cookie-settings-header h3 {
  margin-bottom: 0;
}

.cookie-settings-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.cookie-settings-body {
  margin-bottom: 1.5rem;
}

.cookie-category {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.cookie-category:last-child {
  border-bottom: none;
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-category-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

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

.cookie-category-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.cookie-category-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .cookie-category-slider {
  background-color: var(--success);
}

input:focus + .cookie-category-slider {
  box-shadow: 0 0 1px var(--success);
}

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

.cookie-settings-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cookie-settings-save {
  background-color: var(--secondary);
  color: var(--light-text);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-settings-save:hover {
  background-color: var(--primary);
}

/* Policy Pages */
.policy-content {
  padding: 6rem 0 4rem;
}

.policy-container {
  background-color: var(--light-text);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.policy-date {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 2rem;
}

.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.policy-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.policy-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-section ul li {
  margin-bottom: 0.5rem;
}

/* Thank You Page */
.thank-you {
  padding: 6rem 0 4rem;
  text-align: center;
}

.thank-you-content {
  background-color: var(--light-text);
  border-radius: 10px;
  padding: 3rem 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1.5rem;
}

.thank-you-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.thank-you-text {
  margin-bottom: 2rem;
}

.thank-you-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--secondary);
  color: var(--light-text);
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.thank-you-btn:hover {
  background-color: var(--primary);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

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

.animate-slide-in-left {
  animation: slideInLeft 1s ease-in-out;
}

.animate-slide-in-right {
  animation: slideInRight 1s ease-in-out;
}

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

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

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Custom diagonal section decorations */
.diagonal-decoration {
  position: relative;
  overflow: hidden;
}

.diagonal-decoration::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: inherit;
  transform: skewY(-3deg);
  z-index: 1;
}

/* Media Queries */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .benefits-grid,
  .metodologie-grid,
  .instrumenty-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content {
    flex-direction: row;
  }
  
  .cookie-content {
    flex-direction: row;
    align-items: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  nav ul {
    display: flex !important;
    position: static;
    width: auto;
    background: none;
    box-shadow: none;
    padding: 0;
  }
  
  nav ul li {
    margin: 0 0 0 1.5rem;
  }
  
  .benefits-grid,
  .metodologie-grid,
  .instrumenty-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Интеграция с intl-tel-input */
.iti {
  width: 100%;
  margin-bottom: 1rem;
}

.iti__flag {
  background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .iti__flag {
    background-image: url("https://cdn.jsdelivr.net/npm/intl-tel-input@19.5.1/build/img/flags@2x.png");
  }
}