* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #4a4747;
  font-family: Jost, sans-serif;
  color: #c2c2c2;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

.content {
  flex: 1;
}

html {
  scroll-behavior: smooth;
}

body::before {
  content: "";
  position: fixed;
  top: 200px;
  left: 0px;
  width: 500px;
  height: 500px;
  background-image: url("icons/fern left.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  bottom: 10px;
  right: 0px;
  width: 500px;
  height: 500px;
  background-image: url("icons/fern\ right.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  margin: 50px 0 50px 50px;
}

.logo img {
  height: 200px;
  width: auto;
}

.nav-menu {
  display: flex;
  margin-right: 150px;
}

.nav-menu-element {
  color: #c2c2c2;
  text-decoration: none;
  padding-inline: 30px;
  margin-inline: 30px;
  font-size: 30px;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.nav-menu-element:hover {
  border: black 1px outset;
  border-radius: 30px;
  box-shadow: 0 0 20px 1px rgb(37, 37, 37);
}

.block {
  position: relative;
  background-color: rgba(107, 107, 107, 0.3);
  border-radius: 40px;
  box-shadow: 0 0 20px 1px rgb(37, 37, 37);
  max-width: 80vw;
  margin: 0 auto;
  margin-bottom: 50px;
}

.block::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("icons/line_1.png");
  background-repeat: no-repeat;
  background-size: cover; /* или contain */
  background-position: center;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
  border-radius: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.description {
  font-size: clamp(18px, 4vw, 25px);
  background-color: rgba(36, 36, 36, 0.3);
  border-radius: 30px;
  box-shadow: 0 0 20px 10px rgb(71, 71, 71);
  width: 90%;
  max-width: 500px;
  padding: 20px 30px;
  height: auto;
  margin: 0 auto 30px;
  text-align: left;
  box-sizing: border-box;
  word-wrap: break-word;
}

.label {
  font-size: 40px;
  padding-top: 40px;
  margin-left: 60px; /* одинаковый отступ слева */
  text-align: left;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* две равные колонки */
  gap: 40px;
  align-items: center;
  padding: 20px 60px;
}

.pic {
  text-align: center;
}

.round-photo {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 20px 1px rgb(255, 255, 255);
  transition: transform 0.3s ease;
}

.round-photo:hover {
  transform: scale(1.05);
}

.description {
  font-size: 20px;
  background-color: rgba(36, 36, 36, 0.3);
  border-radius: 30px;
  box-shadow: 0 0 20px 10px rgb(71, 71, 71);
  width: 100%;
  max-width: 500px;
  padding: 25px 30px;
  margin: 0 auto;
  text-align: left;
}

.stats-section {
  max-width: 80vw;
  margin: 0 auto 50px;
  padding: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 60px;
  padding: 50px 30px;
  box-shadow: 0 0 20px 1px rgb(37, 37, 37);
}

.stat-card {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #f0f0f0, #c2c2c2);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.stat-label {
  font-size: 20px;
  color: #c2c2c2;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
}

.works-container {
  display: flex;
  margin: 0 auto;
  margin-bottom: 50px;
  margin-top: 50px;
  flex-direction: column;
  align-items: center;
  background-color: rgb(61, 61, 61);
  border-radius: 60px;
  text-decoration: none;
  color: #c2c2c2;
  box-shadow: 0 0 20px 10px rgb(71, 71, 71);
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.works-container:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px 15px rgba(0, 0, 0, 0.6);
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.works-pic img {
  width: 400px;
  height: auto;
  object-fit: cover;
  max-height: auto;
}

.works-info {
  display: flex;
}

.works-description {
  font-size: 24px;
  max-width: 300px;
  padding-bottom: 40px;
}

.works-calendar img {
  position: relative;
  display: flex;
  width: 100px;
  top: 100px;
  left: -30px;
}

.book-block {
  display: flex;
  align-items: center;
  gap: 50px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 40px;
  margin: 40px 0 0;
  flex-wrap: wrap;
}

.book-image {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.book-image img {
  max-width: 200px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.book-image img:hover {
  transform: scale(1.05);
}

.book-description {
  flex: 2;
  min-width: 250px;
}

.book-description h3 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #fff;
}

.book-text {
  font-size: 18px;
  line-height: 1.6;
  color: #c2c2c2;
}

.book-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-book {
  display: inline-block;
  background-color: #2c3e50;
  color: #c2c2c2;
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid rgba(194, 194, 194, 0.3);
}

.btn-book:hover {
  background-color: #c2c2c2;
  color: #2c3e50;
  transform: translateY(-2px);
  border-color: #c2c2c2;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.review img {
  display: flex;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  justify-content: center;
  align-items: center;
}

.contacts-wrapper {
  display: flex;
  gap: 40px;
  padding: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-form {
  flex: 1;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  box-sizing: border-box;
  font-size: 18px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: #c2c2c2;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #c2c2c2;
  background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
  color: rgba(194, 194, 194, 0.6);
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 150px;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-family: inherit;
  background: linear-gradient(135deg, #c2c2c2, #8a8a8a);
  border: none;
  border-radius: 50px;
  color: #2a2a2a;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #d4d4d4, #9a9a9a);
}

.submit-btn span {
  transition: transform 0.3s ease;
}

.submit-btn:hover span {
  transform: translateX(5px);
}

.contacts-info {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.telegram-card,
.qr-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.telegram-card:hover,
.qr-card:hover {
  transform: translateY(-5px);
}

.footer a {
  text-decoration: none;
}

.fa-telegram {
  color: rgb(0, 0, 0);
  font-size: 56px;
}

.telegram-card h3 {
  margin: 10px 0;
  font-size: 22px;
}

.telegram-card p {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.tg-link {
  display: inline-block;
  color: #c2c2c2;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #c2c2c2;
  transition: all 0.3s ease;
}

.tg-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.qr-card img {
  max-width: 150px;
  height: auto;
  border-radius: 20px;
}

.qr-card p {
  margin-top: 15px;
  font-size: 14px;
  opacity: 0.7;
}

.footer {
  background-color: #1a1a1a;
  padding: 30px 50px;
  margin-top: auto;
  border-top: 1px solid rgba(194, 194, 194, 0.2);
}

.footer-elements {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-rights p,
.footer-madeby p,
.footer-faq p {
  margin: 0;
  font-size: 14px;
  color: #8a8a8a;
}

.footer-madeby a,
.footer-faq a {
  color: #c2c2c2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-madeby a:hover,
.footer-faq a:hover {
  color: #fff;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-icons i {
  font-size: 24px;
  color: #8a8a8a;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block; /* убирает лишние отступы */
  line-height: 1; /* фиксирует высоту строки */
}

.footer-icons i:hover {
  color: #fff;
  transform: translateY(-3px);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  justify-content: center;
  align-items: center;
  transition:
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.lightbox.active {
  display: flex;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
  opacity: 1;
}

.close {
  position: fixed;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
}

.go-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #c2c2c2;
  color: #2a2a2a;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.go-top:hover {
  background-color: #fff;
  transform: translateY(-5px);
}

.go-top.show {
  opacity: 1;
  visibility: visible;
}

/* Страница FAQ */

.faq-page {
  max-width: 80vw;
  margin: 40px auto 60px;
}

.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-header h1 {
  font-size: 48px;
  color: #fff;
  margin-bottom: 15px;
}

.faq-header p {
  font-size: 20px;
  color: #c2c2c2;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.faq-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 25px 30px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-question {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.faq-question span {
  font-size: 28px;
}

.faq-answer {
  font-size: 16px;
  color: #c2c2c2;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-card.open .faq-answer {
  max-height: 300px;
}

.faq-contact {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 40px;
}

.faq-contact p {
  font-size: 22px;
  margin-bottom: 20px;
  color: #fff;
}

.btn-faq-contact {
  display: inline-block;
  background-color: #c2c2c2;
  color: #2a2a2a;
  padding: 12px 32px;
  text-decoration: none;
  border-radius: 40px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-faq-contact:hover {
  background-color: #fff;
  transform: translateY(-2px);
}

/* Активная кнопка навигации */
.nav-menu-element.active {
  border-bottom: 2px solid #c2c2c2;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .header {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    margin: 30px auto; /* центрируем лого */
  }

  .logo img {
    height: 150px; /* чуть меньше на мобилках */
  }

  .nav-menu {
    margin-right: 0;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 5%;
  }

  .block {
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 14px;
  }

  .contacts-wrapper {
    flex-direction: column;
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .nav-menu-element {
    font-size: 20px;
    padding-inline: 15px;
    margin-inline: 10px;
  }

  .label {
    font-size: 30px;
    margin-left: 20px;
    padding-top: 25px;
    padding-bottom: 15px;
    text-align: center;
  }

  .contact-input-block {
    width: 280px;
    font-size: 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .round-photo {
    width: 200px;
    height: 200px;
  }

  .description {
    width: 95%;
    font-size: 16px;
    margin: 0 auto;
  }

  .works-grid {
    grid-template-columns: 1fr; /* одна колонка вместо двух */
    gap: 20px;
    padding: 0 15px;
  }

  .works-container {
    width: 100%;
    margin: 0 auto 30px;
  }

  .works-pic img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .works-description {
    max-width: 90%;
    font-size: 18px;
    text-align: center;
  }

  .book-block {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 30px;
  }

  .book-description h3 {
    font-size: 24px;
  }

  .book-text {
    font-size: 16px;
  }

  .contacts-wrapper {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .contact-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .contacts-info {
    width: 100%;
    max-width: 400px;
    align-items: center;
  }

  .telegram-card,
  .qr-card {
    width: 100%;
    box-sizing: border-box;
  }

  .form-group input {
    width: 100%;
    box-sizing: border-box;
  }

  .submit-btn {
    width: 100%;
  }

  .footer {
    margin-top: 0;
    padding: 20px;
  }

  .footer-elements {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .footer-icons {
    justify-content: center;
  }

  .go-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .faq-page {
    max-width: 95vw;
    margin: 30px auto 40px;
  }

  .faq-header h1 {
    font-size: 32px;
  }

  .faq-header p {
    font-size: 16px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .faq-card {
    padding: 20px;
  }

  .faq-question {
    font-size: 18px;
  }

  .faq-question span {
    font-size: 24px;
  }

  .faq-answer {
    font-size: 14px;
  }

  .faq-contact p {
    font-size: 18px;
  }

  .btn-faq-contact {
    padding: 10px 24px;
    font-size: 16px;
  }
}

@media (min-width: 769px) {
  .pic-1 {
    margin-left: 50%;
  }

  .pic-2 {
    margin-left: -50%;
  }

  .pic-3 {
    margin-left: 50%;
  }

  .pic-4 {
    margin-left: -50%;
  }
}

@media (max-width: 1200px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 10px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .contacts {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}
