@font-face {
    font-family: 'Montserrat'; /* A name you choose to use later in your CSS */
    src: url("../../main/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
}

@font-face {
    font-family: 'Labor Union'; /* A name you choose to use later in your CSS */
    src: url("../../main/fonts/LaborUnion-Regular.otf") format("truetype");
}

body {
  margin: 0;
}

* {
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

.head {
    display: flex;
    margin: 5px 0 5px 10px;
}
.head a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
::selection {
  background-color: #ff400c;
  color: #ffffff;
}

.container {
  display: grid;
  padding: 5px 5px 5px 5px;
  gap: 14px;
  /* padding: 20px; */

  grid-template-columns: repeat(auto-fill, 260px);
}

.head h1 {
    font-family: 'Labor Union';
    font-size: 50px;
    color: #fff;
    margin: 0;
    padding: 20px;
}

body {
  background:#111;
}

.event-card {
  width:260px;
  height:359px;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  cursor:pointer;

  display:flex;
  flex-direction:column;
  transition:0.2s;
}

.event-card:hover {
  box-shadow: 0 0 10px 5px #ec8f1d;
}

.poster {
  height:219px;           /* 359 - ~140 контента */
  overflow:hidden;
}

.poster img {
  width:100%;
  height:100%;
  object-fit:cover;       /* обрезает как background-size: cover */
  object-position:center; /* можно менять: top / center / 50% 20% */
}


.content {
  padding:14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.title {
  font-family: 'Montserrat';
  margin:0;
  font-size:20px;
  font-weight:700;
  line-height:1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* максимум 2 строки */
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 48px
}

.date {
  font-family: 'Montserrat';
  font-weight: 400;
  margin:6px 0 10px;
  color:#666;
  font-size:14px;
  
}

.price {
  font-family: 'Montserrat';
  font-weight: 500;
  font-size:14px;
  margin-bottom:2px;
}

.buy-btn {
  display: block; 
  text-align: center; 
  text-decoration: none;
  margin-top: auto; /* отталкивает кнопку вниз */
}

.buy-btn {
  font-family: 'Montserrat';
  font-weight: 600;
  width:100%;
  padding:6px;
  border:none;
  border-radius:8px;
  background:#F59E0B;
  color:#fff;
  font-size:24px;
  cursor:pointer;
  transition:0.2s;
}

.buy-btn:hover {
  background:#e08b00;
}

@media (max-width: 544px) {
  .event-card {
    width: 90vw;
  }
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .head h1 {
    font-size: 30px;
  }
}
