:root {
  --bg-light: #f5f3f0;
  --bg-dark: #2c2a28;
  --text-dark: #2c2a28;
  --text-light: #ffffff;
  --accent: #8b4513;
  --accent-light: #a56d2f;
  --border: #d3c6b0;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-primary: "Orbitron", sans-serif;
  --font-secondary: "Inter", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-secondary);
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--max-width);
  padding: 0 1rem;
  margin: 0 auto;
}

#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader-container {
  text-align: center;
}
.loader-logo {
  width: 80px;
  animation: spin 1.5s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.site-header {
  background: var(--bg-light);
  border-bottom: 2px dashed var(--border);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: var(--bg-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  color: var(--accent);
  text-shadow: 1px 1px var(--border);
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--text-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.site-nav a {
  font-family: var(--font-secondary);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.site-nav a:hover::after,
.site-nav .active::after {
  width: 100%;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    height: calc(100% - 70px);
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right var(--transition);
  }
  .site-nav.open {
    right: 0;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
  .site-nav a {
    color: var(--text-light);
  }
  .menu-toggle span {
    background: var(--text-dark);
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition);
}
.scroll-to-top.visible {
  opacity: 1;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--text-light);
  padding: 0.75rem 2rem;
  border: 2px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-primary);
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.hero-section {
  position: relative;
  height: 80vh;
  background: url("../assets/images/hero.jpg") center/cover no-repeat;
}
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--text-light);
  text-shadow: 2px 2px var(--bg-dark);
}
.hero-content h1 {
  font-family: var(--font-primary);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

.about-section {
  padding: 4rem 0;
}
.about-section h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--accent);
}
.about-section p {
  font-size: 1rem;
  margin: 1rem 0;
  line-height: 1.6;
  text-align: center;
}
@media (min-width: 768px) {
  .about-section {
    text-align: left;
  }
  .about-section p {
    max-width: 800px;
    margin: 1rem auto;
  }
}

.catalog-section {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0;
}
.catalog-section h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.catalog-list {
  list-style: none;
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  border: 2px dashed var(--border);
}
.catalog-list li {
  margin: 0.75rem 0;
  position: relative;
  padding-left: 1.5rem;
}
.catalog-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

.services-section {
  padding: 4rem 0;
}
.services-section h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.service-card {
  background: var(--bg-light);
  border: 2px solid var(--border);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), background var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  background: var(--border);
}
.service-card h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.service-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.gallery-section {
  background: var(--bg-light);
  padding: 4rem 0;
}
.gallery-section h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--accent);
}
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gallery-item {
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.2);
  transition: transform var(--transition), filter var(--transition);
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: sepia(0);
}

.contact-section {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0;
  text-align: center;
}
.contact-section h2 {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.contact-section p {
  margin: 0.5rem 0;
  font-size: 1rem;
}
.contact-section a {
  color: var(--accent-light);
  text-decoration: underline;
}

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 2rem 0;
  text-align: center;
  border-top: 2px dashed var(--border);
}
.footer-inner p {
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .about-section h2 {
    font-size: 2rem;
  }
  .catalog-list {
    padding: 1rem 0.5rem;
  }
  .site-header {
    padding: 0 1rem;
  }
}

/* About Section */
.about-section {
  padding: 4rem 1rem;
  background: #f5f5f5;
  color: #333;
  font-family: "Inter", sans-serif;
}

.about-section .section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #2a3d45;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.about-section__inner {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.about-section__text {
  flex: 1;
  line-height: 1.6;
}

.about-section__text p {
  margin-bottom: 1.5rem;
}

.about-section__text strong {
  color: #b33f3f;
  font-weight: 600;
}

.about-features {
  list-style: none;
  margin: 1rem 0 2rem 0;
  padding: 0;
}

.about-features li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-features li:before {
  content: "➤";
  position: absolute;
  left: 0;
  top: 0;
  color: #b33f3f;
  font-size: 1.25rem;
}

.about-section__image {
  flex: 1;
  text-align: center;
}

.about-section__image img {
  max-width: 100%;
  height: auto;
  border: 6px solid #d9d9d9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
  .about-section__inner {
    flex-direction: column-reverse;
  }
  .about-section__image {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .about-section .section-title {
    font-size: 2rem;
  }
  .about-features li {
    font-size: 0.95rem;
  }
}

.catalog-section {
  padding: 4rem 1rem;
  background: #fff;
  color: #333;
  font-family: "Inter", sans-serif;
}

.catalog-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #2a3d45;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.catalog-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  border: 2px solid #ccc;
  padding: 1.5rem;
  background: #f9f9f9;
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-name {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #b33f3f;
  position: relative;
}

.category-name:after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: #b33f3f;
  margin-top: 0.5rem;
}

.parts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.parts-list li {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  position: relative;
  padding-left: 1.5rem;
}

.parts-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #b33f3f;
  font-size: 1.25rem;
  line-height: 1;
}

.part-code {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #777;
  font-style: italic;
}

@media (max-width: 992px) {
  .catalog-title {
    font-size: 2rem;
  }
  .category-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .catalog-section {
    padding: 2rem 0.5rem;
  }
  .parts-list li {
    font-size: 0.95rem;
  }
  .part-code {
    font-size: 0.8rem;
  }
}

.services-detail-section {
  background: #faf5f0;
  padding: 4rem 1rem;
  font-family: "Inter", sans-serif;
  color: #2e2e2e;
}

.services-detail-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.75rem;
  text-align: center;
  margin-bottom: 3rem;
  color: #5b2a24;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.service-detail {
  margin-bottom: 4rem;
  border-bottom: 1px dashed #ccc;
  padding-bottom: 3rem;
}

.service-detail-heading {
  font-family: "Roboto Slab", serif;
  font-size: 2rem;
  color: #8b1c1c;
  margin-bottom: 1rem;
  position: relative;
}

.service-detail-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #8b1c1c;
  margin-top: 0.5rem;
}

.service-detail-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  text-align: justify;
}

.service-detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 1rem;
}

.service-detail-list li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 1.75rem;
  font-size: 1rem;
}

.service-detail-list li::before {
  content: "»";
  position: absolute;
  left: 0;
  top: 0;
  color: #8b1c1c;
  font-size: 1.25rem;
  line-height: 1;
}

.service-detail-image {
  text-align: center;
  margin: 2rem 0;
}

.service-detail-image img {
  max-width: 100%;
  height: auto;
  border: 4px solid #d4c4b6;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.service-detail-note {
  font-size: 0.875rem;
  color: #555;
  font-style: italic;
  margin-top: 1rem;
}

@media (max-width: 992px) {
  .services-detail-title {
    font-size: 2.25rem;
  }
  .service-detail-heading {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .services-detail-section {
    padding: 2.5rem 0.75rem;
  }
  .services-detail-title {
    font-size: 2rem;
  }
  .service-detail-heading {
    font-size: 1.5rem;
  }
  .service-detail-text,
  .service-detail-list li,
  .service-detail-note {
    font-size: 0.95rem;
  }
}

.site-footer {
  background: #2e2e2e;
  padding: 2rem 1rem;
  color: #ccc;
  font-family: "Inter", sans-serif;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: #ccc;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.footer-links a:hover {
  color: #f3efe8;
  border-color: #f3efe8;
}

.footer-copy {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

@media (max-width: 576px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

.title_background {
  padding-top: 100px;
  background: #f4f1ec;
}
.title_background .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  border-bottom: 2px dashed #b1956b;
}
.title_background .title {
  font-family: "Roboto Slab", serif;
  font-size: 2rem;
  color: #3a2e2b; 
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  position: relative;
}
.title_background .title::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background: #b1956b;
  margin-top: 0.5rem;
}

.text_background {
  background: #fffdf9; 
  padding: 4rem 0;
}
.text_background .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.text_background .text {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #4a403a; 
  text-align: justify;
  text-justify: inter-word;
  border-left: 4px solid #b1956b;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .title_background {
    padding-top: 80px;
  }
  .title_background .title {
    font-size: 1.5rem;
  }
  .text_background .text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .title_background {
    padding-top: 70px;
  }
  .title_background .title {
    font-size: 1.25rem;
  }
  .text_background .text {
    font-size: 0.85rem;
    padding-left: 0.75rem;
  }
}