:root {
  --accent-color: #feea41;
  --accent-paragraph: #4dd2ff;
  --grey: rgba(0, 0, 0, 0.6);
  --body-background-color: #0e0f12;
  --light-color: #fff;
  --tablet-background-color: #1b1e29;
  --ocean: #404bbf;
  --navy-blue: #2e2f42;
  --slate: #434455;
  --light-slate: #8e8f99;
  --cornflower: #e7e9fc;
  --cloud: #f4f4fd;
  --navy-blue-modal: rgba(46, 47, 66, 0.4);
  --white: #fff;
  --dairy: #fcfcfc;

  --font-family: "Roboto", sans-serif;
  --second-family: "Raleway", sans-serif;
}

body {
  font-family: var(--font-family);
  color: var(--slate);
  background-color: var(--body-background-color);
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

img {
  display: block;
  height: auto;
}

a {
  text-decoration: none;
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
}

.conteiner-big {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;

  align-items: center;
  display: flex;
  justify-content: space-between;
}

@media screen and (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media screen and (min-width: 1158px) {
  .container {
    max-width: 1000px;
  }

  .conteiner-big {
    max-width: 1200px;
  }
}

.section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* ------------------------- HEADER ------------------------ */

@media screen and (min-width: 320px) {
  .header {
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--grey);
  }
}

@media screen and (min-width: 320px) and (max-width: 1157px) {
  .header .container {
    display: flex;
    align-items: center;
    display: flex;
    justify-content: space-between;
  }
}

@media screen and (min-width: 1158px) {
  .header {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .conteiner-big {
    display: flex;
  }
}

.header-logo-link {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--light-color);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-logo-link:hover,
.header-logo-link:focus {
  color: var(--accent-color);
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .header-menu-icon {
    border: none;
    background-color: transparent;
    margin-left: auto;
    transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    stroke: #fff;
    fill: #fff;
  }

  .header-menu-icon:hover,
  .header-menu-icon:focus {
    color: var(--accent-color);
  }
}

@media screen and (min-width: 768px) {
  .header-menu-icon {
    display: none;
  }
}

.header-nav {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--navy-blue);
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .header-nav {
    display: none;
  }
}

.header-nav-list {
  display: flex;
  gap: 40px;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .header-address {
    display: none;
  }
}

.header-nav-link {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--light-color);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav-link {
  /* content: ""; */
  position: relative;
  padding-top: 24px;
  padding-bottom: 24px;
}

.header-nav-link:hover,
.header-nav-link:focus {
  color: var(--accent-color);
}

@media screen and (min-width: 1158px) {
  .header-address-list {
    display: flex;
    gap: 40px;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .header-mob-menu {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: var(--body-background-color);
    width: 100vw;
    height: 100vh;
    padding: 24px 24px 40px 16px;
    overflow-y: auto;
  }

  .header-mob-menu .container {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
    padding: 0;
    justify-content: flex-start;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .header-mob-close {
    border-radius: 50%;
    border: 2px solid var(--cornflower);
    background-color: transparent;
    color: var(--light-color);

    margin-bottom: 24px;
    display: block;
    margin-left: auto;
  }

  .header-mob-close:hover,
  .header-mob-close:focus {
    border-color: var(--accent-color);
    background-color: var(--accent-color);
  }
}

@media screen and (max-width: 767px) {
  .header-close-menu:hover,
  .header-close-menu:focus {
    fill: #fff;
  }
}

@media screen and (min-width: 768px) {
  .header-mob-menu {
    display: none;
  }
}

.header-mob-nav {
  margin-bottom: 168px;
}

.header-mob-nav-item {
  margin-bottom: 40px;
}

.header-mob-nav-item:last-child {
  margin-bottom: 0;
}

.header-mob-nav-link {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  color: var(--light-color);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-mob-nav-link:hover,
.header-mob-nav-link:focus {
  color: var(--accent-color);
}

@media screen and (max-width: 767px) {
  .header-mob-address {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
}

.header-mob-address-list {
  margin-bottom: 48px;
}

.header-mob-address-item {
  margin-bottom: 24px;
}

.header-mob-address-item:last-child {
  margin-bottom: 0;
}

.header-mob-address-link {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--slate);
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.header-soc-list {
  display: flex;
  gap: 24px;
  margin-right: auto;
  justify-content: space-between;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .header-soc-list {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    margin-right: 0;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .header-mob-menu.is-hidden {
    display: none;
  }
}

/* -------------------------- HERO ------------------------- */

.hero {
  padding-top: 72px;
  padding-bottom: 72px;
  background-image: linear-gradient(var(--grey), var(--grey)),
    url(../images/hero-img.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover, cover;
}

@media screen and (min-width: 768px) {
  .hero {
    padding-top: 112px;
    padding-bottom: 112px;
    background-image: linear-gradient(var(--grey), var(--grey)),
      url(../images/hero-img.png);
    background-size: cover, 768px 100%;
  }
}

@media screen and (min-width: 1158px) {
  .hero {
    background-image: linear-gradient(var(--grey), var(--grey)),
      url(../images/hero-img.png);
    background-size: cover, cover;
  }
}

.hero-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--white);

  margin-right: auto;
  margin-left: auto;
  margin-bottom: 26px;
}

@media screen and (min-width: 768px) {
  .hero-title {
    font-size: 56px;
    line-height: 1.07;
  }
}

.hero-secondary-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--white);

  margin-bottom: 26px;
}

.hero-paragraf {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--white);

  margin-right: auto;
  margin-left: auto;
  margin-bottom: 16px;
}

.hero-paragraf:last-of-type {
  margin-bottom: 26px;
}

.hero-paragraf-accent {
  color: var(--accent-paragraph);
  font-weight: 700;
}

.hero-btn {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #000;

  border: none;
  border-radius: 4px;
  width: 180px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background-color: var(--accent-color);
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;

  display: block;
}

.hero-btn:hover,
.hero-btn:focus {
  background-color: #ff4d7a;
}

/* ------------------------ upcoming concerts ----------------------- */
.box {
  border: 1px solid #2a2a2e;
  border-radius: 12px;
}

@media screen and (max-width: 767px) {
  .box {
    width: 600px;
  }
}

.concerts {
  padding: 40px;
  background: #0e0e11;
  color: #fff;
  border-radius: 12px;
}

.concerts-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: left;
  color: var(--white);
  background-color: var(--tablet-background-color);
  border-bottom: 1px solid #2a2a2e;
  padding-top: 26px;
  padding-bottom: 26px;
  padding-left: 16px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.concert-table {
  width: 100%;
  border-collapse: collapse;
}

.concert-table th,
.concert-table td {
  padding: 16px;
  text-align: left;
}

.concert-table thead {
  background: var(--tablet-background-color);
  color: #ccc;
}

.concert-table tbody tr,
.concert-table thead tr {
  border-bottom: 1px solid #2a2a2e;
}

.buy-btn {
  background: #ff3366;
  border: none;
  padding: 10px 18px;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.concert-table tbody tr:last-child td:first-child,
.concert-table tbody tr:last-child td:last-child {
  border-bottom-left-radius: 10px;
}

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

@media (max-width: 767px) {
  .concerts {
    overflow-x: auto;
  }

  .concert-table {
    width: 600px;
  }
}

/* ------------------------ OUR TEAM ----------------------- */

.team-title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.11;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--light-color);

  margin-bottom: 72px;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .team-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (min-width: 768px) {
  .team-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media screen and (min-width: 1158px) {
  .team-list {
    gap: 54px;
  }
}

.team-item {
  border: 1px solid #2a2a2e;
  border-radius: 7px;
}

.team-item img {
  border-radius: 0 0 4px 4px;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .team-item {
    margin-bottom: 72px;
  }

  .team-item:last-child {
    margin-bottom: 0;
  }
}

@media screen and (min-width: 320px) and (max-width: 1157px) {
  .team-item img {
    width: 200px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1157px) {
  .team-item {
    margin-right: 24px;
  }

  .team-item:nth-last-child(-n + 2) {
    margin-bottom: 0;
  }
}

.team-container {
  padding: 8px;
}

.team-subtitle {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--light-color);
}

.team-paragraf {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 8px;
}

.team-soc-list {
  display: flex;
  gap: 24px;
  margin-right: auto;
  justify-content: center;
}

.team-soc-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.team-soc-icon {
  width: 40px;
  height: 40px;
}

.team-soc-link:hover .team-soc-icon,
.team-soc-link:focus .team-soc-icon {
  --color1: var(--ocean);
  --color2: #fff;
}

/* ------------------------ HISTORY -----------------------  */
.history {
  padding: 80px 0;
  background: #0f0f12;
  color: #fff;
  background: linear-gradient(to right, #141a20, #2a1c1f);
}

.history-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.history-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.history-text-left {
  flex: 1;
}

.history-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.history-text-left p {
  font-size: 18px;
  line-height: 1.6;
  color: #ccc;
}

.history-image {
  flex: 1;
}

.history-image img {
  width: 100%;
  object-fit: cover;
}

.history-full {
  width: 100%;
  margin-top: 20px;
}

.history-full p {
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.7;
  color: #ccc;
}

@media (max-width: 768px) {
  .history-row {
    flex-direction: column;
  }

  .history-title {
    font-size: 30px;
  }

  .history-text-left p,
  .history-full p {
    font-size: 16px;
  }
}

/* ------------------------ CONTACT -----------------------  */
.contact {
  padding: 80px 0;
  background: #0f0f12;
  color: #fff;
  background: linear-gradient(to right, #2a1c1f, #141a20);
}

.contact-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.contact-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-subtitle {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 40px;
}

.contact-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .contact-wrapper {
    display: block;
  }
}

.contact-form {
  flex: 1;
  text-align: left;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full {
  width: 100%;
  margin-top: 20px;
}

label {
  margin-bottom: 10px;
  font-weight: 600;
}

input,
textarea {
  background: #11151d;
  border: 1px solid #1f232c;
  border-radius: 10px;
  padding: 14px;
  color: var(--accent-color);
  font-size: 16px;
}

textarea {
  min-height: 140px;
  resize: none;
}

.contact-btn {
  margin-top: 25px;
  padding: 14px 36px;
  background: #ff355b;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
}

.contact-btn:hover {
  background: #ff4d7a;
}

.contact-map {
  flex: 1;
  background: #11151d;
  border: 1px solid #1f232c;
  border-radius: 20px;
  padding: 24px;
  text-align: left;
}

.contact-map h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.map-frame iframe {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .contact-map {
    margin-top: 20px;
  }

  .contact-title {
    font-size: 32px;
  }
}

/* ------------------------ FOOTER -----------------------  */
.footer {
  background-color: var(--navy-blue);
  padding-top: 40px;
  padding-bottom: 40px;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1157px) {
  .footer {
    padding-left: 108px;
    padding-right: 164px;
  }
}

.footer-list {
  display: flex;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .footer-list {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (min-width: 768px) {
  .footer-list {
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .footer-link {
    display: block;
    text-align: center;
  }
}

.footer-link {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.17;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--cloud);
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .footer-link {
    text-align: center;
  }
}

.footer-link-web {
  color: var(--accent-color);
}

.footer-paragraf {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--cloud);
  margin-bottom: 20px;
}

.footer-address-list {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 767px) {
  .footer-address-list {
    display: block;
  }
}

@media (max-width: 767px) {
  .footer-address-item:not(:last-child)::after {
    display: none;
  }

  .footer-address-item {
    justify-content: center;
  }
}

.footer-address-item {
  display: flex;
  align-items: center;
}

.footer-address-item:not(:last-child)::after {
  content: "•";
  margin: 0 10px;
  color: #fff;
  font-size: 1em;
}

.footer-address-link,
.footer-media-link {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--cloud);
}

.footer-media-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-icon-item {
  display: flex;
  align-items: center;
}

.footer-icon-item:not(:last-child)::after {
  content: "•";
  margin: 0 10px;
  color: #fff;
  font-size: 1em;
}

/* ------------------------ MODAL ----------------------- */
.backdrop {
  position: fixed;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);

  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
  visibility: visible;
}

.backdrop.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.modal {
  position: absolute;
  border-radius: 4px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12),
    0 2px 1px 0 rgba(0, 0, 0, 0.2);
  background-color: var(--dairy);

  transform: translateY(-100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .modal {
    width: 288px;
    padding: 72px 16px 24px 16px;
    min-height: 623px;
  }
}

@media screen and (min-width: 768px) {
  .modal {
    width: 408px;
    padding: 52px 24px 24px 24px;
    min-height: 584px;
  }
}

.backdrop:not(.is-hidden) .modal {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;

  border-radius: 50%;
  border-width: 1px;
  border-color: rgba(0, 0, 0, 0.1);
}

.modal-close-icon {
  fill: var(--navy-blue);
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  fill: var(--white);
}

.modal-close-btn:hover,
.modal-close-btn:focus {
  border-color: #ff355b;
  background-color: #ff355b;
}

.modal-title {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--navy-blue);
  margin-bottom: 16px;
}

.modal-label {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: var(--light-slate);
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 4px;
}

.input-wrapper {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
}

.modal-input {
  margin-top: 4px;
  margin-bottom: 8px;
  height: 40px;
  border: 1px solid var(--navy-blue-modal);
  border-radius: 4px;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: transparent;
}

.modal-input:focus:invalid,
.modal-input.dirty:invalid {
  border-color: #ff355b;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .modal-input {
    width: 256px;
  }
}

@media screen and (min-width: 768px) {
  .modal-input {
    width: 360px;
  }
}

.modal-input:hover,
.modal-input:focus,
.modal-text:hover,
.modal-text:focus {
  border: 1px solid var(--accent-color);
  outline: none;
}

.modal-input-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 24px;
  top: 26px;
  pointer-events: none;
  fill: black;
  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 0;
}

.input-wrapper:hover .modal-input-icon,
.modal-input:focus + .modal-input-icon {
  fill: var(--accent-color);
}

.modal-btn {
  border: none;
  border-radius: 4px;
  padding: 16px 32px;
  display: block;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
  width: 169px;
  height: 56px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  background-color: #ff355b;

  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--white);

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-btn:hover,
.modal-btn:focus {
  background-color: #ff4d7a;
}

.modal-text {
  margin-top: 4px;
  padding: 8px 16px;

  resize: none;

  border: 1px solid var(--navy-blue-modal);
  border-radius: 4px;
  width: 100%;
  height: 120px;
  margin-bottom: 16px;
  background-color: transparent;
}

.modal-text::placeholder {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: var(--navy-blue-modal);
}

.modal-checkbox-text {
  align-items: center;
  display: flex;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .modal-input {
    width: 256px;
  }
}

@media screen and (min-width: 768px) {
  .modal-input {
    width: 360px;
  }
}

.modal-contract-text {
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: var(--light-slate);
}

.modal-contract {
  font-size: 12px;
  line-height: 1.17;
  letter-spacing: 0.04em;
  color: #ff355b;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  margin-left: 3px;
}

@media screen and (max-width: 767px) {
  .modal-checkbox-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  .modal-contract {
    display: block;
    flex-basis: 100%;
  }
}

@media screen and (max-width: 767px) {
  .modal-checkbox-text {
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: 8px;
    align-items: center;
  }

  .modal-checkbox-text::before {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .modal-contract-text {
    grid-column: 2;
    grid-row: 1;
  }

  .modal-contract {
    grid-column: 2;
    grid-row: 2;
    margin-top: 4px;
  }
}

@media screen and (max-width: 767px) {
  .modal-contract {
    margin-top: 0;
  }
}

.modal-checkbox-text::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 2px;
  border: 1px solid var(--navy-blue-modal);
  margin-right: 8px;
}

.modal-checkbox:checked + .modal-checkbox-text::before {
  background-color: #ff355b;
  border: none;
  background-image: url(../images/checkbox.svg);
  background-repeat: no-repeat;
  background-position: center;
}

.modal-radio-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.17;
  color: var(--light-slate);
  gap: 8px;
}

.modal-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.modal-radio-container::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border: 1px solid var(--navy-blue-modal);
  border-radius: 50%;
  background-color: transparent;
  transition: border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-radio-container:hover::before,
.modal-radio:focus + .modal-radio-label::before {
  border-color: #ff355b;
}

.modal-radio:checked + .modal-radio-label::before {
  background-color: #ff355b;
  border-color: #ff355b;
}

.modal-radio:checked + .modal-radio-label {
  color: #ff355b;
}

.modal-radio-label {
  user-select: none;
}

#tickets.modal-input {
  padding-left: 16px;
}
