/* Texas Hold'em page styles */

.th-hero {
  background-color: var(--color-chalk-white);
  padding-block: var(--space-3xl);
}

.th-hero__inner {
  width: 100%;
  max-width: var(--container-main);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: var(--space-xl);
  align-items: center;
}

.th-hero__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.th-hero__content .section-label {
  margin-block-end: 0;
}

.th-hero__content h1 {
  margin-block-end: 0;
  max-width: 20ch;
}

.th-hero__lead {
  max-width: 65ch;
  margin-block-end: 0;
}

.th-hero__facts {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.th-hero__facts li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-weight: 700;
}

.th-hero__facts span {
  color: var(--color-raspberry-red);
  font-size: 1.25rem;
  line-height: 1;
}

.th-hero__note {
  max-width: 65ch;
  margin-block-end: 0;
  color: var(--color-ink-blue-soft);
}

.th-hero__media {
  min-width: 0;
  margin: 0;
  border: var(--border-width) var(--border-style-dashed) var(--color-ink-blue);
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.th-hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform var(--transition-fast);
}

.th-hero__media:hover img {
  transform: scale(1.02);
}

.th-rules {
  background-color: var(--color-chalk-white);
  padding-block: var(--space-3xl);
}

.th-rules__inner {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.th-rules__inner .section-label,
.th-rules__inner h2 {
  margin-block-end: 0;
}

.th-rules__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.th-rules__card {
  background-color: var(--surface-card);
  border: var(--border-width) var(--border-style-dashed) var(--color-ink-blue);
  border-radius: var(--radius-medium);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.th-rules__card h3 {
  margin-block-end: 0;
}

.th-rules__card p,
.th-rules__card ul,
.th-rules__card ol {
  margin-block-end: 0;
}

.th-rules__card ul,
.th-rules__card ol {
  padding-inline-start: var(--space-xl);
}

.th-flow {
  background-color: var(--surface-dark);
  color: var(--color-chalk-white-soft);
  padding-block: var(--space-3xl);
}

.th-flow__inner {
  width: 100%;
  max-width: var(--container-main);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-xl);
  align-items: start;
}

.th-flow__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.th-flow__content .section-label,
.th-flow__content h2 {
  margin-block-end: 0;
}

.th-flow__content h2,
.th-flow__content h3,
.th-flow__content p,
.th-flow__content li {
  color: var(--color-chalk-white-soft);
}

.th-flow__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.th-flow__step {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  border-block-end: var(--border-width) var(--border-style-dashed) rgba(245, 240, 230, 0.35);
  padding-block-end: var(--space-lg);
}

.th-flow__step:last-child {
  border-block-end: none;
  padding-block-end: 0;
}

.th-flow__step h3 {
  margin-block-end: 0;
}

.th-flow__step p,
.th-flow__step ul {
  margin-block-end: 0;
}

.th-flow__step ul {
  padding-inline-start: var(--space-xl);
}

.th-flow__decor {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  padding: var(--space-lg);
  border: var(--border-width) var(--border-style-dashed) rgba(245, 240, 230, 0.35);
  border-radius: var(--radius-large);
}

.th-flow__decor-card,
.th-flow__decor-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 2.5rem;
  color: var(--color-chalk-white-soft);
  border: var(--border-width) var(--border-style-dashed) var(--color-olive);
  border-radius: var(--radius-medium);
  background-color: rgba(245, 240, 230, 0.08);
}

.th-flow__decor-chip {
  width: 48px;
  height: 48px;
  font-size: 1.75rem;
  border-radius: var(--radius-pill);
  border-color: var(--color-raspberry-red);
  color: var(--color-raspberry-red);
}

.th-atmosphere {
  background-color: var(--color-chalk-white);
  padding-block: var(--space-3xl);
}

.th-atmosphere__inner {
  width: 100%;
  max-width: var(--container-main);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

.th-atmosphere__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.th-atmosphere__content .section-label,
.th-atmosphere__content h2 {
  margin-block-end: 0;
}

.th-atmosphere__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.th-atmosphere__block h3 {
  margin-block-end: 0;
}

.th-atmosphere__block p,
.th-atmosphere__block ul {
  margin-block-end: 0;
}

.th-atmosphere__block ul {
  padding-inline-start: var(--space-xl);
}

.th-atmosphere__media {
  min-width: 0;
  margin: 0;
  border: var(--border-width) var(--border-style-dashed) var(--color-olive);
  border-radius: var(--radius-medium);
  overflow: hidden;
  background-color: var(--surface-card);
  box-shadow: var(--shadow-card);
}

.th-atmosphere__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center right;
  border-radius: 0;
  transition: transform var(--transition-fast);
}

.th-atmosphere__media:hover img {
  transform: scale(1.02);
}

.th-options {
  background-color: var(--color-chalk-white);
  padding-block: var(--space-3xl);
}

.th-options__inner {
  width: 100%;
  max-width: var(--container-main);
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.th-options__inner .section-label,
.th-options__inner h2 {
  margin-block-end: 0;
}

.th-options__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.th-options__card {
  min-width: 0;
  background-color: var(--surface-card);
  border: var(--border-width) var(--border-style-dashed) var(--color-olive);
  border-radius: var(--radius-medium);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.th-options__card:hover {
  transform: translateY(-4px);
  border-color: var(--color-raspberry-red);
  box-shadow: var(--shadow-card-hover);
}

.th-options__icon {
  font-size: 2rem;
  color: var(--color-raspberry-red);
  line-height: 1;
}

.th-options__card h3 {
  margin-block-end: 0;
}

.th-options__card p,
.th-options__card ul {
  margin-block-end: 0;
}

.th-options__card ul {
  padding-inline-start: var(--space-xl);
}

.th-faq {
  background-color: var(--color-chalk-white);
  padding-block: var(--space-3xl);
}

.th-faq__inner {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.th-faq__inner .section-label,
.th-faq__inner h2 {
  margin-block-end: 0;
}

.th-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.th-faq__item {
  border: var(--border-width) var(--border-style-dashed) var(--color-ink-blue);
  border-radius: var(--radius-medium);
  background-color: var(--surface-card);
  overflow: hidden;
}

.th-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background-color: transparent;
  color: var(--color-ink-blue);
  border: none;
  border-radius: 0;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.th-faq__question:hover {
  background-color: rgba(31, 42, 68, 0.05);
  color: var(--color-raspberry-red);
}

.th-faq__question:focus-visible {
  outline: var(--border-width) var(--border-style-dashed) var(--color-olive);
  outline-offset: -2px;
}

.th-faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  display: inline-block;
}

.th-faq__icon::before,
.th-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background-color: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-fast);
}

.th-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.th-faq__item.is-open .th-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.th-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.th-faq__answer p {
  margin: 0;
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-ink-blue-soft);
}

.th-cta {
  background-color: var(--surface-dark);
  color: var(--color-chalk-white-soft);
  padding-block: var(--space-3xl);
}

.th-cta__inner {
  width: 100%;
  max-width: 600px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

.th-cta__inner h2 {
  color: var(--color-chalk-white-soft);
  margin-block-end: 0;
}

.th-cta__inner p {
  color: var(--color-chalk-white-soft);
  margin-block-end: 0;
  max-width: 55ch;
}

.th-cta__contacts {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--color-chalk-white-soft);
}

.th-cta__contacts a {
  color: var(--color-chalk-white-soft);
  text-decoration-color: var(--color-olive);
}

.th-cta__contacts a:hover {
  color: var(--color-raspberry-red);
}

.th-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  background-color: var(--color-raspberry-red);
  color: var(--color-chalk-white);
  border: var(--border-width) var(--border-style-solid) var(--color-raspberry-dark);
  border-radius: var(--radius-small);
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.th-cta__button:hover {
  background-color: var(--color-raspberry-dark);
  border-color: var(--color-raspberry-dark);
  color: var(--color-chalk-white);
}

.th-cta__button:active {
  transform: translateY(1px);
}

.th-cta__button:focus-visible {
  outline: var(--border-width) var(--border-style-dashed) var(--color-olive);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .th-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .th-flow__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .th-flow__decor {
    display: none;
  }

  .th-options__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .th-hero,
  .th-rules,
  .th-flow,
  .th-atmosphere,
  .th-options,
  .th-faq,
  .th-cta {
    padding-block: var(--space-2xl);
  }

  .th-hero__inner,
  .th-rules__inner,
  .th-flow__inner,
  .th-atmosphere__inner,
  .th-options__inner,
  .th-faq__inner,
  .th-cta__inner {
    padding-inline: var(--space-md);
  }

  .th-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .th-hero__media {
    order: -1;
  }

  .th-hero__media img {
    aspect-ratio: 16 / 9;
    height: 300px;
    object-fit: cover;
  }

  .th-hero__content h1 {
    font-size: var(--text-h1);
    max-width: none;
  }

  .th-hero__lead,
  .th-hero__note {
    max-width: none;
  }

  .th-rules__grid,
  .th-flow__steps {
    gap: var(--space-lg);
  }

  .th-atmosphere__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .th-atmosphere__media {
    order: -1;
  }

  .th-atmosphere__media img {
    aspect-ratio: 4 / 3;
  }

  .th-options__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .th-faq__question {
    font-size: 1.25rem;
    padding: var(--space-md);
  }

  .th-faq__answer p {
    padding-inline: var(--space-md);
    padding-block-end: var(--space-md);
  }

  .th-cta__inner {
    padding-inline: var(--space-md);
  }

  .th-cta__button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .th-hero__inner,
  .th-rules__inner,
  .th-flow__inner,
  .th-atmosphere__inner,
  .th-options__inner,
  .th-faq__inner,
  .th-cta__inner {
    padding-inline: var(--space-sm);
  }

  .th-hero__media img {
    height: 220px;
  }

  .th-flow__decor-card {
    width: 48px;
    height: 48px;
    font-size: 1.75rem;
  }

  .th-flow__decor-chip {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
}
