* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-image: url('src/IMG_9424.jpeg'); /* паттерн */
  background-repeat: repeat;
  background-color: #f6fcd0; /* фисташковый fallback */
  margin: 0;
  padding: 40px 10;
  background-attachment: fixed;
  background-size: contain;
}

.container_main{
    max-width: 1200px;
    max-height: 1800px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    
}
.container {
 max-width: 1200px;
  margin: 0 auto;
  background-color: rgba(245, 245, 220, 0.55);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
  border: 2px solid #2f4631; 
  
}

/* Header */
header {
  background-image: url('src/manreading.jpeg');
  background-size: cover;
  background-position: center;
  color: #FFFDD0;
  padding: 2rem 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  min-height: 100vh;
}

nav {
    background-color: rgba(245, 245, 220, 0.55); /* светлая рамочка */
    border-radius: 12px;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2f4631;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #2f4631;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #2f4631;
}

.hero {
    background-color: rgba(148, 147, 127, 0.635);
    text-align: center;
    padding: 3rem 0;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 32px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #2f4631;
}

.hero-slogan {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: #2f4631;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #2f4631 ;
}

.cta-button {
    background: linear-gradient(135deg, #2f4631 0%, #2f4631 100%);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(47, 70, 49, 0.3);
}

/* Main content */
.section {
    padding: 4rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2f4631;
    margin-bottom: 2rem;
    text-align: center;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

/* About section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
    white-space: pre-wrap;
}

.about-card {
    background: #fffbb8;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card h3 {
    font-family: 'Playfair Display', serif;
    color: #2f4631;
    margin-bottom: 1rem;
}

/* Events section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    height: 500px;
    background: url('src/IMG_9413.jpeg');
    background-size: cover;
    border: 1px solid #2f4631;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    color: #8B0000;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

/* Books section */
.book-of-month {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.book-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #8B0000;
    margin-bottom: 1rem;
}

.book-author {
    font-style: italic;
    color: #666;
    margin-bottom: 1rem;
}

/* Blog section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card h3 {
    font-family: 'Playfair Display', serif;
    color: #2f4631;
    margin-bottom: 1rem;
}

.blog-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Join section */
.join-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #2f4631;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #a9c5a0 0%, #2f4631 65%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #a9c5a0;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #a0ffab20 0%, #a0ffab25 100%);
  color: #2f4631;
  padding: 3rem 0;
  text-align: left;
}

.footer-content.new-footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-section h3 {
  font-family: 'Playfair Display', serif;
  color: #2f4631;
  margin-bottom: 1rem;
}

.footer-section a {
  color: #000000;
  text-decoration: none;
}

.footer-section a:hover {
  color: #095b0b6c;
}

.footer-center {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  background: #2f4631;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background: #a9c5a0;
}

/* Спонсоры */
.sponsors .sponsor-logos {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sponsor-logos img {
  width: 100px;
  height: auto;
  border: 2px solid #2f4631;
  border-radius: 8px;
  padding: 6px;
  background: #a9c5a0;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content.new-footer-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-center {
    align-items: center;
  }

  .sponsor-logos {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .sponsor-logos img {
    margin: 0.5rem;
  }
}


/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.8s ease-out;
}
/* Language Switcher */
.language-switcher {
  margin-left: auto;
  margin-right: 20px;
  position: relative;
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #2f4631;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fffcd9;
  border-radius: 4px;
  padding: 5px 0;
  margin: 5px 0 0;
  list-style: none;
  min-width: 120px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 1000;
}

.language-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 8px 15px;
  color: #2f4631;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-menu li:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-arrow {
  font-size: 0.6rem;
  margin-left: 5px;
}