/* =========================
   ТЕМЫ - ФИОЛЕТОВО-ЗОЛОТОЙ ГРАДИЕНТ
========================= */

:root {
  /* фоны */
  --bg-main: linear-gradient(135deg, #f8f5ff 0%, #fdf2e8 50%, #fff8e7 100%);
  --bg-accent: linear-gradient(135deg, #ede6ff 0%, #fce7d2 50%, #fff3e0 100%);
  --bg-section: #ffffff;
  --bg-gray: linear-gradient(135deg, #faf7ff 0%, #fff7ed 100%);

  /* текст */
  --text-main: #2a1a3d;
  --text-muted: #6b4e8c;

  /* фиолетово-золотые акценты */
  --accent: #8b5cf6;
  --accent-dark: #7c3aed;
  --accent-light: #a78bfa;
  --gold: #f4c430;
  --gold-dark: #e6b800;

  /* элементы */
  --border: rgba(233, 213, 255, 0.4);

  /* кнопки */
  --btn-bg: linear-gradient(135deg, #8b5cf6, #a78bfa);
  --btn-text: #ffffff;

  /* карточки */
  --card-bg: #ffffff;
}

/* тёмная тема */
[data-theme="dark"] {
  --bg-main: linear-gradient(135deg, #1e1a2f 0%, #2d1b3a 50%, #3a2548 100%);
  --bg-accent: linear-gradient(135deg, #2d2547 0%, #3a2d4e 50%, #4a3f6e 100%);
  --bg-section: #251c3a;
  --bg-gray: linear-gradient(135deg, #312a55 0%, #3d2f5a 100%);

  --text-main: #e8d5ff;
  --text-muted: #b8a2e0;

  --border: rgba(74, 63, 110, 0.6);
  --accent: #a78bfa;
  --accent-dark: #c084fc;
  --accent-light: #e9d5ff;
  --gold: #f4c430;
  --gold-dark: #d4a017;

  --btn-bg: linear-gradient(135deg, #a78bfa, #c084fc);
  --btn-text: #1e1a2f;

  --card-bg: #2d2547;
}

/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  background: var(--bg-section);
  color: var(--text-main);
  line-height: 1.7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

/* =========================
   КРАСИВЫЙ РАЗДЕЛ "ОБО МЕНЯ"
========================= */

.about-section {
  position: relative;
  padding: 100px 0;
  background: var(--bg-section);
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.about-decoration {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: 6px;
  height: 70%;
  background: linear-gradient(180deg, var(--accent-light), var(--gold), var(--accent));
  border-radius: 3px;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

.about-title {
  font-size: clamp(32px, 6vw, 42px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-dark), var(--gold), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  position: relative;
}

.about-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent);
  margin: 12px auto 0;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(244, 196, 48, 0.4);
}

.about-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 
    0 25px 50px rgba(139, 92, 246, 0.12),
    0 10px 25px rgba(244, 196, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-light), var(--gold), var(--accent-light), transparent);
  animation: shimmer 3s ease-in-out infinite alternate;
}

.about-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent);
  animation: shimmer 3s ease-in-out infinite alternate 1.5s;
}

@keyframes shimmer {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

[data-theme="dark"] .about-card {
  background: rgba(45, 37, 71, 0.75);
  border-color: var(--border);
  box-shadow: 
    0 25px 50px rgba(139, 92, 246, 0.25),
    0 10px 25px rgba(244, 196, 48, 0.15),
    inset 0 1px 0 rgba(233, 213, 255, 0.25);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 35px 70px rgba(139, 92, 246, 0.2),
    0 15px 35px rgba(244, 196, 48, 0.15);
}

.about-text {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
  text-align: justify;
  text-justify: inter-word;
  letter-spacing: -0.01em;
}

.about-text p {
  position: relative;
  margin-bottom: 14px;
}

.about-text p::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(45deg, var(--gold), var(--accent));
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(244, 196, 48, 0.6);
  opacity: 0.8;
}

.about-text p:last-child::after {
  display: none;
}

.about-text strong,
.about-text b {
  background: linear-gradient(135deg, var(--accent-dark), var(--gold-dark), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding: 2px 4px;
  border-radius: 4px;
  margin: 0 2px;
  display: inline-block;
  transition: all 0.3s ease;
}



/* =========================
   CONTROLS
========================= */

.lang-toggle,
.theme-toggle {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.03em;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

[data-theme="dark"] .lang-toggle,
[data-theme="dark"] .theme-toggle {
  background: rgba(45, 37, 71, 0.7);
}

.lang-toggle:hover,
.theme-toggle:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  color: var(--btn-text);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

/* =========================
   HERO - КРУПНОЕ ФОТО ВО ВСЕШИРНУЮ
========================= */

.hero {
  background: linear-gradient(135deg, 
    var(--bg-main) 0%, 
    var(--bg-accent) 50%, 
    rgba(139, 92, 246, 0.08) 100%);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, 
    rgba(139, 92, 246, 0.15) 0%, 
    rgba(244, 196, 48, 0.1) 50%, 
    transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-20px); }
}

.hero-controls {
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
  gap: 12px;
  z-index: 10;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-text {
  flex: 1;
  max-width: 480px;
}

.hero-text h1 {
  font-size: clamp(36px, 7vw, 54px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-main), var(--accent-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(18px, 4vw, 24px);
  line-height: 1.55;
  margin-bottom: 36px;
  font-weight: 400;
}

/* ✨ КРУПНОЕ ФОТО ВО ВСЕШИРНУЮ БЕЗ РАМКИ */
.hero-photo-wrap {
  width: 420px;
  height: 580px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  
  /* Премиальные многослойные тени */
  filter: 
    drop-shadow(0 40px 80px rgba(139, 92, 246, 0.35))
    drop-shadow(0 25px 50px rgba(244, 196, 48, 0.2))
    drop-shadow(0 0 50px rgba(139, 92, 246, 0.15));
  
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Внутренний блеск */
  box-shadow: 
    0 30px 80px rgba(139, 92, 246, 0.25),
    0 20px 40px rgba(244, 196, 48, 0.15),
    inset 0 2px 10px rgba(255, 255, 255, 0.4),
    inset 0 -2px 10px rgba(244, 196, 48, 0.15);
}

.hero-photo-wrap:hover {
  transform: translateY(-20px) scale(1.03);
  filter: 
    drop-shadow(0 60px 120px rgba(139, 92, 246, 0.5))
    drop-shadow(0 40px 80px rgba(244, 196, 48, 0.3))
    drop-shadow(0 0 80px rgba(139, 92, 246, 0.25));
  
  box-shadow: 
    0 50px 120px rgba(139, 92, 246, 0.4),
    0 35px 70px rgba(244, 196, 48, 0.3),
    inset 0 4px 20px rgba(255, 255, 255, 0.5),
    inset 0 -4px 20px rgba(244, 196, 48, 0.25);
}

[data-theme="dark"] .hero-photo-wrap {
  box-shadow: 
    0 30px 80px rgba(167, 139, 250, 0.35),
    0 20px 40px rgba(244, 196, 48, 0.2);
}

[data-theme="dark"] .hero-photo-wrap:hover {
  box-shadow: 
    0 60px 140px rgba(167, 139, 250, 0.5),
    0 40px 90px rgba(244, 196, 48, 0.35),
    inset 0 2px 15px rgba(255, 255, 255, 0.2);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 28px;
  display: block;
}

.hero-photo-wrap:hover img {
  transform: scale(1.08);
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(139, 92, 246, 0.45);
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 80px 0;
  background: var(--bg-section);
}

.section.gray {
  background: var(--bg-gray);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-main), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================
   SERVICES
========================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 35px 70px rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.3);
}

.service-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

.service-content {
  padding: 36px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
}

.service-content p {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.service-content ul {
  list-style: none;
  flex-grow: 1;
  margin-top: auto;
}

.service-content ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.service-content ul li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: bold;
}

/* =========================
   BRANDS
========================= */

.brands {
  padding: 100px 20px;
  background: var(--bg-main);
  text-align: center;
}

.brands-subtitle {
  max-width: 700px;
  margin: 0 auto 60px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.brand-item {
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  transition: all 0.4s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .brand-item {
  background: rgba(45, 37, 71, 0.5);
}

.brand-item img {
  max-width: 150px;
  width: 100%;
  height: auto;
  opacity: 0.85;
  transition: all 0.4s ease;
}

.brand-item:hover img {
  opacity: 1;
  filter: drop-shadow(0 10px 25px rgba(139, 92, 246, 0.4));
  transform: translateY(-6px) scale(1.08);
}

/* =========================
   CERTS & LIGHTBOX
========================= */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px;
}

.cert-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 20px;
  border: 2px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.cert-grid img:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(139, 92, 246, 0.25);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 16px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.85);
}

/* =========================
   FOOTER
========================= */

.footer {
  background: linear-gradient(135deg, #2a1a3d, #1e1436);
  color: #e8d5ff;
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-info p {
  margin-bottom: 12px;
  font-size: 16px;
  opacity: 0.9;
}

.footer-info strong {
  color: var(--accent-light);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  transition: all 0.4s ease;
  backdrop-filter: blur(12px);
}

.footer-socials a:hover {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  transform: translateY(-4px) scale(1.1);
}

.footer-socials img {
  width: 26px;
  height: 26px;
  filter: brightness(1.3);
}

/* =========================
   ADAPTIVE
========================= */

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 60px;
  }
  
  .about-decoration {
    width: 4px;
    height: 60%;
  }
  
  .hero-photo-wrap {
    width: 100%;
    max-width: 380px;
    height: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero-photo-wrap {
    height: 420px;
  }
  
  .about-card {
    padding: 36px 28px;
  }
  
  .about-text {
    font-size: 1.1rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .hero-inner {
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero-photo-wrap {
    height: 360px;
  }
  
  .about-decoration {
    display: none;
  }
  
  .about-card {
    padding: 28px 24px;
    border-radius: 20px;
  }
  
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}
