/* ================================
BLOCK 01 — SPEAKING HERO
================================ */

.ym-speaking-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #f3f6fb;
  color: var(--ym-color-text);
}

.ym-speaking-page section {
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.ym-speaking-container {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding-left: 108px;
  padding-right: 108px;
  box-sizing: border-box;
}

.ym-speaking-hero {
  position: relative;
  min-height: 610px;
  padding-top: 98px;
  background:
    radial-gradient(circle at 12% 16%, rgba(32, 56, 102, 0.075) 0, rgba(32, 56, 102, 0) 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 254, 0.96) 52%, rgba(238, 243, 250, 0.92) 100%),
    var(--ym-color-white, #ffffff);
  overflow: hidden;
}

.ym-speaking-hero::before,
.ym-speaking-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(32, 56, 102, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.ym-speaking-hero::before {
  width: 720px;
  height: 720px;
  left: -280px;
  top: -330px;
}

.ym-speaking-hero::after {
  width: 512px;
  height: 512px;
  left: -176px;
  top: -208px;
}

.ym-speaking-hero__inner {
  position: relative;
  z-index: 4;
  min-height: 492px;
  display: grid;
  grid-template-columns: minmax(520px, 690px) minmax(560px, 1fr);
  align-items: center;
  gap: clamp(42px, 5.4vw, 104px);
}

.ym-speaking-hero__content {
  max-width: 690px;
}

.ym-speaking-hero__title {
  max-width: 690px;
  margin: 0 0 clamp(18px, 1.35vw, 26px);
  color: var(--ym-color-ink);
  font-size: var(--ym-hero-title-size);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.ym-speaking-hero__text {
  margin: 0;
  max-width: 680px;
  color: var(--ym-color-ink);
  font-size: var(--ym-hero-description-size);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.ym-speaking-hero__buttons {
  margin-top: clamp(24px, 1.9vw, 36px);
  display: flex;
  align-items: stretch;
  gap: clamp(14px, 1.05vw, 20px);
}

.ym-speaking-button {
  min-height: clamp(44px, 3.1vw, 60px);
  padding: 0 clamp(22px, 1.65vw, 32px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 0.72vw, 14px);
  border: 1px solid var(--ym-color-blue);
  color: var(--ym-color-blue);
  background: var(--ym-color-white);
  font-size: var(--ym-font-size-body);
  line-height: 1.05;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity var(--ym-transition), transform var(--ym-transition), background var(--ym-transition), color var(--ym-transition);
  box-shadow: 0 10px 22px rgba(20, 37, 73, 0.055);
}

.ym-speaking-button img {
  width: clamp(11px, 0.78vw, 15px);
  height: clamp(11px, 0.78vw, 15px);
  object-fit: contain;
  flex: 0 0 auto;
}

.ym-speaking-button--primary {
  min-width: clamp(250px, 17vw, 326px);
  color: var(--ym-color-white);
  background: var(--ym-color-blue);
}

.ym-speaking-button--primary img {
  filter: brightness(0) invert(1);
}

.ym-speaking-button--outline {
  min-width: clamp(210px, 14vw, 268px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
}

.ym-speaking-button:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.ym-speaking-hero__media {
  position: relative;
  min-height: 544px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.ym-speaking-hero__video {
  width: min(100%, 720px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
    var(--ym-speaking-hero-image, none) center / cover no-repeat,
    #d9dde2;
  border: 1px solid rgba(32, 56, 102, 0.12);
  border-radius: 16px;
  box-shadow: 18px 18px 0 rgba(32, 56, 102, 0.96), 0 22px 52px rgba(20, 37, 73, 0.12);
  filter: grayscale(0.72) contrast(1.02);
}

@media (max-width: 1600px) and (min-width: 1281px) {
.ym-speaking-hero__inner {
    grid-template-columns: minmax(470px, 610px) minmax(500px, 1fr);
    gap: clamp(38px, 4.2vw, 68px);
  }

  .ym-speaking-hero__title {
    font-size: var(--ym-hero-title-size-adaptive);
  }

  .ym-speaking-hero__text {
    font-size: var(--ym-hero-description-size-adaptive);
  }

  .ym-speaking-button {
    font-size: clamp(13px, 0.9vw, 14.5px);
  }

  .ym-speaking-hero__video {
    width: min(100%, 640px);
  }
}

@media (max-width: 1280px) and (min-width: 1025px) {
.ym-speaking-hero {
    min-height: 520px;
    padding-top: 96px;
  }

  .ym-speaking-hero__inner {
    min-height: 410px;
    grid-template-columns: minmax(390px, 520px) minmax(420px, 1fr);
    gap: 34px;
  }

  .ym-speaking-hero__title {
    font-size: var(--ym-hero-title-size-adaptive);
  }

  .ym-speaking-hero__text {
    font-size: var(--ym-hero-description-size-adaptive);
  }

  .ym-speaking-hero__buttons {
    flex-wrap: wrap;
  }

  .ym-speaking-button {
    min-height: 42px;
    font-size: var(--ym-font-size-card-small);
  }

  .ym-speaking-hero__media {
    min-height: 420px;
  }

  .ym-speaking-hero__video {
    width: min(100%, 560px);
  }
}

@media (max-width: 1024px) {
.ym-speaking-hero {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 44px;
  }

  .ym-speaking-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 28px;
    text-align: center;
  }

  .ym-speaking-hero__content {
    max-width: 760px;
    margin: 0 auto;
  }

  .ym-speaking-hero__text {
    max-width: 720px;
    margin: 0 auto;
  }

  .ym-speaking-hero__buttons {
    justify-content: center;
  }

  .ym-speaking-hero__media {
    min-height: auto;
    justify-content: center;
  }

  .ym-speaking-hero__video {
    width: min(100%, 620px);
  }
}

@media (max-width: 767px) {
.ym-speaking-hero {
    padding-top: 82px;
    padding-bottom: 34px;
  }

  .ym-speaking-hero::before {
    width: 380px;
    height: 380px;
    left: -170px;
    top: -160px;
  }

  .ym-speaking-hero::after {
    width: 276px;
    height: 276px;
    left: -120px;
    top: -92px;
  }

  .ym-speaking-hero__inner {
    gap: 24px;
  }

  .ym-speaking-hero__title {
    max-width: 360px;
    margin: 0 auto 12px;
    font-size: var(--ym-hero-title-size-mobile);
    line-height: 0.94;
    letter-spacing: -0.055em;
  }

  .ym-speaking-hero__text {
    max-width: 352px;
    font-size: var(--ym-hero-description-size-mobile);
    line-height: 1.18;
    letter-spacing: -0.03em;
  }

  .ym-speaking-hero__buttons {
    width: 100%;
    max-width: 352px;
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ym-speaking-button {
    min-height: 38px;
    padding: 0 10px;
    gap: 8px;
    font-size: var(--ym-font-size-card-small);
  }

  .ym-speaking-button img {
    width: 10px;
    height: 10px;
  }

  .ym-speaking-button--primary,
  .ym-speaking-button--outline {
    min-width: 0;
    width: 100%;
  }

  .ym-speaking-hero__video {
    width: min(100%, 352px);
    border-radius: 8px;
    box-shadow: 8px 8px 0 var(--ym-color-blue);
  }
}

@media (max-width: 390px) {
  .ym-speaking-hero__title {
    max-width: 320px;
    font-size: var(--ym-hero-title-size-mobile-sm);
  }

  .ym-speaking-hero__text {
    max-width: 320px;
  }

  .ym-speaking-hero__buttons {
    max-width: 320px;
  }

  .ym-speaking-button {
    font-size: var(--ym-font-size-card-small);
  }

  .ym-speaking-hero__video {
    width: min(100%, 320px);
  }
}

/* ================================
BLOCK 02 — FORMATS + TOPICS
================================ */

.ym-speaking-formats-section {
  position: relative;
  padding: clamp(48px, 4.15vw, 80px) 0 clamp(34px, 3vw, 58px);
  background:
    radial-gradient(circle at 10% 0%, rgba(32, 56, 102, 0.055) 0, rgba(32, 56, 102, 0) 30%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.ym-speaking-topics-section {
  position: relative;
  padding: 0 0 clamp(64px, 5.2vw, 100px);
  background: #f4f7fb;
}

.ym-speaking-section-title {
  margin: 0 0 clamp(24px, 2.4vw, 44px);
  color: var(--ym-color-ink);
  font-size: var(--ym-section-title-size);
  line-height: var(--ym-section-title-line-height);
  font-weight: var(--ym-section-title-weight);
  letter-spacing: var(--ym-section-title-letter-spacing);
}

.ym-speaking-format-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(14px, 1.04vw, 20px);
}

.ym-speaking-format-card {
  position: relative;
  min-height: clamp(150px, 9.9vw, 190px);
  padding: clamp(22px, 1.55vw, 30px) clamp(10px, 0.94vw, 18px) clamp(18px, 1.25vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.05vw, 20px);
  overflow: hidden;
  color: var(--ym-color-blue);
  text-align: center;
  background: var(--ym-color-white);
  border: 1px solid rgba(32, 56, 102, 0.10);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(20, 37, 73, 0.075);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ym-speaking-format-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: clamp(74px, 4.9vw, 94px);
  height: 3px;
  background: linear-gradient(90deg, rgba(32, 56, 102, 0.2), var(--ym-color-blue, #203866), rgba(32, 56, 102, 0.2));
  border-radius: 0 0 99px 99px;
  transform: translateX(-50%);
}

.ym-speaking-format-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 56, 102, 0.18);
  box-shadow: 0 20px 44px rgba(20, 37, 73, 0.11);
}

.ym-speaking-format-card__icon {
  width: clamp(46px, 3.02vw, 58px);
  height: clamp(46px, 3.02vw, 58px);
  object-fit: contain;
}

.ym-speaking-format-card h3 {
  max-width: 142px;
  margin: 0;
  color: var(--ym-color-blue);
  font-size: var(--ym-font-size-card);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: -0.032em;
}

.ym-speaking-topic-list {
  display: grid;
  gap: 0;
  max-width: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(32, 56, 102, 0.10);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(20, 37, 73, 0.055);
}

.ym-speaking-topic {
  min-height: clamp(52px, 3.4vw, 66px);
  padding-right: clamp(14px, 1.2vw, 22px);
  display: grid;
  grid-template-columns: clamp(42px, 3.12vw, 60px) 1fr clamp(18px, 1.35vw, 26px);
  align-items: center;
  color: var(--ym-color-ink);
  border-bottom: 1px solid rgba(24, 51, 95, 0.20);
  text-decoration: none;
  transition: background 0.22s ease;
}

.ym-speaking-topic:hover {
  background: rgba(32, 56, 102, 0.035);
}

.ym-speaking-topic:last-child {
  border-bottom: 0;
}

.ym-speaking-topic span {
  width: clamp(26px, 1.82vw, 35px);
  height: clamp(26px, 1.82vw, 35px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  color: var(--ym-color-white);
  background: var(--ym-color-blue);
  border-radius: 50%;
  font-size: clamp(11px, 0.73vw, 14px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ym-speaking-topic p {
  margin: 0;
  padding: 0 clamp(14px, 1.04vw, 20px);
  color: var(--ym-color-ink);
  font-size: var(--ym-section-description-size);
  line-height: var(--ym-section-description-line-height);
  font-weight: 400;
  letter-spacing: -0.03em;
  border-left: 1px solid rgba(24, 51, 95, 0.18);
}

.ym-speaking-topic img {
  width: clamp(12px, 0.78vw, 15px);
  height: clamp(12px, 0.78vw, 15px);
  justify-self: end;
  object-fit: contain;
  opacity: 0.35;
  transform: rotate(-90deg);
}

@media (max-width: 1280px) and (min-width: 901px) {
  .ym-speaking-format-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ym-speaking-format-card {
    min-height: 150px;
  }
}

@media (max-width: 767px) {
  .ym-speaking-formats-section {
    padding: 36px 0 28px;
  }

  .ym-speaking-topics-section {
    padding: 0 0 52px;
  }

  .ym-speaking-section-title {
    margin-bottom: 22px;
    font-size: var(--ym-section-title-size-mobile);
    line-height: var(--ym-section-title-line-height);
    text-align: center;
    letter-spacing: var(--ym-section-title-letter-spacing);
  }

  .ym-speaking-format-grid {
    max-width: 330px;
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .ym-speaking-format-card {
    min-height: 132px;
    padding: 18px 10px 14px;
    gap: 12px;
    border-radius: 4px;
    box-shadow: 0 7px 14px rgba(13, 39, 70, 0.16);
  }

  .ym-speaking-format-card::before {
    width: 58px;
    height: 3px;
  }

  .ym-speaking-format-card__icon {
    width: 42px;
    height: 42px;
  }

  .ym-speaking-format-card h3 {
    max-width: 120px;
    font-size: var(--ym-font-size-card-small);
    line-height: 1.16;
  }

  .ym-speaking-format-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 7px);
  }

  .ym-speaking-topic-list {
    max-width: 100%;
    margin: 0 auto;
  }

  .ym-speaking-topic {
    min-height: 34px;
    grid-template-columns: 28px 1fr 14px;
  }

  .ym-speaking-topic span {
    width: 18px;
    height: 18px;
    font-size: var(--ym-font-size-card-small);
  }

  .ym-speaking-topic p {
    padding: 0 8px;
    font-size: var(--ym-font-size-card-small);
    line-height: 1.16;
    letter-spacing: -0.025em;
  }

  .ym-speaking-topic img {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 390px) {
  .ym-speaking-format-grid {
    max-width: 300px;
    gap: 12px;
  }

  .ym-speaking-format-card {
    min-height: 126px;
  }

  .ym-speaking-topic p {
    font-size: var(--ym-font-size-card-small);
  }
}

/* Format card text fit */

.ym-speaking-format-card h3 {
  width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

/* Tablet / narrow desktop grid */
@media (max-width: 900px) and (min-width: 761px) {
  .ym-speaking-format-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ym-speaking-format-card {
    min-height: 132px;
    padding: 18px 10px 14px;
  }

  .ym-speaking-format-card__icon {
    width: 42px;
    height: 42px;
  }

  .ym-speaking-format-card h3 {
    max-width: 126px;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--ym-font-size-card-small);
    line-height: 1.16;
  }
}

@media (max-width: 767px) {
  .ym-speaking-format-card h3 {
    max-width: 122px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

@media (max-width: 390px) {
  .ym-speaking-format-card h3 {
    max-width: 110px;
    font-size: var(--ym-font-size-card-small);
    line-height: 1.16;
  }
}

/* ================================
BLOCK 03 — AUDIENCE + CHANNELS
================================ */

.ym-speaking-audience-section {
  position: relative;
  padding: clamp(34px, 3.2vw, 62px) 0 clamp(30px, 2.6vw, 50px);
  background:
    radial-gradient(circle at 10% 0%, rgba(32, 56, 102, 0.055) 0, rgba(32, 56, 102, 0) 30%),
    linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
}

.ym-speaking-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.05vw, 20px);
}

.ym-speaking-audience-card {
  min-height: clamp(78px, 5.1vw, 98px);
  padding: clamp(12px, 0.94vw, 18px) clamp(18px, 1.45vw, 28px);
  display: grid;
  grid-template-columns: clamp(42px, 2.82vw, 54px) 1fr;
  align-items: center;
  gap: clamp(14px, 1.05vw, 20px);
  color: var(--ym-color-ink);
  background: var(--ym-color-white);
  border: 1px solid rgba(32, 56, 102, 0.10);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(20, 37, 73, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ym-speaking-audience-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(20, 37, 73, 0.1);
}

.ym-speaking-audience-card__icon {
  width: clamp(42px, 2.82vw, 54px);
  height: clamp(42px, 2.82vw, 54px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 56, 102, 0.08);
  border-radius: 50%;
}

.ym-speaking-audience-card__icon img {
  width: clamp(24px, 1.62vw, 31px);
  height: clamp(24px, 1.62vw, 31px);
  object-fit: contain;
  opacity: 0.72;
}

.ym-speaking-audience-card p {
  margin: 0;
  color: var(--ym-color-ink);
  font-size: var(--ym-section-description-size);
  line-height: var(--ym-section-description-line-height);
  font-weight: 400;
  letter-spacing: -0.034em;
  text-align: center;
}

@media (max-width: 1280px) and (min-width: 901px) {
  .ym-speaking-audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ym-speaking-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ym-speaking-audience-section {
    padding: 34px 0 24px;
  }

  .ym-speaking-audience-grid {
    max-width: 340px;
    margin: 0 auto;
    gap: 9px;
  }

  .ym-speaking-audience-card {
    min-height: 48px;
    padding: 7px 8px;
    grid-template-columns: 26px 1fr;
    gap: 8px;
    border-radius: 4px;
    box-shadow: 0 5px 12px rgba(13, 39, 70, 0.06);
  }

  .ym-speaking-audience-card__icon {
    width: 25px;
    height: 25px;
  }

  .ym-speaking-audience-card__icon img {
    width: 16px;
    height: 16px;
  }

  .ym-speaking-audience-card p {
    font-size: var(--ym-font-size-card-small);
    line-height: 1.12;
    letter-spacing: -0.025em;
  }
}

@media (max-width: 390px) {
  .ym-speaking-audience-grid {
    max-width: 310px;
  }

  .ym-speaking-audience-card p {
    font-size: var(--ym-font-size-card-small);
  }
}

/* ================================
BLOCK 04 — SPEAKER FORM
================================ */

.ym-speaking-form-section {
  position: relative;
  padding: clamp(62px, 5.2vw, 100px) 0 clamp(82px, 6.2vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 14%, rgba(32, 56, 102, 0.10) 0, rgba(32, 56, 102, 0) 26%),
    linear-gradient(135deg, #ffffff 0%, #eef4fb 100%);
}

.ym-speaking-form-section::before,
.ym-speaking-form-section::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.ym-speaking-form-section::before {
  right: -250px;
  bottom: -230px;
  width: clamp(520px, 38vw, 730px);
  height: clamp(520px, 38vw, 730px);
  border: 1px solid rgba(24, 51, 95, 0.08);
}

.ym-speaking-form-section::after {
  right: 7%;
  bottom: -170px;
  width: clamp(340px, 25vw, 480px);
  height: clamp(340px, 25vw, 480px);
  background: radial-gradient(circle, rgba(24, 51, 95, 0.08) 0%, rgba(24, 51, 95, 0.06) 45%, rgba(24, 51, 95, 0) 72%);
}

.ym-speaking-form-card {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  min-height: clamp(350px, 25.6vw, 492px);
  padding: clamp(30px, 2.4vw, 46px) clamp(36px, 2.9vw, 56px);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 56, 102, 0.12);
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(20, 37, 73, 0.10);
  backdrop-filter: blur(10px);
}

.ym-speaking-form-card h2 {
  position: relative;
  max-width: 470px;
  margin: 0 0 clamp(22px, 1.65vw, 32px);
  padding-bottom: clamp(14px, 1vw, 20px);
  color: var(--ym-color-ink);
  font-size: var(--ym-section-title-size);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.048em;
}

.ym-speaking-form-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(170px, 10.4vw, 200px);
  height: 1px;
  background: var(--ym-color-blue);
}

.ym-speaking-form {
  display: grid;
  gap: clamp(22px, 1.66vw, 32px);
}

.ym-speaking-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(34px, 2.6vw, 50px);
  row-gap: clamp(14px, 1vw, 20px);
}

.ym-speaking-form label {
  display: block;
  min-width: 0;
}

.ym-speaking-form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ym-speaking-form input {
  width: 100%;
  height: clamp(42px, 2.6vw, 50px);
  padding: 0 clamp(16px, 1.04vw, 20px);
  display: block;
  color: var(--ym-color-ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(32, 56, 102, 0.18);
  border-radius: 8px;
  font-family: inherit;
  font-size: var(--ym-font-size-body);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  outline: none;
  transition: border-color var(--ym-transition), box-shadow var(--ym-transition), background var(--ym-transition);
}

.ym-speaking-form input::placeholder {
  color: rgba(5, 5, 5, 0.58);
}

.ym-speaking-form input:focus {
  border-color: var(--ym-color-blue);
  box-shadow: 0 0 0 3px rgba(24, 51, 95, 0.10);
  background: var(--ym-color-white);
}

.ym-speaking-form__submit {
  width: fit-content;
  min-width: clamp(240px, 16.2vw, 312px);
  min-height: clamp(44px, 3.1vw, 60px);
  padding: 0 clamp(22px, 1.65vw, 32px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 0.72vw, 14px);
  color: var(--ym-color-white);
  background: var(--ym-color-blue);
  border: 1px solid var(--ym-color-blue);
  border-radius: 3px;
  font-family: inherit;
  font-size: clamp(13px, 0.9375vw, 18px);
  line-height: 1.05;
  font-weight: 400;
  cursor: pointer;
  transition: opacity var(--ym-transition), transform var(--ym-transition);
  box-shadow: 0 14px 30px rgba(32, 56, 102, 0.14);
}

.ym-speaking-form__submit img {
  width: clamp(11px, 0.78vw, 15px);
  height: clamp(11px, 0.78vw, 15px);
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ym-speaking-form__submit:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

@media (max-width: 1280px) and (min-width: 901px) {
  .ym-speaking-form-card {
    width: min(100%, 980px);
  }

  .ym-speaking-form-card h2 {
    font-size: var(--ym-section-title-size-adaptive);
  }

  .ym-speaking-form input {
    font-size: var(--ym-font-size-card);
  }
}

@media (max-width: 900px) {
  .ym-speaking-form-card {
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .ym-speaking-form__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .ym-speaking-form-section {
    padding: 38px 0 58px;
  }

  .ym-speaking-form-section::before {
    right: -220px;
    bottom: -180px;
    width: 420px;
    height: 420px;
  }

  .ym-speaking-form-section::after {
    right: -40px;
    bottom: -120px;
    width: 300px;
    height: 300px;
  }

  .ym-speaking-form-card {
    max-width: 340px;
    min-height: 0;
    padding: 22px 18px 24px;
    border-radius: 12px;
  }

  .ym-speaking-form-card h2 {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 12px;
    font-size: var(--ym-section-title-size-mobile-sm);
    line-height: 1.02;
    text-align: center;
  }

  .ym-speaking-form-card h2::after {
    left: 50%;
    width: 130px;
    transform: translateX(-50%);
  }

  .ym-speaking-form {
    gap: 14px;
  }

  .ym-speaking-form input {
    height: 34px;
    padding: 0 11px;
    font-size: var(--ym-font-size-card-small);
    border-radius: 2px;
  }

  .ym-speaking-form__submit {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    font-size: var(--ym-font-size-card-small);
  }

  .ym-speaking-form__submit img {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 390px) {
  .ym-speaking-form-card {
    max-width: 310px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .ym-speaking-form-card h2 {
    font-size: var(--ym-section-title-size-mobile-sm);
  }
}

/* Contact Form 7 generated markup */

.ym-speaking-form-card .wpcf7,
.ym-speaking-form-card .wpcf7 form {
  width: 100%;
  margin: 0;
  padding: 0;
}

.ym-speaking-form-card .wpcf7 form {
  display: grid;
  gap: clamp(22px, 1.66vw, 32px);
}

.ym-speaking-form-card .wpcf7 fieldset,
.ym-speaking-form-card .wpcf7 fieldset.hidden-fields-container,
.ym-speaking-form-card .wpcf7 .hidden-fields-container {
  min-width: 0;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}

.ym-speaking-form-card .wpcf7 input[type="hidden"] {
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ym-speaking-form-card .wpcf7 p {
  margin: 0;
  padding: 0;
}

.ym-speaking-form-card .wpcf7 br {
  display: none;
}

.ym-speaking-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(34px, 2.6vw, 50px);
  row-gap: clamp(14px, 1vw, 20px);
}

.ym-speaking-form__field {
  position: relative;
  min-width: 0;
}

.ym-speaking-form-card .wpcf7-form-control-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.ym-speaking-form-card .wpcf7 input:not([type="hidden"]):not([type="submit"]),
.ym-speaking-form-card .wpcf7 textarea {
  width: 100%;
  height: clamp(42px, 2.6vw, 50px);
  min-height: 0;
  padding: 0 clamp(16px, 1.04vw, 20px);
  display: block;
  color: var(--ym-color-ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(32, 56, 102, 0.18);
  border-radius: 8px;
  font-family: inherit;
  font-size: var(--ym-font-size-body);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.03em;
  outline: none;
  box-shadow: none;
  transition: border-color var(--ym-transition), box-shadow var(--ym-transition), background var(--ym-transition);
}

.ym-speaking-form-card .wpcf7 textarea {
  min-height: clamp(42px, 2.6vw, 50px);
  max-height: 120px;
  padding-top: 13px;
  resize: vertical;
}

.ym-speaking-form-card .wpcf7 input:not([type="hidden"])::placeholder,
.ym-speaking-form-card .wpcf7 textarea::placeholder {
  color: rgba(5, 5, 5, 0.58);
}

.ym-speaking-form-card .wpcf7 input:not([type="hidden"]):not([type="submit"]):focus,
.ym-speaking-form-card .wpcf7 textarea:focus {
  border-color: var(--ym-color-blue);
  box-shadow: 0 0 0 3px rgba(24, 51, 95, 0.10);
  background: var(--ym-color-white);
}

.ym-speaking-form__field--date input[type="date"] {
  padding-right: clamp(42px, 2.8vw, 54px);
  color: rgba(5, 5, 5, 0.58);
}

.ym-speaking-form__field--date input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

.ym-speaking-form__field--date .wpcf7-form-control-wrap::after {
  content: "";
  position: absolute;
  right: clamp(13px, 0.95vw, 18px);
  top: 50%;
  width: clamp(14px, 0.94vw, 18px);
  height: clamp(14px, 0.94vw, 18px);
  background: url("../icons/calendar.svg") center / contain no-repeat;
  opacity: 0.72;
  transform: translateY(-50%);
  pointer-events: none;
}

.ym-speaking-form__submit-wrap {
  position: relative;
  width: fit-content;
  margin: 0;
  padding: 0;
}

.ym-speaking-form__submit-wrap::after {
  display: none;
  content: none;
}

.ym-speaking-form-card .wpcf7 input[type="submit"] {
  width: fit-content;
  min-width: clamp(260px, 17vw, 330px);
  min-height: clamp(48px, 3.1vw, 60px);
  padding: 0 clamp(28px, 2vw, 40px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ym-color-white);
  background: var(--ym-color-blue);
  border: 1px solid var(--ym-color-blue);
  border-radius: 3px;
  font-family: inherit;
  font-size: clamp(14px, 0.95vw, 18px);
  line-height: 1.05;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  white-space: nowrap;
  transition: opacity var(--ym-transition), transform var(--ym-transition);
}

.ym-speaking-form-card .wpcf7 input[type="submit"]:hover {
  opacity: 0.88;
}

.ym-speaking-form-card .wpcf7-spinner {
  margin: 0 0 0 12px;
  vertical-align: middle;
}

.ym-speaking-form-card .wpcf7-not-valid-tip {
  position: static;
  width: auto;
  height: auto;
  margin-top: 5px;
  color: #b3261e;
  font-size: var(--ym-font-size-card-small);
  line-height: 1.2;
  white-space: normal;
}

.ym-speaking-form-card .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-width: 1px;
  border-radius: 4px;
  font-size: var(--ym-font-size-card-small);
  line-height: 1.3;
}

@media (max-width: 767px) {
  .ym-speaking-form-card .wpcf7 form {
    gap: 14px;
  }

  .ym-speaking-form__grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .ym-speaking-form-card .wpcf7 input:not([type="hidden"]):not([type="submit"]),
  .ym-speaking-form-card .wpcf7 textarea {
    height: 34px;
    min-height: 34px;
    padding: 0 11px;
    font-size: var(--ym-font-size-card-small);
    border-radius: 2px;
  }

  .ym-speaking-form-card .wpcf7 textarea {
    padding-top: 9px;
  }

  .ym-speaking-form__field--date input[type="date"] {
    padding-right: 36px;
  }

  .ym-speaking-form__field--date .wpcf7-form-control-wrap::after {
    right: 11px;
    width: 14px;
    height: 14px;
  }

  .ym-speaking-form__submit-wrap {
    width: 100%;
  }

  .ym-speaking-form__submit-wrap::after {
    display: none;
    content: none;
  }

  .ym-speaking-form-card .wpcf7 input[type="submit"] {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 18px;
    font-size: 14px;
    text-align: center;
    white-space: normal;
  }

  .ym-speaking-form-card .wpcf7-not-valid-tip {
    font-size: var(--ym-font-size-card-small);
  }

  .ym-speaking-form-card .wpcf7-response-output {
    font-size: var(--ym-font-size-card-small);
  }
}

/* Date picker click area */

.ym-speaking-form__field--date .wpcf7-form-control-wrap::after {
  pointer-events: none;
}

.ym-speaking-form__field--date input[type="date"] {
  cursor: pointer;
}

.ym-speaking-form__field--date input[type="date"]::-webkit-calendar-picker-indicator {
  width: 42px;
  height: 100%;
  margin: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0;
}

/* ================================
MOBILE FIXES — HERO BUTTONS + AUDIENCE GRID
================================ */

@media (max-width: 767px) {
  .ym-speaking-hero__buttons {
    width: 100%;
    max-width: 352px;
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ym-speaking-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 16px;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    line-height: 1.14;
    white-space: normal;
    text-align: center;
  }

  .ym-speaking-button img {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
  }
}

@media (max-width: 390px) {
  .ym-speaking-hero__buttons {
    max-width: 320px;
    gap: 9px;
  }

  .ym-speaking-button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
  }
}

/* ================================
MOBILE FIX — AUDIENCE LAST CARD FULL WIDTH
================================ */

@media (max-width: 767px) {
  .ym-speaking-audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .ym-speaking-audience-card {
    min-width: 0;
    width: 100%;
  }

  .ym-speaking-audience-card p {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .ym-speaking-audience-card:last-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    justify-self: stretch;
    grid-template-columns: 26px minmax(0, auto);
    justify-content: center;
    padding-left: 18px;
    padding-right: 18px;
  }

  .ym-speaking-audience-card:last-child p {
    max-width: 220px;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .ym-speaking-audience-card:last-child {
    width: 100%;
    max-width: none;
    grid-template-columns: 25px minmax(0, auto);
    padding-left: 16px;
    padding-right: 16px;
  }

  .ym-speaking-audience-card:last-child p {
    max-width: 210px;
  }
}

/* ================================
CF7 VALIDATION CLEAN OUTPUT
================================ */

.ym-speaking-page .screen-reader-response,
.ym-speaking-page .wpcf7 .screen-reader-response,
.ym-speaking-form-card .screen-reader-response,
.ym-speaking-form-card .wpcf7 .screen-reader-response {
  position: absolute !important;
  inset: auto !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.ym-speaking-page .screen-reader-response p,
.ym-speaking-page .screen-reader-response ul,
.ym-speaking-page .screen-reader-response li,
.ym-speaking-form-card .screen-reader-response p,
.ym-speaking-form-card .screen-reader-response ul,
.ym-speaking-form-card .screen-reader-response li {
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* При помилках залишаємо тільки повідомлення під конкретними полями. */
.ym-speaking-form-card .wpcf7 form.invalid .wpcf7-response-output,
.ym-speaking-form-card .wpcf7 form.unaccepted .wpcf7-response-output,
.ym-speaking-form-card .wpcf7 form.spam .wpcf7-response-output,
.ym-speaking-page .wpcf7 form.invalid .wpcf7-response-output,
.ym-speaking-page .wpcf7 form.unaccepted .wpcf7-response-output,
.ym-speaking-page .wpcf7 form.spam .wpcf7-response-output {
  display: none !important;
}

/* Після успішної відправки загальне повідомлення має бути видимим. */
.ym-speaking-form-card .wpcf7 form.sent .wpcf7-response-output,
.ym-speaking-page .wpcf7 form.sent .wpcf7-response-output {
  display: block !important;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(24, 51, 95, 0.35);
  border-radius: 4px;
  color: var(--ym-color-blue);
  background: rgba(24, 51, 95, 0.06);
  font-size: var(--ym-font-size-card-small);
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.ym-speaking-form-card .wpcf7-not-valid-tip,
.ym-speaking-page .wpcf7-not-valid-tip {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin-top: 6px;
  color: #b3261e;
  font-size: var(--ym-font-size-card-small);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: normal;
}

.ym-speaking-form-card .wpcf7 input.wpcf7-not-valid,
.ym-speaking-form-card .wpcf7 textarea.wpcf7-not-valid,
.ym-speaking-form-card .wpcf7 select.wpcf7-not-valid,
.ym-speaking-page .wpcf7 input.wpcf7-not-valid,
.ym-speaking-page .wpcf7 textarea.wpcf7-not-valid,
.ym-speaking-page .wpcf7 select.wpcf7-not-valid {
  border-color: #b3261e;
  background: rgba(255, 255, 255, 0.96);
}

.ym-speaking-form-card .wpcf7 input.wpcf7-not-valid:focus,
.ym-speaking-form-card .wpcf7 textarea.wpcf7-not-valid:focus,
.ym-speaking-form-card .wpcf7 select.wpcf7-not-valid:focus,
.ym-speaking-page .wpcf7 input.wpcf7-not-valid:focus,
.ym-speaking-page .wpcf7 textarea.wpcf7-not-valid:focus,
.ym-speaking-page .wpcf7 select.wpcf7-not-valid:focus {
  border-color: #b3261e;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

@media (max-width: 767px) {
  .ym-speaking-form-card .wpcf7-not-valid-tip,
  .ym-speaking-page .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.25;
  }

  .ym-speaking-form-card .wpcf7 form.sent .wpcf7-response-output,
  .ym-speaking-page .wpcf7 form.sent .wpcf7-response-output {
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 12px;
  }
}


/* ================================
CONTAINER BREAKPOINTS
Aligned with blog.css
================================ */

@media (max-width: 1800px) {
  .ym-speaking-container {
    padding-left: 96px;
    padding-right: 96px;
  }
}

@media (max-width: 1650px) {
  .ym-speaking-container {
    padding-left: 84px;
    padding-right: 84px;
  }
}

@media (max-width: 1450px) {
  .ym-speaking-container {
    padding-left: 72px;
    padding-right: 72px;
  }
}

@media (max-width: 1280px) {
  .ym-speaking-container {
    padding-left: 64px;
    padding-right: 64px;
  }
}

@media (max-width: 1100px) {
  .ym-speaking-container {
    padding-left: 52px;
    padding-right: 52px;
  }
}

@media (max-width: 900px) {
  .ym-speaking-container {
    padding-left: 38px;
    padding-right: 38px;
  }
}

@media (max-width: 767px) {
  .ym-speaking-container {
    padding-left: 22px;
    padding-right: 22px;
  }

  .ym-speaking-page {
    background: #ffffff;
  }

  .ym-speaking-hero__video {
    border-radius: 10px;
    box-shadow: 8px 8px 0 var(--ym-color-blue, #203866), 0 12px 28px rgba(20, 37, 73, 0.10);
  }

  .ym-speaking-topic-list {
    max-width: 352px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .ym-speaking-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 390px) {
  .ym-speaking-container {
    padding-left: 18px;
    padding-right: 18px;
  }
}
