* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #0A5CFF;
  --blue-dark: #0847c9;
  --dark: #1A1F2E;
  --gray: #6B7280;
  --light: #F5F7FA;
  --border: #E5E7EB;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: #F5F7FA url('../assets/img/fon.png') center center / cover no-repeat fixed;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 90px; }
.logo-link img { height: 65px; width: auto; }
.menu { display: flex; gap: 32px; font-size: 14px; font-weight: 500; color: #374151; }
.menu a { transition: color .2s; }
.menu a:hover, .menu a.active { color: var(--blue); }

/* КНОПКА-КАРТИНКА (в шапке, hero) */
.btn-image {
  display: inline-block;
  transition: transform .2s, filter .2s;
}
.btn-image img {
  height: 70px;
  width: auto;
  display: block;
}
.btn-image:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.btn-image:active {
  transform: translateY(0);
}

/* КНОПКА-КАРТИНКА В ФОРМЕ */
.btn-image-submit {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform .2s, filter .2s;
  font-family: inherit;
  align-self: flex-start;
}
.btn-image-submit img {
  width: auto;
  height: 60px;
  display: block;
}
.btn-image-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}
.btn-image-submit:active {
  transform: translateY(0);
}

/* ОБЫЧНЫЕ КНОПКИ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 600; transition: all .2s; cursor: pointer;
  border: none; font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { border: 2px solid var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 15px; }

/* PAGE HERO — затемнение слева, фон виден справа */
.page-hero {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  background: transparent;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 60%, rgba(255,255,255,0.75) 100%);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 2;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.05; letter-spacing: -1.5px; }
.page-hero p { margin-top: 20px; font-size: 18px; color: var(--gray); max-width: 720px; }
.breadcrumbs { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.breadcrumbs a:hover { color: var(--blue); }

/* HOME HERO */
.hero {
  padding: 96px 0 120px;
  position: relative;
  background: transparent;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.85) 45%, rgba(255,255,255,0.35) 75%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: var(--blue); margin-bottom: 20px; }
h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 900; line-height: 1.05; letter-spacing: -1.5px; }
.hero p { margin-top: 24px; font-size: 18px; color: #4B5563; max-width: 520px; }
.hero-buttons { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* HERO IMAGE — ЛОГОТИП */
.hero-image {
  height: 520px; border-radius: 16px; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #F5F7FA 0%, #FFFFFF 50%, #E8EEF9 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.hero-image::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,92,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,92,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(10,92,255,0.08), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(10,92,255,0.08), transparent 50%);
  pointer-events: none;
}

.hero-logo-block .hero-logo-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 90%;
}
.hero-logo-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(10,92,255,0.15));
}
.hero-logo-line {
  width: 80px;
  height: 2px;
  background: var(--blue);
  margin: 32px auto 20px;
  border-radius: 2px;
}
.hero-logo-tagline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--dark);
  text-transform: uppercase;
}

/* SECTIONS */
section {
  padding: 100px 0;
  background: rgba(255,255,255,0.94);
}

.section-head { max-width: 720px; margin-bottom: 64px; }
h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 900; line-height: 1.1; letter-spacing: -1px; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.service {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 18px 24px;
  transition: all .25s;
  background: #fff;
  display: block;
  overflow: hidden;
}
.service:hover {
  box-shadow: 0 20px 40px -15px rgba(10,92,255,0.2);
  border-color: rgba(10,92,255,0.3);
  transform: translateY(-4px);
}

/* Картинка в карточке */
.service-icon {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.service h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; transition: color .2s; }
.service:hover h3 { color: var(--blue); }
.service p { font-size: 13.5px; color: var(--gray); line-height: 1.55; }

/* SERVICE DETAIL — ДВЕ КОЛОНКИ (услуги) */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.service-detail:last-child { border-bottom: none; }

.service-detail-img {
  border-radius: 16px;
  overflow: hidden;
  height: 340px;
  background: #F5F7FA;
}
.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.service-detail:hover .service-detail-img img {
  transform: scale(1.04);
}

.service-detail-content { padding: 8px 0; }
.service-detail h3 { font-size: 28px; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.service-detail p { color: var(--gray); font-size: 16px; margin-bottom: 20px; }
.service-detail ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-detail ul li { font-size: 14px; color: var(--dark); padding-left: 24px; position: relative; }
.service-detail ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 2px;
}

/* STATS */
.stats { background: var(--dark); color: #fff; padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-value { font-size: clamp(36px, 5vw, 56px); font-weight: 900; color: var(--blue); letter-spacing: -2px; line-height: 1; }
.stat-label { margin-top: 10px; font-size: 14px; color: #9CA3AF; }

/* PROJECTS */
.projects { background: rgba(245,247,250,0.96); }
.projects-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: all .3s;
}
.project:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15); transform: translateY(-6px); }
.project-img { height: 240px; background: #D1D5DB center/cover no-repeat; }
.project-body { padding: 24px; }
.project-tag { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.project h3 { font-size: 17px; font-weight: 700; line-height: 1.35; }

/* NEWS */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); transition: all .3s;
}
.news-card:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.12); transform: translateY(-4px); }
.news-img { height: 200px; background: #E5E7EB center/cover no-repeat; }
.news-body { padding: 24px; }
.news-date { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.news-card h3 { font-size: 17px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.news-card p { font-size: 14px; color: var(--gray); }

/* VIDEO */
.video-wrapper { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.video-player { background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; }
.video-player video { width: 100%; height: 100%; object-fit: cover; }
.video-info h3 { font-size: 24px; font-weight: 800; margin-bottom: 16px; }
.video-info p { color: var(--gray); font-size: 15px; }

/* ABOUT */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-text p { font-size: 16px; color: #4B5563; margin-bottom: 20px; }

.about-logo-block {
  height: 480px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #F5F7FA 0%, #FFFFFF 50%, #E8EEF9 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.about-logo-block::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(10,92,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,92,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.about-logo-block::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(10,92,255,0.08), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(10,92,255,0.08), transparent 50%);
  pointer-events: none;
}
.about-logo-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 40px;
  max-width: 90%;
}
.about-logo-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(10,92,255,0.15));
}
.about-logo-line {
  width: 80px;
  height: 2px;
  background: var(--blue);
  margin: 28px auto 18px;
  border-radius: 2px;
}
.about-logo-tagline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--dark);
  text-transform: uppercase;
}

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.value { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.value h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--blue); }
.value p { font-size: 14px; color: var(--gray); }

/* CONTACTS */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-item { padding: 24px 0; border-bottom: 1px solid var(--border); }
.contact-item:first-child { padding-top: 0; }
.contact-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--blue); margin-bottom: 8px; }
.contact-value { font-size: 20px; font-weight: 700; }
.contact-value a:hover { color: var(--blue); }

form { display: grid; gap: 16px; }
input, textarea {
  width: 100%; padding: 16px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 15px; background: #fff;
  transition: border-color .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--blue); }
textarea { min-height: 140px; resize: vertical; }

/* CTA */
.cta { background: rgba(255,255,255,0.94); text-align: center; }
.cta-inner { max-width: 800px; margin: 0 auto; }
.cta p { margin-top: 24px; font-size: 18px; color: var(--gray); }
.cta-buttons { margin-top: 40px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* FOOTER */
footer {
  background: rgba(245,247,250,0.97);
  color: var(--gray);
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  width: 100%;
  display: block;
  backdrop-filter: blur(8px);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-logo { height: 65px; margin-bottom: 4px; }
.footer-desc { margin-top: 16px; font-size: 14px; max-width: 320px; color: var(--gray); }
.footer-title { color: var(--dark); font-weight: 700; margin-bottom: 16px; font-size: 14px; }
.footer-links { font-size: 14px; line-height: 2; color: var(--gray); }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--blue); }

.footer-bottom {
  background: var(--dark);
  color: #9CA3AF;
  padding: 20px 24px;
  font-size: 13px;
  text-align: center;
  width: 100%;
  display: block;
  margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid, .news-grid { grid-template-columns: 1fr; }
  .hero-grid, .about-grid, .contacts-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-image { height: 400px; }
  .about-logo-block { height: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .video-wrapper { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 24px; }
  .service-detail-img { height: 280px; }
  .values-grid { grid-template-columns: 1fr; }

  .hero::before {
    background: rgba(255,255,255,0.92);
  }
  .page-hero::before {
    background: rgba(255,255,255,0.94);
  }
}
@media (max-width: 768px) {
  .menu { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .service-detail ul { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 80px; }
  .page-hero { padding: 48px 0 56px; }
  .nav { height: 70px; }
  .logo-link img { height: 50px; }
  .btn-image img { height: 56px; }
  .footer-logo { height: 50px; }

  .hero-image { height: 340px; }
  .hero-logo-img { max-width: 240px; }
  .hero-logo-line { margin: 22px auto 14px; width: 60px; }
  .hero-logo-tagline { font-size: 10px; letter-spacing: 3px; }

  .about-logo-block { height: 300px; }
  .about-logo-img { max-width: 240px; }

  .service-detail-img { height: 240px; }
  .service-detail h3 { font-size: 22px; }

  .service-icon { height: 180px; }

  body {
    background-attachment: scroll;
  }
}
/* Стили для кнопок переключения языков */
.lang-buttons {
  display: flex;
  gap: 5px;
  margin-right: 20px;
  margin-left: 20px;
  align-items: center;
}

.lang-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background-color: #f0f4f8;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
}

.lang-link:hover {
  background-color: #e2e8f0;
  color: var(--blue);
}

/* Активный язык (подсвечивается синим) */
.lang-link.active-lang {
  background-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}