/*
 * Style sheet for the “Лек Ритъм+” news portal.
 *
 * This design employs a sophisticated palette of dark neutrals
 * complemented by warm orange and cool blue accents. Headlines are
 * typeset in Playfair Display to give a journalistic feel, while
 * body text uses the clean Montserrat sans‑serif for readability.
 * The layout emphasises a modular grid for news articles and clear
 * sections for programmes, about information and contact details. A
 * multi‑column footer completes the page with useful links and a
 * newsletter signup form. All elements are responsive and adapt
 * gracefully across devices.
 */

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

/* CSS variables define the colour scheme and typography for easy
   maintenance. Adjust these values to quickly retheme the site. */
:root {
  --primary-bg: #f4f4f4;
  --header-bg: #1d1d1d;
  --footer-bg: #2a2a2a;
  --primary-color: #d35400; /* warm orange */
  --secondary-color: #2980b9; /* cool blue */
  --text-dark: #333;
  --text-light: #f7f7f7;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--primary-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  line-height: 1.3;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

header {
  background: var(--header-bg);
  color: var(--text-light);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
header h1 {
  font-size: 1.8rem;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}
nav a {
  color: var(--text-light);
  font-weight: 500;
  transition: color 0.3s ease;
}
nav a:hover {
  color: var(--primary-color);
}

/* Hero section emphasises the site’s purpose. */
.hero {
  padding: 4rem 1.5rem;
  background: var(--secondary-color);
  color: var(--text-light);
  text-align: center;
}
.hero h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}
.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0.5rem auto;
}

/* News section uses a responsive grid to display articles. */
.news {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.news h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}
.news-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.news-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.news-item .date {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.8rem;
}
.news-item p {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.news-item a.read-more {
  align-self: flex-start;
  background: var(--secondary-color);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s ease;
}
.news-item a.read-more:hover {
  background: var(--primary-color);
}

/* Programs section lists the available courses. */
.programs {
  background: var(--card-bg);
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.programs h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.program-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--primary-bg);
}
.program-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
}
.program-item .price {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.program-item p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.program-item a {
  color: var(--primary-color);
  font-weight: 500;
}
.program-item a:hover {
  text-decoration: underline;
}

/* About section introduces the fictional expert and mission. */
.about {
  padding: 3rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.about h2 {
  margin-bottom: 1rem;
}
.about p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* Contact section includes contact details and a form. */
.contact {
  background: var(--card-bg);
  padding: 3rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.contact h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}
.contact .contact-info {
  margin-bottom: 2rem;
  text-align: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 500px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.9rem;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form label {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-form button {
  padding: 0.7rem;
  background: var(--secondary-color);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-form button:hover {
  background: var(--primary-color);
}

/* Footer with four columns: description, links, contacts, newsletter. */
footer {
  background: var(--footer-bg);
  color: var(--text-light);
  padding: 2.5rem 1.5rem;
}
footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
footer h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
  font-size: 1.1rem;
}
footer p, footer a, footer li {
  font-size: 0.9rem;
  color: var(--text-light);
}
footer ul {
  list-style: none;
  padding-left: 0;
}
footer a:hover {
  color: var(--secondary-color);
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.newsletter-form input[type="email"] {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
}
.newsletter-form button {
  padding: 0.6rem;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.newsletter-form button:hover {
  background: var(--secondary-color);
}

@media (max-width: 600px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.8rem;
  }
  .hero h2 {
    font-size: 1.6rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .programs-grid {
    grid-template-columns: 1fr;
  }
  footer .footer-container {
    grid-template-columns: 1fr;
  }
}