﻿/* ============================================================
   EMV Digital — основной stylesheet
   ============================================================ */

:root {
  --white: #f6f6f6;
  --gray: #d9d9d9;
  --primary: #BFE763;
  --secondary: #295438;
  --black: #343434;
  --radius: 1.5rem;
  --shadow: 0 0px 20px rgba(0, 0, 0, 0.15);
}

@font-face {
  font-family: 'Manrope Light';
  src: url('../lib/fontello/font/Manrope/Manrope-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  src: url('../lib/fontello/font/Manrope/Manrope-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope Bold';
  src: url('../lib/fontello/font/Manrope/Manrope-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Oswald';
  src: url('../lib/fontello/font/Oswald/Oswald-Regular.ttf') format('truetype');
}

/* ---------- База ---------- */

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  outline: none;
  font-family: "Manrope";
  text-wrap: balance;
}

a:hover{text-decoration: none !important;}

html {
  scroll-margin-top: 150px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; */
  background: var(--white);
  color: var(--black);
  /* line-height: 1.6; */
}

h1,
h2,
h3 {
  /* line-height: 1.25; */
  /* margin: 0 0 0.5em; */
}

p {
  /* margin: 0 0 1em; */
  color: var(--gray);
}

a {
  color: var(--accent2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1140px, 90%);
  margin: 0 auto;
}

section {
  padding: 72px 0;
}

.mt-2 {
  margin-top: 2rem;
}

.m-hide {
  display: none !important;
}

@media (min-width: 800px) {
  .m-hide {
    display: block !important;
  }
}

/* ---------- Шапка ---------- */

.sticky {
  position: sticky;
  top: 0;
}

.py-2 {
  padding-block: 1rem;
}

.difference {
  mix-blend-mode: difference;
}

header.site {
  position: fixed;
  z-index: 50;
  width: 100%;
}

header.site nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  height: 4.5rem;
  fill: var(--white);
  position: sticky;
}

.topbar-menu {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: .5rem .5rem .5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: var(--radius);
}

.topbar-menu a {
  color: var(--black);
}

@media (max-width: 800px) {
  .topbar-menu a:not(.btn) span {
    display: none;
  }

  .topbar-menu a.btn svg {
    display: none;
  }

  header.site {
    bottom: 0;
  }

  .topbar-menu {
    width: 100%;
    justify-content: space-between;
  }

  .wrap:has(.logo) {
    width: 100%;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.topbar-menu a span {
  display: flex;
  gap: 8px;
}

@media (min-width: 800px) {
  .topbar-menu a:not(.btn) span {
    display: block;
  }

  .topbar-menu a:not(.btn) svg {
    display: none;
  }

  header.site {
    top: 0;
  }

  .wrap:has(.logo) {
    width: 32px;
    left: 0;
    translate: -300px 0;
    margin: 0 auto;
  }
}

.topbar-menu a:hover,
.topbar-menu a.active {
  color: var(--secondary);
  text-decoration: none;
}

a.primary-btn {
  background-color: var(--primary);
  color: var(--secondary);
  transition: all .2s ease-in-out;
}

a.primary-btn:hover {
  background-color: #b7e34f;
}

a.primary-btn:focus {
  background-color: #aee038;
}

/* ---------- Модалка ---------- */
div[data-submit-limit-status] {
  color: var(--bg-red);
}

/* ---------- Кнопки ---------- */

.btn {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1rem 1rem;
  border-radius: 1rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.outline-btn {
  background: transparent;
  border: 2px solid var(--black);
  color: var(--black);
}

.outline-btn:hover {
  background: var(--black);
  color: var(--white);
}

.black-btn {
  background-color: var(--black);
  color: var(--white);
}

.black-btn:hover {
  background-color: #404040;
}

.black-btn:focus {
  background-color: #4d4d4d;
}

.white-btn {
  background-color: var(--white);
  color: var(--black);
}

.white-btn:hover {
  background-color: #e8e8e8;
}

.white-btn:focus {
  background-color: #dbdbdb;
}

.secondary-btn {
  background-color: var(--secondary);
  color: var(--primary);
}

.secondary-btn:hover {
  background-color: #326745;
}

.secondary-btn:focus {
  background-color: #3a7851;
}

/* .btn-accent { */
/* background: var(--accent-grad);
  color: #fff;
}

.btn-accent:hover {
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.dialog .btn-request {
  margin: 15px 0px;
}

.btn-close:hover {
  background: var(--bg-red);
  color: var(--text-muted);
  transition: 0.50s; */
/* } */

/* ---------- Hero ---------- */

.hero {
  margin-top: -106px;
  padding: 220px 0 90px;
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(1, 238, 84, .5), transparent),
    radial-gradient(700px 340px at 85% 20%, rgba(191, 231, 99, 0.35), transparent);
}

.hero>div,
.form>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  font-family: "Oswald";
  font-size: clamp(32px, 5vw, 56px);
  max-width: 720px;
  text-align: center;
  line-height: 150%;
  /* margin: 18px 0; */
}

h1 em {
  font-family: "Oswald";
  background: var(--secondary);
  font-style: normal;
  color: var(--primary);
  border-radius: 1rem;
  padding: 0 .5rem .75rem .5rem
}

.hero p {
  max-width: 560px;
  font-size: 24px;
  margin-block: 4rem 2rem;
  text-align: center;
  color: var(--black);
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent2);
  background: var(--bg-soft);
}

.hero div {
  display: flex;
  gap: 1.5rem;
}

/* ---------- Форма ---------- */

.form {
  padding-bottom: 0 !important;
  background: var(--secondary);
  border-radius: 5rem 5rem 0 0;
}

.form h1 {
  color: var(--primary);
}

.stepper {
  display: flex;
  margin-block: 2rem;
  gap: 0;
  width: 100%;
}

.s-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: stretch;
  min-width: 150px;
  position: relative;
  z-index: 49;
}

.s-item::after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  position: absolute;
  top: 27px;
  left: 50%;
  z-index: -1;
}

.s-item:nth-last-child(1):after {
  content: none;
}

.stepper .s-item svg {
  font-size: 1rem;
  background: var(--black);
  fill: var(--primary);
  color: var(--primary);
  padding: 1rem;
  border-radius: 1rem;
  box-sizing: content-box;
}

.stepper .s-item p {
  font-size: 16px;
  margin-bottom: 0 !important;
}

@media (max-width: 800px) {

  /* .stepper .s-item svg {
    width: 16px;
    height: 16px;
    padding: .5rem;
  } */
  .stepper .s-item p {
    font-size: 14px;
  }

  .s-item {
    min-width: auto;
  }

  .s-item::after {
    top: 15px;
  }
}

.form p {
  max-width: 560px;
  font-size: 24px;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--white);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  border-radius: var(--radius);
  background: var(--white);
  padding: 2rem 4rem;
  box-shadow: var(--shadow);
}

.form-field,
.textarea {
  display: flex;
  /* flex-wrap: wrap; */
  width: 100%;
  gap: 1.5rem;
  justify-content: space-between;
}

.textarea {
  gap: 0
}

.form-field:nth-child(1)>div {
  min-width: 50%;
  max-width: 100%;
}

.field {
  width: auto;
  display: flex;
  background: transparent;
}

@media (max-width: 800px) {

  .form-field,
  .textarea {
    flex-wrap: wrap;
  }

  .field {
    flex-wrap: wrap;
  }
}

form label,
form input,
form textarea {
  color: var(--black);
  font-family: "Manrope";
  font-size: 28px;
  background-color: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  text-wrap: nowrap;
}

form input,
form textarea {
  color: var(--black);
  font-family: "Manrope Light";
  margin-left: .5rem;
}

form .btn {
  border-radius: 999px;
}

/* ---------- Заголовок секции ---------- */

.sec-title {
  text-align: center;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 48px;
}

.sec-title h2 {
  font-size: 34px;
}

/* ---------- Тарифы ---------- */

#plans {
  background: var(--secondary);
  border-radius: 0 0 5rem 5rem;
}

.sec-title h1 {
  color: var(--white);
}

.sec-title p {
  max-width: 560px;
  font-size: 24px;
  text-align: center;
  color: var(--white);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.additional-plans {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 24px;
}

.additional-plans .price {
  margin: 0 !important;
}

.plan {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0px 0px var(--primary);
  text-decoration: none !important;
  transition: all 0.15s ease;
}

a.plan:hover {
  background-color: var(--primary);
  color: var(--secondary);
  fill: var(--secondary);
  box-shadow: 0 0px 15px var(--primary);
}

.plan.popular {
  background-color: var(--primary);
  box-shadow: 0 0px 30px var(--primary);
  position: relative;
  color: var(--black);
}

.plan:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.plan.popular::before {
  content: "Популярный";
  background-color: var(--white);
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: "Manrope";
}

.plan.premium {
  background-color: var(--black);
  position: relative;
  color: var(--white);
}

.additional-plans svg {fill: var(--secondary);}

.additional-plans .plan * {
  width: fit-content;
}

.plan h3 {
  font-size: 20px;
  gap: 1rem;
  display: flex;
  align-items: center;
}

.plan .price {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
}

.plan .desc {
  min-height: 48px;
  color: var(--black);
}

.plan.premium .desc {
  color: var(--white);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.plan li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 15px;
}

.plan li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}

.plan li.off {
  color: var(--text-muted);
  opacity: 0.55;
}

.plan li.off::before {
  content: "\00D7";
  color: var(--text-muted);
}

.plan .btn {
  text-align: center;
}

/* ---------- Портфолио ---------- */

#works {
  padding-bottom: 2rem;
}

#works p,
#works p,
#team p,
#works h1,
#works h1,
#team h1 {
  color: var(--black);
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 4rem;
}

.work {
  background: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  color: var(--black);
  padding: .5rem;
}

.work:hover {
  transform: translateY(-4px);
  text-decoration: none;
}

.work .body {
  display: flex;
  align-items: flex-end;
  border-radius: calc(var(--radius) - 8px);
  background-color: var(--gray);
  background-size: cover;
  background-position: center;
  height: 350px;
}

.work .content {
  height: 58px;
  border-radius: calc(var(--radius) - 8px);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  background: color-mix(in oklab, var(--white), transparent 30%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  width: 100%;
  overflow: hidden;
  will-change: height;
  transition: all .2s ease-in-out;
}

.work:hover .content {
  background: color-mix(in oklab, var(--white), transparent 0%);
  height: max-content;
}

.work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.work-header p {
  color: var(--black);
}

.work-header .btn {
  width: auto;
  border-radius: 999px;
}

.work .cat {
  background-color: var(--black);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  flex-shrink: 0;
}

.work h4 {
  font-size: 16px;
  font-family: "Manrope";
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work:hover h4 {
  -webkit-line-clamp: 2;
}

.work p {
  margin: 0;
  font-size: 14px;
  font-family: "Manrope Light";
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Блог ---------- */

#work-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

}

#work-list>p {
  max-width: 560px;
  font-size: 24px;
  margin-block: 4rem 2rem;
  text-align: center;
  color: var(--black);
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  width: 100%;
}

.blog,
#work-list {
  margin-top: -106px;
  padding: 220px 0 90px;
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(1, 238, 84, .5), transparent),
    radial-gradient(700px 340px at 85% 20%, rgba(191, 231, 99, 0.35), transparent);
}

.blog>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.blog .wrap>p {
  max-width: 560px;
  font-size: 24px;
  margin-block: 4rem 2rem;
  text-align: center;
  color: var(--black);
}

.post-card {
  background: var(--white);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  color: var(--black);
  padding: .5rem;
}

.post-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
}

.post-card .body {
  display: flex;
  align-items: flex-end;
  border-radius: calc(var(--radius) - 8px);
  background-color: var(--gray);
  background-size: cover;
  background-position: center;
  height: 350px;
}

.post-card .content {
  height: 72px;
  border-radius: calc(var(--radius) - 8px);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  background: color-mix(in oklab, var(--white), transparent 30%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  width: 100%;
  overflow: hidden;
  will-change: height;
  transition: all .2s ease-in-out;
}

.post-card:hover .content {
  background: color-mix(in oklab, var(--white), transparent 0%);
  height: max-content;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.post-header>div span {
  display: flex;
  gap: .5rem;
}

.post-header>div span p {
  font-size: 14px;
  color: var(--black);
}

.post-header:nth-child(2) p {
  font-size: 14px;
  color: var(--black);
}

.post-header .btn {
  width: auto;
  border-radius: 999px;
}

.post-card .cat {
  background-color: var(--black);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}

.post-card h4 {
  font-size: 16px;
  font-family: "Manrope";
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card:hover h4 {
  -webkit-line-clamp: 2;
}

.post-card p {
  margin: 0;
  font-size: 16px;
  font-family: "Manrope Light";
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Статья ---------- */
#article {
  margin-top: -106px;
  padding: 220px 0 90px;
  background:
    radial-gradient(700px 340px at 15% 0%, rgba(1, 238, 84, .5), transparent),
    radial-gradient(700px 340px at 85% 20%, rgba(191, 231, 99, 0.35), transparent);
}

.article {
  width: min(760px, 92%);
  margin: 0 auto;
  padding: 0 0 72px 0;
}

.article>.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  color: var(--black);
  margin-bottom: 12px;
}

.article>.meta div {
  background-color: var(--black);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin: 5px;
}

.article>.meta p {
  color: var(--black);
}

.article h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 24px;
}

.article .cover {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 88px;
  box-shadow: var(--shadow);
  background: var(--gray);
  border-radius: var(--radius);
  margin-bottom: 32px;
  overflow: hidden;
}

.article .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article p {
  color: var(--black);
}

.article h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 20px;
}
.article h3 {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.article ol {
  padding-left: 22px;
  color: var(--black);
}

  .article ul {
  padding-left: 22px;
  color: var(--black);
}

.article li {
  margin-bottom: 8px;
}

.article code {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.9em;
  color: var(--primary);
}

.article table {
  margin: 15px 0;
  text-align: center;
  vertical-align: middle;
}

#article .return {
  width: min(760px, 92%);
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: .5rem;
  margin: 28px 0;
  color: var(--black);
}

.carousel {
  margin-block: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--secondary);
}

.carousel-item {
  padding: .5rem .5rem 3rem .5rem;
}

.carousel-item > img {
  border-radius: calc(var(--radius) - 8px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  
}

.carousel-overlay .carousel-overlay-controls {
  inset-block-end: .5rem;
  inset-inline: .5rem;
}

.carousel-overlay-controls > button {
  border-radius: calc(var(--radius) - 8px);
  background-color: var(--primary);
}

.carousel-indicators button {
  border-color: var(--primary);
}

.carousel-indicators .active {
  background-color: var(--primary);
  border-color: var(--primary);
}

.carousel-overlay-controls > button span {color: var(--secondary);}

/* ---------- Портфолио ---------- */
.stats {
  border-radius: var(--radius);
  background-color: var(--black);
  color: var(--primary);
  fill: var(--primary);
  font-weight: 700;
  padding: .5rem;
  gap: 1rem;
  justify-content: space-between;
}

@media (max-width: 800px) {
  .stats {
    flex-wrap: wrap;
  }
}

.stats .stat-value {
  font-size: 1rem;
  color: var(--text);
}

.stats .stat-label {
  font-size: 0.68rem;
  color: var(--text);
  word-break: break-all;
}

.stats .stat {
  width: stretch;
  white-space: nowrap;
  text-align: center;
  border-radius: calc(var(--radius) - .5rem);
  background-color: var(--white);
  color: var(--secondary);
  fill: var(--secondary);
  font-weight: 700;
  padding: .5rem .5rem;
  gap: 1rem;
}

.stats .stat>div:nth-child(1) {
  background-color: var(--secondary);
  aspect-ratio: 1;
  fill: var(--primary);
  color: var(--primary);
  border-radius: calc(var(--radius) - 1rem);
}

.stats .stat>div:nth-child(2) {
  width: stretch;
  padding-right: 1rem;
}

/* ---------- Подвал ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background-color: var(--primary);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--black);
  font-size: 14px;
}

/* ---------- Адаптив ---------- */

@media (max-width: 720px) {
  .menu {
    display: none;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero .btn {
    display: block;
    margin: 10px 0 0 !important;
    text-align: center;
  }

  section {
    padding: 56px 0;
  }
}

/* ---------- Команда ---------- */

#team {
  padding: 0;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.team-skills > *:nth-child(1) {
  width: 47.5%;
}

.team-skills > *:nth-child(2) {
  width: 35%;
}

@media (max-width: 800px) {
  .team-skills > * {width: 100% !important;}
}

.team-skills h3 {
  font-family: "Oswald";
  font-weight: 400;
  /* font-size: clamp(32px, 5vw, 56px); */
  max-width: 720px;
  text-align: start;
  line-height: 150%;
}

.team-skills > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.team-skills > div > div span {
  padding: 1rem 2rem;
  height: 64px;
  position: relative;
  gap: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: stretch;
  border-radius: var(--radius);
  background-color: var(--secondary);
  color: var(--primary);
}

.team-skills svg {
  display: block;
  position: absolute;
  left: 2rem;
  top: 1rem;
}

.team-container {
  width: 100vw;
  height: 45vh;
  position: relative;
  background-image: linear-gradient(transparent 0%, transparent 80%, var(--primary) 80%);
}

#team img {
  width: 100vw;
  height: 45vh;
  object-fit: contain;
  object-position: bottom center;
  position: absolute;
  bottom: 0;
  left: 0;
}

.teamate-photo img:nth-child(2),
.teamate-photo img:nth-child(3),
.teamate-photo img:nth-child(4) {
  opacity: 0;
  z-index: 40;
  height: 90vh !important;
}

@media (max-width: 800px) {
  .additional-plans {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .team-container {
    height: 20vh;
  }

  #team img {
    height: 20vh;
  }

  footer {
    padding-bottom: 128px;
  }

  .teamate-photo img:nth-child(2),
  .teamate-photo img:nth-child(3),
  .teamate-photo img:nth-child(4) {
    height: 40vh !important;
    object-fit: cover !important;
    object-position: center !important;
  }
}

.team-container:has(.teamate-info.egor:hover) .teamate-photo.egor img:nth-child(2),
.team-container:has(.teamate-info.egor:focus) .teamate-photo.egor img:nth-child(2) {
  animation: first 2s linear infinite;
}

.team-container:has(.teamate-info.egor:hover) .teamate-photo.egor img:nth-child(3),
.team-container:has(.teamate-info.egor:focus) .teamate-photo.egor img:nth-child(3) {
  animation: second 2s linear infinite;
}

.team-container:has(.teamate-info.egor:hover) .teamate-photo.egor img:nth-child(4),
.team-container:has(.teamate-info.egor:focus) .teamate-photo.egor img:nth-child(4) {
  animation: third 2s linear infinite;
}

.team-container:has(.teamate-info.max:hover) .teamate-photo.max img:nth-child(2),
.team-container:has(.teamate-info.max:focus) .teamate-photo.max img:nth-child(2) {
  animation: first 2s linear infinite;
}

.team-container:has(.teamate-info.max:hover) .teamate-photo.max img:nth-child(3),
.team-container:has(.teamate-info.max:focus) .teamate-photo.max img:nth-child(3) {
  animation: second 2s linear infinite;
}

.team-container:has(.teamate-info.max:hover) .teamate-photo.max img:nth-child(4),
.team-container:has(.teamate-info.max:focus) .teamate-photo.max img:nth-child(4) {
  animation: third 2s linear infinite;
}

.team-container:has(.teamate-info.nika:hover) .teamate-photo.nika img:nth-child(2),
.team-container:has(.teamate-info.nika:focus) .teamate-photo.nika img:nth-child(2) {
  animation: first 2s linear infinite;
}

.team-container:has(.teamate-info.nika:hover) .teamate-photo.nika img:nth-child(3),
.team-container:has(.teamate-info.nika:focus) .teamate-photo.nika img:nth-child(3) {
  animation: second 2s linear infinite;
}

.team-container:has(.teamate-info.nika:hover) .teamate-photo.nika img:nth-child(4),
.team-container:has(.teamate-info.nika:focus) .teamate-photo.nika img:nth-child(4) {
  animation: third 2s linear infinite;
}

@keyframes first {

  0%,
  33.9% {
    opacity: 1;
  }

  34%,
  100% {
    opacity: 0;
  }
}

@keyframes second {

  0%,
  33.9%,
  67%,
  100% {
    opacity: 0;
  }

  34%,
  66.9% {
    opacity: 1;
  }
}

@keyframes third {

  0%,
  66.9% {
    opacity: 0;
  }

  67%,
  100% {
    opacity: 1;
  }
}

.team-info {
  display: flex;
  width: 100%;
  z-index: 48;
  position: relative;
  height: 100%;
}

.team-info .teamate-info {
  opacity: 0;
  width: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background-image: linear-gradient(transparent 0%, transparent 95%, var(--primary) 95%);
}

.team-info .teamate-info h1 {
  color: var(--secondary) !important;
}

.team-info .teamate-info:hover {
  opacity: 1;
}