/* Убираем горизонтальный скролл */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #ffffff;
  color: #000;

}

main {
  display: block;
  margin-top: 180px; /* по дефолту — как высота хедера */
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #252f43;
  color: white;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  padding-top: 10px;
  padding-bottom: 0px;
}


/* Контейнер */
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

/* Левая часть */
.header-left {
  text-align: center;
  max-width: 40%;
  line-height: 1.7; /* увеличим межстрочное */
}
.logo {
  font-family: Times New Roman, Times, serif;
  font-size: 48px;
  font-weight: 400;
  margin: 0;
}

.reg-info {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0px 0;
  font-size: 16px;
  text-align: center;
  color: rgba(192, 192, 192);
}

.address {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  font-size: 16px;
  text-align: center;
  color: rgba(192, 192, 192);
}

/* Навигация */
.header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 35px;
}
.header-nav a {
  font-family: Roboto, Arial, sans-serif;
  color: white;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
}
.header-nav a:hover {
  color: #aaa; /* Цвет при наведении */
  text-decoration: none; /* убираем подчёркивание */
}
.header-nav a.active {
  font-weight: 700;
  color: white;
  text-decoration: none;
}   
/* Правая часть */
.header-right {
  font-family:  Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  /* gap: 6px; */
  font-size: 16px;
  line-height: 1.5;
  padding: 15px;
}

.header-right-full {
  display: flex;
  flex-direction: column;
  align-items: center; /* выравнивание по центру */
  text-align: center;  /* для текста */
  gap: 12px;
}


.header-right a {
  color: white;
  text-decoration: none;
  padding: 8px;
}

.header-right a:hover {
  color: #cccccc; /* или другой цвет по вкусу */
  text-decoration: none;
}


body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #fff;
  overflow-x: hidden;
}
















.main-info {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 30px 20px; /* было 60px — стало 30px */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-info-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.8);
  z-index: 1;
}

.main-info-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;

}

/* Заголовок */
.main-title {
  color: rgba(192, 192, 192);
  font-family: Times New Roman, Times, serif;
  font-size: 48px;
  font-weight: 400;
  margin: 15px;
  text-align: center;
}

/* Контент под заголовком */
.main-info-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  width: 100%;
}

.main-text {
  flex: 1;
  color: white;
  font-size: 19px;
  line-height: 1.8;
  font-weight: bold;
  text-shadow: 1px 1px 3px #000;
  max-width: 60%;
}
.main-text p {
  margin: 12px 0;
}

.main-photo {
  flex-shrink: 0;
}
.main-photo img {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 12px;
}
.info-item {
  font-family: 'Roboto Slab', serif;
  background: rgba(92, 100, 108, 0.5);
  border-left: 4px solid rgb(46, 62, 92);
  padding: 12px 18px;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 500;
  border-radius: 5px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.info-item:hover {
  transform: translateX(6px);
}


.main-text-block {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
  font-family: 'Roboto Slab', serif;
  font-size: 20px;
  line-height: 1.6; /* уменьшено расстояние между строками */
  text-align: justify; /* выравнивание по ширине */
}

.main-text-block h2 {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2; /* уменьшено расстояние между строками заголовка */
  font-weight: 600;
}

.main-text-block ul {
  list-style: none; /* убраны точки */
  padding-left: 0;
}

.main-text-block ul li {
  margin-bottom: 10px;
  text-align: justify;
}

.contact-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.icon-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ffffff;
  transition: transform 0.2s, background-color 0.2s;
}

.icon-link:hover {
  transform: scale(1.1);
  background-color: #ffffff;
}

.icon-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



















/*Обо мне заголовок*/
.about-intro-img {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  margin-top: 60px; /* ← вот он, отступ сверху */
}

.about-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 95%; /* сдвиг вниз по изображению */
  display: block;
}

.about-intro-img .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1;
}

.about-intro-img h1 {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  font-family: 'Times New Roman', Times, serif;
  font-size: 52px;
  font-weight: 400;
  margin: 0;
}

/* Обо мне только текст под заголовком*/
.about-text-block {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
  font-family: 'Roboto Slab', serif;
  font-size: 20px;
  line-height: 1.6;  
  text-align: justify;
}

.about-text-block h2 {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 48px;
  font-weight: 400;
}



















/*Практика заголовок*/
.practice-intro-img {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  margin-top: 80px; /* ← вот он, отступ сверху */
}

.practice-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 95%; /* сдвиг вниз по изображению */
  display: block;
}

.practice-intro-img .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.practice-intro-img h1 {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  font-family: 'Times New Roman', Times, serif;
  font-size: 52px;
  font-weight: 400;
  margin: 0;
}

.practice-buttons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.practice-btn {
  display: inline-block;
  background-color: black;
  color: white;
  padding: 20px 30px;
  font-size: 20px;
  width: 260px; /* фиксированная ширина */
  height: 60px; /* одинаковая высота */
  font-family: 'Roboto Slab', serif;
  border-radius: 15px;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  transition: background-color 0.3s ease;
}

.practice-btn:hover {
  background-color: #333;
}








/*Публицкации заголовок*/
.public-intro-img {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  margin-top: 80px; /* ← вот он, отступ сверху */
}

.public-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 95%; /* сдвиг вниз по изображению */
  display: block;
}

.public-intro-img .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.public-intro-img h1 {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  font-family: 'Times New Roman', Times, serif;
  font-size: 52px;
  font-weight: 400;
  margin: 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 0px; /* 30px — вертикально, 20px — горизонтально */
  padding: 40px;
  justify-items: center;
}
.article-card {
  text-decoration: none;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #b0b0b068;
  width: 100%;
  max-width: 450px;
  max-height: 350px; /* было 350px, теперь уже */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-card img {
  width: 100%;
  height: 150px; /* можно уменьшить до 140 или 120 */
  object-fit: cover;
}

.article-content {
  padding: 20px;
}

.article-content h3 {
  margin: 0 0 10px;
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
  font-weight: 600;
  color: #111;
}

.article-content p {
  margin: 0;
  font-family: 'Roboto Slab', serif;
  font-size: 14px;
  color: #444;
}







/*Отзывы*/
.feedback-intro-img {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  margin-top: 60px; /* ← вот он, отступ сверху */
}

.feedback-intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%; /* сдвиг вниз по изображению */
  display: block;
}

.feedback-intro-img .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

.feedback-intro-img h1 {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: white;
  font-family: 'Times New Roman', Times, serif;
  font-size: 52px;
  font-weight: 400;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman', Times, serif;
  background: #f6f6f6;
}

.review-slider {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
  text-align: center;
}

.review-card {
  background: #cbcccf77;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.review-text {
  font-size: 19px;
  color: rgb(0, 0, 0);
  margin-bottom: 20px;
  text-align: justify;
}

.review-meta {
  font-size: 16px;
  color: #494646;
  font-style: italic;
}

.review-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.review-navigation button {
  padding: 10px 18px;
  background-color: #222;
  color: #fff;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.review-navigation button:hover {
  background-color:  #1a1f57bd;
}

#reviewCounter {
  font-size: 16px;
  color: #444;
}

.review-visible {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.review-hidden {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.review-container {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.review-container.hidden {
  opacity: 0;
}












.contact-section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
  font-family: 'Times New Roman', Times, serif;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 18px;
}

.contact-item img {
  width: 40px;
  height: 40px;
}

.contact-item a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: bold;
}

.contact-item a:hover {
  color: #3f4265;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: none;
  outline: none;
  font-family: 'Times New Roman', Times, serif;
}

.contact-form button {
  width: fit-content;
  background-color: #2c2c2c;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-family: 'Times New Roman', Times, serif;
  font-size: 16px;
}

.contact-form button:hover {
  background-color: #1a1f57bd;
}




.form-agree {
  margin: 8px 0;
  font-size: 15px;
  color: #333;
}

.form-agree label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: normal;
}

.form-agree input[type="checkbox"] {
  accent-color: #000;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.form-agree a {
  font-weight: bold;
  color: #000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.form-agree a:hover {
  color: #555;
}











.footer {
  background-color: #0e1012;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Times New Roman', Times, serif;
  margin-top: 80px;
}

.footer-contact {
  margin-bottom: 8px;
  text-align: center;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #aaaaaa;
}

.footer-center {
  font-size: 14px;
  margin-top: 10px;
  color: #ccc;
}

.consent-text {
  font-size: 14px;
  color: #ccc;
  text-align: center;
  margin-top: 8px;
}

.privacy-link {
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.privacy-link:hover {
  color: #aaaaaa;
}




.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: rgb(233, 233, 233);
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 350px;
  width: 90%;
  font-size: 18px; 
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  animation: scaleIn 0.3s ease-out;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 26px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #000;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}






  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(208, 208, 218, 0.981);
    color: #111;
    padding: 20px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-family: 'Times New Roman', Times, serif;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    gap: 10px;
  }

  .cookie-banner p {
    margin: 0;
    font-size: 16px;
    flex: 1;
  }

  .cookie-link {
    font-weight: bold;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .cookie-link:hover {
    color: #090b23dc;
  }

  .cookie-buttons {
    display: flex;
    gap: 12px;
  }

  .cookie-buttons button {
    font-family: 'Times New Roman', Times, serif;
    background: #111;
    color: white;
    border: none;
    padding: 8px 14px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .cookie-buttons button:hover {
    background-color: #1a1f57bd;
  }








.mobile-header {
  display: none;
}



@media (max-width: 767px) {

  body {
    margin-top: -120px;
  }
  .main-title {
    font-size: 38px;
  }
  .main-text {
    max-width: 100%;
    width: 100%;
    padding: 0 10px;
  }

  .info-item {
    width: 90%;
    text-align: center;
  }
    .main-photo {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .main-photo img {
    width: 80%; /* уменьшаем до 80% ширины экрана */
    max-width: 300px; /* ограничим максимальный размер */
  }
  .main-text-block h2 {
    font-size: 35px;
  }

  .about-text-block h2 {
    font-size: 35px;
  }
  .contact-form input,
  .contact-form textarea {
    width: unset;
  }

  .articles-grid {
    display: flex;
    flex-direction: column;
    padding: 20px 20px;
    gap: 30px;
  }

  .article-card {
    max-width: 100%;
    width: 100%;
    box-shadow: none;

  }

  .site-header {
    display: none;
  }

  .mobile-header {
    display: block;
    background: #252f43;
    color: white;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    width: 100%;
  }

  .mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid white;
  }

  .mobile-logo {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 400;
  }

  .mobile-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .mobile-burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: white;
  }

  .mobile-header-content {
    display: none;
    flex-direction: column;
    background: #252f43;
    padding: 15px 10px 25px;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
  }

  .mobile-header-content.active {
    display: flex;
  }

  .mobile-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    flex: 1;
  }

  .mobile-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 10px;
    white-space: nowrap;
  }

  .mobile-info {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.9);
  }

  .mobile-info a {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 4px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
  }
  .form-agree {
    font-size: 14px;
  }
  .cookie-banner p {
    font-size: 15px;
    flex: unset;
    text-align: center;
  }
  
  .cookie-banner {
    justify-content: center;
  }

}

  




@media (min-width: 768px) and (max-width: 1194px) {
  .contact-form input, 
  .contact-form textarea {
    width: unset;
}

  body {
    margin-top: -120px;
  }

  .site-header {
    display: none;
  }

  .mobile-header {
    display: block;
    background: #252f43;
    color: white;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    width: 100%;
  }

  .mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid white;
  }

  .mobile-logo {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 32px;
    font-weight: 400;
  }

  .mobile-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .mobile-burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: white;
  }

  .mobile-header-content {
    display: none;
    flex-direction: column;
    background: #252f43;
    padding: 15px 10px 25px;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
  }

  .mobile-header-content.active {
    display: flex;
  }

  .mobile-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    flex: 1;
  }

  .mobile-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
  }

  .mobile-info {
    text-align: center;
    font-size: 18px;
    color: rgba(255,255,255,0.9);
  }

  .mobile-info a {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 4px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
  }
 
}