@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --color-bg: #faf8f5;
  --color-text: #2c2c2c;
  --color-accent: #a87c6d;
  --color-accent-light: #e8d5ce;
  --color-sage: #7c9a8a;
  --color-border: #e0dbd5;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --spacing-section: 100px;
  --spacing-section-mobile: 60px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--spacing-section) 0;
}

@media (max-width: 768px) {
  .section {
    padding: var(--spacing-section-mobile) 0;
  }
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 15px 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  flex-direction: column;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text);
}

.header__logo-tagline {
  font-size: 12px;
  color: var(--color-sage);
  margin-top: -4px;
}

.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header__nav a {
  font-size: 15px;
  font-weight: 500;
}

.btn {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #92675a;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }
  .header__nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content h1 {
  font-size: 52px;
  margin-bottom: 24px;
}

.hero__content p {
  font-size: 19px;
  color: #555;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero__image-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.hero__image-wrap img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero__content p {
    margin: 0 auto 36px;
  }
  .hero__content h1 {
    font-size: 42px;
  }
  .hero__image-wrap img {
    height: 400px;
  }
}

.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  text-align: center;
  margin-top: -40px;
  margin-bottom: 60px;
  color: #666;
  font-size: 17px;
}

.for-whom {
  background-color: #fff;
}

.for-whom__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.for-whom__card {
  padding: 40px 30px;
  background-color: var(--color-bg);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  text-align: center;
}

.for-whom__card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.program__list {
  max-width: 800px;
  margin: 0 auto;
}

.program__item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.program__item:last-child {
  border-bottom: none;
}

.program__num {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-sage);
  font-style: italic;
  min-width: 40px;
}

.program__title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.program__desc {
  color: #555;
  font-size: 15px;
}

.format {
  background-color: var(--color-accent-light);
  padding: 80px 0;
}

.format__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  text-align: center;
}

.format__item {
  padding: 20px;
}

.format__item h4 {
  font-size: 18px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery__item {
  display: flex;
  flex-direction: column;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}

.gallery__item p {
  font-size: 14px;
  color: #666;
  text-align: center;
}

@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.author {
  background-color: #fff;
}

.author__inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.author__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.author__content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.author__content p {
  margin-bottom: 16px;
  color: #444;
}

@media (max-width: 768px) {
  .author__inner {
    grid-template-columns: 1fr;
  }
}

.faq {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-body);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__icon {
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__answer-inner {
  padding-bottom: 24px;
  color: #555;
}

.faq__item.active .faq__answer {
  max-height: 500px;
}

.form-section {
  background-color: var(--color-accent-light);
}

.lead-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.lead-form h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 32px;
}

.lead-form > p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.checkbox-group input {
  margin-top: 4px;
}

.checkbox-group label {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.checkbox-group a {
  text-decoration: underline;
}

.form-error {
  color: #d32f2f;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.form-group.error .form-control {
  border-color: #d32f2f;
}

.form-group.error .form-error {
  display: block;
}

.submit-btn {
  width: 100%;
  font-size: 18px;
}

@media (max-width: 600px) {
  .lead-form {
    padding: 30px 20px;
  }
}

.footer {
  background-color: #fff;
  padding: 80px 0 40px;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
}

.footer__col ul li {
  margin-bottom: 12px;
}

.footer__col ul a {
  color: #666;
  font-size: 14px;
}

.footer__col ul a:hover {
  color: var(--color-accent);
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #888;
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
  padding: 20px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner__text {
  font-size: 14px;
  color: #444;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
}

.cookie-banner__actions button {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.btn-accept {
  background-color: var(--color-accent);
  color: #fff;
  border: none;
}

.btn-reject {
  background-color: transparent;
  color: #666;
  border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

.page-header {
  padding: 120px 0 60px;
  text-align: center;
  background-color: var(--color-accent-light);
}

.page-header h1 {
  font-size: 40px;
}

.content-section {
  padding: 60px 0;
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  margin: 40px 0 20px;
  font-size: 24px;
}

.content-section p {
  margin-bottom: 16px;
  color: #444;
}

.content-section ul {
  margin-bottom: 24px;
  padding-left: 24px;
  color: #444;
}

.content-section li {
  margin-bottom: 8px;
}

.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.success-icon {
  font-size: 64px;
  color: var(--color-sage);
  margin-bottom: 24px;
}
