/* ===== Variables ===== */
:root {
  --navy: #1a3066;
  --navy-dark: #0f1f4a;
  --blue: #2d5aa0;
  --blue-light: #4a7fd4;
  --sky: #eef4fb;
  --sky-dark: #dbeafe;
  --yellow: #f57f1f;
  --yellow-hover: #dc6f18;
  --white: #ffffff;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --text: #334155;
  --shadow: 0 4px 20px rgba(26, 48, 102, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 48, 102, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--yellow);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--yellow-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 127, 31, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  width: 100%;
}

.hero-slides {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  height: 100%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transform: scale(1.06);
  transition: transform 6s ease-out;
}

.hero-slide.is-active img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 31, 74, 0.82) 0%, rgba(15, 31, 74, 0.55) 38%, rgba(26, 48, 102, 0.2) 70%, transparent 100%),
    linear-gradient(180deg, rgba(15, 31, 74, 0.35) 0%, transparent 30%, transparent 70%, rgba(15, 31, 74, 0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  pointer-events: none;
  padding: 88px 0 100px;
}

.hero-content > .container {
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-text-panels {
  position: relative;
  width: min(580px, 52vw);
  min-width: 300px;
  min-height: 280px;
}

.hero-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: left;
  color: var(--white);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s;
  pointer-events: none;
  writing-mode: horizontal-tb;
}

.hero-text.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  word-break: keep-all;
  white-space: normal;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.75;
  max-width: 520px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-text .btn {
  pointer-events: auto;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity var(--transition), transform var(--transition);
}

.hero-arrow svg {
  width: 36px;
  height: 36px;
}

.hero-arrow:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev {
  left: 24px;
}

.hero-arrow-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all var(--transition);
}

.hero-dots button:hover {
  background: rgba(255, 255, 255, 0.7);
}

.hero-dots button.active {
  width: 28px;
  border-radius: 5px;
  background: var(--white);
}

.hero-counter {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 3;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  pointer-events: none;
}

/* ===== Sections ===== */
.section {
  padding: 90px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.light h2,
.section-header.light .section-label {
  color: var(--white);
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--blue-light);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
}

.section-desc {
  color: var(--gray);
  margin-top: 12px;
  max-width: 600px;
}

/* ===== About ===== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.about-badge strong {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.about-badge span {
  color: var(--gray);
  font-size: 0.85rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--sky);
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--blue);
}

.value-icon svg {
  width: 28px;
  height: 28px;
}

.value-card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.value-card p {
  color: var(--gray);
  font-size: 0.85rem;
}

/* ===== Services ===== */
.services {
  background: var(--sky);
}

.services-wrapper {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background: var(--sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.service-icon svg {
  width: 30px;
  height: 30px;
}

.service-info h3 {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-info p {
  color: var(--gray-light);
  font-size: 0.85rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  box-shadow: var(--shadow);
  color: var(--gray);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--navy);
  color: var(--white);
}

.carousel-btn.prev { left: -22px; }
.carousel-btn.next { right: -22px; }

/* ===== Products ===== */
.products {
  background: var(--white);
}

.products-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.products-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  background: var(--sky);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition);
}

.product-card:hover {
  background: var(--sky-dark);
}

.product-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

.product-icon svg {
  width: 26px;
  height: 26px;
}

.product-card h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 6px;
}

.product-card p {
  color: var(--gray);
  font-size: 0.85rem;
  line-height: 1.6;
}

.products-visual {
  position: sticky;
  top: 100px;
}

.products-image {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 280px;
}

.products-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-caption {
  background: var(--sky);
  padding: 28px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.products-caption h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.products-caption p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== Agent ===== */
.agent {
  background: var(--sky);
  padding: 60px 0;
}

.agent-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  box-shadow: var(--shadow-lg);
}

.agent-content h2 {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 12px;
}

.agent-content > p {
  color: var(--gray);
  margin-bottom: 24px;
}

.agent-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.agent-logos span {
  background: var(--sky);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.agent-actions {
  display: flex;
  gap: 16px;
}

.agent-reports {
  display: flex;
  gap: 20px;
  align-items: center;
}

.report-card {
  flex: 1;
  background: var(--sky);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.report-illustration {
  margin-bottom: 12px;
}

.report-illustration svg {
  width: 100%;
  max-width: 180px;
  margin: 0 auto;
}

.report-card p {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Stats ===== */
.stats {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.stat-unit {
  display: block;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 8px 0;
}

.stat-card p {
  color: var(--gray-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Contact ===== */
.contact {
  background: var(--white);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 24px;
}

.contact-illustration {
  margin-bottom: 32px;
}

.contact-illustration svg {
  max-width: 280px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
}

.contact-item span {
  color: var(--gray);
  font-size: 0.85rem;
}

.contact-form {
  background: var(--sky);
  padding: 36px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition);
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-light);
}

/* ===== News ===== */
.news {
  background: var(--sky);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-date {
  background: var(--navy);
  color: var(--white);
  padding: 24px 20px;
  text-align: center;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date .day {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.news-date .month {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-top: 4px;
}

.news-body {
  padding: 24px;
  flex: 1;
}

.news-body h3 {
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-body p {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
}

.news-link:hover {
  color: var(--navy);
}

.section-more {
  text-align: center;
  margin-top: 40px;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--yellow);
}

.footer-col ul li a::before {
  content: '•';
  margin-right: 8px;
  color: var(--yellow);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-contact li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--yellow);
}

.footer-contact li::before {
  display: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

.footer-dots {
  display: flex;
  gap: 8px;
}

.footer-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.footer-dots span.active {
  background: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .about-grid,
  .products-layout,
  .agent-card,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .products-visual {
    position: static;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-btn {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions .btn-sm {
    display: none;
  }

  .hero-content {
    padding: 80px 0 88px;
  }

  .hero-content > .container {
    align-items: flex-end;
  }

  .hero-text-panels {
    width: 100%;
    min-width: 0;
    min-height: 220px;
    margin: 0 auto;
  }

  .hero-text,
  .hero-text.is-active {
    text-align: center;
    left: 0;
    right: 0;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-text .btn {
    margin: 0 auto;
  }

  .hero-counter {
    right: 50%;
    transform: translateX(50%);
    bottom: 72px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-arrow svg {
    width: 28px;
    height: 28px;
  }

  .hero-arrow-prev {
    left: 8px;
  }

  .hero-arrow-next {
    right: 8px;
  }

  .hero-dots {
    bottom: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .values-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .agent-reports {
    flex-direction: column;
  }

  .agent-actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .agent-card {
    padding: 28px;
  }

  .contact-form {
    padding: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
