@import url('https://fonts.googleapis.com/css2?family=Cormorant:wght@400;600;700&family=Bona+Nova:wght@400;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-green: #032F33;
  --color-burgundy: #501616;
  --color-blue: #0F2856;
  --color-light-beige: #E1DBD7;
  --color-dark-beige: #CBB09B;
  --font-logo: 'Cormorant', serif;
  --font-heading: 'Bona Nova', serif;
  --font-body: 'Montserrat', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-green);
  background-color: #E1DBD7;
}


/* Decorative layer only; it does not constrain page content */
.ladwig-band-wrapper {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.ladwig-band-wrapper::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 5rem;
  width: min(15vw, 195px);
  background-image: url("../images/ladwig_band.svg");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
  pointer-events: none;
}

html, body {
  overflow-x: hidden; 
}

/* ==================== HEADER/NAVIGATION ==================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #E1DBD7;
  z-index: 1000;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none; 
  }

.logo img {
  height: 60px;          
  width: auto;           
  object-fit: contain;    
  display: block;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-green);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-burgundy);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--color-burgundy);
}

/* ==================== BURGER MENU ==================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; 
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--color-green); /* Цвет палочек */
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ==================== MAIN CONTENT ==================== */
main {
  margin-top: 90px;
}

/* ==================== HERO SECTION ==================== */
.hero {
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-image {
  width: 120%;
  height: 165%;
  background: transparent;
  animation: orbit 30s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes orbit {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(75px, -75px);
  }
  50% {
    transform: translate(0, -150px);
  }
  75% {
    transform: translate(-75px, -75px);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ==================== SECTIONS ==================== */
section {
  padding: 2rem 3rem 0rem;
  max-width: 1300px;
  margin: 0 auto;
  scroll-margin-top: 100px;
}

section.full-width {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

section.services {
  max-width: 1300px;
  margin: 0 auto;
  scroll-margin-top: 100px;
  padding: 1rem 3rem;
}

section h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-green);
  margin-bottom: 2rem;
  text-align: center;
}

section h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-burgundy);
  margin-bottom: 1rem;
}

/* ==================== Titles ==================== */

.title-spaced  {
  padding-top: 80px; 
}

.title-burgundy {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin: 1rem 0 1rem 0;
}

.title-green {
  color: var(--color-green);
}

/* ==================== LADWIGEX SECTION ==================== */
.section-about {
  background-color: #f9f8f6;
  background-image: url('../images/hero_abstract6_1.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.about-text {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 4rem 0;
  gap: 3rem;
  
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ==================== LADWIGEX METRICS SECTION ==================== */
.metrics-container {
  max-width: 1200px;
  display: flex;
  justify-content: space-evenly; 
  align-items: flex-start;       
  gap: 3rem;                     
  margin: 0 auto; 
  padding-top: 3rem;
  padding-bottom: 3rem;               
  width: 100%;
}

.metric-item {
  flex: 1;                       
  display: flex;
  flex-direction: column;        
  align-items: center;           
  text-align: left;            
}

.metric-num {
  font-family: var(--font-body); 
  color: var(--color-green);         
  font-size: 5rem;                
  font-weight: 700;
  line-height: 1;                  
  margin-bottom: 0.5rem;
}

.metric-line {
  display: block;
  width: 190px;                   
  height: 5px;                    
  background-color: var(--color-burgundy); 
  margin: 1.1rem;           
}

.metric-text {
  font-family: var(--font-body);    
  color: var(--color-green);        
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 200px;                 
  margin: 10;
}

/* ==================== SERVICES SECTION ==================== */
.line-title {
  display: flex;
  align-items: center;
  text-align: center;
  font-weight: bold;
}

.line-title::before,
.line-title::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #032F33;
}

.line-title::before {
  margin-right: 60px;
}

.line-title::after {
  margin-left: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.service-item {
  text-align: center;
}

.service-icon img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border-radius: 50%;
}

.service-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px #032F33;
}

.service-item a {
  text-decoration: none;
  color: inherit;
}

.service-item h3 {
  margin: 0;
}

.service-item p {
  font-size: 0.9rem;
  color: var(--color-burgundy);
}

/* ==================== SERVICE DETAIL PAGES ==================== */
.service-detail-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.service-details-container {
  max-width: 1200px; 
  margin: 3rem auto 0; 
  padding: 0 1.5rem;
  text-align: left; 
}

.details-main-title {
  font-family: var(--font-heading);
  color: var(--color-green);
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
 }

.details-main-title a {
  color: inherit;        
  text-decoration: none;   
}


.details-main-title a:hover {
  text-decoration: underline
}

.details-sub-title {
  font-family: var(--font-heading);
  color: var(--color-burgundy);
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.details-group {
  margin-bottom: 2rem; 
}

@keyframes scrollClients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem));
  }
}

/* ==================== BASIC DESIGN SECTIONS==================== */
.basic-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}
.basic-icon-item {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-green);
  font-weight: 600;
  line-height: 1.6;
}

.basic-icon-animated {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.basic-icon-animated-item {
  text-align: center;
  font-size: 1.2rem;
  color: var(--color-burgundy);
  font-weight: 600;
  text-decoration: underline; 
  text-underline-offset: 5px
}

.basic-icon-animated:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px #032F33;
}

.basic-icon-animated p {
  font-size: 1.2rem;
  color: var(--color-burgundy);
}*/

/* ==================== CONTACTS SECTION ==================== */
.section-contacts {
  background-color: #eae4e4;
  background-image: url('../images/hero_abstract6_1.png');
  background-size: cover;
  background-position: center;
  padding: 4rem;
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

}

.contacts-intro {
  text-align: left;
  max-width: 1300px;
  margin: 0 auto 3rem;
  position: relative;
  padding-left: 2rem;
}

.contacts-intro::before {
  content: '';
  position: absolute;
  left: 0px;
  top: 0;
  width: 10px;
  height: 100%;
  background-color: var(--color-burgundy);
}

.contacts-intro p {
  font-size: 1.2rem;
  font-weight: 500;
}

.contacts-columns {
  max-width: 1300px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-form-section h3,
.contact-info-section h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group.full {
  grid-template-columns: 1fr;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem;
  border: 1px solid var(--color-dark-beige);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background-color: rgb(240, 234, 234);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  grid-column: 1 / -1;
}

.required-note {
  font-size: 1rem;
  color: var(--color-burgundy);
  margin-bottom: 1rem;
}

.btn-submit {
  background: var(--color-green);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.btn-submit:hover {
  background: var(--color-burgundy);
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(80, 22, 22, 0.3);
}

.contact-info-item {
  margin-bottom: 2rem;
}

.contact-info-item p {
  margin: 0.5rem 0;
}

.contact-link {
  color: var(--color-burgundy);
  text-decoration: none;
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-link-footer {
  color: white;
  text-decoration: none;  
}

.contact-link-footer:hover {
  text-decoration: underline; 
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.social-links-footer {
  display: flex;
  justify-content: center; 
  gap: 0.4rem;             
  margin-top: 0.4rem;      
}

.social-icon {
  color: #032f33;
  font-size: 40px; 
}

.social-icon,
.social-icon-white {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon-white {
  color: #ffffff;
  font-size: 28px; 
}

.social-icon:hover {
  color: var(--color-burgundy);
  transform: scale(1.1);
}

.social-icon-white:hover {
  color: var(--color-dark-beige);
  transform: scale(1.1);
}

footer {
  background-color: var(--color-green);
  color: white;
  text-align: center;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem;
  font-size: 0.9rem;
}

/* ==================== EXPERTISE PAGE ==================== */
.expertise-section {
  padding: 3rem 0
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.expertise-item {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.expertise-text {
  width: 100%;
  margin-bottom: 1rem;
}

.expertise-image {
 flex: 50%;         
 position: relative;     
}

.expertise-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  
}

.expertise-list-regular, .expertise-list {
  list-style: none; 
  margin: 0;
  padding: 0; 
}

.expertise-list-regular li, .expertise-list li {
  font-family: var(--font-body);
  color: var(--color-green); 
  position: relative;
  padding-left: 1.5em;
  padding-bottom: .8em;
  font-size: 1rem;
  line-height: 1.3;
}

.expertise-list li {
  font-weight: 600;
}
.expertise-list-regular strong {
  color: var(--color-green); 
  font-weight: 600;
}

.expertise-list-regular > li::before, .expertise-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  width: 0.58em;
  height: 0.58em;
  border: 0.12em solid currentColor;
  background-color: currentColor;
  border-radius: 50%;
  top: 0.5lh;
  transform: translateY(-50%);
}

.accent-bar {
  margin: 2rem 0;
  padding: 0 0 0 2rem;
  text-align: left;        
  position: relative;
  max-width: 1300px;       
}

.accent-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;            
  height: 100%;            
  background-color: var(--color-burgundy); 
}

.accent-bar p {
  font-family: var(--font-body);
  font-size: 1.2rem;       
  font-weight: 600;       
  line-height: 1.65;
  color: var(--color-green); 
  margin: 0;               
}

/* ==================== IMAGE PLACEHOLDER ==================== */
.image-placeholder {
  max-width: 1300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  position: relative;
}

.image-placeholder .banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; 
  z-index: 1;        
}

.image-placeholder .banner-text {
  position: relative;
  z-index: 2;
  color: var(--color-green);
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;  
  text-align: center;
  padding: 0 20px;
  }

/* ==================== CTA BANNER SECTION ==================== */
.cta-banner-white {
  padding: 1.5rem;               
  box-sizing: border-box;              
  border: none;                         
  margin: 2rem 0; 
  max-width: 1300;
  background-color: whitesmoke; 
 }

.cta-banner {
  padding: 4.5rem 1.5rem;               
  box-sizing: border-box;              
  border: none;                         
  margin: 2rem 0; 
  max-width: none;
  width: 100vw;
  left: 50%;
  background-color: var(--color-green); 
}

.cta-content {
  max-width: 1000px;                     
  margin: 0 auto;                       
  text-align: center;                   
  display: flex;                        
  flex-direction: column;               
  align-items: center;                  
  gap: 1.2rem;                          
}

.cta-title {
 font-family: var(--font-heading);     
  color: #ffffff;                      
  font-size: 2.2rem;                    
  margin: 0;                            
  font-weight: 600;                     
  letter-spacing: 0.5px; 
}

/* White style description */
.cta-text .cta-text-burgundy {
  font-family: var(--font-body);        
  font-size: 1.05rem;                   
  line-height: 1.6;                     
  margin: 0 0 0.5rem 0;                 
}
.cta-text {
  color: rgba(255, 255, 255, 0.9);
}
.cta-text-burgundy {
  color: var(--color-burgundy);
  font-weight: 600;
}

/* Text link style */
.cta-text-link .cta-text-link-burgundy {
  display: inline-block;                
  font-family: var(--font-body);        
  font-size: 1.15rem;                   
  text-decoration: underline;           
  text-underline-offset: 5px;           
  transition: color 0.2s ease, transform 0.2s ease; 
}
.cta-text-link {
  color: var(--color-dark-beige);
  font-weight: 600;
}

.cta-text-link-burgundy {
  color: var(--color-burgundy);
  font-weight: 600;
}

/* ==================== FULLSCREEN PICTURE BANNER ==================== */
.full-bleed-image-banner,
.full-bleed-image-banner-left {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 300px; 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 3rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .icons-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contacts-columns {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .full-bleed-image-banner,
  .full-bleed-image-banner-left {
  width: 100%;
  height: 160px; 
  object-fit: cover;
 }
 .full-bleed-image-banner {  
  background-position: center;
 }

 .full-bleed-image-banner-left {
  background-position: left center;
 }
}

@media (max-width: 1028px) {
  header {
    padding: 1rem 1.5rem;
  }
  
  .ladwig-band-wrapper::before {
    left: 1.5rem;
  }
  
  /* Burger menu integration  */
  .menu-toggle {
    display: flex; 
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 90px; 
    left: 0;
    right: 0;
    background-color: #e6e3e3;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem; 
    width: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1.2rem 0;
    border-bottom: 1px solid #f5f5f5; 
    font-size: 1.1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links.open {
    opacity: 1;
    display: flex; /* новое */
    visibility: visible;
    transform: translateY(0);
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0; 
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  /* (Final of integration burger menu button) */

  .hero {
    height: 350px;}

    .hero-image {
    width: 140%;
    height: 190%;
    background: transparent;
    animation: orbit 45s linear infinite;
    }

 .metrics-container {
    flex-direction: column;         
    align-items: center;
    gap: 3.5rem;                    
    margin: 3rem 0;
  }

  .metric-num {
    font-size: 4rem;               
  }
  
  .metric-text {
    font-size: 1rem;
  }

  section {
    padding: 1rem 1.8rem;
  }

  h2 a, 
  h2.details-main-title, 
  h2.line-title,
  section h3,
  h3 a,
  h3.title-burgundy,
  h3.title-green {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  h3 {
    margin-bottom: 1rem;
    line-height: 1.3;
  }
  
  p {
  font-size: 16px;
  line-height: 1.6;
  padding: 0 16px;
  }

  section.services {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  scroll-margin-top: 100px;
  padding: 1.5rem 1rem;
}
 
.services-grid {
  grid-template-columns: repeat(2, 1fr);
  }

  .service-icon {
  width: 100px;
  height: 100px;
  }

  .section-contacts {
    padding: 0.5rem;
  }
  .icons-grid {
      grid-template-columns: repeat(2, 1fr);
    }

  .hero {
      height: 350px;
    }

  .form-group {
      grid-template-columns: 1fr;
    }

  .about-text {
    grid-template-columns: 1fr;
    padding: 0 36px    
    }
  
  .accent-bar p {
    font-size: 16px;
    line-height: 1.6;
    padding-left: 1rem;

  }
    .accent-bar::before {
      margin-left: 1rem;
    }
  
    .contacts-intro {
      margin-top: 48px;
    }
    .contacts-intro::before {
      margin-left: 48px;
    }
  
 .contacts-intro p {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  padding-left: 3rem;
}

.cta-banner {
    padding: 3.5rem 1rem;              
  }

  .cta-title {
    font-size: 1.65rem;                 
  }

  .cta-text {
    font-size: 0.95rem;                 
  }

  .cta-text-link {
    font-size: 1.1rem;                  
  }  
 .full-bleed-image-banner, .full-bleed-image-banner-left {
  position: static;   
  margin-left: 0;     
  margin-right: 0;
  margin-top: 0;
  left: auto;
  right: auto;
  width: 100%;        
  height: 160px;
  background-size: cover;
  background-position: center;
 }
  .full-bleed-image-banner {  
  object-position: center;
}

  .full-bleed-image-banner-left {
  background-position:left center;
 }
  .details-sub-title {
  font-size: 1.15rem;
  }

 /* AREAS OF EXPERT. PAGE */

 .expertise-grid {
    grid-template-columns: 1fr;
    gap: 0;              
  }

 .expertise-item {
    flex-direction: column;
    align-items: initial;
    gap: 2rem;                   
    padding: 0 1rem;
    margin-bottom: 0.5;
  }

 .expertise-image {
    flex: none;
    width: 100%;
    height: 350px;             
  }
 .expertise-image img {
    position: static;
    height: 100%;
  }
}
