/* path: assets/css/gimle-home-layout-tuning.css */

:root { --gimle-max-width: 1500px; }

.gimle-nav .nav-center a { font-size: 1.1rem; font-weight: 800; letter-spacing: .03em; }

.gimle-home-grid { grid-template-columns: minmax(0, 1fr) 430px; gap: 3rem; }
.gimle-home-main .gimle-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gimle-home-main .gimle-card h2,
.gimle-home-main .product-card h2,
.gimle-home-main .product-card h3 { font-size: clamp(1.2rem, 1.6vw, 1.8rem); line-height: 1.1; }

.gimle-page-hero { padding: 0; background: #f6f2ee; }
.gimle-page-hero__media {
  min-height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
}
.gimle-page-hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.12));
}
.gimle-page-hero__card {
  position: relative;
  width: min(780px, calc(100% - 4rem));
  margin-left: max(2rem, calc((100vw - var(--gimle-max-width)) / 2));
  padding: 3rem;
  border-radius: 32px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
}
.gimle-page-hero__card .gimle-display {
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: .88;
  margin: 0 0 1rem;
}
.gimle-page-hero__card .gimle-lead { max-width: 56ch; color: #242424; }

.gimle-team-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 2rem 0 3rem;
}
.gimle-team-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.gimle-team-filter a.active { background: #d40000; color: #fff; }

.gimle-teams-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: start;
}
.gimle-team-column__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.gimle-team-column__header h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: .95;
}
.gimle-team-grid { display: grid; gap: 1rem; }
.gimle-team-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  overflow: hidden;
  min-height: 190px;
  text-decoration: none;
}
.gimle-team-card__visual {
  background: radial-gradient(circle at 20% 20%, #ff4242, #b80000 45%, #111 100%);
  color: #fff;
  display: flex;
  align-items: end;
  padding: 1rem;
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.gimle-team-card.is-girls .gimle-team-card__visual { background: radial-gradient(circle at 20% 20%, #ff6f91, #d40000 50%, #111 100%); }
.gimle-team-card .gimle-card__body { padding: 1.25rem; }
.gimle-team-card .gimle-card__title {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  margin: .2rem 0 1rem;
  line-height: 1;
}
.gimle-team-card__contacts { display: grid; gap: .65rem; }
.gimle-team-contact {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: .35rem .75rem;
  align-items: baseline;
  font-size: .95rem;
}
.gimle-team-contact strong { font-weight: 900; }
.gimle-team-contact span { color: #333; }
.gimle-team-contact a {
  grid-column: 1 / -1;
  color: #d40000;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.gimle-section-heading { max-width: 820px; }
.gimle-muted { color: #666; }

.gimle-training-preview { overflow: hidden; }
.gimle-training-tabs { display:flex; gap:.5rem; margin-bottom:1rem; }
.gimle-training-tab { border:0; border-radius:999px; padding:.4rem .8rem; font-weight:700; }
.gimle-training-tab.active { background:#d40000; color:#fff; }
.gimle-training-photo-card {
  height: 360px;
  margin-top: 6.25rem;
  overflow: hidden;
  padding: 0.7rem;
  background: #fff;
}

.gimle-training-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 1000px) {
  .gimle-training-photo-card {
    margin-top: 0;
  }
}

.gimle-training-small {
  max-height: 360px;
  overflow-x: auto;
  overflow-y: auto;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.gimle-training-small table {
  font-size: 0.82rem;
  width: 100%;
  table-layout: fixed;
}

.gimle-training-small th {
  position: sticky;
  top: 0;
  background: #d40000;
  color: white;
  z-index: 1;
}

.gimle-training-small td,
.gimle-training-small th {
  padding: 0.38rem 0.3rem;
  text-align: center;
  line-height: 1.2;
  word-break: normal;
  white-space: normal;
}

.gimle-training-small tbody tr:nth-child(even) td {
  background: #faf6f2;
}

.gimle-training-small td:first-child,
.gimle-training-small th:first-child {
  font-weight: 800;
}

.gimle-home-sidebar .gimle-training-small {
  max-height: 360px;
  overflow-x: auto;
  overflow-y: auto;
}

.gimle-training-modal { width:90vw; max-width:1200px; }

.gimle-modal {
  width: min(1100px, calc(100vw - 2rem));
  max-width: 1100px;
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  border: 1px solid #dad2cb;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.gimle-modal::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.gimle-training-modal {
  width: min(1200px, calc(100vw - 2rem));
  overflow-y: auto;
  overflow-x: hidden;
}

.gimle-training-modal > .gimle-modal__header,
.gimle-training-modal > .gimle-modal__footer {
  position: sticky;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
}

.gimle-training-modal > .gimle-modal__header {
  top: 0;
  border-bottom: 1px solid #ece5df;
}

.gimle-training-modal > .gimle-modal__footer {
  bottom: 0;
  border-top: 1px solid #ece5df;
  justify-content: flex-end;
}

.gimle-training-modal > .gimle-modal__header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.1;
}

.gimle-training-modal .gimle-training-modal__block {
  padding: 0.85rem 1rem 0;
}

.gimle-training-modal .gimle-training-modal__block h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.1;
}

.gimle-training-modal .gimle-table-wrapper {
  max-height: none;
  overflow-x: auto;
  overflow-y: visible;
}

.gimle-training-modal .gimle-table th,
.gimle-training-modal .gimle-table td {
  padding: 0.55rem 0.65rem;
  font-size: 0.96rem;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .gimle-modal,
  .gimle-training-modal {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
  }

  .gimle-training-modal > .gimle-modal__header,
  .gimle-training-modal > .gimle-modal__footer,
  .gimle-training-modal .gimle-training-modal__block {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .gimle-training-modal .gimle-table-wrapper {
    max-height: 44vh;
  }

  .gimle-training-modal .gimle-table th,
  .gimle-training-modal .gimle-table td {
    font-size: 0.86rem;
    padding: 0.45rem 0.5rem;
  }
}

.gimle-hero__quicklinks { display:none; }
.gimle-hero__media { position:relative; }
.gimle-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.gimle-hero-news {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:60%; min-height:280px; padding:2rem;
  background:rgba(255,255,255,.72); backdrop-filter:blur(14px); border-radius:28px; box-shadow:0 25px 70px rgba(0,0,0,.25);
  display:flex; flex-direction:column; justify-content:center; z-index:1;
}
.gimle-hero-news__label { color:#d40000; text-transform:uppercase; letter-spacing:.15em; font-weight:800; margin-bottom:1.5rem; }
.gimle-hero-news__item { display:grid; grid-template-columns:35% 1fr; gap:1.5rem; align-items:center; }
.gimle-hero-news__image { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:18px; }
.gimle-carousel__controls { display:flex; justify-content:flex-end; gap:.5rem; margin-top:1rem; }

.gimle-games-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.gimle-games-header__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gimle-button--small {
  min-height: 38px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
}

.gimle-games-carousel-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
}

.gimle-games-carousel__nav {
  width: 40px;
  height: 40px;
  border: 1px solid #d6cbc2;
  border-radius: 999px;
  background: #fff;
  color: #1e1e1e;
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.gimle-games-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 0.35rem;
}

.gimle-game-slide {
  flex: 0 0 clamp(270px, 30vw, 360px);
  scroll-snap-align: start;
}

.gimle-match-card__actions {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.gimle-button--calendar {
  min-height: 30px;
  padding: 0.28rem 0.62rem;
  border-width: 1px;
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0.9;
}

.gimle-button--calendar:hover {
  opacity: 1;
}

.gimle-games-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

@media (max-width: 860px) {
  .gimle-games-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .gimle-games-header__actions {
    justify-content: flex-start;
  }

  .gimle-games-carousel-wrap {
    grid-template-columns: 1fr;
  }

  .gimle-games-carousel__nav {
    display: none;
  }

  .gimle-game-slide {
    flex-basis: min(86vw, 360px);
  }
}

/* Youth teams redesign */
.gimle-youth-hero {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.62), rgba(0,0,0,.22)),
    url('../images/back.png') center 38% / cover no-repeat,
    #111;
}
.gimle-youth-hero__inner { padding: 7rem 0 5rem; }
.gimle-youth-hero .gimle-section-label { color: #ff3838; }
.gimle-youth-hero .gimle-display {
  color: #fff;
  font-size: clamp(4.5rem, 9vw, 8rem);
  line-height: .86;
  margin: .35rem 0 1rem;
}
.gimle-youth-hero .gimle-lead { color: rgba(255,255,255,.9); max-width: 620px; }
.gimle-youth-breadcrumb {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.75rem;
  font-weight: 900;
}
.gimle-youth-breadcrumb a { color: #ff3838; text-decoration: none; }
.gimle-youth-breadcrumb span { color: rgba(255,255,255,.88); }
.gimle-youth-page { background: #f7f3ee; padding-top: 4rem; }
.gimle-youth-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}
.gimle-youth-toolbar .gimle-section-title {
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: .9;
  margin-bottom: .8rem;
}
.gimle-youth-toolbar .gimle-team-filter {
  margin: 0;
  padding: .55rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(0,0,0,.08);
}
.gimle-youth-toolbar .gimle-team-filter a {
  min-height: 48px;
  box-shadow: none;
  background: #f0e8e2;
}
.gimle-youth-toolbar .gimle-team-filter a.active { background: #d40000; color: #fff; }
.gimle-youth-sections { display: grid; gap: 3.5rem; }
.gimle-youth-section__title {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.4rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}
.gimle-youth-section__title span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #d40000;
  display: inline-block;
}
.gimle-youth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}
.gimle-youth-card {
  min-height: 220px;
  padding: 1.65rem;
  border-radius: 18px;
  background: #fff;
  border-left: 7px solid #d40000;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}
.gimle-youth-card--girls { border-left-color: #d40000; }
.gimle-youth-card--other { border-left-color: #242424; }
.gimle-youth-card .gimle-section-label { margin: 0 0 .8rem; }
.gimle-youth-card h3 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  line-height: .98;
}
.gimle-youth-card__contacts { display: grid; gap: .8rem; }
.gimle-youth-contact {
  display: grid;
  gap: .22rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(0,0,0,.08);
}
.gimle-youth-contact:first-child { border-top: 0; padding-top: 0; }
.gimle-youth-contact strong { font-weight: 900; color: #111; }
.gimle-youth-contact a {
  color: #d40000;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.gimle-youth-contact a:hover { text-decoration: underline; }

@media(max-width:1200px){
 .gimle-youth-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}

@media(max-width:1100px){
 .gimle-home-main .gimle-grid--4{grid-template-columns:repeat(2,minmax(0,1fr));}
 .gimle-hero-news{width:85%;}
 .gimle-teams-layout{grid-template-columns:1fr;}
 .gimle-team-card{grid-template-columns:110px minmax(0,1fr);}
 .gimle-page-hero__card{margin:2rem; width:auto;}
 .gimle-youth-toolbar{grid-template-columns:1fr; align-items:start;}
 .gimle-youth-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

@media(max-width:700px){
 .gimle-page-hero__media{min-height:380px;}
 .gimle-page-hero__card{padding:2rem;}
 .gimle-team-card{grid-template-columns:1fr;}
 .gimle-team-card__visual{min-height:90px;}
 .gimle-youth-hero{min-height:360px;}
 .gimle-youth-hero__inner{padding:5rem 0 3.5rem;}
 .gimle-youth-hero .gimle-display{font-size:clamp(3.4rem,16vw,5rem);}
 .gimle-youth-toolbar .gimle-team-filter{border-radius:22px;}
 .gimle-youth-grid{grid-template-columns:1fr;}
 .gimle-youth-card{min-height:0;}
}

/* Compact homepage tuning */
.gimle-page,
#main-content {
  overflow-x: clip;
}

.gimle-nav .nav-center a {
  font-size: 0.98rem;
  font-weight: 700;
}

.gimle-club-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 470px;
  margin-top: 0;
}

#main-content > .gimle-hero.gimle-club-hero {
  margin-top: 0;
}

.gimle-club-hero .gimle-hero__media {
  min-height: 470px;
}

.gimle-club-hero .gimle-hero__content {
  padding: clamp(1.15rem, 2.4vw, 1.9rem);
}

.gimle-club-hero .gimle-display {
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  line-height: 0.9;
}

.gimle-club-hero .gimle-hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  max-width: 46ch;
}

.gimle-club-hero .gimle-hero__actions {
  margin-top: 1rem;
  gap: 0.55rem;
}

.gimle-club-hero .gimle-button {
  min-height: 40px;
  padding: 0.58rem 0.88rem;
  font-size: 0.92rem;
}

.gimle-hero-news {
  width: min(74%, 760px);
  min-height: 210px;
  padding: 1rem;
  border-radius: 18px;
}

.gimle-hero-news__label {
  margin-bottom: 0.65rem;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
}

.gimle-hero-news__item {
  grid-template-columns: 32% 1fr;
  gap: 0.8rem;
}

.gimle-hero-news__item h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  line-height: 1.12;
}

.gimle-hero-news__item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.gimle-home-grid--split {
  margin-block: 0.8rem 0.35rem;
}

.gimle-home-grid--split .gimle-home-main,
.gimle-home-grid--split .gimle-home-sidebar {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.gimle-home-sidebar .gimle-button {
  min-height: 36px;
  padding: 0.42rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
}

.gimle-home-section {
  padding-block: clamp(0.6rem, 1.6vw, 1.1rem);
}

.gimle-home-main .gimle-home-section,
.gimle-home-sidebar .gimle-home-section {
  padding-block: 0;
}

.gimle-home-section .gimle-section-title {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  line-height: 0.96;
  max-width: 17ch;
}

.gimle-home-section .gimle-lead {
  margin: 0.6rem 0 1rem;
  font-size: 0.98rem;
}

.gimle-home-section--events .gimle-section-title {
  font-size: clamp(1.75rem, 2.6vw, 2.3rem);
}

.gimle-home-section .gimle-card {
  border-radius: 18px;
  border: 1px solid #ddd3cc;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.gimle-home-section .gimle-card__body {
  padding: 1rem;
}

.gimle-news-grid .gimle-news-card,
.gimle-news-carousel .gimle-news-card {
  display: flex;
  flex-direction: column;
}

.gimle-news-card__media {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  background: #f4ece5;
}

.gimle-news-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gimle-news-grid--single .gimle-news-card {
  display: grid;
  grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
  align-items: stretch;
}

.gimle-news-grid.gimle-news-grid--single {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.gimle-news-grid--single .gimle-news-card .gimle-news-card__media {
  height: 100%;
  min-height: 280px;
}

.gimle-news-grid--single .gimle-news-card .gimle-card__body {
  padding: 1.2rem;
}

.gimle-news-grid--single .gimle-news-card .gimle-card__title {
  font-size: clamp(1.5rem, 2.3vw, 2.15rem);
}

.gimle-news-grid--single .gimle-news-card .gimle-card__text {
  margin-bottom: 0.9rem;
  line-height: 1.45;
}

.gimle-news-carousel .gimle-news-card {
  display: grid;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr);
  align-items: stretch;
}

.gimle-news-carousel .gimle-news-card .gimle-news-card__media {
  height: 100%;
  min-height: 260px;
}

.gimle-news-carousel .gimle-news-card .gimle-card__body {
  padding: 1.2rem;
}

.gimle-games-carousel {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.95rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
}

.gimle-games-carousel--two {
  justify-content: flex-start;
}

.gimle-game-slide {
  flex: 0 0 clamp(270px, 30vw, 360px);
  width: auto;
  max-width: 360px;
  height: 100%;
  scroll-snap-align: start;
}

.gimle-match-card__teams {
  align-items: flex-start;
  justify-content: space-between;
}

.gimle-match-card__team {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  min-width: 0;
  flex: 1 1 0;
}

.gimle-match-card__name {
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
}

.gimle-match-card__vs {
  padding-top: 0.65rem;
  color: #8a8a8a;
}

.gimle-match-card__logo {
  width: 66px;
  height: 66px;
}

.gimle-match-card__meta {
  margin: 0.65rem 0 0.25rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.gimle-match-card__location {
  margin: 0 0 0.8rem;
  font-size: 0.88rem;
  color: #4b4b4b;
}

.gimle-training-preview-note {
  margin: 0.45rem 0 0.8rem;
  color: #5f5f5f;
  font-size: 0.82rem;
}

.gimle-training-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.gimle-training-actions .gimle-button {
  min-height: 34px;
  padding: 0.38rem 0.65rem;
  font-size: 0.82rem;
}

.gimle-safe-report-card__button {
  min-height: 34px;
  padding: 0.38rem 0.65rem;
  font-size: 0.8rem;
  line-height: 1.1;
  border-radius: 999px;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
}

.gimle-shop-carousel {
  position: relative;
}

.gimle-shop-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 0.3rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gimle-shop-carousel__track::-webkit-scrollbar {
  display: none;
}

.gimle-shop-grid__item {
  min-width: 0;
  flex: 0 0 clamp(220px, 24vw, 280px);
}

.gimle-product-card {
  display: flex;
  flex-direction: column;
}

.gimle-product-card__image {
  height: 170px;
  padding: 0.75rem;
}

.gimle-product-card .gimle-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem;
}

.gimle-product-card .gimle-card__title {
  font-family: var(--gimle-font-sans);
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.gimle-product-card__price {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.gimle-product-card .gimle-button {
  margin-top: auto;
  min-height: 36px;
  padding: 0.45rem 0.72rem;
  font-size: 0.86rem;
}

.gimle-shop-carousel__controls {
  margin-top: 0.65rem;
}

.gimle-social-section .gimle-section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.96;
  max-width: none;
  margin-bottom: 0.35rem;
}

.gimle-social-section__lead {
  margin: 0.4rem 0 0.9rem;
  font-size: 0.98rem;
  max-width: 60ch;
}

.gimle-home-social-safe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 1.1rem;
  align-items: start;
  margin-block: 0.65rem 0.35rem;
}

.gimle-home-social-safe-row__social,
.gimle-home-social-safe-row__safe {
  min-width: 0;
}

.gimle-home-social-safe-row__safe .gimle-safe-report-card {
  margin: 0;
}

.instagram-container {
  overflow: hidden;
  max-width: 740px;
  margin: 0 auto;
  padding: 0.4rem;
  background: #fff;
  border-radius: 20px;
}

.instagram-container iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 50vw, 520px);
  margin: 0;
  border: 0;
  border-radius: 14px;
}

.gimle-social-follow {
  margin-top: 0.9rem;
  text-align: center;
}

.gimle-social-follow__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.15;
}

.gimle-social-follow__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.gimle-social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(145deg, #de0014, #a3000d);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.gimle-social-link i {
  font-size: 1.05rem;
}

.gimle-social-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
}

.gimle-social-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.24);
}

.gimle-sponsor-strip {
  padding: 0.85rem 0;
}

.gimle-sponsor-strip__label {
  margin-bottom: 0.7rem;
}

.gimle-sponsor-strip__logos {
  gap: 1.4rem;
}

.gimle-sponsor-strip__logos img {
  max-height: 54px;
  max-width: 160px;
}

.gimle-home-section--safe-report {
  padding-top: 0.3rem;
}

.gimle-home-section--safe-report .gimle-safe-report-card {
  max-width: 820px;
  margin: 0 auto;
}

.contact-page {
  padding-block: 0.75rem 1rem;
}

.contact-page__header {
  margin-bottom: 0.6rem;
}

.contact-page__header .gimle-section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0.9rem;
  align-items: start;
}

.contact-page__card {
  min-width: 0;
}

.contact-page__logo {
  display: block;
  width: 88px;
  height: auto;
  margin-bottom: 0.7rem;
}

.contact-page__title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  line-height: 1.2;
}

.contact-page__text {
  margin: 0 0 0.45rem;
  font-size: 0.94rem;
  line-height: 1.4;
}

.contact-page__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  border-radius: 12px;
  margin-top: 0.55rem;
}

.contact-page__group {
  margin-top: 0.65rem;
  padding-top: 0.6rem;
  border-top: 1px solid #e7ddd7;
}

.contact-page__group h3 {
  margin: 0 0 0.35rem;
  font-size: 0.96rem;
  line-height: 1.25;
}

.contact-page__person {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
  margin-bottom: 0.4rem;
}

.contact-page__person strong,
.contact-page__person a {
  font-size: 0.88rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.contact-page__empty {
  color: #666;
  font-size: 0.9rem;
}

.gimle-footer-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.gimle-footer-grid h3 {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

.gimle-footer-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.76rem;
  line-height: 1.22;
}

.gimle-footer-grid a {
  color: #fff;
}

footer.gimle-section {
  padding-block: clamp(0.75rem, 1.5vw, 1.15rem);
}

footer.gimle-section .gimle-section-title {
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 0.95;
}

footer.gimle-section .gimle-lead {
  display: none;
}

@media (max-width: 1100px) {
  .gimle-home-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .gimle-club-hero,
  .gimle-club-hero .gimle-hero__media {
    min-height: 410px;
  }

  .gimle-hero-news {
    width: 88%;
    min-height: 170px;
  }

  .gimle-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gimle-home-social-safe-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .gimle-club-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .gimle-club-hero,
  .gimle-club-hero .gimle-hero__media {
    min-height: 330px;
  }

  .gimle-club-hero .gimle-display {
    font-size: clamp(2.1rem, 11vw, 3.1rem);
  }

  .gimle-hero-news {
    width: 92%;
    padding: 0.75rem;
  }

  .gimle-hero-news__item {
    grid-template-columns: 1fr;
  }

  .gimle-games-carousel,
  .gimle-footer-grid {
    grid-template-columns: 1fr;
  }

  .gimle-games-carousel--two {
    grid-template-columns: 1fr;
  }

  .gimle-shop-grid__item {
    flex-basis: min(80vw, 300px);
  }

  .gimle-news-grid--single .gimle-news-card {
    grid-template-columns: 1fr;
  }

  .gimle-news-grid--single .gimle-news-card .gimle-news-card__media,
  .gimle-news-carousel .gimle-news-card .gimle-news-card__media {
    min-height: 220px;
  }

  .gimle-news-carousel .gimle-news-card {
    grid-template-columns: 1fr;
  }

  .contact-page__grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .contact-page__map iframe {
    height: 190px;
  }
}
