@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/open-sans-v40-cyrillic_latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/open-sans-v40-cyrillic_latin-500.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/open-sans-v40-cyrillic_latin-600.woff2") format("woff2");
}

:root {
  --text-color: #0c0c0c;
  --text-size: 17px;
  --border-color: #dddddd;
  --padding: 0 28px;
  --margin: 20px;

  --h-color: #000000;
  --h1-size: 28px;
  --h2-size: 25px;
  --h3-size: 21px;

  --link-color-hover: #4169e1;
  --link-color-normal: #0000cd;
  --link-color-active: #000080;

  --btn-color-hover: #ff4932;
  --btn-color-normal: #e41700;
  --btn-color-active: #b20000;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  -ms-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  font-style: normal;
  font-size: var(--text-size);
  line-height: 1.45;
  font-weight: 400;
  color: var(--text-color);
  background-color: #f8f9fa;
  min-width: 320px;
}

ul,
ol {
  list-style: none;
}

ol {
  counter-reset: my-counter;
}

ol li {
  display: flex;
  counter-increment: my-counter;
  margin-bottom: calc(var(--margin) / 2);
  align-items: flex-start;
  font-size: var(--text-size);
}

ol li::before {
  content: counter(my-counter) ".";
  color: var(--btn-color-normal);
  font-weight: 500;
  margin-right: calc(var(--margin) / 2);
  width: auto;
  flex-shrink: 0;
}

header {
  height: 70px;
  border-bottom: 1px solid var(--border-color);
  background: #fff;
}

footer {
  margin-top: calc(var(--margin) * 4);
  height: 60px;
  background: var(--text-color);
  color: var(--border-color);
  font-size: 15px;
}

.footer {
  display: flex;
  height: 100%;
  justify-content: space-between;
  align-items: center;
}

h1,
h2,
h3,
p {
  margin: var(--margin) 0;
}

h1,
h2,
h3 {
  margin-top: calc(var(--margin) * 1.5);
  text-align: center;
  font-size: var(--h1-size);
  font-weight: 500;
  color: var(--h-color);
  line-height: 1.3;
}

h2 {
  font-size: var(--h2-size);
}

h3 {
  font-size: var(--h3-size);
}

a {
  color: var(--link-color-normal);
  transition: 0.2s;
}

b,
strong {
  font-weight: 600;
}

.logo {
  display: inline-flex;
  width: 116px;
  height: 54px;
  justify-content: center;
  align-items: center;
}

.logo_image {
  width: 96px;
  height: 34px;
}

.wrapper {
  max-width: 1352px;
  margin: 0 auto;
  padding: var(--padding);
}

.menu {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu_link {
  text-decoration: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  justify-content: center;
  margin: var(--margin) auto calc(var(--margin) * 1.5);
  width: fit-content;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 0px 0px 10px 10px;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  max-width: 306px;
}

.card_img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.card_container {
  display: flex;
  gap: 18px;
  padding: 18px;
  flex-grow: 1;
  justify-content: flex-start;
}

.card_logo {
  width: 70px;
  height: 70px;
  border-radius: 10px;
}

.card_title {
  font-size: 19px;
  font-weight: 500;
  color: var(--h-color);
}

.card_text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.card_description {
  margin-top: 5px;
  margin-bottom: 12px;
  line-height: normal;
  color: #6b6b6b;
  font-size: 16px;
}

.card_text a {
  display: inline-block;
  padding: 6px 21px;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: var(--btn-color-normal);
  border-radius: 10px;
  font-weight: 500;
  margin-top: auto;
}

button {
  font-family: inherit;
  font-size: var(--text-size);
  background-color: inherit;
  cursor: pointer;
}

.language {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  border: none;
  color: var(--border-color);
}

.language svg {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

.language span {
  text-transform: uppercase;
}

.link-lang {
  color: #1c71f1;
}

@media (hover: hover) {
  a:hover {
    color: var(--link-color-hover);
    text-decoration: none;
  }

  .card_text a:hover {
    color: #fff;
    background-color: var(--btn-color-hover);
  }

  .language:hover svg,
  .language:hover span {
    color: var(--btn-color-hover);
    transition: 0.2s;
  }

  .modal-header svg:hover {
    fill: var(--btn-color-hover);
  }

  .link-lang:hover {
    color: #4ea3ff;
  }
}

.language:active svg,
.language:active span {
  color: var(--btn-color-active);
}

a:active {
  color: var(--link-color-active);
  text-decoration: none;
}

.link-lang:active {
  color: #003fbf;
}

.card_text a:active {
  color: #fff;
  background-color: var(--btn-color-active);
}

.wysiwyg h1,
h2,
h3,
p,
ul,
ol {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.block-image > img {
  display: block;
  max-width: 800px;
  width: 100%;
  height: 100%;
  margin: var(--margin) auto;
}

.wysiwyg {
  ul li {
    position: relative;
    margin-bottom: calc(var(--margin) / 2);
    padding-left: var(--margin);
  }

  ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 9px;
    height: 9px;
    background-color: var(--btn-color-normal);
    border-radius: 50%;
  }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

.language-modal {
  margin: auto;
  width: fit-content;
  background-color: #272727;
  color: var(--border-color);
  padding: 28px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--h3-size);
  margin-bottom: var(--margin);
}

.modal-header svg {
  fill: var(--border-color);
  cursor: pointer;
  width: 20px;
  height: 20px;
}

.modal-header svg:active {
  fill: var(--btn-color-active);
}

.language-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 44px;
}

.language-list li a {
  text-decoration: none;
}

table {
  margin: var(--margin) auto;
  border-collapse: collapse;
  text-align: center;
  background-color: #fff;
}

.scrollable {
  overflow-x: auto;
}

th,
td {
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  font-size: 15px;
}

th {
  font-weight: 600;
  line-height: 1.3;
}

.hands {
  width: 100px;
}

.stand {
  background-color: #fdbfbf;
}
.hit {
  background-color: #dafdbf;
}
.double {
  background-color: #bfdffd;
}
.split {
  background-color: #fdfabf;
}

@media screen and (max-width: 1296px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

@media screen and (max-width: 979px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 769px) {
  :root {
    --padding: 0 16px;

    --h1-size: 24px;
    --h2-size: 22px;
    --h3-size: 20px;

    --margin: 18px;
  }

  .wysiwyg ul li::before {
    top: 7px;
    width: 8px;
    height: 8px;
  }

  .language-modal {
    padding: 16px;
  }

  .language-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 40px;
  }
}

@media screen and (max-width: 629px) {
  .grid {
    gap: 20px;
  }

  .card_container {
    gap: 16px;
    padding: 16px;
  }
  .card_logo {
    display: none;
  }
  .card_text a {
    align-self: center;
    font-size: 14px;
    padding: 5px 18px;
  }
}

@media screen and (max-width: 479px) {
  :root {
    --text-size: 16px;
    --h1-size: 22px;
    --h2-size: 20px;
    --h3-size: 18px;

    --margin: 16px;
  }

  header {
    height: 50px;
  }

  footer {
    height: 50px;
  }
  .footer span {
    font-size: 14px;
  }

  .logo {
    width: 83px;
    height: 36px;
  }

  .logo_image {
    width: 73px;
    height: 26px;
  }

  .grid {
    gap: 16px;
  }

  .card_container {
    gap: 12px;
    padding: 12px;
  }
  .card_description {
    font-size: 14px;
  }
  .card_title {
    font-size: 17px;
  }
  .card_text a {
    font-size: 13px;
    padding: 4px 15px;
  }

  .wysiwyg ul li::before {
    top: 8px;
    width: 7px;
    height: 7px;
  }

  .language-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 32px;
  }

  .modal-header svg {
    width: 18px;
    height: 18px;
  }
}
