/* Цветовая палитра */
:root {
  --dark-bg: #202a42;
  --dark-accent: #2f4f4f;
  --light-bg: #f0f0f0;
  --accent: #C8A96F;
  --text-dark: #ffffff;
  --text-light: #202a42;
}

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

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background: var(--light-bg);
  color: var(--text-light);
}

.container {
  max-width: 700px;
  margin: auto;
  padding: 1.5rem;
}

/* === Hero-блок === */

.language-switcher {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.language-switcher button {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
  color: white;
  padding: 0.4rem 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 5px;
  backdrop-filter: blur(5px);
  transition: background 0.3s, color 0.3s;
}

.language-switcher button:hover {
  background: rgba(255, 255, 255, 0.35);
  color: black;
}

.hero {
  position: relative;
  background: var(--dark-bg);
  color: var(--text-dark);
  text-align: center;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 2rem 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/pysnka2025.jpg') center/cover no-repeat;
  z-index: 0;
  opacity: 0.4;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 90%;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  font-weight: 300;
}

/* === Общие секции === */
.section {
  padding: 2rem 1rem;
}

.section.light {
  background: var(--light-bg);
  color: var(--text-light);
}

.section.dark {
  background: var(--dark-bg);
  color: var(--text-dark);
}

h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--accent);
}

ol, ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

/* === Галерея === */
.gallery .images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.gallery img {
  width: 48%;
  border-radius: 8px;
  object-fit: cover;
}

/* === Этапи створення === */
.step {
  margin-bottom: 2rem;
}

.step img {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  margin-top: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* === Footer === */
.footer {
  background: var(--dark-accent);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.875rem;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer .social-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer .social-links a img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* делает иконки белыми */
  transition: transform 0.2s ease;
}

.footer .social-links a img:hover {
  transform: scale(1.2);
}

/* === Адаптация === */
@media (min-width: 768px) {
  .gallery img {
    width: 23%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}