/* === Header === */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 40px;
  background: var(--gradient-warm);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(210, 180, 140, 0.3);
  overflow-x: hidden;
  transition: all 0.6s ease;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .secondary-btn {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--text-primary);
}

.header .secondary-btn:hover {
  background: var(--gradient-accent);
  color: var(--text-secondary);
  border-color: var(--secondary-color);
}

.header-nav {
  display: flex;
  gap: 60px;
  align-items: center;
}

.header-nav-list {
  display: flex;
  gap: 40px;
}

.header-nav-list a {
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding: 8px 0;
}

.header-nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}

.header-nav-list a:hover::after {
  width: 100%;
}

.header-nav-list a:hover {
  color: var(--primary-color);
}

.burger-btn {
  display: none;
}

.mobile-menu {
  display: none;
}

a.header-link-active {
  color: var(--primary-color);
}

@media screen and (max-width: 1240px) {
  .header {
    padding: 15px 20px;
  }

  .header .secondary-btn,
  .header-nav {
    display: none;
  }

  .burger-btn {
    display: block;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-primary);
    transition: all 0.3s ease;
  }

  .burger-btn:hover {
    background: var(--secondary-background);
  }

  .burger-btn svg {
    width: 32px;
    height: 32px;
    color: var(--text-primary);
  }

  .burger-btn:active svg {
    color: var(--primary-hover);
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--gradient-warm);
    backdrop-filter: blur(20px);
    padding: 30px 40px 80px;
    z-index: 1000;
    transition: all 0.4s ease;
    border-left: 1px solid rgba(210, 180, 140, 0.3);
  }

  .mobile-menu-active {
    right: 0;
  }

  .mobile-menu .primary-btn {
    display: block;
  }

  .close-btn {
    display: block;
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    border-radius: var(--border-radius-primary);
    transition: all 0.3s ease;
  }

  .close-btn:hover {
    background: var(--secondary-background);
  }

  .close-btn svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-primary);
  }

  .close-btn:active svg {
    stroke: var(--primary-hover);
  }

  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 200px;
  }

  .mobile-nav-list a {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: var(--border-radius-primary);
    transition: all 0.3s ease;
  }

  .mobile-nav-list a:hover {
    background: var(--secondary-background);
    color: var(--primary-color);
  }
}

/* === Hero === */

.hero {
  padding: 140px 0;
  background: var(--gradient-warm);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23D2B48C" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23DEB887" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%238B7D6B" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.wrapper,
.hero-content {
  width: calc((100% - 80px) / 2);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 56px;
  line-height: 120%;
  margin-bottom: 32px;
  color: var(--text-inverted);
  text-shadow: 0 2px 4px rgba(139, 125, 107, 0.1);
}

.hero .descr {
  margin-bottom: 48px;
  max-width: 520px;
  font-size: 20px;
  color: var(--text-primary);
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.wrapper {
  position: relative;
}

.wrapper-img {
  width: 100%;
  height: 520px;
  border-radius: var(--border-radius-secondary);
  object-fit: cover;
  box-shadow: var(--shadow-medium);
  transition: all 0.4s ease;
}

.wrapper-img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-medium), 0 20px 60px rgba(139, 125, 107, 0.2);
}

.wrapper.right::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  right: -30px;
  bottom: -30px;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-secondary);
  z-index: -1;
  opacity: 0.8;
}

.wrapper.left::after {
  content: "";
  position: absolute;
  top: 30px;
  left: -30px;
  right: 30px;
  bottom: -30px;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-secondary);
  z-index: -1;
  opacity: 0.8;
}

@media screen and (max-width: 1024px) {
  .hero-title {
    font-size: 48px;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    padding: 100px 0;
  }

  .wrapper,
  .hero-content {
    width: 100%;
  }

  .hero-title {
    font-size: 42px;
    text-align: center;
  }

  .hero .descr {
    text-align: center;
    margin: 0 auto 48px;
  }

  .hero-list {
    justify-content: center;
  }
}

/* === About Us === */

.about-us {
  padding: 120px 0;
  background: var(--background-color);
}

.about-us-content {
  width: calc((100% - 80px) / 2);
}

.about-us-content .title {
  margin-bottom: 24px;
}

.about-us-content .descr {
  margin-bottom: 40px;
  font-size: 20px;
}

.about-us-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 48px;
}

.about-us-item {
  width: calc((100% - 48px) / 2);
  text-align: center;
  padding: 24px;
  background: var(--secondary-background);
  border-radius: var(--border-radius-primary);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.about-us-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.about-us-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-primary);
  margin: 0 auto 24px;
  max-width: 56px;
  width: 100%;
  height: 56px;
  box-shadow: var(--shadow-soft);
}

.about-us-item-wrap img {
  width: 28px;
  object-fit: contain;
}

.about-us-item .subtitle {
  margin-bottom: 16px;
  color: var(--text-inverted);
}

.about-us-item .descr {
  margin: 0;
  font-size: 16px;
}

@media screen and (max-width: 1024px) {
  .about-us-item {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .about-us .container-flex {
    flex-direction: column-reverse;
  }

  .about-us-content {
    width: 100%;
    text-align: center;
  }
}

/* === Our Services === */

.our-services {
  padding: 120px 0;
  background: var(--gradient-warm);
  position: relative;
}

.our-services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23D2B48C" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
}

.our-services-content {
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.our-services-content .title {
  margin-bottom: 16px;
  text-align: center;
}

.our-services-content .descr {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
}

.our-services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.our-services-item {
  width: calc((100% - 120px) / 4);
  text-align: center;
  padding: 32px 24px;
  background: var(--secondary-background);
  border-radius: var(--border-radius-primary);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.our-services-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.our-services-item:hover::before {
  transform: scaleX(1);
}

.our-services-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.our-services-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius-primary);
  background: var(--gradient-accent);
  margin: 0 auto 36px;
  box-shadow: var(--shadow-soft);
}

.our-services-item-wrap img {
  width: 36px;
  object-fit: contain;
}

.our-services-item .subtitle {
  margin-bottom: 16px;
  color: var(--text-inverted);
}

.our-services-item .descr {
  font-size: 16px;
  line-height: 150%;
}

@media screen and (max-width: 1024px) {
  .our-services-item {
    width: calc((100% - 80px) / 3);
  }
}

@media screen and (max-width: 768px) {
  .our-services-item {
    width: calc((100% - 40px) / 2);
  }
}

@media screen and (max-width: 500px) {
  .our-services-item {
    width: 100%;
  }
}

/* === Why Choose === */

.why-choose {
  padding: 120px 0;
  background: var(--background-color);
}

.why-choose-content {
  width: calc((100% - 80px) / 2);
}

.why-choose-content .title {
  margin-bottom: 24px;
}

.why-choose-content .descr {
  margin-bottom: 48px;
  font-size: 20px;
}

.why-choose-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.why-choose-item {
  display: flex;
  gap: 28px;
  padding: 24px;
  background: var(--secondary-background);
  border-radius: var(--border-radius-primary);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.why-choose-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-medium);
}

.why-choose-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px;
  height: 56px;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.why-choose-item-wrap img {
  width: 28px;
  object-fit: contain;
}

.why-choose-item-content {
  width: calc(100% - 84px);
}

.why-choose-item-content .subtitle {
  margin-bottom: 16px;
  color: var(--text-inverted);
}

.why-choose-item-content .descr {
  margin: 0;
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  .why-choose-content {
    width: 100%;
  }

  .why-choose-item {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .why-choose-item-content {
    width: 100%;
  }
}



/* === Testimonial === */

.testimonial {
  padding: 120px 0;
  background: var(--background-color);
}

.testimonial-content {
  margin-bottom: 60px;
  text-align: center;
}

.testimonial-content .title {
  margin-bottom: 20px;
}

.testimonial-content .descr {
  max-width: 700px;
  margin: 0 auto;
  font-size: 20px;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.testimonial-item {
  display: flex;
  flex-wrap: wrap;
  width: calc((100% - 60px) / 3);
  padding: 40px;
  height: auto;
  background: var(--secondary-background);
  border-radius: var(--border-radius-primary);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.testimonial-item:hover::before {
  transform: scaleX(1);
}

.testimonial-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.testimonial-item-quote {
  fill: var(--primary-color);
  width: 48px;
  height: 48px;
  transform: rotate(180deg);
  margin-bottom: 32px;
  opacity: 0.8;
}

.testimonial-item-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  margin-left: auto;
  margin-top: auto;
  border: 3px solid var(--secondary-color);
}

.testimonial-item .descr {
  margin-bottom: 60px;
  font-size: 16px;
  line-height: 160%;
}

.testimonial-item-wrap {
  width: calc(100% - 90px);
  margin-top: auto;
}

.testimonial-item-wrap .subtitle {
  margin-bottom: 8px;
  color: var(--text-inverted);
}

.testimonial-item-wrap p {
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: var(--text-primary);
  opacity: 0.8;
}

@media screen and (max-width: 1024px) {
  .testimonial-item {
    width: calc((100% - 30px) / 2);
  }
}

@media screen and (max-width: 768px) {
  .testimonial-item {
    width: 100%;
  }
}

/* === Our Blog === */

.our-blog {
  padding: 120px 0;
  background: var(--gradient-warm);
  position: relative;
}

.our-blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circles" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="%23D2B48C" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23circles)"/></svg>');
  opacity: 0.4;
}

.our-blog-content {
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.our-blog-content .title {
  margin-bottom: 18px;
  text-align: center;
}

.our-blog-content .descr {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
}

.our-blog-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.our-blog-item {
  width: calc((100% - 90px) / 4);
  transition: all 0.4s ease;
  border-radius: var(--border-radius-secondary);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.our-blog-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(360deg, rgba(47, 47, 47, 0.9) 0%, rgba(47, 47, 47, 0.3) 50%, rgba(47, 47, 47, 0) 100%);
  z-index: 1;
}

.our-blog-item-active {
  width: calc((100% - 30px) / 2);
}

.our-blog-item-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: all 0.4s ease;
}

.our-blog-item:hover .our-blog-item-img {
  transform: scale(1.05);
}

.our-blog-item-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.our-blog-item-content .subtitle {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 24px;
}

.our-blog-item .our-blog-item-info,
.our-blog-item .descr {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.our-blog-item-active .our-blog-item-info,
.our-blog-item-active .descr {
  max-height: 500px;
}

.our-blog-item-active .our-blog-item-info {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  opacity: 0.9;
}

.our-blog-item-active .descr {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 16px;
}

@media screen and (max-width: 768px) {
  .our-blog-item-active,
  .our-blog-item {
    width: calc((100% - 30px) / 2);
  }
}

@media screen and (max-width: 500px) {
  .our-blog-item-active,
  .our-blog-item {
    width: 100%;
  }
}

/* === Contact === */

.contact {
  padding: 120px 0 200px;
  position: relative;
  background: var(--background-color);
}

.contact .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: start;
  gap: 80px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  width: calc((100% - 80px) / 2);
}

.contact-content .title {
  margin-bottom: 16px;
  text-align: start;
  max-width: 700px;
}

.contact-content .descr {
  margin-bottom: 24px;
  max-width: 670px;
  font-size: 20px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-bottom: 40px;
}

.contact-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  font-family: var(--font-family);
  font-size: 18px;
  position: relative;
  padding: 16px 24px;
  background: var(--secondary-background);
  border-radius: var(--border-radius-primary);
  transition: all 0.3s ease;
}

.contact-list-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-soft);
}

.contact-list-item svg {
  width: 28px;
  height: 28px;
  fill: var(--primary-color);
}

.contact-list-item .descr {
  margin: 0;
}

.contact-list-item:nth-child(2) svg {
  fill: transparent;
  stroke: var(--primary-color);
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--secondary-background);
  box-shadow: var(--shadow-medium);
  padding: 48px 40px;
  gap: 32px;
  width: 100%;
  border-radius: var(--border-radius-primary);
  border: 1px solid rgba(210, 180, 140, 0.2);
}

.contact-form .primary-btn {
  margin-bottom: 0;
  width: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: calc((100% - 32px) / 2);
}

.form-group label {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.form-group textarea,
.form-group input {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  padding: 18px 20px;
  color: var(--text-primary);
  border: 2px solid rgba(210, 180, 140, 0.3);
  border-radius: var(--border-radius-primary);
  background: var(--background-color);
  outline: none;
  transition: all 0.3s ease;
}

.form-group textarea:hover,
.form-group input:hover {
  border-color: var(--secondary-color);
  background: var(--secondary-background);
}

.form-group textarea:focus,
.form-group input:focus {
  border-color: var(--primary-color);
  background: var(--secondary-background);
  box-shadow: 0 0 0 4px rgba(139, 125, 107, 0.1);
}

.contact-map {
  height: auto;
  border-radius: var(--border-radius-primary);
  border: none;
  min-height: 400px;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .contact-form {
    padding: 32px 24px;
  }

  .form-group {
    width: 100%;
  }

  .contact-content,
  .contact-form {
    width: 100%;
  }
}

/* === Footer === */

.footer {
  padding: 80px 0 30px;
  background: var(--gradient-accent);
  color: var(--text-secondary);
  overflow: hidden;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="1" fill="%23FFFFFF" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
  opacity: 0.3;
}

.footer a {
  color: var(--text-secondary);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.footer a:hover {
  text-decoration: underline;
  opacity: 1;
  transform: translateX(5px);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  position: relative;
  z-index: 2;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-menu h3 {
  font-family: var(--second-family);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-contact,
.footer-menu ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
}

.footer-rights {
  width: 100%;
  margin-top: 40px;
  text-align: center;
  opacity: 0.8;
  font-size: 14px;
}

@media screen and (max-width: 1240px) {
  .footer {
    padding: 60px 0 30px;
  }

  .footer .container {
    padding: 0 20px;
    justify-content: space-between;
    gap: 40px;
  }
}

/* === Cookie Popup === */

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--secondary-background);
  box-shadow: var(--shadow-medium);
  padding: 24px;
  z-index: 1000;
  display: none;
  border-radius: var(--border-radius-primary);
  border: 1px solid rgba(210, 180, 140, 0.3);
  max-width: 500px;
  margin: 0 auto;
}

.cookie-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cookie-popup a {
  text-decoration: underline;
  transition: all 0.3s ease;
  color: var(--primary-color);
}

.cookie-popup a:hover {
  color: var(--primary-hover);
}

.cookie-popup h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  color: var(--text-inverted);
  font-family: var(--second-family);
}

.cookie-popup p {
  margin: 0 0 24px;
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 150%;
}

/* === Our Teachings === */

.our-teachings {
  padding: 120px 0;
  background: var(--gradient-warm);
  position: relative;
}

.our-teachings::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wisdom-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="%23D2B48C" opacity="0.15"/><path d="M10 20 Q20 10 30 20 T50 20" stroke="%23DEB887" stroke-width="1" fill="none" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23wisdom-pattern)"/></svg>');
  opacity: 0.4;
}

.our-teachings-content {
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

.our-teachings-content .title {
  max-width: 600px;
  margin: 0 auto 20px;
  text-align: center;
}

.our-teachings-content .descr {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
}

.our-teachings-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.our-teachings-item {
  width: calc((100% - 40px) / 2);
  padding: 40px 32px;
  border-radius: var(--border-radius-primary);
  background: var(--secondary-background);
  box-shadow: var(--shadow-soft);
  height: auto;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.our-teachings-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.our-teachings-item:hover::before {
  transform: scaleX(1);
}

.our-teachings-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-medium);
}

.our-teachings-item-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-primary);
  background: var(--gradient-accent);
  margin: 0 auto 24px;
  box-shadow: var(--shadow-soft);
}

.our-teachings-item-wrap img {
  width: 40px;
  object-fit: contain;
}

.our-teachings-item .subtitle {
  color: var(--text-inverted);
  margin-bottom: 20px;
  font-size: 24px;
}

.our-teachings-item .descr {
  margin-bottom: 24px;
  text-align: center;
  font-size: 16px;
  line-height: 160%;
}

.teaching-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.feature-tag {
  background: var(--gradient-accent);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.feature-tag:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-soft);
}

@media screen and (max-width: 1024px) {
  .our-teachings-item {
    width: calc((100% - 40px) / 2);
  }
}

@media screen and (max-width: 768px) {
  .our-teachings-item {
    width: 100%;
  }
  
  .our-teachings-content .descr {
    font-size: 18px;
  }
  
  .our-teachings-item .subtitle {
    font-size: 22px;
  }
}
