/* ===========================
   PROIT — style.css (full)
   - light + dark themes
   - увеличенный логотип (desktop/tablet/mobile)
   - адаптивность, плавные переходы
   - сохранён современный профессиональный стиль
   =========================== */

/* -------- Theme variables (light) -------- */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --muted: #6b7280;
  --text: #0b1220;
  --accent: #0066ff;
  --accent-2: #00bfa5;
  --header-bg: rgba(255, 255, 255, 0.95);
  --footer-bg: #0f1724;
  --card-bg: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --radius: 12px;
  --shadow: 0 8px 30px rgba(3, 7, 18, 0.06);
  --focus: 0 0 0 4px rgba(0, 102, 255, 0.08);
  --logo-height-desktop: 86px;
  /* размер логотипа на ПК */
  --logo-height-tablet: 64px;
  /* планшеты */
  --logo-height-mobile: 48px;
  /* телефоны */
  --transition-fast: 0.18s;
  --transition-medium: 0.35s;
}

/* -------- Dark theme overrides -------- */
body.dark {
  --bg: #071021;
  --surface: #0f1720;
  --muted: #9aa6b2;
  --text: #e6eef8;
  --accent: #00e0b8;
  --accent-2: #007aff;
  --header-bg: rgba(8, 12, 18, 0.75);
  --footer-bg: #06101a;
  --card-bg: rgba(255, 255, 255, 0.02);
  --glass: rgba(255, 255, 255, 0.04);
  --shadow: 0 12px 40px rgba(2, 6, 23, 0.6);
  --focus: 0 0 0 6px rgba(0, 224, 184, 0.06);
}

/* -------- Reset / Base -------- */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(7, 16, 31, 0.02) 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  transition: background var(--transition-medium) ease, color var(--transition-medium) ease;
}

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

/* -------- Top bar / header -------- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(6px);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background var(--transition-fast);
  box-shadow: var(--shadow);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

/* -------- Logo (увеличен) -------- */
/* Изменяй только переменные в :root если нужно другой размер */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: var(--logo-height-desktop);
  width: auto;
  display: block;
  -webkit-user-drag: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  will-change: transform;
}

/* Responsive logo sizes */
@media (max-width: 1024px) {
  .logo-img {
    height: var(--logo-height-tablet);
  }
}

@media (max-width: 560px) {
  .logo-img {
    height: var(--logo-height-mobile);
  }
}

/* Optional subtle hover */
.logo-img:hover {
  transform: scale(1.03);
}

/* -------- Controls (theme toggle, lang) -------- */
.controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:focus {
  outline: none;
  box-shadow: var(--focus);
  transform: translateY(-1px);
}

/* language dropdown */
.lang-dropdown {
  position: relative;
}

.lang-current {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #021020;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.lang-options {
  position: absolute;
  right: 0;
  top: 110%;
  display: none;
  flex-direction: column;
  padding: 0.3rem;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-width: 120px;
}

.lang-btn {
  background: transparent;
  color: var(--text);
  border: none;
  padding: 0.55rem 0.8rem;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
}

.lang-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* -------- Hero -------- */
.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
  text-align: center;
}

.hero-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.slogan {
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.hero-title {
  font-size: 2.8rem;
  margin: 0.2rem 0 0.6rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: color var(--transition-medium);
}

.hero-desc {
  display: inline-block;
  margin: 1rem auto 1.2rem;
  padding: 0.9rem 1.2rem;
  background: var(--glass);
  border-radius: 10px;
  color: var(--muted);
  max-width: 720px;
  font-size: 1.05rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* CTA buttons */
.hero-cta {
  margin-top: 1rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #021020;
  border: none;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(3, 7, 18, 0.08);
}

/* Hero decorative blob */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

.blur-blob {
  width: 100%;
  height: 100%;
  transform: translateY(8%);
}

/* -------- Sections -------- */
.section {
  padding: 3.8rem 0;
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 1.8rem;
  color: var(--text);
}

/* -------- Services grid -------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.4rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease;
  cursor: pointer;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(3, 7, 18, 0.12);
}

.service-icon {
  font-size: 1.9rem;
}

.service-card h3 {
  margin: 0;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--text);
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* expand content */
.expand-content ul {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

/* overlay */
.service-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1800;
  background: rgba(2, 6, 23, 0.6);
  padding: 2rem;
}

.service-overlay.active {
  display: flex;
}

.overlay-content {
  background: var(--card-bg);
  color: var(--text);
  padding: 1.4rem;
  border-radius: 10px;
  max-width: 720px;
  width: 100%;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.overlay-close {
  position: absolute;
  right: 2.4rem;
  top: 2.4rem;
  background: var(--accent);
  color: #021020;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.overlay-close:hover {
  background: var(--accent-2);
}

/* -------- Partners carousel -------- */
.partners-carousel-container {
  overflow: hidden;
}

.partners-carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform .45s cubic-bezier(.2, .9, .2, 1);
  will-change: transform;
  padding: 0.6rem 0;
}

.partner-card {
  min-width: 200px;
  border-radius: 10px;
  padding: 0.6rem;
  background: var(--card-bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card img {
  max-width: 200px;
  opacity: 0.95;
  filter: grayscale(40%) contrast(90%);
}

/* -------- Contacts -------- */
.contacts {
  padding-bottom: 3.6rem;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 700;
  transition: transform .2s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(3, 7, 18, 0.08);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #021020;
}

/* dark-specific contact override for clarity */
body.dark .contact-card {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.dark .contact-card:hover {
  color: #fff;
}

/* -------- Footer -------- */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  background: var(--footer-bg);
  margin-top: 1.6rem;
}

/* -------- Accessibility / focus -------- */
a:focus,
button:focus,
.service-card:focus {
  outline: none;
  box-shadow: var(--focus);
}

/* -------- Responsive tweaks -------- */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .logo-img {
    height: var(--logo-height-tablet);
  }

  .service-card {
    min-height: 150px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 3.2rem 0;
  }

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

  .logo-img {
    height: var(--logo-height-mobile);
  }

  .top-bar-inner {
    padding: 0.6rem 1.2rem;
  }

  .overlay-close {
    right: 1rem;
    top: 1rem;
  }
}

/* -------- Optional small helper for logos with accidental background
   If your logo still has a tiny square bg, this gives subtle rounded backdrop only in dark theme.
   You can remove if you fix images to transparent background. */
body.dark .logo-img {
  /* border-radius and small padding create neat visual frame without changing layout */
  background: transparent;
  padding: 2px;
  border-radius: 6px;
}

/* End of file */