/* =====================
   Base Variables & Reset
   ===================== */
:root {
  /* Цветовая схема "Аналоговая" */
  --primary-color: #ff6b00;
  --primary-light: #ff8c33;
  --primary-dark: #e05600;
  
  --secondary-color: #007aff;
  --secondary-light: #3395ff;
  --secondary-dark: #0062cc;
  
  --accent-color: #ffb700;
  --accent-light: #ffc333;
  --accent-dark: #e09e00;
  
  /* Нейтральные цвета */
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #767676;
  --text-white: #ffffff;
  
  --bg-dark: #151515;
  --bg-medium: #f4f4f4;
  --bg-light: #ffffff;
  
  /* Отступы */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  
  /* Радиусы */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Граница */
  --border-width: 2px;
  --border-color: #e0e0e0;
}

/* Общий сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Black', sans-serif;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  text-transform: uppercase;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

ul, ol {
  list-style-position: inside;
}

/* =====================
   Utility Classes
   ===================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  position: relative;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: var(--space-sm) auto;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   Buttons
   ===================== */
.btn, 
button,
input[type='submit'] {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.btn:hover, 
button:hover,
input[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn:active, 
button:active,
input[type='submit']:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

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

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

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--text-white);
}

.btn-outline {
  background-color: transparent;
  border: var(--border-width) solid var(--primary-color);
  color: var(--primary-color);
}

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

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

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo h1 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text-dark);
}

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

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  padding: 0.5rem;
  position: relative;
}

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

.main-nav a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

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

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all var(--transition-fast);
}

/* =====================
   Hero Section
   ===================== */
.hero {
  position: relative;
  padding: var(--space-xl) 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-white);
  margin-top: 80px;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
}

.hero .container {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-white);
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
  color: var(--text-white);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
}

/* =====================
   Features Section
   ===================== */
.features {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

.feature-card .card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.feature-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.feature-card:hover .card-image img {
  transform: scale(1.05);
}

.feature-card .card-content {
  padding: var(--space-md);
  text-align: center;
}

.feature-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-bottom: var(--space-xs);
}

.feature-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

/* =====================
   Media Section
   ===================== */
.media-section {
  padding: var(--space-xl) 0;
  background-color: var(--bg-medium);
}

.media-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.media-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.media-item:nth-child(even) {
  direction: rtl;
}

.media-item:nth-child(even) .media-content {
  direction: ltr;
}

.image-container {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.media-item:hover .image-container img {
  transform: scale(1.05);
}

.media-content h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  font-size: 2rem;
}

.media-content p {
  color: var(--text-medium);
  margin-bottom: var(--space-md);
}

/* =====================
   Behind the Scenes
   ===================== */
.behind-scenes {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50px / 2);
  height: 100%;
  width: 4px;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: var(--space-lg);
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 4px solid var(--bg-light);
  z-index: 10;
}

.timeline-content {
  background-color: var(--bg-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -10px;
  width: 20px;
  height: 20px;
  background-color: var(--bg-light);
  transform: rotate(45deg);
  box-shadow: -5px 5px 5px rgba(0,0,0,0.05);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-xs);
}

/* =====================
   External Resources
   ===================== */
.external-resources {
  padding: var(--space-xl) 0;
  background-color: var(--bg-medium);
}

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

.resource-card {
  background-color: var(--bg-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.resource-card h3 {
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: var(--space-xs);
}

.resource-card p {
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.resource-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.resource-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* =====================
   Testimonials
   ===================== */
.testimonials {
  padding: var(--space-xl) 0;
  background-color: var(--bg-light);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--space-md);
  border: 4px solid var(--primary-color);
}

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

.rating {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
  line-height: 1.7;
}

.client-name {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
}

.client-position {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.prev-btn, .next-btn {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

/* =====================
   Contact Section
   ===================== */
.contact {
  padding: var(--space-xl) 0;
  background-color: var(--bg-medium);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.info-item h3 {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--primary-color);
  margin-bottom: 0;
}

.map-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-md);
}

.map-container img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-form {
  background-color: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form h3 {
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: 'Roboto', sans-serif;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form button {
  width: 100%;
  margin-top: var(--space-sm);
}

/* =====================
   Footer
   ===================== */
.main-footer {
  padding: var(--space-xl) 0 var(--space-md);
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-info h3,
.footer-links h3,
.footer-social h3,
.footer-newsletter h3 {
  color: var(--text-white);
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-info h3::after,
.footer-links h3::after,
.footer-social h3::after,
.footer-newsletter h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.footer-info p {
  margin-bottom: var(--space-sm);
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--text-white);
  transition: color var(--transition-fast);
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-color);
  transition: width var(--transition-medium);
}

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

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

.footer-social ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-social a {
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-newsletter p {
  margin-bottom: var(--space-sm);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.newsletter-form input {
  padding: var(--space-sm);
  border: none;
  border-radius: var(--radius-sm);
}

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

/* =====================
   Success Page
   ===================== */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.success-content {
  max-width: 600px;
  background-color: var(--bg-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

/* =====================
   Privacy & Terms Pages
   ===================== */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-xl);
}

.privacy-content,
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-lg);
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* =====================
   Responsive Styles
   ===================== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.8rem;
  }
  
  .media-item {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .media-item:nth-child(even) {
    direction: ltr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .feature-card {
    margin-bottom: var(--space-md);
  }
  
  .timeline::before {
    left: 0;
  }
  
  .timeline-item {
    padding-left: 30px;
  }
  
  .timeline-marker {
    width: 30px;
    height: 30px;
  }
  
  .timeline-content::before {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .testimonial-item {
    padding: var(--space-md);
  }
}

/* Микроанимации для необрутализма */
@keyframes buttonPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn-primary:hover {
  animation: buttonPulse 1s infinite;
}

@keyframes iconWiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.info-item h3:hover i {
  animation: iconWiggle 1s ease;
}

@keyframes cardHover {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.feature-card:hover {
  animation: cardHover 2s infinite;
}

/* Классы иконок */
.icon-location, .icon-phone, .icon-clock {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
}
