/* ОБЩИЕ СТИЛИ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HEADER */
.header {
  background-color: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-controls {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center ;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: #222;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #0077cc;
  transition: 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* БУРГЕР */
.burger {
  display: none; /* виден только в адаптиве */
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  width: 100%;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: 0.3s ease;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6.8px, 6.8px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6.8px, -6.8px);
}

@media screen and (max-width: 1100px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
 
  
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background-color: white;
  position: fixed;
  top: 0;
  right: 0;
  width: 30%;
  height: 100vh;
  padding: 2rem 1.5rem;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.mobile-menu.show {
  transform: translateX(0);
}

.mobile-menu a {
  padding: 1rem 0;
  font-size: 1rem;
  border-bottom: 1px solid #eee;
}

.close-btn {
  align-self: flex-end;
  font-size: 2rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

/* ГЕРОЙ-СЕКЦИЯ */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  padding: 64px 0 0 0; /* компенсируем header */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(0);
  transition: transform 0.2s ease-out;
  will-change: transform;
  z-index: 1;
}

.hero-content {
   position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  padding: 64px 0 0 0;
}

.hero-text {
  max-width: 50%;
  margin-top: 0%;
}

.hero-text h1 {
  font-family: 'Georgia', serif;
  font-size: 4.2rem;
  color: #e8d0a9;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero-text p {
  font-size: 1.6rem;
  color: white;
  line-height: 1.6;
  max-width: 100%;
}

.hero-photo {
    position: static;
  width: 80vw;
  max-width: 30vw;
  height: auto;
  object-fit: contain;
  z-index: 2;
  margin-top: 2rem; 
}



/* ОБЩИЙ СТИЛЬ ДЛЯ ВСЕХ СЕКЦИЙ */
section {
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

/* APPROACH */
.approach {
  background-color: white;
}

.approach h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.approach-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  max-width: 1100px;
  gap: 2rem;
}

.approach-content img {
  max-width: 400px;
  height: auto;
  border-radius: 8px;
}

.approach-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 600px;
}

.lang-switch {
  position: relative;
  margin-left: 1.5rem;
}

.lang-btn {
  background: none;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  display: none;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 1000;
}

.lang-switch:hover .lang-dropdown {
  display: flex;
}

#languageSelect {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-color: transparent;
  color: #333;
  padding: 0.4rem 1.8rem 0.4rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,0 140,0 70,100' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.65rem auto;
  transition: background-color 0.3s, border-color 0.3s;
}

#languageSelect:hover {
  background-color: #f8f8f8;
  border-color: #ccc;
}

#languageSelect:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: none;
}

.lang-dropdown button {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  text-align: left;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
}

.lang-dropdown button:hover {
  background: #f0f0f0;
}

.lang-mobile {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding-top: 1rem;
}
.lang-mobile button {
  background: none;
  border: 1px solid #aaa;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.approach {
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
}

.approach-wrapper {
  display: flex;
  flex-direction: row;
  gap: 6rem; /* увеличен */
  max-width: 1300px;
  width: 100%;
  align-items: center;
}

.approach-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.approach-text {
  flex: 1;
  font-size: 1.15rem; /* увеличено */
  line-height: 1.8;
}


.approach-text h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #1e2b4e;
  margin-bottom: 0.2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title span {
  display: block;
  font-size: 1.2rem;
  color: #1e2b4e;
  margin-bottom: 0.3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  color: #1e2b4e;
  font-weight: 700;
}

.approach-text h3 {
  font-size: 2rem;
  font-weight: bold;
  color: #1e2b4e;
  margin-bottom: 1.5rem;
}

.approach-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.approach-text ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.approach-text li {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.expertise {
  background-color: #0d1b3f;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
}

.expertise-wrapper {
  display: flex;
  flex-direction: row;
  gap: 5rem;
  max-width: 1300px;
  width: 100%;
  align-items: center;
}

.expertise-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  max-height: 600px;
}

.expertise-text {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #fff;
}

.expertise-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.4;
}

.expertise-text p {
  margin-bottom: 1.5rem;
}

.humanistic {
  background-color: #f9f9f9;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5rem 2rem 0;
  margin: 0;
}

.humanistic-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.humanistic-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #111;
}

.humanistic-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #001d3d;
}

.humanistic-text ul {
  list-style-type: disc;
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

/* Новый футер/контакты */
.contact-fullbar {
  background-color: #001d3d;
  color: white;
  width: 99.2vw;
  height: 200px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  font-size: 1.7rem;
  font-weight: 600;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: none;
}


.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}



/* АДАПТАЦИЯ */
@media screen and (max-width: 450px) {
  .container {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .hero {
    padding-top: 56px;
    height: 100vh;
  }
  
  .hero-content {
  flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-end;
  padding: 64px 0 0 0;
}

  .hero-text {
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 1.5rem;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.4rem;
  }

  .hero-photo {
   position: static;
    width: 85vw;
    max-width: 320px;
    height: auto;
    transform: none;
}

  .approach-wrapper,
  .expertise-wrapper {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .approach-text,
  .expertise-text {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .approach-text ul,
  .humanistic-text ul {
    padding-left: 1rem;
  }

  .contact-fullbar {
    flex-direction: column;
    font-size: 1rem;
    height: auto;
    padding: 2rem 1rem;
    text-align: center;
  }

    .mobile-menu {
    width: 80%;
    padding: 4rem 1.5rem;
  }

  .mobile-menu a {
    font-size: 1.1rem;
    padding: 1rem 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1100px) {
  .container {
    padding: 1rem 1.5rem;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav-controls {
    gap: 1rem;
  }

  .hero {
    padding-top: 64px;
  }

   .hero-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 0 0 0;  
    gap: 2rem;
  }

  .hero-text {
    max-width: 100%;
    margin: 0;
  }

  .hero-text h1 {
    font-size: 4rem;
  }

  .hero-text p {
    font-size: 2.5rem;
  }

  .hero-photo {
    position: static;
    width: 100vw;
    max-width: 720px;
    height: auto;
    object-fit: contain;
  }

  /* Секции тоже по центру */
  .approach-wrapper,
  .expertise-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .approach-text
  {
    font-size: 2rem;
  }
.approach-text p {
  font-size: 1.8;
}
  .approach-text ul {
    margin-left: 0;
  }
  .expertise-text {
    font-size: 1.8rem;
    padding: 0 1.5rem;
  }
  .humanistic-text
  {
   font-size: 2rem; 
  }
  .mobile-menu {
    width: 40%;
    padding: 4rem 1.5rem;
  }

  .mobile-menu a {
    font-size: 1.1rem;
    padding: 1rem 0;
  }

  .lang-mobile {
    gap: 0.5rem;
  }

  .contact-fullbar {
    flex-direction: column;
    font-size: 1.1rem;
    padding: 2rem;
    height: auto;
    text-align: center;
  }
}

