/* ============================================
   Rubius Project Manager — главная страница
   ============================================ */

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

:root {
  --green: #7CB342;
  --green-dark: #689F38;
  --text: #333333;
  --text-light: #666666;
  --border: #e8e9ea;
  --bg-light: #f9f9fa;
  --header-h: 80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo { display: block; }
.logo img { height: 50px; width: auto; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 14px;
  color: #555;
  font-weight: 400;
  transition: color .2s;
  padding: 8px 0;
}

.main-nav a:hover,
.main-nav a.active { color: var(--green); }

.main-nav .btn-demo {
  border: 2px solid var(--green);
  color: var(--green);
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: 500;
  transition: all .2s;
}

.main-nav .btn-demo:hover {
  background: var(--green);
  color: #fff;
}

.main-nav .lang { position: relative; }
.main-nav .lang > a { color: var(--text); }

.lang-menu {
  position: absolute;
  top: 100%; right: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  padding: 8px 0;
  min-width: 60px;
  display: none;
  border-radius: 3px;
}
.main-nav .lang:hover .lang-menu { display: block; }
.lang-menu a { display: block; padding: 6px 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #333;
  transition: .2s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-h);
  background: url('images/hero-bg.jpg') center center / cover no-repeat #d9cdb8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40,40,40,.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
  max-width: 1000px;
}

.hero h1 {
  font-size: 58px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.hero-subtitle {
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 36px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  transition: all .25s;
  border: 2px solid;
  background: transparent;
  font-family: inherit;
  text-align: center;
}

.btn-hero {
  border-color: #fff;
  color: #fff;
}
.btn-hero:hover {
  background: #fff;
  color: #333;
}

.btn-outline-green {
  border-color: var(--green);
  color: var(--green);
  font-size: 14px;
  padding: 10px 24px;
}
.btn-outline-green:hover {
  background: var(--green);
  color: #fff;
}

.btn-outline-white {
  border-color: #fff;
  color: #fff;
  font-size: 14px;
  padding: 10px 28px;
}
.btn-outline-white:hover {
  background: #fff;
  color: #333;
}

.btn-block {
  width: 100%;
  display: block;
}

.hero-scroll {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.7);
  width: 40px; height: 40px;
  animation: scroll-bounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 100%; height: 100%; }

@keyframes scroll-bounce {
  0%,100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== CLIENTS LOGOS ===== */
.clients {
  padding: 50px 0;
  background: #fff;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 30px;
}

.clients-grid img {
  max-height: 130px;
  width: auto;
  margin: 0 auto;
  filter: grayscale(20%);
  opacity: .85;
  transition: all .2s;
}

.clients-grid img:hover {
  filter: none;
  opacity: 1;
}

/* ===== WHY US ===== */
.why-us {
  padding: 70px 20px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.why-item { padding: 10px; }

.why-icon {
  width: 80px; height: 80px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon img,
.why-icon svg { width: 100%; height: 100%; }

.why-item h3 {
  font-size: 22px;
  font-weight: 500;
  color: #333;
  margin-bottom: 12px;
}

.why-item p {
  color: var(--text-light);
  font-size: 14px;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== FEATURES SLIDER ===== */
.features-slider {
  padding: 50px 0 80px;
  background: url('images/grid-bg.jpg') center center / cover no-repeat;
  border-top: 1px solid var(--border);
  position: relative;
}

.slider-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.slides {
  position: relative;
  min-height: 380px;
}

.slide {
  display: none;
  grid-template-columns: 1fr 1.6fr; /* text | image */
  align-items: center;
  gap: 50px;
  animation: fade .5s;
}

/* Когда в разметке порядок (картинка, текст) — даём первую (большую) колонку картинке */
.slide:nth-child(even) {
  grid-template-columns: 1.6fr 1fr; /* image | text */
}

.slide.active { display: grid; }

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-text { padding: 20px; }

.slide-text h4 {
  font-size: 24px;
  font-weight: 500;
  color: #333;
  margin-bottom: 16px;
}

.slide-text > p {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 14px;
}

.slide-text ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.5;
}

.slide-text ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: #b60000;
}

.slide-image img {
  width: 100%;
  box-shadow: 9px 9px 9px -5px rgba(0,0,0,.2);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  z-index: 5;
  transition: color .2s;
}
.slider-arrow svg { width: 100%; height: 100%; }
.slider-arrow:hover { color: var(--green); }

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: #d0d0d0;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.dot.active { background: var(--green); }

/* ===== NEW RELEASE ===== */
.new-release {
  padding: 60px 0;
  background: #fff;
}

.new-release-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
}

.video-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 9px 9px 9px -5px rgba(0,0,0,.2);
}

.video-link img {
  width: 100%;
  display: block;
  transition: transform .3s;
}

.video-link:hover img { transform: scale(1.02); }

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.play-btn svg {
  width: 70px; height: 70px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}

.new-release-info h3 {
  font-size: 30px;
  font-weight: 500;
  color: #333;
  margin-bottom: 18px;
}

.new-release-info ul {
  margin-bottom: 24px;
}

.new-release-info ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.5;
}

.new-release-info ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: #b60000;
}

/* ===== PRICING ===== */
.pricing {
  padding: 60px 0 80px;
  background: #fff;
}

.pricing-list {
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

.pricing-row:last-child { border-bottom: none; }

.pricing-name {
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}

.pricing-name:hover {
  color: var(--green-dark);
}

.pricing-name .ext-arrow {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.pricing-price {
  color: var(--text-light);
  white-space: nowrap;
  font-size: 15px;
}

@media (max-width: 600px) {
  .pricing-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 15px;
  }
}

/* ===== REVIEWS ===== */
.reviews {
  position: relative;
  padding: 70px 0;
  background: url('images/quotes-bg.jpg') center center / cover no-repeat #242829;
  color: #fff;
  overflow: hidden;
}

.reviews::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(36, 40, 41, .55);
  z-index: 0;
}

.reviews-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 70px;
}

.reviews-track {
  position: relative;
  min-height: 220px;
}

.review {
  display: none;
  text-align: center;
  padding: 20px 30px;
}

.review.active {
  display: block;
  animation: fade .5s;
}

.review blockquote {
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 28px;
  color: #fff;
}

.review cite {
  font-size: 14px;
  font-style: normal;
  color: #ddd;
}

.rev-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.7);
  z-index: 2;
  transition: color .2s;
}
.rev-arrow svg { width: 100%; height: 100%; }
.rev-arrow:hover { color: #fff; }

.rev-prev { left: 15px; }
.rev-next { right: 15px; }

/* ===== STATS ===== */
.stats {
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.stat-title {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
}

.stat-number {
  font-size: 60px;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 12px;
}

.stat-add {
  font-size: 14px;
  color: var(--text-light);
}

/* ===== INDUSTRIES ===== */
.industries {
  padding: 60px 0;
  background: url('images/grid-bg.jpg') center center / cover no-repeat;
}

.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  color: #333;
  margin-bottom: 40px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.industry-icon {
  width: 100px; height: 100px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.industry-icon img,
.industry-icon svg { width: 100%; height: 100%; }

.industry h4 {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

/* ===== INTEGRATIONS ===== */
.integrations {
  padding: 60px 0 80px;
  background: #fff;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
  max-width: 1045px;
  margin: 0 auto;
}

.integrations-grid img {
  max-height: 60px;
  width: auto;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #3a4150;
  color: #9aa0ac;
  padding: 60px 0 40px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}

.footer-logos {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
}

.footer-rubius-logo img { height: 44px; width: auto; display: block; }
.footer-fund-logo  img { height: 40px; width: auto; display: block; }

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-legal__block p {
  margin-bottom: 14px;
}

.footer-legal__block p:last-child { margin-bottom: 0; }

.footer-legal__block--tight p {
  margin-bottom: 10px;
}

.footer-legal__heading {
  font-size: 14px;
  color: #cfd3d9;
  font-weight: 500;
}

.footer-legal a {
  color: #cfd3d9;
  text-decoration: underline;
  text-decoration-color: rgba(207, 211, 217, .4);
  text-underline-offset: 2px;
  transition: color .2s;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
  animation: fade .25s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.modal-window {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 40px 36px;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 8px; right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #999;
}
.modal-close:hover { color: #333; }

.modal-text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

.modal-text a {
  color: var(--green);
  font-weight: 500;
  transition: color .2s;
}

.modal-text a:hover { color: var(--green-dark); }

/* ===== CONTACTS PAGE ===== */
.contacts-section {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 100px;
  background: #fff;
  min-height: calc(100vh - 130px);
}

.contacts-info {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contacts-info h2 {
  font-size: 26px;
  font-weight: 400;
  color: #333;
  margin-bottom: 16px;
}

.contacts-info p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-block {
  margin-top: 30px;
  font-size: 15px;
  color: var(--text);
}

.contact-block__title {
  font-weight: 500;
  margin-bottom: 6px;
  color: #333;
}

.contact-block a {
  display: block;
  color: var(--text);
  padding: 2px 0;
  transition: color .2s;
}

.contact-block a:hover { color: var(--green); }

@media (max-width: 768px) {
  .contacts-section {
    padding-top: calc(var(--header-h) + 30px);
    padding-bottom: 60px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .new-release-grid { grid-template-columns: 1fr; gap: 30px; }
  .slide { grid-template-columns: 1fr; gap: 25px; text-align: left; }
  .slide:nth-child(even) .slide-image { order: 2; }
  .slide:nth-child(even) .slide-text { order: 1; }
  .slider-container { padding: 0 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0;
  }
  .main-nav > ul > li { border-bottom: 1px solid var(--border); }
  .main-nav > ul > li:last-child { border: none; }
  .main-nav a { display: block; padding: 14px 20px; }
  .main-nav .btn-demo {
    margin: 10px 20px;
    text-align: center;
    border-radius: 3px;
    padding: 10px;
  }

  .hero h1 { font-size: 38px; }
  .hero-subtitle { font-size: 20px; }

  .why-us-grid { grid-template-columns: 1fr; }

  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .clients-grid img { max-height: 80px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 48px; }

  .review blockquote { font-size: 17px; }
  .reviews-container { padding: 0 50px; }

  .section-title { font-size: 24px; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .site-footer { padding: 40px 0 30px; }
}
