/* Local Montserrat */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/montserrat-latin-400.woff2') format('woff2');
}

/* If you also use font-weight:700, but only have one file,
   you can map 700 to the same font file. Not perfect, but works. */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/montserrat-latin-400.woff2') format('woff2');
}

/* Make sure body uses it */
body {
    font-family: 'Montserrat', Arial, sans-serif;
}
/* ===== GLOBAL WRAPPER FOR SMALL SIDE GAP ON MOBILE ===== */
@media (max-width: 768px) {
  .body_wrap,
  .page_wrap,
  .content_wrap,
  .sc_content,
  .theme_background_1,
  .sc_section,
  .schedule-section,
  .sc_matches_wrap,
  .testimonials_custom_block_3,
  .sc_googlemap_content {
    padding-left: 4px;
    padding-right: 4px;
    box-sizing: border-box;
  }
}

/* ===== HEADER / TOP PANEL (DESKTOP + MOBILE) ===== */

/* Desktop header logo */
.top_panel_wrap .contact_logo .logo img.logo_main,
.top_panel_wrap .contact_logo .logo img.logo_fixed {
  max-height: 60px;
  width: auto;
}

/* Mobile header logo */
.header_mobile .logo img.logo_main {
  max-height: 50px;
  width: auto;
}

/* Full-width content on mobile */
@media (max-width: 479px) {
  .top_panel_middle .content_wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Stack header blocks vertically, centered (mobile-first) */
.top_panel_middle .content_wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo, socials, and menu: no floats, full width, centered */
.top_panel_middle .logo,
.top_panel_middle .menu_main_social_wrap,
.top_panel_middle .menu_main_wrap {
  float: none !important;
  width: 100%;
  text-align: center;
  margin: 8px 0;
}

/* Fine-tune logo block on tablets & below */
@media (max-width: 768px) {
  .top_panel_middle .contact_logo {
    float: none !important;
    max-width: 100% !important;
    margin: 1rem 0 0 !important;
    text-align: center !important;
  }

  .top_panel_middle .contact_logo .logo {
    float: none !important;
  }

  .top_panel_middle .contact_logo img {
    display: inline-block;
    margin: 0 auto !important;
  }
}

/* Social icons row in header */
.menu_main_social_wrap {
  max-width: 76%;
  margin-top: 0;
  float: right;
}

/* Main menu as a compact, centered row */
.menu_main_nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
  margin: 8px 0 4px;
}

.menu_main_nav > li {
  float: none;
  list-style: none;
}

.menu_main_nav > li > a {
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 4px 0;
}

/* ===== GOOGLE MAP IFRAME ===== */
.maps {
  width: 100%;
  height: 590px; /* align with .height_590 */
  border: 0;
}

/* ===== UPCOMING MATCHES SECTION ===== */

/* Make whole block full width */
.sc_matches_next {
  width: 100% !important;
  float: none !important;
}

/* Each match row as flex */
.sc_matches_next .sc_match {
  display: flex;
  align-items: stretch;
}

/* Right-side info area */
.sc_matches_next .sc_match_info {
  display: flex;
  align-items: stretch;
  flex: 1;
}

/* Text block (OPEN / FROM 2PM) */
.sc_matches_next .match_text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Button wrapper */
.sc_matches_next .players {
  margin-left: auto;
  display: flex;
  align-items: stretch;
}

/* Register button fills the cell vertically */
.sc_matches_next .players .sc_button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

/* ================================================= */
/* ================= SCHEDULE ====================== */
/* ================================================= */

.schedule-section {
  background: #fff;
  max-width: 1200px;
  margin: 80px auto;
  padding: 60px 20px;
  text-align: center;
}

/* BIG TITLE */
.schedule-section h2 {
  font-weight: 900;
  font-size: 5rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 50px;
  color: #1b2943;
}

/* TABLE WRAPPER */
.schedule-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

/* MAIN TABLE */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;    /* одинаковая ширина */

  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* BLACK TOP BAR */
.schedule-table caption {
  caption-side: top;
  background: #000;
  color: #ffffff;
  font-weight: 700;
  padding: 22px;
  font-size: 1.2rem;
  border-radius: 28px 28px 0 0;
}

/* DAY HEADERS */
.schedule-table thead th {
  background: #671913;
  color: #ffffff;
  padding: 18px 10px;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 3px solid #ffffff;
}

/* FIRST COLUMN (ROW LABELS) */
.schedule-table tbody th {
  background: #671913;
  color: #ffffff;
  font-size: 1.1rem;
  padding: 25px 15px;
  border: 3px solid #ffffff;
  text-transform: uppercase;
}

/* ALL CELLS */
.schedule-table tbody td {
  background: #671913;
  color: #ffffff;
  padding: 35px 10px;
  border: 3px solid #ffffff;
  text-align: center;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* GROUP TRAINING ROW */
.schedule-table tbody tr:first-child td {
  background: #671913;
}

/* TOURNAMENT ROW */
.schedule-table tbody tr:last-child td {
  background: #671913;
}

/* TEXT INSIDE CELLS */
.schedule-table td strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.schedule-table td span.time {
  display: block;
  font-size: 1.1rem;
  margin-top: 8px;
}

/* REMOVE OLD LIGHT BORDERS */
.schedule-table th,
.schedule-table td {
  border: 3px solid #ffffff;
}

/* MOBILE */
@media (max-width: 768px) {

  .schedule-section h2 {
    font-size: 3rem;
    letter-spacing: 4px;
  }

  .schedule-table thead th,
  .schedule-table tbody th,
  .schedule-table tbody td {
    padding: 15px 8px;
    font-size: 0.9rem;
  }
}


/* ===== TESTIMONIALS (SLIDER VERSION) ===== */

.testimonials_custom_block_3 .sc_testimonial_item {
  opacity: 1 !important;
}

.testimonials_custom_block_3 .sc_testimonial_content {
  position: relative;
  z-index: 2;
  padding: 40px 40px 0;
  color: #ffffff !important;
  text-align: center;
}

.testimonials_custom_block_3 .sc_testimonial_content p {
  color: #ffffff !important;
  font-size: 18px;
  line-height: 1.6;
  max-width: 70%;
  margin: 0 auto;
}

/* author text */
.testimonials_custom_block_3 .sc_testimonial_author_name {
  display: block;
  margin-top: 15px;
  font-weight: 700;
  color: #ffffff !important;
  text-align: center;
}

/* hide the semi-transparent bar that sits over the text */
.testimonials_custom_block_3 .sc_testimonial_content:before,
.testimonials_custom_block_3 .sc_testimonial_content:after {
  display: none !important;
}
/* === Testimonials (animated columns) === */
.tt_testimonials_section {
  background: #808080;        /* your green block */
  padding: 5rem 0;
}

.tt_testimonials_inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.tt_testimonials_title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

.tt_testimonials_subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 3rem;
}

.tt_reviews_grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .tt_reviews_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tt_reviews_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* columns */
.tt_reviews_column {
  overflow: hidden;
  height: 40rem;
  border-radius: 24px;
  position: relative;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

/* hide 3rd col on small screens */
.tt_hide_mobile {
  display: none;
}
@media (min-width: 1024px) {
  .tt_hide_mobile {
    display: block;
  }
}

/* inner stack */
.tt_reviews_column_inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* cards */
.tt_review_card {
  background: #111827;
  border: 1px solid #1f2937;
  color: #e5e7eb;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tt_review_card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.tt_review_header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.tt_review_emoji {
  font-size: 1.75rem;
  margin-right: 10px;
}

.tt_review_name {
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.tt_review_role {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0;
}

.tt_review_stars {
  color: #fbbf24;
  margin-bottom: 6px;
}

.tt_review_text {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* animations */
@keyframes tt_scroll_down_anim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes tt_scroll_up_anim {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.tt_scroll_down .tt_reviews_column_inner {
  animation: tt_scroll_down_anim 60s linear infinite;
}

.tt_scroll_up .tt_reviews_column_inner {
  animation: tt_scroll_up_anim 60s linear infinite;
}

/* pause on hover */
.tt_testimonials_section:hover .tt_reviews_column_inner {
  animation-play-state: paused;
}
.sc_team_item_description ul {
    text-align: left;
    margin: 0 auto;
    padding-left: 20px;
}
.sc_team_item_description li {
    margin-bottom: 4px;
}

/* ===== FULL-WIDTH MOBILE LAYOUT WITH 1mm SIDE GAP ===== */
@media (max-width: 768px) {

  html, body {
    margin: 0;
    padding: 0;
  }

  /* all main wrappers */
  .body_wrap,
  .page_wrap,
  .page_content_wrap,
  .content_wrap,
  .content_container,
  .slider_boxed {
    width: auto !important;
    max-width: calc(100% - 2mm) !important; /* 1mm left + 1mm right */
    margin-left: 1mm !important;
    margin-right: 1mm !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* make inner sections respect the same width */
  .sc_content,
  .theme_background_1 .sc_content,
  .theme_background_2 .sc_content,
  .sc_section_inner {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
/* ============================= */
/* MOBILE SCHEDULE FIX */
/* ============================= */

@media (max-width: 768px) {

  .schedule-section {
    max-width: 100% !important;
    margin: 40px 0 !important;
    padding: 20px 0 !important;
  }

  .schedule-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .schedule-table {
    min-width: 1100px;   /* важно */
    width: 100%;         /* не фиксированная ширина */
  }

  .schedule-table th,
  .schedule-table td {
    white-space: normal;     /* перенос по словам */
    word-break: keep-all;    /* НЕ ломать буквы */
    overflow-wrap: normal;
  }
}

/* ===== PRICING FIX SAFE VERSION ===== */

.sc_price_block {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.sc_columns_count_4 .sc_price_block {
    min-height: 280px;
}

.sc_price_block_title {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc_price_block_description {
    min-height: 40px;
}
/* Fix 4-column wrapping in pricing */
.sc_columns_count_4:after {
    content: "";
    display: block;
    clear: both;
}

/* Ensure 4 equal columns */
.sc_columns_count_4 .column-1_4 {
    width: 25%;
    float: left;
}

