/* ERENTAU Landing Page Styles */

/* CSS Variables */
:root {
  --navy: #0f233a;
  --red: #d01016;
  --light: #f6f8fb;
  --ink: #1b2b40;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Breakpoints */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;

  /* Transitions */
  --transition: all 0.2s ease-in-out;
  --transition-fast: all 0.15s ease-in-out;
  --transition-slow: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

/* Typography */
.section__title {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: var(--space-12);
  line-height: 1.2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-md);
  text-align: center;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  user-select: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

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

.btn--primary:hover {
  background-color: #b8000e;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow);
}

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

.btn--secondary:hover {
  background-color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(15, 35, 58, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  min-height: 80px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo {
  height: 40px;
  width: auto;
}

.logo__badge {
  font-size: var(--font-size-xs);
  color: var(--white);
  opacity: 0.7;
}

.header__nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__link {
  color: var(--white);
  font-weight: 500;
  position: relative;
  padding: var(--space-2) 0;
}

.nav__link:hover {
  color: var(--red);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--red);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.header__cta {
  margin-left: var(--space-8);
}

/* Burger Menu */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2);
  z-index: 1001;
}

.burger span {
  width: 24px;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
  transform-origin: center;
}

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

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

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 80;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 35, 58, 0.8) 0%,
    rgba(27, 43, 64, 0.6) 100%
  );
  z-index: -1;
}

.hero__content {
  max-width: 800px;
  padding: var(--space-8) 0;
}

.hero__title {
  font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-6xl));
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(var(--font-size-lg), 3vw, var(--font-size-xl));
  margin-bottom: var(--space-10);
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

/* Services Section */
.services {
  padding: var(--space-24) 0;
  background-color: var(--light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.service-card {
  background-color: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  background-color: var(--light);
  border-radius: var(--radius-xl);
  color: var(--red);
}

.service-card__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-4);
}

.service-card__text {
  color: var(--gray-600);
  line-height: 1.6;
}

/* About Section */
.about {
  padding: var(--space-24) 0;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
}

.about__content {
  max-width: 800px;
  color: var(--white);
  margin: 0 auto;
}

.about__text {
  font-size: var(--font-size-lg);
  line-height: 1.7;
}

/* Why Us Section */
.why-us {
  padding: var(--space-24) 0;
  background-color: var(--light);
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background-color: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.feature__text {
  font-weight: 500;
  color: var(--navy);
}

/* Reviews Section */
.reviews {
  padding: var(--space-24) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  position: relative;
  overflow: hidden;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  background-color: var(--white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, #ff4b4b 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
}

.review-card:hover::before {
  opacity: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.review-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--light);
}

.review-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.review-card__rating {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.review-card__info strong {
  font-weight: 600;
  color: var(--navy);
  font-size: var(--font-size-lg);
}

.review-card__info span {
  color: var(--gray-500);
  font-size: var(--font-size-sm);
}

.review-card__text {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
}

.star {
  color: #ffd700;
  width: 18px;
  height: 18px;
}

/* CTA Section */
.cta {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  color: var(--white);
  text-align: center;
}

.cta__title {
  font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-4xl));
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cta__text {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
  opacity: 0.9;
}

/* Contacts Section */
.contacts {
  padding: var(--space-24) 0;
  background-color: var(--light);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-item h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.contact-item a,
.contact-item p {
  color: var(--gray-600);
  font-size: var(--font-size-base);
}

.contact-item a:hover {
  color: var(--red);
}

.contacts__messengers {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.messenger-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: var(--white);
  color: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  font-weight: 500;
  transition: var(--transition);
}

.messenger-btn--whatsapp:hover {
  background-color: #25d366;
  color: var(--white);
  transform: translateY(-2px);
}

.messenger-btn--telegram:hover {
  background-color: #0088cc;
  color: var(--white);
  transform: translateY(-2px);
}

.contacts__map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contacts__map iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Lead Form Section */
.lead-form {
  padding: var(--space-24) 0;
}

.lead-form__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.lead-form__subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-bottom: var(--space-12);
}

.form {
  text-align: left;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.form__group {
  display: flex;
  flex-direction: column;
}

.form__label {
  font-weight: 500;
  color: var(--navy);
  margin-bottom: var(--space-2);
}

.form__input,
.form__select,
.form__textarea {
  padding: var(--space-4);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: var(--transition);
  background-color: var(--white);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(208, 16, 22, 0.1);
}

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

.form__submit {
  width: 100%;
  margin-top: var(--space-8);
}

.form__success {
  text-align: center;
  padding: var(--space-8);
  background-color: var(--light);
  border-radius: var(--radius-lg);
  border-left: 4px solid #28a745;
}

.form__success h3 {
  color: #28a745;
  margin-bottom: var(--space-2);
}

.form__success p {
  color: var(--gray-600);
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-8);
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.footer__text {
  color: var(--gray-300);
  font-size: var(--font-size-sm);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: center;
}

.footer__link {
  color: var(--gray-300);
  font-size: var(--font-size-sm);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--red);
}

.footer__social {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--red);
  transform: translateY(-2px);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
}

/* Mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-4);
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  z-index: 999;
}

.mobile-cta .btn {
  width: 100%;
}

/* Responsive Design */

/* Large screens */
@media (max-width: 1200px) {
  .container {
    max-width: 992px;
  }

  .reviews__slider {
    padding: 0 70px;
  }

  .reviews__arrow--prev {
    left: 10px;
  }

  .reviews__arrow--next {
    right: 10px;
  }
}

/* Medium screens */
@media (max-width: 992px) {
  .container {
    max-width: 768px;
  }

  .reviews__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-4);
  }

  .header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--navy);
    flex-direction: column;
    justify-content: center;
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 999;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: var(--space-8);
    text-align: center;
  }

  .nav__link {
    font-size: var(--font-size-xl);
    padding: var(--space-4);
  }

  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-6);
  }

  .footer__social {
    justify-content: center;
  }

  .reviews__slider {
    padding: 0 60px;
  }

  .reviews__arrow {
    width: 45px;
    height: 45px;
  }

  .reviews__arrow--prev {
    left: 5px;
  }

  .reviews__arrow--next {
    right: 5px;
  }

  .mobile-cta {
    display: block;
  }

  /* Add padding to body to account for mobile CTA */
  body {
    padding-bottom: 80px;
  }
}

/* Small screens */
@media (max-width: 768px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
  }

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

  .why-us__grid {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .contacts__messengers {
    flex-direction: column;
  }

  .messenger-btn {
    justify-content: center;
  }

  /* Скрываем кнопки слайдера на мобильных */
  .reviews__slider {
    padding: 0;
  }

  .reviews__arrow {
    display: none;
  }
}

/* Extra small screens */
@media (max-width: 576px) {
  :root {
    --space-24: 4rem;
  }

  .reviews__grid {
    gap: var(--space-4);
  }

  .review-card {
    padding: var(--space-6);
  }

  .review-card__avatar {
    width: 48px;
    height: 48px;
  }

  .review-card__info strong {
    font-size: var(--font-size-base);
  }

  .container {
    padding: 0 var(--space-4);
  }

  .header__content {
    padding: var(--space-3) 0;
    min-height: 70px;
  }

  .logo {
    height: 32px;
  }

  .section__title {
    margin-bottom: var(--space-8);
  }

  .service-card {
    padding: var(--space-6);
  }

  .service-card__icon {
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-4);
  }

  .feature {
    padding: var(--space-4);
  }

  .review-card {
    padding: var(--space-6);
  }

  .review-card__avatar {
    width: 40px;
    height: 40px;
  }

  .star {
    width: 16px;
    height: 16px;
  }

  .review-card__author {
    gap: var(--space-3);
  }

  .form__input,
  .form__select,
  .form__textarea {
    padding: var(--space-3);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 2px 4px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 8px 0 rgb(0 0 0 / 0.3);
    --shadow-lg: 0 8px 16px 0 rgb(0 0 0 / 0.3);
  }
}

/* Print styles */
@media print {
  .header,
  .mobile-cta,
  .reviews__arrow,
  .burger {
    display: none !important;
  }

  .hero {
    min-height: auto;
    page-break-after: always;
  }

  .hero__bg {
    display: none;
  }

  .hero__content {
    color: var(--navy);
  }

  * {
    box-shadow: none !important;
  }
}
