/* CozyMatter Academy - Primary Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap");

/* CSS Variables for Color Palette */
:root {
  --cream-beige: #f6efe7;
  --olive-green: #a7b28b;
  --coffee-brown: #6b5844;
  --sage-green: #879d8e;
  --pure-white: #ffffff;
  --text-primary: #2d2d2d;
  --text-secondary: #666666;
  --text-light: #888888;
  --shadow-soft: 0 4px 20px rgba(107, 88, 68, 0.1);
  --shadow-medium: 0 8px 30px rgba(107, 88, 68, 0.15);
  --border-radius: 12px;
  --border-radius-large: 20px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width-container: 1200px;
  --font-primary: "Inter", sans-serif;
  --font-display: "Playfair Display", serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--cream-beige);
  overflow-x: hidden;
}

/* Typography */
.primary-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  color: var(--coffee-brown);
  margin-bottom: 1.5rem;
}

.secondary-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  color: var(--coffee-brown);
  margin-bottom: 1rem;
}

.tertiary-heading {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--olive-green);
  margin-bottom: 0.75rem;
}

.content-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.accent-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--sage-green);
  line-height: 1.6;
}

/* Layout Components */
.main-container {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-wrapper {
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

/* Декоративные элементы для section-wrapper (только для страниц, кроме главной) */

/* Паттерн 1: Волнообразный градиент слева */
body:not(.home-page) .section-wrapper:nth-child(4n + 1)::before {
  content: "";
  position: absolute;
  top: -5%;
  left: -15%;
  width: 40%;
  height: 110%;
  background: radial-gradient(
    circle at center,
    var(--olive-green),
    transparent 70%
  );
  opacity: 0.12;
  border-radius: 50% 30% 40% 50%;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

/* Анимации */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(2deg);
  }
  50% {
    transform: translateY(0) translateX(20px) rotate(0deg);
  }
  75% {
    transform: translateY(20px) translateX(10px) rotate(-2deg);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-50%) scale(1.05);
    opacity: 0.15;
  }
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Обеспечиваем, что контент находится поверх декоративных элементов */
.section-wrapper > * {
  position: relative;
  z-index: 1;
}

.grid-layout-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.grid-layout-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

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

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

/* Header Styles */
.site-header {
  background: var(--pure-white);
  box-shadow: var(--shadow-soft);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header-content {
  padding: 1rem 0;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--coffee-brown);
  text-decoration: none;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  width: 40px;
  height: 40px;
  transition: var(--transition-smooth);
}

.brand-logo:hover {
  color: var(--olive-green);
}

.brand-logo:hover img {
  transform: scale(1.1);
}

.navigation-menu {
  list-style: none;
  text-align: center;
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--olive-green);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--olive-green);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--olive-green);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--coffee-brown);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url(../images/cozymatter.jpg) no-repeat center center/cover;
  padding: 8rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content-wrapper {
  text-align: center;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Button Styles */
.btn-primary {
  background: var(--olive-green);
  color: var(--pure-white);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--coffee-brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--olive-green);
  padding: 1rem 2.5rem;
  border: 2px solid var(--olive-green);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: var(--olive-green);
  color: var(--pure-white);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Section - White Text (Home Page Only) */
.home-page .hero-section .primary-heading {
  color: var(--pure-white);
}

.home-page .hero-section .hero-subtitle {
  color: var(--pure-white);
  opacity: 0.95;
}

.home-page .hero-section .hero-description {
  color: var(--pure-white);
  opacity: 0.9;
}

/* Card Components */
.feature-card {
  background: var(--pure-white);
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  text-align: center;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--sage-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--pure-white);
}

img.card-icon {
  background: transparent;
  object-fit: contain;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--coffee-brown);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer Styles */
.site-footer {
  background: var(--coffee-brown);
  color: var(--pure-white);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--cream-beige);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-section a:hover {
  color: var(--cream-beige);
}

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

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

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

/* Form Styles */
.contact-form {
  background: var(--pure-white);
  padding: 3rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  max-width: 600px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--coffee-brown);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--sage-green);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: var(--transition-smooth);
  background: var(--cream-beige);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--olive-green);
  background: var(--pure-white);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: none;
}

.form-input.error,
.form-textarea.error {
  border-color: #e74c3c;
}

/* Cookie Popup */
.cookie-notice {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background: var(--pure-white);
  color: var(--text-primary);
  padding: 1.5rem;
  z-index: 2000;
  border: 3px solid var(--olive-green);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  transform: translateX(150%);
  transition: var(--transition-smooth);
}

.cookie-notice.show {
  transform: translateX(0);
}

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

.cookie-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-text a {
  color: var(--olive-green);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-cookie {
  padding: 0.65rem 1.25rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-accept {
  background: var(--olive-green);
  color: var(--pure-white);
}

.btn-accept:hover {
  background: var(--coffee-brown);
}

.btn-decline {
  background: transparent;
  color: var(--coffee-brown);
  border: 2px solid var(--coffee-brown);
}

.btn-decline:hover {
  background: var(--cream-beige);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    padding: 0 1rem;
  }

  .navigation-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pure-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
  }

  .navigation-menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-section {
    padding: 6rem 0 3rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .grid-layout-two {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .primary-heading {
    font-size: 2.5rem;
  }

  .secondary-heading {
    font-size: 2rem;
  }

  .feature-card {
    padding: 2rem 1.5rem;
  }

  .section-wrapper {
    padding: 2rem 0;
  }
}

/* Animations - Removed parallax effects */

/* Loading Animation */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--pure-white);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 24px rgba(107, 88, 68, 0.15);
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(107, 88, 68, 0.9), transparent);
  color: var(--pure-white);
  padding: 2rem;
  text-align: center;
}

.carousel-caption h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.carousel-caption p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(246, 239, 231, 0.95);
  border: none;
  color: var(--coffee-brown);
  font-size: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  z-index: 10;
}

.carousel-button:hover {
  background: var(--cream-beige);
  transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
  left: 1rem;
}

.carousel-button.next {
  right: 1rem;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sage-green);
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  opacity: 0.5;
}

.carousel-indicator.active {
  opacity: 1;
  transform: scale(1.3);
  background: var(--olive-green);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-box {
  background: var(--pure-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 4px 12px rgba(107, 88, 68, 0.1);
  transition: all var(--transition-speed);
}

.stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(107, 88, 68, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--olive-green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--coffee-brown);
  font-weight: 500;
}

/* Info Boxes */
.info-box {
  background: var(--cream-beige);
  border-left: 4px solid var(--olive-green);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.info-box h4 {
  color: var(--coffee-brown);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-box p {
  color: var(--coffee-brown);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(107, 88, 68, 0.1);
  transition: all var(--transition-speed);
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(107, 88, 68, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(107, 88, 68, 0.95), transparent);
  color: var(--pure-white);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform var(--transition-speed);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gallery-overlay p {
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Icon List */
.icon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--pure-white);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(107, 88, 68, 0.08);
  transition: all var(--transition-speed);
}

.icon-list-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 16px rgba(107, 88, 68, 0.12);
}

.icon-list-item img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.icon-list-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--coffee-brown);
  margin-bottom: 0.5rem;
}

.icon-list-content p {
  font-size: 0.9rem;
  color: var(--coffee-brown);
  line-height: 1.5;
  margin: 0;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 60px;
  height: 60px;
  background: var(--olive-green);
  color: var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(167, 178, 139, 0.3);
}

.process-step h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--coffee-brown);
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.95rem;
  color: var(--coffee-brown);
  line-height: 1.6;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, var(--olive-green), var(--sage-green));
  color: var(--pure-white);
  padding: 3rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 3rem 0;
  box-shadow: 0 8px 24px rgba(107, 88, 68, 0.15);
}

.highlight-box h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--pure-white);
}

.highlight-box p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

/* Checkmark Lists */
ul.checkmark-list {
  list-style: none;
  padding-left: 0;
}

ul.checkmark-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

ul.checkmark-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--olive-green);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Room Image Styles */
.room-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(107, 88, 68, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-slide img {
    height: 300px;
  }

  .carousel-button {
    padding: 0.75rem 1rem;
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .gallery-item img {
    height: 250px;
  }
}

/* Single Featured Card - для одной большой карточки вместо трёх */
.grid-layout-single {
  max-width: 900px;
  margin: 0 auto;
}

.featured-card-large {
  background: var(--pure-white);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.room-sections {
  display: grid;
  gap: 3rem;
  margin-top: 2rem;
}

.room-section {
  padding: 2rem;
  border-left: 4px solid var(--olive-green);
  background: linear-gradient(
    to right,
    var(--cream-beige) 0%,
    var(--pure-white) 100%
  );
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  transition: all 0.3s ease;
}

.room-section:hover {
  border-left-color: var(--sage-green);
  background: linear-gradient(
    to right,
    rgba(167, 178, 139, 0.1) 0%,
    var(--pure-white) 100%
  );
}

.room-section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.room-section-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.room-section-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-section-title {
  font-size: 1.5rem;
  color: var(--coffee-brown);
  margin: 0;
  font-weight: 600;
}

@media (max-width: 768px) {
  .featured-card-large {
    padding: 2rem 1.5rem;
  }

  .room-section {
    padding: 1.5rem;
  }

  .room-section-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}

/* Policy Pages Styling - для страниц политики */
.policy-container {
  max-width: 900px;
  margin: 0 auto;
}

.policy-intro {
  background: linear-gradient(
    135deg,
    var(--cream-beige) 0%,
    var(--pure-white) 100%
  );
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border-left: 5px solid var(--olive-green);
  margin-bottom: 3rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.policy-intro .content-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.policy-section {
  background: var(--pure-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.policy-section:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.policy-section-number {
  display: inline-block;
  background: var(--olive-green);
  color: var(--pure-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.policy-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.policy-section h2 {
  margin: 0;
  color: var(--coffee-brown);
  flex: 1;
}

.policy-subsection {
  background: var(--cream-beige);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border-left: 3px solid var(--sage-green);
}

.policy-subsection h3 {
  color: var(--coffee-brown);
  margin-top: 0;
  margin-bottom: 1rem;
}

.info-box {
  background: linear-gradient(
    to right,
    rgba(167, 178, 139, 0.1) 0%,
    var(--pure-white) 100%
  );
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--olive-green);
  margin: 2rem 0;
}

.info-box h4 {
  color: var(--coffee-brown);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.warning-box {
  background: linear-gradient(
    to right,
    rgba(107, 88, 68, 0.1) 0%,
    var(--pure-white) 100%
  );
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--coffee-brown);
  margin: 2rem 0;
}

.contact-box {
  background: var(--sage-green);
  color: var(--pure-white);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.contact-box p {
  color: var(--pure-white);
  margin-bottom: 0.75rem;
}

.contact-box strong {
  font-weight: 600;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.icon-card {
  background: var(--pure-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.icon-card:hover {
  border-color: var(--olive-green);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.icon-card h4 {
  color: var(--coffee-brown);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.icon-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.policy-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.policy-list li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.policy-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--olive-green);
  font-weight: 700;
  font-size: 1.2rem;
}

.timeline {
  position: relative;
  padding-left: 3rem;
  margin: 2rem 0;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--olive-green) 0%,
    var(--sage-green) 100%
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 0.3rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--olive-green);
  border: 3px solid var(--pure-white);
  box-shadow: 0 0 0 3px var(--cream-beige);
}

.timeline-item h4 {
  color: var(--coffee-brown);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .policy-section {
    padding: 1.5rem;
  }

  .policy-section-number {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 1rem;
  }

  .icon-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 2rem;
  }
}

.hidden {
  display: none;
}
.visible {
  display: block;
}

/* Contact Page Styles */
.contact-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--pure-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border-top: 4px solid var(--olive-green);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--olive-green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-method-card {
  background: linear-gradient(
    135deg,
    var(--cream-beige) 0%,
    var(--pure-white) 100%
  );
  border-left: 5px solid var(--olive-green);
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-method-card:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: var(--olive-green);
  opacity: 0.05;
  border-radius: 0 0 0 100%;
  transition: all 0.3s ease;
}

.contact-method-card:hover {
  transform: translateX(5px);
  box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-method-card:hover:before {
  width: 150px;
  height: 150px;
}

.contact-method-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-method-title {
  font-size: 1.3rem;
  color: var(--coffee-brown);
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact-method-link {
  color: var(--olive-green);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-method-link:hover {
  color: var(--coffee-brown);
  transform: translateX(5px);
}

.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--pure-white);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  background: var(--pure-white);
  border: none;
  padding: 1.5rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--coffee-brown);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  font-family: inherit;
}

.faq-question:hover {
  background: var(--cream-beige);
  color: var(--olive-green);
}

.faq-question .icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  color: var(--olive-green);
}

.faq-item.active .faq-question .icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  background: var(--cream-beige);
  color: var(--text-color);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.5rem;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-link-card {
  background: var(--pure-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
  border-bottom: 3px solid transparent;
}

.social-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-bottom-color: var(--olive-green);
}

.social-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.social-name {
  font-weight: 600;
  color: var(--coffee-brown);
}

.process-timeline {
  background: linear-gradient(
    135deg,
    var(--cream-beige) 0%,
    var(--pure-white) 100%
  );
  padding: 3rem;
  border-radius: var(--border-radius-large);
  margin: 3rem 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 60px;
  height: 60px;
  background: var(--olive-green);
  color: var(--pure-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(167, 178, 139, 0.4);
  transition: all 0.3s ease;
}

.process-step:hover .process-step-number {
  transform: scale(1.1) rotate(5deg);
  background: var(--coffee-brown);
}

.process-step-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--coffee-brown);
  margin-bottom: 0.5rem;
}

.process-step-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

.highlight-box {
  background: linear-gradient(
    135deg,
    var(--olive-green) 0%,
    var(--sage-green) 100%
  );
  color: var(--pure-white);
  padding: 2rem;
  border-radius: var(--border-radius-large);
  text-align: center;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.highlight-box:before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.highlight-box h3 {
  color: var(--pure-white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.highlight-box p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.highlight-box img {
  position: relative;
  z-index: 1;
}

.highlight-box .btn-group {
  position: relative;
  z-index: 1;
}

/* Highlight Box Structured Blocks */
.highlight-header {
  position: relative;
  z-index: 1;
  margin-bottom: 2.5rem;
}

.highlight-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.highlight-title {
  color: var(--pure-white);
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  font-weight: 700;
  line-height: 1.3;
}

.highlight-subtitle {
  font-size: 1.2rem;
  margin-bottom: 0;
  opacity: 0.95;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.highlight-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
  position: relative;
  z-index: 1;
}

.highlight-feature-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.highlight-feature-box:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.highlight-feature-box .feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.highlight-feature-box h4 {
  color: var(--pure-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.highlight-feature-box p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.highlight-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}

.highlight-stat {
  text-align: center;
}

.highlight-stat .stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--pure-white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.highlight-stat .stat-label {
  font-size: 0.95rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlight-cta {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
}

.btn-highlight-primary {
  background: var(--pure-white) !important;
  color: var(--olive-green) !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-highlight-primary:hover {
  background: var(--cream-beige) !important;
  color: var(--coffee-brown) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-highlight-secondary {
  border-color: var(--pure-white) !important;
  color: var(--pure-white) !important;
  background: transparent !important;
}

.btn-highlight-secondary:hover {
  background: var(--pure-white) !important;
  color: var(--olive-green) !important;
  border-color: var(--pure-white) !important;
}

@media (max-width: 768px) {
  .highlight-title {
    font-size: 1.6rem;
  }

  .highlight-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .highlight-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .highlight-stat .stat-value {
    font-size: 2rem;
  }
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.advantage-item {
  background: var(--pure-white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--olive-green);
}

.advantage-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-left-color: var(--coffee-brown);
}

.advantage-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.advantage-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--coffee-brown);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .contact-hero-stats {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .social-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    padding: 2rem 1.5rem;
  }
}
