:root {
  --bg: #d6e2de;
  --white: #ffffff;
  --text: #233c3c;
  --muted: #8db1aa;
  --accent: #55a096;
  --accent-dark: #4d4d4d;
  --line: #a8cec6;
  --paper: #e9e3dc;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
body {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; }

.wrap {
  width: min(1120px, 94vw);
  margin: 0 auto;
}

.top {
  background: var(--white);
  padding: 18px 0 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-wordmark {
  display: block;
  width: auto;
  height: auto;
  max-height: 140px;
  max-width: min(600px, 90vw);
  object-fit: contain;
}

.lang-box {
  border: 1px solid var(--muted);
  background: #f3f8f6;
  width: 84px;
  min-height: 36px;
  padding: 6px 6px 4px;
}

.lang-box select {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}

.lang-list {
  display: none;
  font-size: 24px;
  margin-top: 4px;
  line-height: 1.45;
}

.lang-item {
  cursor: pointer;
}

.lang-box.lang-open .lang-list {
  display: block;
}

.nav {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 14px;
}

.nav a {
  text-align: center;
  text-decoration: none;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 14px;
  border-radius: 2px;
}

.nav a.active {
  background: var(--accent);
  color: #fff;
}

.section-stack {
  margin-top: 20px;
  margin-bottom: 28px;
  display: grid;
  gap: 24px;
}

.row {
  background: var(--white);
  display: grid;
  grid-template-columns: 37% 63%;
  min-height: 220px;
}

.img-placeholder {
  border-right: 1px solid var(--line);
  background: linear-gradient(135deg, #b5cfca, #dcebe8);
  display: grid;
  place-items: center;
  color: #446a64;
  font-weight: 700;
}

.row-photo {
  border-right: 1px solid var(--line);
  position: relative;
  min-height: 280px;
  background: #e8f0ee;
}

.row-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.copy {
  padding: 34px 40px;
}

.copy h2 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4.2vw, 54px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.12;
}

/* длинный дружелюбный заголовок контакта — меньше, чем «о нас» / форматы */
.copy h2.copy-heading-contact {
  font-size: clamp(22px, 2.75vw, 32px);
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.copy p {
  margin: 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.5;
}

.copy a {
  color: var(--accent);
  text-decoration: underline;
}

.copy a:hover {
  color: var(--accent-dark);
}

.materials-wrap,
.blog-wrap {
  padding: 14px 0 24px;
}

.panel {
  background: var(--white);
  padding: 14px;
  margin-bottom: 12px;
}

.panel h1 {
  margin: 0 0 8px;
  font-size: 44px;
  text-transform: uppercase;
}

.material-card {
  background: var(--white);
  padding: 16px;
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 16px;
  margin-bottom: 12px;
}

.cover-placeholder {
  min-height: 220px;
  border: 2px dashed #a7c2bc;
  background: #f7fbfa;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.material-cover {
  border: 1px solid var(--line);
  background: #f7fbfa;
  min-height: auto;
  padding: 12px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.material-cover img {
  width: 66.666%;
  max-width: 66.666%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 640px) {
  .material-card {
    grid-template-columns: 1fr;
  }
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
}

.blog-head {
  background: var(--white);
  padding: 8px 6px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.post {
  background: var(--white);
  padding: 8px;
}

.post-img {
  height: 160px;
  border: 2px dashed #a7c2bc;
  background: #f7fbfa;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.post-img.has-img {
  border: none;
  padding: 0;
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  background: #e8f0ee;
}

.post-img.has-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.post-read {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #55a096;
  text-decoration: underline;
}

.post-read:hover {
  color: #3d7a6f;
}

.post h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.post p {
  margin: 0;
  font-size: 12px;
}

@media (max-width: 900px) {
  .posts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .posts {
    grid-template-columns: 1fr;
  }
}

.blog-article-wrap {
  padding: 12px 0 40px;
  max-width: 720px;
}

.blog-back-wrap {
  margin: 0 0 8px;
  font-size: 13px;
}

a.blog-back {
  color: #55a096;
  text-decoration: underline;
}

.blog-post-date {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
}

.blog-post-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 600;
  color: #2d4540;
}

.blog-post-hero {
  margin: 0 0 18px;
  border-radius: 4px;
  overflow: hidden;
  background: #e8f0ee;
}

.blog-post-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-lang-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 14px;
}

.blog-post-body {
  font-size: 15px;
  line-height: 1.55;
  color: #2d4540;
}

.blog-post-body p {
  margin: 0 0 14px;
}

.blog-post-body p:last-child {
  margin-bottom: 0;
}

.footer {
  text-align: center;
  padding: 22px 0 32px;
  font-size: 12px;
  color: #4f6763;
}
.footer a {
  text-decoration: underline;
}

.workbook-root {
  padding: 20px 0 40px;
}

.media-card {
  background: #fff;
  padding: 14px;
  margin-top: 12px;
}

audio, video { width: 100%; }

.practice-wrap {
  padding: 18px 0 28px;
}

.practice-title {
  margin: 24px 0 14px;
  font-size: 56px;
  line-height: 1.05;
  color: #64a39a;
  font-weight: 400;
}

.practice-sub {
  margin: 0 0 10px;
  font-size: 35px;
  color: #64a39a;
}

.practice-video-shell {
  width: min(360px, 70vw);
  margin: 0 auto;
  background: #000;
}

.practice-video-shell video {
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.practice-audio-block {
  width: min(470px, 92vw);
  margin: 12px auto 0;
}

.practice-audio-title {
  font-size: 31px;
  color: #64a39a;
  margin-bottom: 6px;
}

.practice-audio-block audio {
  width: 100%;
}

.workbook-divider {
  height: 8px;
  background: #6ca59b;
  margin-top: 2px;
}

.privacy-wrap {
  padding: 16px 0 30px;
}

.privacy-card {
  background: var(--white);
  padding: 18px;
}

.privacy-card h1 {
  margin: 0 0 10px;
  font-size: 34px;
  color: var(--accent);
}

.privacy-card h2 {
  margin: 20px 0 8px;
  font-size: 22px;
}

.privacy-card p,
.privacy-card li {
  font-size: 14px;
  line-height: 1.5;
}

.privacy-card ul {
  margin: 8px 0 8px 18px;
}

.privacy-card a {
  color: var(--accent);
  text-decoration: underline;
}

.privacy-card a:hover {
  color: var(--accent-dark);
}

[data-lang-block] {
  display: none;
}

[data-lang-block].lang-visible {
  display: block;
}
