/* ===== Сайт Саші — Ремонт телефонів ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --radius: 12px;
  --transition: .3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

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

.logo {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.nav a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .9rem;
  transition: var(--transition);
}

.nav a:hover, .nav a.active {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

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

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  color: var(--white);
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, 30px); }
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.15;
}

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

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #94a3b8;
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-accent {
  background: var(--accent);
  color: #1e293b;
}

.btn-accent:hover { background: #d97706; transform: translateY(-2px); }

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

.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

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

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-top: -35px;
  margin-bottom: 50px;
}

.bg-alt { background: var(--white); }

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid #e2e8f0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.15);
  border-color: var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: .9rem; line-height: 1.6; }

/* ===== Prices ===== */
.price-table {
  max-width: 800px;
  margin: 0 auto;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  transition: var(--transition);
}

.price-row:hover { background: #f1f5f9; border-radius: 8px; }

.price-name { font-weight: 600; }
.price-amount {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
}

.price-note {
  text-align: center;
  color: var(--text-light);
  font-size: .9rem;
  margin-top: 25px;
  padding: 15px;
  background: #f1f5f9;
  border-radius: 10px;
}

/* ===== About ===== */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h3 {
  color: var(--primary);
  margin-top: 30px;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 35px;
}

.about-feature {
  text-align: center;
  padding: 25px;
  background: #f1f5f9;
  border-radius: var(--radius);
}

.about-feature .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.about-feature .label {
  color: var(--text-light);
  font-size: .9rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: #dbeafe;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover { text-decoration: underline; }

.contact-item .label {
  font-size: .8rem;
  color: var(--text-light);
  display: block;
}

.messengers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.messenger-btn svg { width: 20px; height: 20px; }

.messenger-btn:hover { transform: translateY(-2px); }

.messenger-btn--telegram { background: #0088cc; }
.messenger-btn--viber { background: #665cac; }
.messenger-btn--whatsapp { background: #25d366; }

/* ===== Form ===== */
.contact-form { background: var(--white); padding: 35px; border-radius: var(--radius); box-shadow: var(--shadow); }

.contact-form h3 { font-size: 1.2rem; margin-bottom: 20px; }

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

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  transition: var(--transition);
  background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 30px;
}

.form-success .check {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* ===== Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.review-name { font-weight: 600; }
.review-date { font-size: .8rem; color: var(--text-light); }

.review-text {
  color: var(--text-light);
  line-height: 1.7;
  font-size: .95rem;
  font-style: italic;
}

.review-stars { color: var(--accent); margin-bottom: 8px; }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  font-family: inherit;
}

.faq-question:hover { background: #f8fafc; }

.faq-question .arrow {
  transition: var(--transition);
  font-size: .8rem;
  color: var(--text-light);
}

.faq-item.active .faq-question .arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== Page Header ===== */
.page-header {
  padding: 120px 0 50px;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: var(--white);
  text-align: center;
}

.page-header h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.page-header p { color: #94a3b8; margin-top: 10px; }

.breadcrumbs {
  margin-bottom: 15px;
  font-size: .85rem;
  color: #64748b;
}

.breadcrumbs a { color: var(--accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #94a3b8; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 40px 0;
  text-align: center;
}

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

.footer .logo { justify-content: center; margin-bottom: 15px; }

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

.footer-links a { color: #94a3b8; font-size: .9rem; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: .85rem;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 80px 25px 25px;
    transition: .4s ease;
    z-index: 999;
  }

  .nav.open { right: 0; }
  .burger { display: flex; z-index: 1001; }
  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 100px 20px 60px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .services-grid { grid-template-columns: 1fr; }

  .section { padding: 50px 0; }
  .price-row { flex-direction: column; gap: 5px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .btn { padding: 12px 24px; font-size: .9rem; }
}
