/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0a2540;
  --primary-hover: #1e3a8a;
  --secondary: #3b82f6;
  --accent: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f3f4f6;
  --bg-dark: #111827;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

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

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  max-height: 65px;
  width: auto;
  object-fit: contain;
  
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

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

.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-switch a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: 4px;
}

.lang-switch a.active {
  background-color: var(--primary);
  color: var(--white);
}

.lang-switch a:not(.active):hover {
  color: var(--primary);
  background-color: rgba(10, 37, 64, 0.05);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.9) 0%, rgba(30, 58, 138, 0.8) 100%), url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&q=80') center/cover;
  color: var(--white);
  padding: 140px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeUp 1s ease backwards;
}

.hero p {
  font-size: 20px;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
  animation: fadeUp 1s ease 0.2s backwards;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Directions Section - ANIMATED GRID */
.directions {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 60px 0;
  color: var(--primary);
  position: relative;
  display: block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.direction-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.direction-card:hover .card-img {
  transform: scale(1.08);
}

/* Overlay gradient for images */
.card-img-wrapper {
  position: relative;
  overflow: hidden;
}

.card-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0;
  transition: var(--transition);
}

.direction-card:hover .card-img-wrapper::after {
  opacity: 1;
}

.card-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.card-text {
  color: var(--text-light);
  margin-bottom: 24px;
  flex-grow: 1;
}

.direction-card .btn-primary {
  text-align: center;
  display: block;
  width: 100%;
}

/* About Section */
.about {
  padding: 100px 0;
  background-color: var(--white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-img {
  width: 50%;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  transition: var(--transition);
}

.about-img:hover {
  transform: scale(1.02);
}

.about-text {
  width: 50%;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 24px;
  color: var(--primary);
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 16px;
}

/* Reviews Section */
.reviews {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.review-card {
  min-width: 0;
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: space-between;
}

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

.review-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 20px;
}

.review-card video {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  border: 2px solid var(--secondary);
  margin-bottom: 20px;
  display: block;
}

.review-card .btn {
  width: 100%;
}

.stars {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 18px;
}

.review-text {
  color: var(--text-dark);
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.8;
}

.reviewer-name {
  color: var(--primary);
  font-weight: 600;
  text-align: right;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: var(--primary);
  color: var(--white);
}

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

.contact .section-title::after {
  background-color: var(--white);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-control {
  width: 100%;
  padding: 14px 18px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

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

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-logo {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--white);
}

.footer-logo-img {
  max-height: 84px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer p {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  max-width: 600px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .cards-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-content {
    flex-direction: column;
  }
  .about-img, .about-text {
    width: 100%;
  }
  .hero {
    padding: 100px 0;
  }
  .hero h1 {
    font-size: 40px;
  }
  .directions, .about, .reviews, .contact {
    padding: 70px 0;
  }
  .section-title {
    font-size: 30px;
    margin-bottom: 40px;
  }
}

.mobile-only {
  display: none;
}

.lang-dropdown {
  display: contents;
}

/* ===== MOBILE (≤768px) ===== */
@media (max-width: 768px) {

  /* --- Header --- */
  .header .container {
    padding: 0 12px;
    height: 64px;
  }
  .header-logo {
    max-height: 46px;
  }
  .nav-links {
    display: none;
  }
  .contact-header {
    gap: 6px !important;
  }
  .phone-link {
    font-size: 0;
  }
  .phone-link i {
    font-size: 18px;
  }
  .contact-header a i {
    font-size: 16px !important;
  }

  /* --- Lang Switch --- */
  .lang-switch {
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
  }
  .lang-switch a {
    width: 100%;
    text-align: center;
  }
  .mobile-only {
    display: inline-block;
    font-size: 10px;
    margin-left: 4px;
    vertical-align: middle;
  }
  .lang-switch .lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 6px;
    padding: 5px;
    flex-direction: column;
    min-width: 60px;
    z-index: 1001;
  }
  .lang-switch.open .lang-dropdown {
    display: flex;
  }
  .lang-switch.open .lang-dropdown a {
    display: block;
    margin: 3px 0;
  }

  /* --- Hero --- */
  .hero {
    padding: 100px 0 60px;
    margin-top: 64px;
  }
  .hero h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 14px;
  }
  .hero p {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .hero .btn {
    font-size: 15px;
    padding: 12px 24px;
  }

  /* --- Section Titles --- */
  .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  /* --- Sections spacing --- */
  .directions, .about, .reviews, .contact {
    padding: 50px 0;
  }

  /* --- Cards Grid (directions) --- */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card-img {
    height: 200px;
  }
  .card-content {
    padding: 20px;
  }
  .card-title {
    font-size: 20px;
  }

  /* --- About --- */
  .about-content {
    flex-direction: column;
    gap: 30px;
  }
  .about-img, .about-text {
    width: 100%;
  }
  .about-text h2 {
    font-size: 24px;
  }

  /* --- Prices section (on main page) --- */
  .prices {
    padding: 50px 0 !important;
    text-align: center;
  }
  .prices .section-title {
    text-align: center;
  }
  .prices p {
    font-size: 16px !important;
    padding: 0 10px;
  }
  .prices .btn {
    width: 90%;
    max-width: 320px;
    font-size: 16px !important;
    padding: 14px 20px !important;
  }

  /* --- Reviews --- */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .review-card {
    padding: 20px;
  }
  .review-card h3 {
    font-size: 17px;
  }

  /* --- Contact / Form --- */
  .contact {
    padding: 50px 0;
  }
  .contact-form {
    padding: 24px 16px;
    border-radius: 14px;
  }
  .form-control {
    font-size: 15px;
    padding: 12px 14px;
  }
  .contact .btn-primary {
    font-size: 16px;
    padding: 14px;
  }

  /* --- Footer --- */
  .footer {
    padding: 40px 0 20px;
  }
  .footer-logo-img {
    max-height: 60px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
  }
  .footer p {
    font-size: 12px;
  }

  /* --- Prices page content --- */
  .prices-page-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Floating Communication Widget */
.floating-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.widget-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.widget-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.widget-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff !important;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.widget-item:hover {
  transform: scale(1.1);
}

.item-telegram {
  background-color: #0088cc;
}

.item-whatsapp {
  background-color: #25D366;
}

.item-viber {
  background-color: #7360f2;
}

.item-phone {
  background-color: #20b2aa; /* Turquoise */
}

.widget-main-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background-color: var(--secondary); /* Голубого цвета, from logo context */
  color: #fff;
  font-size: 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s;
  animation: pulseWidget 2s infinite;
}

.widget-main-btn:hover {
  transform: scale(1.05);
}

@keyframes pulseWidget {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

@media (max-width: 768px) {
  .floating-widget {
    bottom: 20px;
    right: 20px;
  }
  .widget-main-btn {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
  .widget-item {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}
