/* ===============================
   ElcoComp - Modern Repair Service
   Clean, minimal design
   =============================== */

/* CSS Variables */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #0f172a;
  --accent: #3b82f6;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
h3 {
  font-size: 1.25rem;
}

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

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

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

address {
  font-style: normal;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.logo:hover {
  color: var(--secondary);
}

.logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

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

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

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--secondary);
}

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

.phone-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.phone-icon svg {
  width: 100%;
  height: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--secondary);
  transition: all var(--transition);
}

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

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

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

/* ===============================
   Hero Section
   =============================== */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

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

.hero h1 {
  margin-bottom: 1.5rem;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--success);
}

.badge-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--warning);
}

.badge-icon svg {
  width: 100%;
  height: 100%;
}

.badge-text strong {
  color: var(--success);
}

.badge-label {
  color: var(--warning);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* ===============================
   Promo Banner
   =============================== */
.promo-banner {
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.promo-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.promo-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: white;
  opacity: 0.9;
}

.promo-icon svg {
  width: 100%;
  height: 100%;
}

.promo-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: white;
  text-align: center;
}

.promo-label {
  font-size: 0.875rem;
  opacity: 0.9;
}

.promo-text strong {
  font-size: 1.5rem;
}

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

.promo-banner .btn-primary:hover {
  background: var(--bg-alt);
  transform: translateY(-2px);
}

/* ===============================
   Services Section
   =============================== */
.services {
  padding: 5rem 0;
  background: var(--bg);
}

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

.service-card {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid transparent;
}

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

.service-card-wide {
  grid-column: span 2;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-light);
}

/* ===============================
   How it works
   =============================== */
.how-it-works {
  padding: 5rem 0;
  background: var(--secondary);
  color: white;
}

.how-it-works .section-title {
  color: white;
}

.how-it-works .section-title::after {
  background: white;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h3 {
  color: white;
  margin-bottom: 0.75rem;
}

.step p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.step-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 2rem;
  padding-top: 1.5rem;
}

/* ===============================
   Prices Section
   =============================== */
.prices {
  padding: 5rem 0;
  background: var(--bg-alt);
}

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

.price-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-card h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bg-alt);
}

.price-list {
  list-style: none;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.price-list li:last-child {
  border-bottom: none;
}

.price {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.prices-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ===============================
   About Section
   =============================== */
.about {
  padding: 5rem 0;
  background: var(--bg);
}

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

.about-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.about-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem auto;
  color: var(--primary);
}

.about-icon svg {
  width: 100%;
  height: 100%;
}

.about-card h3 {
  margin-bottom: 0.75rem;
}

.about-card p {
  color: var(--text-light);
}

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

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ===============================
   FAQ Section
   =============================== */
.faq {
  padding: 5rem 0;
  background: var(--bg-alt);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
}

/* ===============================
   Contacts Section
   =============================== */
.contacts {
  padding: 5rem 0;
  background: var(--bg);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  color: var(--primary);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-light);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item a {
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-item address,
.contact-item p {
  color: var(--text);
}

.contact-map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-map .map-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
}

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

.map-overlay {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.map-link:hover .map-overlay {
  opacity: 1;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

#yandex-map {
  width: 100%;
  height: 100%;
}

/* ===============================
   Footer
   =============================== */
.footer {
  background: var(--secondary);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-logo .logo-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: white;
}

.footer-text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

.footer-contacts {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-contacts a {
  color: white;
  font-weight: 500;
}

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

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ===============================
   Responsive Design
   =============================== */
@media (max-width: 968px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-phone {
    display: none;
  }

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

  .contact-map {
    height: 300px;
  }

  .service-card-wide {
    grid-column: span 1;
  }

  .step-arrow {
    display: none;
  }

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

  .step {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

  .footer-contacts {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .hero-cta,
  .contact-map,
  .mobile-menu-btn {
    display: none;
  }

  body {
    font-size: 12pt;
    color: black;
  }

  .hero {
    padding: 2rem 0;
    min-height: auto;
  }

  section {
    padding: 1.5rem 0;
    page-break-inside: avoid;
  }
}

/* Yandex Maps v3 Marker */
.map-marker {
  position: relative;
  width: 30px;
  height: 42px;
}

.marker-pin {
  width: 30px;
  height: 30px;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
