/* ================================================================
   About page — V3 «Доульский» design
   Depends on design-tokens.css
   ================================================================ */

/* Reset for about page body */
body.about-v3 {
  background: #fff;
  color: #1f1f1f;
  font-family: var(--db-font-sans);
  -webkit-font-smoothing: antialiased;
}

/* -------- Breadcrumb -------- */
.v3-breadcrumb-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px 12px;
  font-size: 13px;
  color: var(--db-fg-4);
}
.v3-breadcrumb-bar a {
  color: var(--db-green-darker);
  text-decoration: none;
}
.v3-breadcrumb-bar a:hover { text-decoration: underline; }
.v3-breadcrumb-bar .sep { margin: 0 8px; color: var(--db-fg-6); }

/* -------- Hero -------- */
.v3-hero {
  display: grid;
  grid-template-columns: 420px 1fr;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}
.v3-hero__photo {
  overflow: hidden;
  background: #f5f5f5;
  min-height: 420px;
}
.v3-hero__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}
.v3-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.9);
}
.v3-hero__text {
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}
.v3-hero__mark {
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--db-fg-6);
}
.v3-hero__title {
  font-size: 68px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: #1f1f1f;
  margin: 16px 0 20px;
  font-family: var(--db-font-sans);
}
.v3-hero__sub {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--db-fg-4);
  max-width: 480px;
  margin: 0;
}
.v3-hero__meta {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--db-fg-6);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.v3-hero__meta span::before {
  content: "·";
  margin-right: 24px;
  color: var(--db-border-soft);
}
.v3-hero__meta span:first-child::before {
  content: "";
  margin: 0;
}

/* -------- Main column -------- */
.v3-col {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

/* -------- Section marks §01 §02 etc -------- */
.v3-section-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--db-fg-6);
  font-weight: 500;
  margin: 0 0 40px;
}
.v3-section-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--db-border-hairline);
}
.v3-section-mark .num {
  color: var(--db-green);
  font-family: var(--db-font-mono);
  font-size: 12px;
}

/* -------- Body text -------- */
.v3-col p {
  font-size: 18px;
  line-height: 1.9;
  color: #333;
  margin: 0 0 22px;
}

/* -------- Lead italic -------- */
.v3-lead {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1.4;
  color: #2a2a2a;
  letter-spacing: -0.01em;
  margin: 0 0 48px;
  max-width: 680px;
}

/* -------- Quote block -------- */
.v3-quote-block {
  margin: 56px -32px;
  padding: 56px 56px;
  background: var(--db-bg-muted);
  color: #2a2a2a;
  text-align: center;
}
.v3-quote-block .q {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0 auto;
  max-width: 560px;
}

/* -------- Approach block -------- */
.v3-approach {
  margin: 64px -32px;
  padding: 56px 56px;
  background: var(--db-bg-muted);
}
.v3-approach .v3-section-mark {
  margin-bottom: 28px;
}
.v3-approach .v3-section-mark::after {
  background: var(--db-border-hairline);
}
.v3-approach h2 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 24px;
  color: var(--db-green);
  font-family: var(--db-font-sans);
}
.v3-approach p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--db-fg-2);
  margin: 0 0 16px;
}
.v3-approach strong {
  color: var(--db-green-dark);
  font-weight: 600;
}

/* -------- Education & Lecture lists -------- */
.v3-edu,
.v3-lectures-clean {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.v3-edu li,
.v3-lectures-clean li {
  font-size: 17px;
  line-height: 1.55;
  color: #2a2a2a;
  padding-left: 24px;
  position: relative;
}
.v3-edu li::before,
.v3-lectures-clean li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--db-green);
}
.v3-lectures-clean li .org {
  color: #7a6f55;
}

/* -------- Section intro -------- */
.v3-section-intro {
  font-size: 17px;
  line-height: 1.7;
  color: #55503f;
  margin: 0 0 24px;
}

/* -------- Diplomas slider -------- */
.v3-diplomas {
  position: relative;
}
.v3-diplomas__row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 16px 2px 28px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--db-green) #f0f0f0;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}
.v3-diplomas__row::-webkit-scrollbar { height: 6px; }
.v3-diplomas__row::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 4px; }
.v3-diplomas__row::-webkit-scrollbar-thumb { background: var(--db-green); border-radius: 4px; }
.v3-diplomas__row::-webkit-scrollbar-thumb:hover { background: var(--db-green-dark); }

.v3-dip {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.v3-dip:hover {
  transform: translateY(-3px);
  box-shadow: var(--db-shadow-sm);
}
.v3-dip img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  display: block;
}
.v3-dip__ph {
  height: 200px;
  background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
  display: grid;
  place-items: center;
  color: #b7b7b7;
  font-size: 56px;
  font-weight: 300;
}
.v3-dip p {
  font-size: 13px !important;
  color: #666 !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  line-height: 1.4 !important;
}

/* Slider arrows */
.v3-slider-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  opacity: 0.7;
  transition: opacity .2s;
}
.v3-slider-arrow:hover { opacity: 1; }
.v3-slider-arrow:disabled { opacity: 0.3; cursor: default; }
.v3-slider-arrow svg { width: 24px; height: 24px; stroke: var(--db-green); stroke-width: 2; fill: none; }
.v3-slider-arrow--prev { left: -45px; }
.v3-slider-arrow--next { right: -45px; }
@media (min-width: 769px) {
  .v3-slider-arrow { display: flex; align-items: center; justify-content: center; }
}

/* -------- Certificate modal -------- */
.v3-dip-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.v3-dip-modal.open { display: flex; }
.v3-dip-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.v3-dip-modal__close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #333;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

/* -------- Science links -------- */
.v3-sci {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.v3-sci a {
  color: var(--db-green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  font-size: 17px;
}

/* -------- CTA block -------- */
.v3-cta-block {
  margin: 96px -32px 0;
  padding: 80px 32px;
  text-align: center;
  border-top: 1px solid var(--db-border-hairline);
}
.v3-cta-block .note {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--db-fg-4);
  margin: 0 auto 32px;
  max-width: 480px;
}

/* -------- CTA button (shared style) -------- */
.v3-cta-btn {
  display: inline-block;
  padding: 17px 34px;
  background: #fff;
  border: 2px solid var(--db-border-soft);
  border-radius: 10px;
  color: var(--db-fg-3);
  font-weight: 700;
  font-size: 16px;
  font-family: var(--db-font-sans);
  text-decoration: underline;
  text-decoration-color: var(--db-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: all .3s var(--db-ease, cubic-bezier(0.4, 0, 0.2, 1));
}
.v3-cta-btn:hover {
  border-color: var(--db-green);
  transform: translateY(-1px);
  box-shadow: var(--db-shadow-md);
}

/* -------- Footer -------- */
.v3-footer {
  border-top: 1px solid #eee;
  padding: 40px 0;
  font-size: 14px;
  color: #999;
  background: #fff;
  font-family: var(--db-font-sans);
}
.v3-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}

/* -------- Responsive -------- */
@media (max-width: 780px) {
  .v3-hero {
    grid-template-columns: 1fr;
  }
  .v3-hero__photo {
    height: 72vw;
    min-height: 300px;
    max-height: 480px;
  }
  .v3-hero__text {
    padding: 36px 24px;
    justify-content: flex-start;
    gap: 14px;
  }
  .v3-hero__title {
    font-size: 48px;
    margin: 10px 0 14px;
  }
  .v3-col {
    padding: 64px 24px 40px;
  }
  .v3-lead {
    font-size: 24px;
  }
  .v3-approach {
    margin: 48px -24px;
    padding: 48px 24px;
  }
  .v3-approach h2 {
    font-size: 32px;
  }
  .v3-quote-block {
    margin: 40px -24px;
    padding: 40px 24px;
  }
  .v3-quote-block .q {
    font-size: 22px;
  }
  .v3-cta-block {
    margin: 72px -24px 0;
    padding: 64px 24px;
  }
  .v3-breadcrumb-bar {
    padding: 16px 24px 0;
  }
}

@media (max-width: 640px) {
  .v3-hero__title {
    font-size: 40px;
  }
  .v3-lead {
    font-size: 20px;
  }
  .v3-col p {
    font-size: 17px;
  }
}

/* Tilda's UL reset (#allrecords ul.t-sociallinks__wrapper) doesn't match on /about — page has no #allrecords wrapper. Reapply directly. */
ul.t-sociallinks__wrapper {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}
