/* ===== CSS VARIABLES ===== */
:root {
  --primary: #1a2744;
  --primary-light: #243354;
  --accent: #ff6b35;
  --accent-hover: #e85a28;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666666;
  --text-color: #333333;
  --text-light: #999999;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --max-width: 1200px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2.2rem;
}
h3 {
  font-size: 1.4rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 5px 0;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--white);
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.header-phone {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #0d1525 100%);
  overflow: hidden;
  margin-top: 70px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 39, 68, 0.85) 0%,
    rgba(13, 21, 37, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 35px;
  line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

.btn-secondary {
  background: var(--primary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 39, 68, 0.4);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--light-gray);
}

.section-dark {
  background: var(--primary);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  margin-bottom: 15px;
  color: var(--primary);
}

.section-dark .section-title h2 {
  color: var(--white);
}

.section-title p {
  color: var(--dark-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-card-body {
  padding: 30px;
}

.service-card-body h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

.service-card-body p {
  color: var(--dark-gray);
  font-size: 0.95rem;
}

/* ===== WHY US / FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-item {
  text-align: center;
  padding: 40px 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8c5a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  color: var(--white);
}

.feature-item h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.15rem;
}

.feature-item p {
  color: var(--dark-gray);
  font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0d1525 100%);
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 35px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CONTACT FORM ===== */
.contact-section {
  padding: 100px 0;
  background: var(--light-gray);
}

.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-wrapper h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

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

.form-group .error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

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

.form-submit {
  text-align: center;
  margin-top: 25px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px;
  color: #27ae60;
  font-size: 1.1rem;
  font-weight: 600;
}

.form-success svg {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

/* ===== JOINT HEALTH PAGE ===== */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, #0d1525 100%);
  margin-top: 70px;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(26, 39, 68, 0.88) 0%,
    rgba(13, 21, 37, 0.78) 100%
  );
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 20px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--accent);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Content sections */
.content-section {
  padding: 80px 0;
}

.content-section:nth-child(even) {
  background: var(--light-gray);
}

.content-section h2 {
  color: var(--primary);
  margin-bottom: 25px;
}

.content-section h3 {
  color: var(--primary);
  margin-bottom: 12px;
}

.content-section p {
  margin-bottom: 15px;
  color: var(--dark-gray);
}

/* Benefits list */
.benefits-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.benefit-item {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.benefit-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.benefit-item p {
  font-size: 0.95rem;
  color: var(--dark-gray);
}

/* Exercise cards */
.exercises-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.exercise-card {
  background: var(--white);
  padding: 35px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.exercise-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.exercise-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.exercise-card h3 {
  margin-bottom: 10px;
}

.exercise-card p {
  font-size: 0.95rem;
}

/* Facts grid */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.fact-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.fact-card:hover {
  transform: translateY(-3px);
}

.fact-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 10px;
}

.fact-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.fact-card p {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* ===== POLICY PAGES ===== */
.policy-page {
  margin-top: 70px;
  padding: 60px 0;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h1 {
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 2.2rem;
}

.policy-content h2 {
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.policy-content h3 {
  color: var(--primary);
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.policy-content p {
  margin-bottom: 15px;
  color: var(--dark-gray);
  line-height: 1.8;
}

.policy-content ul {
  margin-bottom: 15px;
  padding-left: 20px;
  list-style: disc;
}

.policy-content ul li {
  margin-bottom: 8px;
  color: var(--dark-gray);
  line-height: 1.7;
}

.policy-content a {
  color: var(--accent);
}

.policy-content a:hover {
  text-decoration: underline;
}

.policy-updated {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* ===== FOOTER ===== */
.footer {
  background: #0d1525;
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-about h3,
.footer-nav h4,
.footer-contact h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-about p {
  line-height: 1.8;
  font-size: 0.9rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-contact a {
  color: var(--accent);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

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

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 25px;
  display: none;
  animation: slideUp 0.5s ease;
}

.cookie-banner.show {
  display: block;
}

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

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-text h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.cookie-text p {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

.cookie-text a {
  color: var(--accent);
}

.cookie-text a:hover {
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-buttons .btn {
  padding: 12px 28px;
  font-size: 0.9rem;
  border-radius: 8px;
  min-width: 140px;
}

.btn-cookie-accept {
  background: var(--accent);
  color: var(--white);
}

.btn-cookie-accept:hover {
  background: var(--accent-hover);
}

.btn-cookie-reject {
  background: var(--primary);
  color: var(--white);
}

.btn-cookie-reject:hover {
  background: var(--primary-light);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  h1 {
    font-size: 2.4rem;
  }
  h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header .container {
    height: 60px;
  }

  .hero {
    margin-top: 60px;
  }

  .page-hero {
    margin-top: 60px;
    padding: 120px 0 60px;
  }

  .policy-page {
    margin-top: 60px;
  }

  .hamburger {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 999;
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .header-phone {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

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

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

  .section {
    padding: 70px 0;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .benefits-list {
    grid-template-columns: 1fr;
  }

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

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

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

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

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 14px 30px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cookie-buttons .btn {
    width: 100%;
  }
}
