/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  font-size: 15px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 70px 0;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

h1,
h2,
h3,
h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #1a365d;
  color: white;
}

.btn-primary:hover {
  background-color: #2c5282;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: #2062be;
  border: 2px solid #2062be;
}

.btn-secondary:hover {
  background-color: #1a365d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-large {
  padding: 14px 30px;
  font-size: 16px;
}

.btn-full {
  width: 100%;
}

.section-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 18px;
  color: #1a365d;
}

.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Header */
.header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  gap: 30px;
}

.logo {
  flex-shrink: 0;
}

.logo-title {
  font-size: 22px;
  color: #1a365d;
  margin-bottom: 4px;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 10px;
  color: #666;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list a {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  padding: 5px 0;
}

.nav-list a:hover {
  color: #1a365d;
}

.header-contacts {
  flex-shrink: 0;
}

.phone-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #1a365d;
  font-size: 15px;
  white-space: nowrap;
}

.phone-link:hover {
  color: #2c5282;
}

.header-contacts .btn {
  padding: 9px 18px;
  font-size: 14px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #1a365d;
  cursor: pointer;
  flex-shrink: 0;
}

/* Hero */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url('./images/1.avif');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 150px 0 90px;
  margin-top: 70px;
  text-align: center;
}

.hero-title {
  font-size: 42px;
  margin-bottom: 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  line-height: 1.5;
}

.hero-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 35px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  backdrop-filter: blur(5px);
}

.feature-item i {
  color: #4ade80;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Services */
.services {
  background-color: #f8f9fa;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 36px;
  color: #1a365d;
  margin-bottom: 18px;
}

.service-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #1a365d;
  line-height: 1.3;
}

.service-list {
  font-size: 14px;
}

.service-list li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.service-list li:before {
  content: '•';
  color: #1a365d;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.service-list li strong {
  color: #1a365d;
}
/* Gallery */
.gallery {
  background-color: white;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 30px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background-color: white;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.damage-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.damage-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .damage-image img {
  transform: scale(1.05);
}

.damage-caption {
  padding: 18px;
  background-color: white;
}

.damage-caption h4 {
  font-size: 16px;
  color: #1a365d;
  margin-bottom: 8px;
  line-height: 1.3;
}

.damage-caption p {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.gallery-note {
  background-color: #f0f9ff;
  border-left: 4px solid #3182ce;
  padding: 18px;
  border-radius: 6px;
  font-size: 14px;
  text-align: center;
}

.gallery-note i {
  color: #3182ce;
  margin-right: 10px;
}

/* Responsive adjustments for gallery */
@media (max-width: 1100px) {
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .damage-image {
    height: 200px;
  }
}
/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

.advantage-card {
  text-align: center;
  padding: 28px 18px;
}

.advantage-icon {
  font-size: 44px;
  color: #1a365d;
  margin-bottom: 18px;
}

.advantage-title {
  font-size: 18px;
  margin-bottom: 14px;
  color: #1a365d;
  line-height: 1.3;
}

.advantage-text {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.expertise-section {
  background-color: #f8f9fa;
  padding: 35px;
  border-radius: 10px;
  margin-top: 40px;
}

.expertise-section h3 {
  font-size: 24px;
  color: #1a365d;
  margin-bottom: 25px;
  text-align: center;
}

.expertise-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.expertise-item {
  display: flex;
  gap: 18px;
}

.expertise-item i {
  font-size: 32px;
  color: #1a365d;
  margin-top: 5px;
  flex-shrink: 0;
}

.expertise-item h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: #1a365d;
}

.expertise-item p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* Process */
.process {
  background-color: #f8f9fa;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.process-step {
  text-align: center;
  padding: 28px 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  background-color: #1a365d;
  color: white;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

.step-title {
  font-size: 18px;
  margin-bottom: 14px;
  color: #1a365d;
  line-height: 1.3;
}

.step-text {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* About */
.about-content {
  display: flex;
  align-items: center;
  gap: 45px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.6;
}

.legal-info {
  margin-top: 28px;
  padding: 22px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #1a365d;
}

.legal-info h3 {
  margin-bottom: 14px;
  color: #1a365d;
  font-size: 20px;
}

.legal-info p {
  margin-bottom: 9px;
  font-size: 15px;
  line-height: 1.5;
}

.about-image {
  flex: 1;
}

.image-placeholder {
  height: 380px;
  background-color: #f0f4f8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #1a365d;
  font-size: 56px;
}

.image-placeholder p {
  margin-top: 18px;
  font-size: 17px;
  text-align: center;
  max-width: 280px;
  line-height: 1.4;
}

/* CTA */
.cta {
  background-color: #1a365d;
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 32px;
  margin-bottom: 18px;
  line-height: 1.2;
}

.cta-text {
  font-size: 17px;
  margin-bottom: 35px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background-color: white;
  color: #1a365d;
}

.cta .btn-primary:hover {
  background-color: #f0f4f8;
}

.cta .btn-secondary {
  color: white;
  border-color: white;
}

.cta .btn-secondary:hover {
  background-color: white;
  color: #1a365d;
}

/* Footer */
.footer {
  background-color: #0d1b2a;
  color: #e0e0e0;
  padding: 50px 0 25px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 35px;
  margin-bottom: 35px;
}

.footer-section {
  flex: 1;
  min-width: 230px;
}

.footer-title {
  font-size: 18px;
  margin-bottom: 18px;
  color: white;
}

.footer-subtitle {
  font-size: 13px;
  margin-bottom: 14px;
  color: #aaa;
  letter-spacing: 0.8px;
}

.footer-text {
  margin-bottom: 14px;
  line-height: 1.6;
  font-size: 14px;
}

.footer-contacts p {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
}

.footer-contacts a {
  color: #e0e0e0;
}

.footer-contacts a:hover {
  color: white;
}

.footer-links li {
  margin-bottom: 9px;
}

.footer-links a {
  color: #aaa;
  font-size: 14px;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #2d3748;
  color: #aaa;
  font-size: 13px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: white;
  border-radius: 8px;
  padding: 35px;
  max-width: 480px;
  width: 90%;
  position: relative;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #1a365d;
}

.modal-title {
  font-size: 26px;
  margin-bottom: 9px;
  color: #1a365d;
  text-align: center;
}

.modal-subtitle {
  text-align: center;
  margin-bottom: 28px;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
}

.before-image,
.after-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  cursor: pointer;
}

.simple-gallery-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}

.simple-gallery-modal.active {
  display: flex;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.sg-image {
  max-width: 90vw;
  max-height: 90vh;
}
.before-image,
.after-image,
.lg-image {
  image-orientation: none !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .services-grid,
  .advantages-grid,
  .process-steps,
  .expertise-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-container {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .process-step {
    min-width: auto;
  }
}

@media (max-width: 900px) {
  .header-content {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-top: 15px;
  }

  .nav-list {
    gap: 15px;
  }

  .header-contacts {
    order: 2;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .nav {
    display: none;
  }

  .nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-list li {
    border-bottom: 1px solid #eee;
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
  }

  .mobile-menu-btn {
    display: block;
    order: 2;
  }

  .header-contacts .btn {
    display: none;
  }

  .services-grid,
  .advantages-grid,
  .process-steps,
  .expertise-content {
    grid-template-columns: 1fr;
  }

  .process-step {
    min-width: 100%;
  }

  .about-content {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .phone-wrapper {
    align-items: center;
  }

  .header-content {
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn,
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .modal {
    padding: 25px 18px;
  }

  .hero {
    padding: 130px 0 70px;
    margin-top: 60px;
  }

  section {
    padding: 60px 0;
  }

  .before-after-container {
    height: 200px;
  }

  .video-preview {
    height: 200px;
  }

  .gallery-container {
    gap: 20px;
  }
}

/* Damage Types Section */
.damage-types {
  background-color: #f8f9fa;
}

.damage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.damage-card {
  background-color: white;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.damage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.damage-icon {
  font-size: 36px;
  color: #1a365d;
  margin-bottom: 15px;
}

.damage-title {
  font-size: 18px;
  color: #1a365d;
  margin-bottom: 15px;
  line-height: 1.3;
}

.damage-list {
  font-size: 14px;
  list-style: none;
}

.damage-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.damage-list li:before {
  content: '•';
  color: #1a365d;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Services grid adjustments */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .damage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .damage-grid {
    grid-template-columns: 1fr;
  }

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