:root {
    --black: #000000;
    --white: #ffffff;
    --bg-dark: #0f0f0f;
    --bg-light: #1a1a1a;
    --bg-light-gray: #cdcdcd;
    --text-white: #ffffff;
    --text-white-muted: #d3d3d3;
    --text-muted: #b3b3b3;
    --text-black: #000000;
    --text-gray: #666666;
    /* --accent: #e52620;    */
    --accent: #BC4C4B;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  a {
    text-decoration: underline;
    color: #000;
    transition: .2s;
    &:hover {
      color: var(--accent);
      text-decoration: none;
    }
  }

  .btn-general, a.btn-general {    
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
  }

  .btn-general:hover, a.btn-general:hover {
    background: var(--accent);
    color: var(--text-white);
    text-decoration: none;
  }

  .btn-black, a.btn-black {
    /* background: var(--text-black); */
    display: inline-block;
    border: 1px solid var(--text-black);
    color: var(--text-black);
  }

  .btn-black:hover, a.btn-black:hover {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: var(--text-white);
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background: var(--black);
    /* color: var(--text-white); */
    line-height: 1.6;
  }
  
  /* HERO */
  
  .hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
  }

  @media (max-width: 900px) {
    .hero {
      height: 50vh;
    }
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/img/hero4.jpg') top / contain no-repeat;
    filter: grayscale(100%);
    z-index: 0;
    animation: grayscale-pulse 4s ease-in-out infinite;
  }

  @keyframes grayscale-pulse {
    0%, 100% {
      filter: grayscale(100%);
    }
    50% {
      filter: grayscale(0%);
    }
  }
  
  .hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, var(--black) 100%);
    z-index: 1;
  }

  .hero .overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, transparent 0%, rgb(0 0 0 / 42%) 50%, transparent 100%);
    background-size: 300% 100%;
    background-position: -100% 0%;
    animation: light-sweep 12s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
  }

  @keyframes light-sweep {
    0% {
      background-position: -50% 0%;
    }
    50% {
      background-position: 200% 0%;
    }
    100% {
      background-position: -50% 0%;
    }
  }
  
  .hero-header {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 30px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .hero-header .container {
    display: flex;
    align-items: start;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
  }
  
  .hero-logo {
    width: 120px;
    height: auto;
    flex-shrink: 0;
  }
  
  .hero-menu {
    display: flex;
    gap: 30px;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
  }
  
  .hero-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
  }
  
  .hero-menu a:hover {
    color: var(--accent);
  }

  .hero-menu a::after {
    content: "→";
    transition: transform 0.3s ease;
    margin-left: 10px;
  }

  .hero-menu a:hover:after {
    transform: translateX(5px);
  }

  @media (max-width: 900px) {
    .hero-header {
      padding: 0 0;
    } 

    .hero-header .container {
      flex-wrap: wrap;
      padding: 20px 0;
    }
    
    .hero-logo {
      width: 100px;
    }

    .hero-menu {
      bottom: 30px;
      gap: 20px;
    }

    .lang-switch {
      margin-left: auto;
    }
  }

  @media (max-width: 600px) {

    .hero-logo {
      width: 75px;
    }


    .hero-menu {
      transform: none;
      gap: 15px;
      margin: 20px 10px 0 0;
    }

    .lang-switch {
      margin: 10px 0 0 0
    }

    .hero-header .lang-switch { margin: 0; }
  }

  .company-text {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 20px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-white);
    text-align: left;
  }

  .company-text p {
    margin: 0;
  }

  @media (max-width: 600px) {
    .company-text {
      width: calc(100% - 40px);
      margin: 20px auto;
      font-size: 14px;
      text-align: left;
    }
  }
  
  /* SECTIONS */
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
  }
  
  section {
    padding: 80px 0;
  }

  @media (max-width: 900px) {
    .container { width:calc(100% - 40px); margin:0 20px; }}

  /* DIRECTIONS */
  
  .directions {
    background: linear-gradient(to bottom, var(--black) 0%, var(--black) 100%);
    padding: 100px 0;
  }

  .direction {
    background: var(--black);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    min-height: 360px;
    margin-bottom: 50px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .direction-image {
    flex: 0 0 50%;
    max-width: 40%;
    overflow: hidden;
    position: relative;
  }

  .direction-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      transparent 0%,
      rgba(0, 0, 0, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .direction:hover .direction-image::after {
    opacity: 1;
  }

  .direction-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
    filter: grayscale(50%);
  }

  .direction:hover .direction-image img {
    transform: scale(1.08);
    filter: grayscale(30%);
  }

  .direction-content {
    flex: 1 1 auto;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
  }

  .direction-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .direction:hover .direction-content::before {
    transform: scaleY(1);
  }
  
  .direction h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin: 0 0 20px 0;
    line-height: 1.2;
    transition: color 0.3s ease;
  }

  .direction:hover h2 {
    color: var(--accent);
  }
  
  .direction p {
    color: var(--text-white-muted);
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 30px 0;
    flex: 1;
  }
  
  .direction a {
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
  }

  .direction .btn-general {
    margin-top: 0;
  }

  @media (max-width: 600px) {
    .direction p {
      font-size: 14px;
    }
  }

  /* FOOTER */
  
  .footer {
    background: #000;
    padding: 40px 0;
    font-size: 14px;
    width: 100%;
  }
  
  .footer-container {
    width:calc(100% - 40px);
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
  }
  
  .footer-left {
    color: var(--text-muted);
  }

  .footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
  }

  .footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-nav li {
    margin: 0;
  }

  .footer-nav a {
    color: var(--accent);
    text-decoration: underline;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    font-size: 14px;
  }

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

  .footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
  }

  /* CONTACT CTA */
  
  .contact-cta {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-dark);
  }

  .contact-cta-background {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background: url('/assets/img/hero-footer.jpg') center / cover no-repeat;
    background-attachment: fixed;
    opacity: 1;
    transform: translateZ(0);
    will-change: transform;
  }

  .contact-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgb(111 19 16) 100%);
    z-index: 1;
  }

  .contact-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
    width: 90%;
  }

  .contact-cta-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.3;
  }

  .contact-cta-text {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
  }

  .btn-cta {
    font-size: 16px;
    padding: 15px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .btn-cta:hover, a.btn-cta:hover {
    background: var(--black);
    color: var(--text-white);
  }

  @media (max-width: 900px) {
    .contact-cta {
      min-height: 350px;
    }

    .contact-cta-title {
      font-size: 28px;
    }

    .contact-cta-text {
      font-size: 16px;
    }

    .contact-cta-background {
      background-attachment: scroll;
    }
  }
  

  /* PRODUCTS */

.products {
    background: #ffffff;
    color: #000;
  }
  
  .section-title {
    font-size: 28px;
    margin-bottom: 50px;
    /* border-left: 4px solid var(--accent); */
    /* padding-left: 20px; */
  }
  
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .product-card {
    background: var(--bg-dark);
    padding: 30px;
    border-top: 4px solid var(--accent);
  }
  
  .product-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--text-white);
  }
  
  .product-card ul {
    list-style: none;
  }
  
  .product-card li {
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .product-card li:last-child {
    border-bottom: none;
  }

  .product-card li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .product-card li a:hover {
    color: var(--accent);
  }
  
  /* RESPONSIVE */
  
  @media (max-width: 900px) {
    .product-grid {
      grid-template-columns: 1fr;
    }
  }

/* RESPONSIVE DIRECTIONS */

@media (max-width: 900px) {
  .directions {
    padding: 0px 0;
    margin-bottom: 40px;
  }

  .directions .container {
    padding: 0 0;
    margin: 0 0;
    width: 100%;
  }

  .direction {
    
    min-height: auto;
    margin: 10px 10px 10px 0;
  }

  .direction-image {
    flex: 0 0 300px;
    max-width: 40%;
    min-height: 300px;
  }

  .direction-content {
    padding: 40px 30px;
  }

  .direction-content::before {
    width: 100%;
    height: 4px;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    transform: scaleX(0);
    transform-origin: left;
  }

  .direction:hover .direction-content::before {
    transform: scaleX(1);
  }

  .direction h2 {
    font-size: 24px;
  }
}

@media(max-width:600px){
  .direction { flex-direction: column; margin:0; }
  .direction-image { flex: 0 0 100%; max-width: 100%; min-height: 200px; }
  .direction-content { padding: 20px 20px; }
}
  
  /* LANGUAGE SWITCH (shared for hero and header) */

.lang-switch {
  position: relative;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.lang-select-btn {
  color: var(--white);
  padding: 6px 10px 6px 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}

.lang-switch:hover .lang-select-btn {
  background: var(--black);
}

.lang-select-text {
  display: inline-block;
}

.lang-select-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.lang-switch:hover .lang-select-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0px);
  right: 0;
  background: var(--black);
  min-width: 100%;
  text-align: right;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.lang-switch:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 8px 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-option:hover {
  color: var(--accent);
}

/* Header language switcher (positioning) */
.header-lang-switch {
  position: relative;
  width: fit-content;
  margin-right: 20px;
}

@media(max-width:1100px){
  .header-lang-switch { position: absolute; top: 37px; left: 140px; width:fit-content; display: flex; }
}

@media(max-width:900px){
  .header-lang-switch {  margin-top: 0px; }
}

@media(max-width:600px){
  .header-lang-switch { left: 120px; top:40px; }
}

@media (max-width: 1100px) {
  .lang-select-btn {
    justify-content: flex-start;
  }

  .hero-header .lang-select-btn { justify-content: flex-end; }

  .lang-dropdown { text-align: left; }

  .hero-header .lang-dropdown { text-align: right; }
}

/* EXPERTISE */

.expertise {
  background: var(--bg-light-gray);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.expertise-card {
  background: var(--white);
  padding: 0;
  overflow: hidden;
}

.expertise-card-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-bottom: 0;
  background: var(--bg-dark);
}

.expertise-card h3,
.expertise-card ul {
  padding: 0 30px;
}

.expertise-card h3 {
  padding-top: 20px;
}

.expertise-card ul {
  padding-bottom: 30px;
}

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

.expertise-card:hover .expertise-card-image img {
  transform: scale(1.1);
}

.expertise-card h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.expertise-card ul {
  list-style: none;
}

.expertise-card li {
  color: var(--text-gray);
  padding: 8px 0;
  position: relative;
  padding-left: 20px;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.expertise-card li:hover {
  color: var(--text-black);
}

.expertise-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transition: width 0.3s ease, height 0.3s ease, left 0.3s ease, top 0.3s ease;
}

.expertise-card li:hover::before {
  width: 12px;
  height: 12px;
  left: -5px;
  top: 10px;
}

/* ABOUT */

.about {
  position: relative;
  background: var(--bg-light-gray);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: background-shift 10s ease-in-out infinite;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(205, 205, 205, 1) 100%);
  z-index: 0;
}

@keyframes background-shift {
  0%, 100% {
    background-position: center center;
  }
  50% {
    background-position: center 60%;
  }
}

.about .container {
  position: relative;
  z-index: 1;
}

.about h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-black);
  margin-bottom: 30px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
}

.about h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-black);
  margin-top: 40px;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.5);
}

.about p {
  color: var(--text-black);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 900px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.4);
}

.about p strong {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.4);
}

.about ul {
  list-style: none;
  margin-top: 20px;
  margin-bottom: 20px;
  max-width: 900px;
}

.about li {
  color: var(--text-black);
  font-size: 16px;
  line-height: 1.8;
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.4);
}

.about li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--white);
}

/* RESPONSIVE */

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

/* HEADER CONTACTS */

.header-contacts {
  position: absolute;
  top: 30px;
  left: 0px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.header-contacts a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 16px
}

.header-contacts a:hover {
  color: #fff;
}

/* FOOTER */

.footer a {
  color: var(--text-muted);
}

.footer a:hover {
  color: #fff;
}


@media (max-width: 900px) {

  .logo { width: 120px;}

  .header-contacts {
    position: relative;
    top: 0;
    left: 0;
    width:100%;
    margin-top:30px;
  }

  .footer-container {
    width: calc(100% - 40px);
    margin: 0 20px;
    flex-direction: column;
    gap: 30px;
  }

  .footer-right {
    align-items: flex-start;
  }

  .footer-nav ul {
    gap: 8px;
  }
}

/* CONTACT PAGE */

.contact {
  background: var(--bg-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  color: var(--text-white);
}

.contact-description {
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  font-size: 16px;
  line-height: 1.6;
}

.contact-details {
  margin-top: 30px;
}

.contact-details p {
  margin-bottom: 20px;
}

.contact-email a,
.contact-phones a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

.contact-email a:hover,
.contact-phones a:hover {
  color: #fff;
}

.contact-form-wrapper {
  background: #161616;
  padding: 40px;
  border-left: 4px solid var(--accent);
}

.contact-form-row {
  margin-bottom: 30px;
}

.contact-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-white);
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 12px 15px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: var(--accent);
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: var(--text-muted);
}

.contact-input {
  height: 46px;
}

.contact-textarea {
  height: 150px;
  resize: vertical;
}

.contact-input.fail,
.contact-textarea.fail {
  border-color: var(--accent);
}

.contact-submit {
  background: var(--accent);
  color: var(--text-white);
  border: none;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Inter', sans-serif;
}

.contact-submit:hover {
  background: #a01212;
}

.contact-msg {
  font-size: 16px;
  color: #4caf50;
  margin-top: 20px;
  padding: 15px;
  background: rgba(76, 175, 80, 0.1);
  border-left: 3px solid #4caf50;
  display: none;
}

.contact-msg.show {
  display: block;
}

/* RESPONSIVE CONTACT */

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }
}