/* Используем только локальные шрифты из папки fonts */

@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/Bebas Neue Cyrillic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Hello January';
  src: url('fonts/Hello_January_script_cyrillic_Script.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Inter Medium';
  src: url('fonts/Inter-Medium.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Pushkin';
  src: url('fonts/Pushkin.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: 'Inter Medium', Arial, sans-serif;
  background: #f8f5f0;
  color: #5a4a3f;
  line-height: 1.7;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}
.header-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.2rem 2.5rem 1.2rem 2.5rem;
  background: #f8f5f0;
}
.header-logo, .header-mobile-logo {
  font-family: 'Playfair Display', serif;
  color: #741c16;
  font-weight: 700;
  font-size: 0.37rem;
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.01em;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 30px;
}
.header-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 90px;
}
.header-mobile-logo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 90px;
}
.header-big {
  font-size: 1.35em;
  color: #741c16;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}
.header-of {
  font-size: 0.7em;
  color: #741c16;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin: 0.01em 0 0.01em 0;
  width: 100%;
  text-align: center;
  display: block;
}
.header-menu {
  display: flex;
  gap: 3rem;
  align-items: center;
}
.header-menu a {
  text-decoration: none;
  color: #741c16;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  padding: 0.4em 0.2em;
}
.header-menu a:hover {
  color: #b8a898;
}
.header-socials {
  display: flex;
  gap: 1.7rem;
  align-items: center;
}
.header-social-icon {
  width: 30px;
  height: 30px;
  opacity: 0.85;
  transition: opacity 0.2s;
  filter: brightness(0) saturate(100%) invert(17%) sepia(70%) saturate(1654%) hue-rotate(342deg) brightness(91%) contrast(95%);
}
.header-social-icon:hover {
  opacity: 1;
}
.header-burger {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.5rem;
}
.burger-line {
  width: 2rem;
  height: 2.5px;
  background: #741c16;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.header-mobile-menu {
  display: none;
  background: #fffdfa;
  border-top: 1px solid #ede6dd;
  padding: 1.5rem 2rem;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.header-mobile-menu.active {
  display: block;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mobile-nav a {
  text-decoration: none;
  color: #741c16;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  padding: 0.7rem 0;
  border-bottom: 1px solid #ede6dd;
  transition: color 0.2s;
}
.mobile-nav a:hover {
  color: #b8a898;
}
.mobile-socials {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
.header-ref {
  background: #f8f5f0;
  padding: 0.1rem 0 0.7rem 0;
  border-bottom: none;
  position: relative;
}
.header-row { display: none !important; }
.header-center-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.5rem;
}
.header-photo-square {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 1.1rem;
  background: #fffdfa;
  margin-bottom: 1.2rem;
  border: none;
  box-shadow: none;
}
.header-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  color: #5a4a3f;
  margin: 0.2rem 0 0.7rem 0;
  font-weight: 400;
  text-align: center;
}
.header-subtitle {
  font-size: 1.08rem;
  color: #7a6a5a;
  font-family: 'Inter Medium', Arial, sans-serif;
  margin-bottom: 0.5rem;
  text-align: center;
}
@media (max-width: 700px) {
  .header-photo-square {
    width: 90px;
    height: 90px;
  }
  .header-title {
    font-size: 1.5rem;
  }
}
/* Удаляю старые стили header-top, header-center, header-photo, header-title-block */
.header-top, .header-center, .header-photo, .header-title-block { display: none !important; }
.main-section {
  padding: 4.5rem 1rem 3rem 1rem;
  text-align: center;
  background: #f8f5f0;
}
.main-section h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.7rem;
  color: #5a4a3f;
  margin-bottom: 0.7rem;
  font-weight: 400;
}
.main-section p {
  font-size: 1.15rem;
  color: #7a6a5a;
  margin-bottom: 2.2rem;
}
.cta-btn {
  background: #f8f5f0;
  color: #5a4a3f;
  border: 1.5px solid #b8a898;
  border-radius: 0.7rem;
  padding: 1rem 2.7rem;
  font-size: 1.08rem;
  font-family: 'Bebas Neue Cyrillic', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  min-width: 220px;
  text-align: center;
  line-height: 1;
}

.cta-btn:hover {
  background: #ede6dd;
  color: #b8a898;
}
section {
  max-width: 900px;
  margin: 0 auto 3.5rem auto;
  background: #fffdfa;
  border-radius: 1.1rem;
  border: 1px solid #ede6dd;
  box-shadow: none;
  padding: 2.7rem 2.2rem;
}

.about-section {
  background: linear-gradient(135deg, #f5f1eb 0%, #ede6dd 100%);
  border: none;
  box-shadow: 0 20px 60px rgba(139, 69, 19, 0.15);
  border-radius: 2rem;
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 69, 19, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.about-section .section-title {
  position: relative;
  z-index: 2;
  margin-bottom: 3rem;
}

.title-sub{
  margin-bottom: 30px;
}

.about-section .title-main {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 3.5rem !important;
  color: #741c16;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
}

.about-section .title-sub {
  font-family: 'Hello January', cursive;
  font-size: 6rem;
  color: #741c16;
  margin-top: -1.3em;
  margin-left: 1.5em;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: left;
  /* font-weight: bold;  */
}

.about-content {
  position: relative;
  z-index: 2;
}

.about-section .about-photo {
  box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
  border-radius: 1.5rem;
  overflow: hidden;
  border: 3px solid #ffffff;
}

.about-section .about-text {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

.about-section .about-toggle-btn {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: white;
  border: none;
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
  transition: all 0.3s ease;
}

.about-section .about-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 69, 19, 0.4);
  background: linear-gradient(135deg, #a0522d 0%, #8b4513 100%);
}

.about-cta {
  text-align: center;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}
section h2 {
  font-family: 'Great Vibes', cursive;
  color: #5a4a3f;
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
  font-size: 2rem;
  font-weight: 400;
}
section h2, .cta-section h2 {
  font-size: 3.8rem;
}
.formats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  justify-content: space-between;
}
.format {
  flex: 1 1 250px;
  background: #f8f5f0;
  border-radius: 0.7rem;
  border: 1px solid #ede6dd;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: none;
}
.examples-gallery, .homework-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  justify-items: center;
  margin-bottom: 1.5rem;
}
.gallery-item {
  background: linear-gradient(135deg, #fff 0%, #fefcf8 100%);
  border-radius: 0.3rem;
  box-shadow: 0 2px 16px 0 rgba(184,168,152,0.08);
  border: 2px solid #e6b87a;
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transform: rotate(0deg);
}
.gallery-item:hover {
  box-shadow: 0 6px 28px 0 rgba(230,184,122,0.25);
  transform: translateY(-3px) rotate(1deg) scale(1.02);
  border-color: #d4a574;
}
.gallery-item img {
  width: 100%;
  max-width: 380px;
  height: 240px;
  object-fit: cover;
  border-radius: 0.2rem;
  box-shadow: 0 2px 12px 0 rgba(184,168,152,0.1);
  transition: all 0.3s ease;
  display: block;
  border: 1px solid #f0e8d8;
}
.gallery-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 4px 20px 0 rgba(230,184,122,0.15);
  border-color: #e6b87a;
}
.gallery-item figcaption {
  font-size: 1rem;
  color: #6d5c48;
  text-align: center;
  margin-bottom: 0.3rem;
  margin-top: 0.6rem;
  font-family: 'Bebas Neue Cyrillic', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.faq-section details {
  margin-bottom: 1.2rem;
  background: #f8f5f0;
  border-radius: 0.7rem;
  border: 1px solid #ede6dd;
  padding: 1rem 1.2rem;
  box-shadow: none;
  overflow: hidden;
  transition: box-shadow 0.3s, border 0.3s;
}
.faq-section details[open] {
  box-shadow: 0 4px 16px 0 rgba(90,74,63,0.08);
  border-color: #b8a898;
}
.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  color: #5a4a3f;
  font-size: 1.08rem;
  outline: none;
  transition: color 0.2s;
  position: relative;
  padding-right: 1.5rem;
}
.faq-section summary::after {
  content: '▼';
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 1rem;
  color: #b8a898;
  transition: transform 0.3s;
}
.faq-section details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}
.faq-section details > *:not(summary) {
  padding: 1rem 0 0.5rem 0;
  color: #7a6a5a;
  font-size: 1.05rem;
  line-height: 1.6;
}
.faq-section details[open] > *:not(summary) {
  animation: fadeIn 0.3s ease-in-out;
}
.faq-section details p {
  margin: 0;
}
.faq-section details ul {
  margin: 0;
  padding-left: 1.5rem;
}
.faq-section details li {
  margin-bottom: 0.5rem;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.contacts-section ul {
  list-style: none;
  padding: 0;
}
.contacts-section li {
  margin-bottom: 0.7rem;
}
.footer {
  text-align: center;
  padding: 2rem 0 1.2rem 0;
  color: #b8a898;
  background: #f8f5f0;
  font-size: 1rem;
  border-top: 1px solid #ede6dd;
}
@media (max-width: 900px) {
  .header-navbar {
    padding: 0.7rem 1rem 0.7rem 1rem;
  }
  .header-logo {
    text-align: center;
    margin-bottom: 0.5rem;
  }
  .header-menu {
    gap: 1.5rem;
  }
  .header-menu a {
    font-size: 1.2rem;
    padding: 0.3em 0.1em;
  }
  .header-social-icon {
    width: 22px;
    height: 22px;
  }
  section {
    padding: 1.2rem 0.7rem;
  }
  .formats-list {
    flex-direction: column;
    gap: 1.2rem;
  }
  .header-ref {
    padding: 0.1rem 0 0.5rem 0;
  }
}
@media (max-width: 768px) {
  .header-navbar {
    display: none;
  }
  .header-mobile-top {
    display: flex;
  }
}
@media (max-width: 600px) {
  .header-mobile-top {
    padding: 0.7rem 1rem;
  }
  .header-mobile-logo {
    font-size: 1.1rem;
  }
  .header-mobile-menu {
    padding: 1rem 1rem;
  }
  .header-logo {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }
  .header-menu {
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
  }
  .header-menu a {
    font-size: 1.1rem;
    padding: 0.3rem 0;
  }
  .header-socials {
    justify-content: center;
    margin-top: 0.3rem;
  }
  .header-social-icon {
    width: 20px;
    height: 20px;
  }
  .main-section h1 {
    font-size: 1.5rem;
  }
  .gallery-item {
    max-width: 100%;
    padding: 0.7rem 0.3rem 0.5rem 0.3rem;
  }
  .gallery-item img {
    max-width: 98vw;
    height: 38vw;
    min-height: 120px;
  }
}
.header-burger.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.header-burger.active .burger-line:nth-child(2) {
  opacity: 0;
}
.header-burger.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
.header-mobile-top {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #f8f5f0;
}
.header-mobile-logo {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #8b4513;
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .header-navbar {
    display: none;
  }
  .header-mobile-top {
    display: flex;
  }
  .header-burger {
    display: flex;
  }
}

/* --- Testimonials --- */
.testimonials-section {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  background: #fffdfa;
  border-radius: 1.1rem;
  border: 1px solid #ede6dd;
  padding: 2.7rem 2.2rem;
}
.testimonials-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 2.5rem auto 0 auto;
  align-items: start;
}
.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8f5f0;
  border-radius: 0;
  border: 1px solid #ede6dd;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 24px 0 rgba(184,168,152,0.13);
}
.testimonial-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ede6dd;
}
.testimonial-photo.large {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.2rem auto;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(90,74,63,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-photo.large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.testimonial-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.testimonial-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  flex: 1;
}
.testimonial-text.short {
  max-height: 4.5em; /* примерно 3 строки текста */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.testimonial-text {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 18px;
  color: #6d5c48;
  line-height: 1.5;
  margin-bottom: 0.5em;
}
.testimonial-toggle-btn,
.testimonial-hide-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  font-size: 18px;
  color: #6d5c48;
  background: #fff;
  border: 2px solid #e6b87a;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Inter', Arial, sans-serif;
  text-decoration: none;
  font-weight: normal;
}
.testimonial-toggle-btn:hover,
.testimonial-hide-btn:hover {
  background: #e6b87a;
  color: #fff;
}
.testimonial-hide-btn {
  display: block;
  margin-top: 16px;
}
.testimonial-btn-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 10px;
}
.testimonial-role {
  color: #e6b87a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-size: 1.08rem;
  margin-bottom: 0.5em;
  margin-top: 0.1em;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

/* --- Results --- */
.results-section {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  background: #fffdfa;
  border-radius: 1.1rem;
  border: 1px solid #ede6dd;
  padding: 2.7rem 2.2rem;
}
.results-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.result-card {
  background: #f8f5f0;
  border-radius: 0.7rem;
  border: 1px solid #ede6dd;
  padding: 1.2rem 1.5rem;
  min-width: 180px;
  text-align: center;
  font-size: 1.08rem;
}
.result-time {
  display: block;
  font-weight: 700;
  color: #b8a898;
  margin-bottom: 0.5rem;
}

/* --- Certificates --- */
.certificates-section {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  background: #fffdfa;
  border-radius: 1.1rem;
  border: 1px solid #ede6dd;
  padding: 2.7rem 2.2rem;
  text-align: center;
}
.certificates-list {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.certificate-img {
  max-width: 220px;
  border-radius: 0.7rem;
  border: 1px solid #ede6dd;
  background: #f8f5f0;
}

/* --- For Whom --- */
.forwhom-section {
  background: #fdfaf5;
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto 4rem auto;
  border-radius: 2rem;
  box-shadow: 0 4px 24px 0 rgba(184,168,152,0.08);
  position: relative;
}
.forwhom-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  min-height: 400px;
}
.forwhom-item {
  position: absolute;
  padding: 0.8rem 1.5rem;
  background: #fffdfa;
  border-radius: 2rem;
  border: 1px solid #ede6dd;
  box-shadow: 0 2px 12px 0 rgba(184,168,152,0.08);
  font-size: 1rem;
  color: #5a4a3f;
  font-family: 'Inter Medium', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.4;
  transition: all 0.3s ease;
  cursor: default;
  max-width: 300px;
}
.forwhom-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px 0 rgba(90,74,63,0.15);
  z-index: 10;
}

/* Хаотичное позиционирование */
.item-1 {
  top: 0;
  left: 5%;
  transform: rotate(-2deg);
}
.item-2 {
  top: 60px;
  right: 10%;
  transform: rotate(1deg);
}
.item-3 {
  top: 120px;
  left: 15%;
  transform: rotate(2deg);
  max-width: 350px;
}
.item-4 {
  top: 180px;
  right: 5%;
  transform: rotate(-1deg);
}
.item-5 {
  top: 240px;
  left: 25%;
  transform: rotate(1.5deg);
  max-width: 380px;
}
.item-6 {
  top: 300px;
  right: 20%;
  transform: rotate(-1.5deg);
}
.item-7 {
  top: 360px;
  left: 10%;
  transform: rotate(0.5deg);
  max-width: 400px;
}

/* --- Values --- */
.values-section {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  background: #fffdfa;
  border-radius: 1.1rem;
  border: 1px solid #ede6dd;
  padding: 2.7rem 2.2rem;
}
.values-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.value-card {
  background: #f8f5f0;
  border-radius: 0.7rem;
  border: 1px solid #ede6dd;
  padding: 1.2rem 1.5rem;
  min-width: 150px;
  text-align: center;
  font-size: 1.08rem;
}

/* --- CTA --- */
.cta-section {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  background: #fffdfa;
  border-radius: 1.1rem;
  border: 2px solid #b8a898;
  padding: 2.7rem 2.2rem;
  text-align: center;
}
.cta-btn-big {
  display: inline-block;
  background: linear-gradient(90deg, #b8a898 0%, #5a4a3f 100%, #b8a898 200%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fffdfa;
  border: none;
  border-radius: 0.7rem;
  padding: 1.2rem 2.7rem;
  font-size: 1.15rem;
  font-family: 'Inter Medium', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  box-shadow: 0 2px 12px 0 rgba(90,74,63,0.10);
}
.cta-btn-big:hover {
  animation: gradient-move 1.2s linear infinite;
  color: #fffdfa;
  transform: scale(1.05);
}
.cta-btn-big:not(:hover) {
  animation: none;
  background-position: 0% 50%;
}
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* --- Footer --- */
.footer-contacts {
  text-align: center;
  margin-bottom: 1rem;
  color: #5a4a3f;
}
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}
.footer-social-icon {
  width: 26px;
  height: 26px;
  opacity: 0.8;
  transition: opacity 0.2s;
  filter: brightness(0) saturate(100%) invert(17%) sepia(70%) saturate(1654%) hue-rotate(342deg) brightness(91%) contrast(95%);
}
.footer-social-icon:hover {
  opacity: 1;
}
.footer-copy {
  text-align: center;
  color: #b8a898;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-dev {
  text-align: center;
  color: #5a4a3f;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(135deg, #fffdfa 0%, #f8f5f0 100%);
  border-radius: 20px;
  border: 1.5px solid #ede6dd;
  box-shadow: 0 4px 16px rgba(184, 168, 152, 0.15);
  max-width: 300px;
  margin: 1rem auto 0.5rem auto;
  overflow: hidden;
  transition: all 0.3s ease;
}

.footer-dev::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(184, 168, 152, 0.15), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.footer-dev:hover::before {
  left: 100%;
}

.footer-dev {
  text-decoration: none;
  display: block;
  cursor: pointer;
}

.footer-dev-name {
  color: #741c16;
  font-weight: 600;
  font-family: 'Inter Medium', sans-serif;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.footer-dev:hover .footer-dev-name {
  color: #b8472a;
}

.footer-dev:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(184, 168, 152, 0.25);
  border-color: #b8a898;
  background: linear-gradient(135deg, #f8f5f0 0%, #ede6dd 100%);
}

/* Адаптивность для footer-dev */
@media (max-width: 900px) {
  .footer-dev {
    max-width: 320px;
    font-size: 0.9rem;
    padding: 0.8rem 1.6rem;
  }
}

@media (max-width: 700px) {
  .footer-dev {
    max-width: 280px;
    font-size: 0.85rem;
    padding: 0.7rem 1.4rem;
    margin: 0.8rem auto 0.5rem auto;
  }
}

@media (max-width: 480px) {
  .footer-dev {
    max-width: 250px;
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
    border-radius: 15px;
  }
  
  .footer-dev-name {
    letter-spacing: 0.2px;
  }
}

@media (max-width: 360px) {
  .footer-dev {
    max-width: 220px;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 700px) {
  .testimonials-list, .results-list, .values-list, .certificates-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .testimonial, .result-card, .value-card {
    max-width: 100%;
    min-width: unset;
  }
  .testimonials-section, .results-section, .values-section, .certificates-section {
    padding: 2rem 1rem;
    margin: 0 1rem 2rem 1rem;
  }
  .forwhom-section {
    padding: 2rem 1rem;
  }
  .forwhom-list {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: static;
  }
  .forwhom-item {
    position: static;
    transform: none !important;
    max-width: none;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    text-align: center;
  }
  .forwhom-item:hover {
    transform: scale(1.02) !important;
  }
  section {
    padding: 2rem 1rem;
  }
  .format {
    padding: 1.2rem;
  }
  .how-item {
    padding: 1.2rem;
  }
  /* Убираем индивидуальное позиционирование на мобильных */
  .item-1, .item-2, .item-3, .item-4, .item-5, .item-6, .item-7 {
    position: static;
    transform: none !important;
    top: auto;
    left: auto;
    right: auto;
    max-width: none;
  }
  .cta-section {
    padding: 1.2rem 0.7rem;
  }
  section h2, .cta-section h2 { 
    font-size: 2.8rem; 
    margin-bottom: 2rem;
  }
}

/* Анимация появления */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.section, section, .formats-section, .about-section, .how-section, .faq-section, .contacts-section, .examples-section, .testimonials-section, .results-section, .forwhom-section, .values-section {
  animation: fadeInUp 0.9s cubic-bezier(.4,0,.2,1) both;
}
.format, .how-item, .gallery-item {
  animation: fadeInUp 1.1s cubic-bezier(.4,0,.2,1) both;
}
.about-photo img, .gallery-item img {
  animation: fadeInLeft 1.2s cubic-bezier(.4,0,.2,1) both;
}
.about-toggle-btn, .format-toggle-btn, .how-toggle-btn {
  animation: fadeIn 1.3s cubic-bezier(.4,0,.2,1) both;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s;
}
.about-toggle-btn:active, .format-toggle-btn:active, .how-toggle-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 12px 0 rgba(184,168,152,0.10);
}
/* Анимация для раскрывающихся блоков */
.about-full, .format-full, .how-full {
  animation: fadeInUp 0.7s cubic-bezier(.4,0,.2,1) both;
}

/* Карточки и hover-эффекты */
.testimonial, .result-card, .forwhom-card, .value-card {
  box-shadow: 0 4px 24px 0 rgba(184,168,152,0.10);
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
  background: linear-gradient(135deg, #fffdfa 80%, #f8f5f0 100%);
}
.testimonial:hover, .result-card:hover, .forwhom-card:hover, .value-card:hover {
  box-shadow: 0 8px 32px 0 rgba(90,74,63,0.13);
  transform: translateY(-4px) scale(1.03);
  background: linear-gradient(135deg, #f8f5f0 60%, #ede6dd 100%);
}

/* Кавычки для отзывов */
.testimonial-quote {
  font-size: 2.5rem;
  color: #b8a898;
  line-height: 1;
  margin-bottom: 0.2rem;
}

/* Иконки в карточках */
.forwhom-icon, .value-icon {
  font-size: 1.6rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* Градиент для CTA и футера */
.cta-section {
  background: linear-gradient(120deg, #ede6dd 60%, #f8f5f0 100%);
  border: none;
  box-shadow: 0 4px 32px 0 rgba(184,168,152,0.10);
}
.cta-btn-big {
  background: linear-gradient(90deg, #b8a898 60%, #5a4a3f 100%);
  color: #fffdfa;
  box-shadow: 0 2px 12px 0 rgba(90,74,63,0.10);
}
.cta-btn-big:hover {
  background: linear-gradient(90deg, #5a4a3f 60%, #b8a898 100%);
  color: #fffdfa;
}
.footer {
  background: linear-gradient(90deg, #f8f5f0 60%, #ede6dd 100%);
  border-top: none;
  box-shadow: 0 -2px 12px 0 rgba(184,168,152,0.08);
}

/* Улучшенная типографика */
h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 2.3rem;
  color: #b8a898;
  margin-bottom: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}
section h2, .cta-section h2 {
  text-align: center;
}

@media (max-width: 700px) {
  .svg-divider svg { height: 30px; }
  h2 { font-size: 1.5rem; }
}

/* Модальное окно (лайтбокс) */
.img-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(40,32,24,0.85);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.3s;
}
.img-modal.active {
  display: flex;
}
.img-modal-content {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 1.1rem;
  box-shadow: 0 8px 32px 0 rgba(90,74,63,0.25);
  background: #fffdfa;
  margin-bottom: 1rem;
}
.img-modal-caption {
  color: #fffdfa;
  font-size: 1.1rem;
  text-align: center;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 1.5rem;
}
.img-modal-close {
  position: absolute;
  top: 2vw;
  right: 3vw;
  color: #fffdfa;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}
.img-modal-close:hover {
  color: #b8a898;
}
@media (max-width: 700px) {
  .examples-gallery, .homework-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  .gallery-item {
    padding: 0.8rem;
  }
  .gallery-item img {
    border-radius: 0.5rem;
  }
  .img-modal-content {
    max-width: 98vw;
    max-height: 60vh;
  }
}

/* Кнопки масштабирования в модальном окне */
.img-modal-controls {
  position: absolute;
  top: 2vw;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0;
  pointer-events: none;
}
.img-modal-zoom {
  pointer-events: auto;
  background: #fffdfa;
  color: #5a4a3f;
  border: 1.5px solid #b8a898;
  border-radius: 50%;
  width: 2.7rem;
  height: 2.7rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(184,168,152,0.10);
  transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-modal-zoom:hover {
  background: #ede6dd;
  color: #b8a898;
  border-color: #5a4a3f;
  transform: scale(1.12);
}

/* Модальное окно для письма */
.letter-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.letter-modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.letter-modal-content {
  background: #fffdfa;
  border-radius: 15px;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.letter-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #8b4513;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s ease;
}

.letter-modal-close:hover {
  color: #e6b87a;
}

.letter-header {
  background: #d4c0a8;
  padding: 30px;
  border-radius: 15px 15px 0 0;
  text-align: center;
}

.letter-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: #8b4513;
  margin: 0;
  letter-spacing: 2px;
}

.letter-body {
  padding: 40px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-direction: column;
}

.letter-content {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  width: 100%;
}

.letter-photo {
  flex-shrink: 0;
  width: 200px;
}

.letter-photo img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.letter-text {
  flex: 1;
  font-family: 'Inter Medium', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.letter-text p {
  margin-bottom: 20px;
}

.letter-text ul {
  margin: 20px 0;
  padding-left: 20px;
}

.letter-text li {
  margin-bottom: 8px;
}

.letter-principles {
  background: #f8f6f3;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #e6b87a;
  margin: 25px 0;
}

.letter-signature {
  margin-top: 40px;
  text-align: right;
  font-style: italic;
}

.letter-signature strong {
  color: #741c16;
  font-style: normal;
}

.letter-cta {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #ede6dd;
}

.letter-cta-btn {
  background: #f8f5f0;
  color: #5a4a3f;
  border: 1.5px solid #b8a898;
  border-radius: 0.7rem;
  padding: 1rem 2.7rem;
  font-size: 1.08rem;
  font-family: 'Bebas Neue Cyrillic', Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
  white-space: normal;
  min-width: 220px;
  text-align: center;
  line-height: 1.2;
  word-wrap: break-word;
}

.letter-cta-btn:hover {
  background: #ede6dd;
  color: #b8a898;
}

/* Адаптивность для модального окна письма */
@media (max-width: 768px) {
  .letter-modal-content {
    max-width: 95%;
    margin: 10px;
  }
  
  .letter-header h2 {
    font-size: 2rem;
  }
  
  .letter-body {
    padding: 20px;
  }
  
  .letter-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .letter-photo {
    width: 100%;
    text-align: center;
  }
  
  .letter-photo img {
    width: 200px;
    height: 250px;
  }
  
  .letter-text {
    font-size: 15px;
  }
  
  .letter-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
  
  .letter-cta-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    min-width: auto;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
  }
}

h1 {
  font-size: 3.2rem;
}
h2 {
  font-size: 3.5rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.2rem;
}
@media (max-width: 700px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.15rem; }
  h4 { font-size: 1rem; }
  
  .cta-btn {
    min-width: auto;
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    margin: 1rem auto;
    display: block;
    width: fit-content;
    max-width: calc(100% - 2rem);
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.2;
  }
  
  .about-cta {
    padding: 0 1rem;
    text-align: center;
  }
  
  .title-sub {
    font-size: 3.5rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
    margin-top: -0.8em;
  }
}

.how-stepper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 1.5rem 0;
}
.how-step {
  background: #fffdfa;
  border-radius: 1.1rem;
  border: 1px solid #ede6dd;
  box-shadow: 0 4px 24px 0 rgba(184,168,152,0.10);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  min-width: 180px;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}
.how-step:hover {
  box-shadow: 0 8px 32px 0 rgba(90,74,63,0.13);
  transform: translateY(-4px) scale(1.03);
}
.how-step-icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
}
.how-step-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #5a4a3f;
  margin-bottom: 0.4rem;
  font-family: 'Inter Medium', Arial, sans-serif;
}
.how-step-desc {
  font-size: 1rem;
  color: #7a6a5a;
  font-family: 'Inter Medium', Arial, sans-serif;
}
.how-arrow {
  display: flex;
  align-items: center;
  font-size: 2.2rem;
  color: #b8a898;
  margin: 0 0.2rem;
  user-select: none;
}
@media (max-width: 900px) {
  .how-stepper {
    flex-wrap: wrap;
    gap: 1.2rem 0.5rem;
  }
  .how-step {
    min-width: 140px;
    max-width: 180px;
    padding: 1rem 0.5rem 0.8rem 0.5rem;
  }
  .how-arrow {
    font-size: 1.5rem;
  }
}
@media (max-width: 600px) {
  .how-stepper {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .how-arrow {
    justify-content: center;
    margin: 0;
    font-size: 1.5rem;
  }
}

.how-timeline {
  position: relative;
  margin: 3rem auto 2rem auto;
  max-width: 600px;
  padding: 0 1rem;
}
.how-timeline-line {
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #ede6dd 0%, #b8a898 100%);
  border-radius: 2px;
  z-index: 0;
}
.how-timeline-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  z-index: 1;
}
.how-timeline-step:last-child { margin-bottom: 0; }
.how-timeline-dot {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  box-sizing: border-box;
  flex-shrink: 0;
  background: #fffdfa;
  border: 2.5px solid #b8a898;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #b8a898;
  box-shadow: 0 2px 8px 0 rgba(184,168,152,0.10);
  margin-right: 1.2rem;
  z-index: 2;
  transition: border 0.2s, box-shadow 0.2s;
}
.how-timeline-step:hover .how-timeline-dot {
  border-color: #5a4a3f;
  box-shadow: 0 4px 16px 0 rgba(90,74,63,0.13);
}
.how-timeline-content {
  background: #fffdfa;
  border-radius: 1.1rem;
  border: 1px solid #ede6dd;
  box-shadow: 0 4px 24px 0 rgba(184,168,152,0.10);
  padding: 1.2rem 1.5rem;
  min-width: 180px;
  max-width: 400px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.how-timeline-title {
  font-weight: 700;
  font-size: 1.15rem;
  color: #5a4a3f;
  margin-bottom: 0.4rem;
  font-family: 'Inter Medium', Arial, sans-serif;
}
.how-timeline-desc {
  font-size: 1rem;
  color: #7a6a5a;
  font-family: 'Inter Medium', Arial, sans-serif;
}
@media (max-width: 700px) {
  .how-timeline {
    max-width: 98vw;
    padding: 0 0.2rem;
  }
  .how-timeline-content {
    padding: 0.8rem 0.7rem;
    min-width: 0;
    max-width: 98vw;
  }
  .how-timeline-dot {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    font-size: 1.3rem;
    margin-right: 0.7rem;
  }
  .how-timeline-line {
    left: 20px;
    width: 3px;
  }
}

.contacts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.contact-card {
  background: #fffdfa;
  border-radius: 1.1rem;
  border: 1px solid #ede6dd;
  box-shadow: 0 4px 24px 0 rgba(184,168,152,0.10);
  padding: 1.2rem 1.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 220px;
  font-size: 1.08rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.contact-card:hover {
  box-shadow: 0 8px 32px 0 rgba(90,74,63,0.13);
  transform: translateY(-4px) scale(1.03);
}
.contact-icon {
  font-size: 1.5rem;
  color: #b8a898;
  margin-right: 0.3rem;
}
.contact-icon img {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
  filter: brightness(0) saturate(100%) invert(17%) sepia(70%) saturate(1654%) hue-rotate(342deg) brightness(91%) contrast(95%);
}
.contact-label {
  font-weight: 600;
  color: #5a4a3f;
  margin-right: 0.3rem;
}
.contacts-cta {
  text-align: center;
  margin-top: 1.5rem;
}
.contacts-cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, #b8a898 0%, #5a4a3f 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fffdfa;
  border: none;
  border-radius: 0.7rem;
  padding: 1.1rem 2.5rem;
  font-size: 1.15rem;
  font-family: 'Inter Medium', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: color 0.2s, transform 0.2s, background-position 0.5s;
  text-decoration: none;
  box-shadow: 0 2px 12px 0 rgba(90,74,63,0.10);
}
.contacts-cta-btn:hover {
  background-position: 100% 50%;
  color: #fffdfa;
  transform: scale(1.05);
  animation: gradient-move 1.2s linear infinite;
}
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@media (max-width: 700px) {
  .contacts-list {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .contact-card {
    min-width: 0;
    padding: 1rem 0.7rem;
    font-size: 1rem;
  }
}

.about-content {
  display: flex;
  gap: 3.5rem;
  align-items: stretch;
}
.about-photo {
  width: 340px;
  max-width: 100%;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 4px 24px 0 rgba(184,168,152,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.2rem;
  display: block;
}
.about-caption {
  font-size: 1.22rem;
  color: #5a4a3f;
  text-align: left;
  line-height: 1.8;
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.about-text {
  flex: 1 1 0;
  min-width: 0;
  max-width: 700px;
  font-size: 1.22rem;
  color: #5a4a3f;
  line-height: 1.8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-short, .about-full {
  font-size: 1.22rem;
  line-height: 1.8;
  color: #5a4a3f;
  margin-bottom: 1.2rem;
}

.about-short {
  max-height: 20em;
  overflow: hidden;
  position: relative;
}
.about-toggle-btn {
  margin-top: 0.5rem;
  padding: 0.5em 1.3em;
  font-size: 1rem;
  border: 1.5px solid #b8a898;
  border-radius: 1.5em;
  background: #fffdfa;
  color: #5a4a3f;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  font-family: 'Inter Medium', Arial, sans-serif;
  font-weight: 500;
  box-shadow: none;
  outline: none;
  display: inline-block;
  align-self: flex-start;
}
.about-toggle-btn:hover {
  background: #ede6dd;
  color: #b8a898;
  border-color: #b8a898;
}
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .about-photo {
    width: 90vw;
    max-width: 98vw;
  }
  .about-text {
    min-height: unset;
    max-width: 98vw;
    font-size: 1.08rem;
    align-items: center;
  }
  .about-short, .about-full {
    font-size: 1.08rem;
    text-align: center;
  }
  .about-toggle-btn {
    align-self: center;
  }
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 3rem 1rem;
  background: #fdfaf5;
  border-radius: 0 0 2.5rem 2.5rem;
  box-shadow: none;
  margin: 0 auto 2.5rem auto;
  max-width: 100vw;
}
.hero-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 1.2rem;
  background: #fffdfa;
  margin-bottom: 2rem;
  border: none;
  box-shadow: 0 4px 24px 0 rgba(184,168,152,0.13);
}
.hero-title {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 2.8rem;
  color: #5a4a3f;
  margin: 0.2rem 0 1.2rem 0;
  font-weight: 400;
  text-align: center;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #7a6a5a;
  font-family: 'Inter Medium', Arial, sans-serif;
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .hero-photo {
    width: 100px;
    height: 100px;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-section {
    padding: 2.5rem 0.5rem 1.5rem 0.5rem;
    border-radius: 0 0 1.2rem 1.2rem;
  }
}

.hero-split {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 90vh;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #d4c0a8;
  box-shadow: none;
}
.hero-left {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: #e9e4db;
  height: 100%;
  overflow: hidden;
}
.hero-photo-split {
  width: 100%;
  height: 130%;
  object-fit: cover;
  object-position: 80% top;
  display: block;
  border-radius: 0;
  box-shadow: none;
  margin-top: -15%;
  margin-left: -200px;
  transform: scale(2);
}
.hero-right {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background: #d4c0a8;
  text-align: center;
  height: 100%;
}
.hero-title {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 2.8rem;
  color: #5a4a3f;
  margin: 0.2rem 0 1.2rem 0;
  font-weight: 400;
  text-align: center;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: #7a6a5a;
  font-family: 'Inter Medium', Arial, sans-serif;
  margin-bottom: 0.5rem;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .hero-split {
    flex-direction: column;
    min-height: unset;
    width: 100%;
    border-radius: 0;
  }
  .hero-left, .hero-right {
    flex: unset;
    min-width: 0;
    width: 100%;
    max-width: 100vw;
  }
  .hero-left {
    /* height: 220px; */
    max-height: 80vh;
  }
  .hero-photo-split {
    margin-top: -100px;
    /* margin-top: 0; */
    width: 100%;
    /* height: 100%; */
    /* min-height: 180px; */
    /* max-height: 300px; */
    object-fit: cover;
    object-position: 80% center;
    transform: scale(1.3);
    margin-top: -15%;
    margin-left: -100px;
    transform: scale(1.7);
  }
  .hero-right {
    padding: 2rem 1rem;
    height: auto;
  }
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-title-main {
    margin: 0;
    font-size: 3rem;
    text-align: center;
  }
  .hero-names {
    align-items: center;
  }
}

.hero-bigtitle {
  font-family: 'Bebas Neue', Arial, sans-serif;
  text-align: left;
  margin-bottom: 2.5rem;
  margin-top: 0;
  line-height: 0.85;
  color: #5a4a3f;
}
.title-line {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.5rem;
  line-height: 0.8;
}
.hero-bigtitle .big {
  font-size: 7vw;
  letter-spacing: 0.01em;
  color: #741c16;
  line-height: 1;
}
.hero-bigtitle .of {
  font-family: 'Pushkin', serif !important;
  font-size: 6vw;
  color: #ffffff;
  line-height: 1;
}
@media (max-width: 900px) {
  .hero-bigtitle .big {
    font-size: 10vw;
    line-height: 1;
  }
  .hero-bigtitle .of {
    font-size: 7vw;
    line-height: 1;
  }
  .hero-bigtitle {
    margin-top: 0;
  }
  .title-line {
    gap: 0.3rem;
  }
  .title-sub {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }
}

@media (min-width: 700px) {
  .header-logo {
    font-size: 0.45rem;
    min-width: 30px;
  }
  .header-big {
    font-size: 1.5em;
  }
  .header-of {
    font-size: 0.8em;
  }
}
@media (max-width: 700px) {
  .header-logo, .header-mobile-logo {
    font-size: 0.35rem;
    min-width: 20px;
  }
  .header-big {
    font-size: 1.1em;
  }
  .header-of {
    font-size: 0.65em;
  }
  .hero-title-main {
    margin: 0;
    font-size: 2.5rem;
    text-align: center;
  }
  .hero-title-sub {
    font-size: 3.8rem;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .title-sub {
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .hero-title-main {
    font-size: 2rem;
  }
  .hero-title-sub {
    font-size: 3.2rem;
    margin-right: 0;
    max-width: 100%;
    overflow: hidden;
  }
  
  .title-sub {
    font-size: 2.8rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: -0.6em;
    text-align: center !important;
  }
  
  .cta-btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    max-width: calc(100% - 1rem);
  }
  .hero-bigtitle .big {
    font-size: 12vw;
    line-height: 1;
  }
  .hero-bigtitle .of {
    font-size: 8vw;
    line-height: 1;
  }
  .hero-right {
    padding: 1.5rem 0.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.4;
  }
  .examples-gallery, .homework-gallery {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .gallery-item {
    padding: 0.5rem;
  }
  section {
    padding: 1.5rem 0.8rem;
  }
  .format, .how-item {
    padding: 1rem;
  }
  .testimonials-section, .results-section, .values-section, .certificates-section {
    padding: 1.5rem 0.8rem;
    margin: 0 0.5rem 1.5rem 0.5rem;
  }
}

@media (max-width: 360px) {
  .hero-title-main {
    font-size: 1.8rem;
  }
  .hero-title-sub {
    font-size: 2.5rem;
    margin-right: 0;
    max-width: 100%;
    overflow: hidden;
  }
  
  .title-sub {
    font-size: 2.2rem;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: -0.5em;
    text-align: center !important;
  }
  
  .cta-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    margin: 0.8rem auto;
    max-width: calc(100% - 0.5rem);
  }
  .hero-bigtitle .big {
    font-size: 14vw;
    line-height: 1;
  }
  .hero-bigtitle .of {
    font-size: 9vw;
    line-height: 1;
  }
  .hero-right {
    padding: 1rem 0.5rem;
  }
  section {
    padding: 1.2rem 0.5rem;
  }
  .format, .how-item {
    padding: 0.8rem;
  }
  .testimonials-section, .results-section, .values-section, .certificates-section {
    padding: 1.2rem 0.5rem;
    margin: 0 0.3rem 1.2rem 0.3rem;
  }
}

.format-toggle-btn, .how-toggle-btn {
  margin-top: 0.5rem;
  padding: 0.5em 1.3em;
  font-size: 1rem;
  border: 1.5px solid #b8a898;
  border-radius: 1.5em;
  background: #fffdfa;
  color: #5a4a3f;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s;
  font-family: 'Inter Medium', Arial, sans-serif;
  font-weight: 500;
  box-shadow: none;
  outline: none;
  display: inline-block;
  align-self: flex-start;
}
.format-toggle-btn:hover, .how-toggle-btn:hover {
  background: #ede6dd;
  color: #b8a898;
  border-color: #b8a898;
}
@media (max-width: 900px) {
  .format-toggle-btn, .how-toggle-btn {
    align-self: center;
  }
  .formats-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  .format {
    padding: 1.5rem;
  }
}

.how-title {
  font-size: 1.35em;
  font-weight: 700;
  color: #5a4a3f;
  margin-bottom: 0.7em;
}

.how-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  align-items: stretch;
}
.how-item {
  background: #fffdfa;
  border-radius: 1.1rem;
  border: 1px solid #ede6dd;
  box-shadow: none;
  padding: 2rem 2rem 1.5rem 2rem;
  flex: 1 1 320px;
  min-width: 280px;
  min-height: 320px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .how-list {
    flex-direction: column;
    gap: 1.2rem;
  }
  .how-item {
    min-height: unset;
    padding: 1.2rem 0.7rem;
  }
} 


.hero-title {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 2.8rem;
  color: #5a4a3f;
  margin: 0.2rem 0 1.2rem 0;
  font-weight: 400;
  text-align: center;
}
.hero-subtitle, .main-section p, .about-short, .about-full, .about-caption, .about-text, .format, .format-full, .how-short, .how-full, .testimonial-text, .result-card, .forwhom-card, .value-card, .cta-section p, .footer, .footer-copy {
  font-family: 'Inter Medium', Arial, sans-serif;
}
section h2, .cta-section h2 {
  text-align: center;
}

.hero-names {

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.hero-title-main {
  margin: 0 0 0 0px;
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 4.8rem;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1;
  text-align: left;
}
.hero-title-sub {
  font-family: 'Hello January', cursive;
  font-size: 5.2rem;
  color: #741c16;
  margin-top: -0.7em;
  margin-left: 0.2em;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  margin-top: 0.5rem;
  text-align: center;
}
.title-main {
  font-family: 'Bebas Neue', Arial, sans-serif;
  font-size: 3.5rem;
  color: #741c16;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
}
.title-sub {
  font-family: 'Hello January', cursive;
  font-size: 6rem;
  color: #741c16;
  margin-top: -1.1em;
  margin-left: 2.5em;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: left;
}
.faq-section .title-main {
  color: #741c16;
  font-size: 3.5rem;
  font-family: 'Bebas Neue', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
}

.faq-section .title-sub {
  text-align: center;
  margin-left: 0;
  font-size: 7rem;
  margin-top: -1em;
;
}

 @media (max-width: 768px) {
 
.hero-names {
  transform: scale(0.8);
}
}

.examples-section .title-sub {
  font-family: 'Hello January', cursive;
  font-size: 4.5rem !important;
  color: #741c16;
  margin-top: -1.1em;
  margin-left: 0;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
  font-weight: normal;
  transform: scaleX(0.8);
}

.how-section .title-sub {
  font-family: 'Hello January', cursive;
  font-size: 6rem;
  color: #741c16;
  margin-top: -1.1em;
  margin-left: 0;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  font-weight: normal;
}

.results-section .title-sub {
  font-family: 'Hello January', cursive;
  font-size: 6rem;
  color: #741c16;
  margin-top: -1.1em;
  margin-left: 3em;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: left;
  font-weight: normal;
}

.forwhom-section .title-sub {
  font-family: 'Hello January', cursive;
  font-size: 6rem;
  color: #741c16;
  margin-top: -1.1em;
  margin-left: 0;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  font-weight: normal;
}
