/* ==========================================================================
   Maytoni-style landing — custom CSS (no Bootstrap)
   ========================================================================== */

:root {
  --black0: #000000;
  --black: #171717;
  --white: #ffffff;
  --purple: #6c69a1;
  --container-max: 1520px;
  --duration: 0.6s;
  --easing: cubic-bezier(0.76, 0, 0.24, 1);
  --header-height: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 8px;
}

.wrapper {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 8px;
}

.h3 {
  font-size: 38px;
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

@media (min-width: 1200px) {
  .h3 {
    font-size: 64px;
  }
}

/* Scroll reveal */
.animation {
  opacity: 0.2;
  margin-top: 20vw;
  transition:
    opacity var(--duration) var(--easing),
    margin-top var(--duration) var(--easing);
}

.animation.is-visible {
  opacity: 1;
  margin-top: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px 0;
  transition:
    background-color var(--duration) var(--easing),
    color var(--duration) var(--easing);
  color: var(--white);
}

.header.is-scrolled {
  background-color: var(--white);
  color: var(--black);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header__nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__menu-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.header__menu-link:hover {
  opacity: 0.75;
}

.header__menu-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%) scale(0);
  transition: transform 0.25s var(--easing);
}

.header__menu-link:hover::after {
  transform: translateX(-50%) scale(1);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.header-banner {
  position: relative;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
}

.header-banner__media {
  position: absolute;
  inset: 0;
  filter: brightness(0.7);
}

.header-banner__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-banner__bottom {
  position: absolute;
  bottom: 48px;
  left: 0;
  right: 0;
  z-index: 2;
}

.header-banner__title {
  color: var(--white);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

@media (min-width: 768px) {
  .header-banner__title {
    font-size: 56px;
  }
}

@media (min-width: 1200px) {
  .header-banner__title {
    font-size: 80px;
  }
}

/* ==========================================================================
   Awards
   ========================================================================== */

.awards {
  padding: 32px 0 48px;
}

@media (min-width: 1200px) {
  .awards {
    padding: 64px 0 80px;
  }
}

.awards__title {
  max-width: 600px;
  margin-bottom: 32px;
}

@media (min-width: 769px) {
  .awards__title {
    max-width: none;
  }
}

.awards__title p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 600px;
}

@media (min-width: 1200px) {
  .awards__title p {
    margin-top: 32px;
  }
}

.awards__carousel {
  margin-bottom: 16px;
  overflow: hidden;
}

.awards-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.awards-card__img {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.awards-card__img:hover {
  opacity: 0.8;
}

.awards-card__img img {
  width: 160px;
  height: 160px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .awards-card__img img {
    width: 200px;
    height: 200px;
  }
}

.awards__pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.awards__pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  background: transparent;
  border: 1px solid var(--black);
  opacity: 1;
  transition: background-color 0.25s ease;
}

.awards__pagination .swiper-pagination-bullet-active {
  background: var(--black);
}

/* ==========================================================================
   Mark
   ========================================================================== */

.mark {
  padding: 32px 0;
}

.mark .container {
  width: 100%;
}

@media (min-width: 769px) {
  .mark .container {
    width: 80%;
    margin-left: 0;
    padding-left: 35%;
    margin-top: 7vw;
    margin-bottom: 7vw;
  }
}

.mark p {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 520px;
}

@media (min-width: 1200px) {
  .mark p {
    margin-top: 32px;
  }
}

/* ==========================================================================
   Light type (categories)
   ========================================================================== */

.light-type {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
  margin-bottom: 80px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .light-type {
    flex-direction: row;
    gap: 0;
    margin-top: 172px;
  }
}

.light-type__section {
  flex: 1;
  text-align: left;
}

@media (min-width: 992px) {
  .light-type__section {
    width: 33.333%;
    margin: 0 0.5vw;
  }
}

.light-type__img-link {
  display: block;
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 4 / 5;
}

.light-type__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center center;
  transition: transform var(--duration) var(--easing);
  will-change: transform;
}

.light-type__section:hover .light-type__img {
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .light-type__img {
    transition: none;
  }

  .light-type__section:hover .light-type__img {
    transform: none;
  }
}

.light-type__title {
  font-size: 28px;
}

@media (min-width: 1200px) {
  .light-type__title {
    font-size: 38px;
  }
}

.light-type__title-link {
  color: var(--black);
  text-decoration: none;
  position: relative;
}

.light-type__title-link::before {
  content: "•";
  display: inline-block;
  width: 0;
  margin-right: 0;
  opacity: 0;
  overflow: hidden;
  vertical-align: baseline;
  transition:
    width var(--duration) var(--easing),
    margin-right var(--duration) var(--easing),
    opacity var(--duration) var(--easing);
}

.light-type__section:hover .light-type__title-link::before {
  width: 0.6em;
  margin-right: 0.2em;
  opacity: 1;
}

.light-type__subtitle {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.35;
  font-style: normal;
  width: 80%;
  color: var(--black);
}

/* ==========================================================================
   Downloads
   ========================================================================== */

.section-downloads {
  padding: 64px 0 80px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.downloads__page-title {
  margin-bottom: 48px;
  font-size: 38px;
}

.downloads__item:not(:last-child) {
  margin-bottom: 64px;
}

.downloads__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
}

.downloads__text {
  max-width: 350px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.5;
}

.downloads__text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.downloads__text a:hover {
  opacity: 0.7;
}

.downloads-catalog {
  max-width: 960px;
  width: 100%;
}

.downloads-catalog__item {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px 8px;
  border-top: 1px solid #b9b9b9;
  padding-top: 8px;
  font-weight: 400;
  line-height: 1.07;
}

.downloads-catalog__item:not(:last-child) {
  margin-bottom: 18px;
}

.downloads-catalog__item-img img {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
}

.downloads-catalog__item-name {
  grid-column: span 3;
  font-weight: 700;
  line-height: 1.07;
}

.downloads-catalog__item-btns {
  grid-column: span 4;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.downloads-catalog__item:hover .downloads-catalog__item-btns {
  opacity: 1;
}

.downloads-catalog__item-info {
  color: #b9b9b9;
  font-weight: 400;
  margin-top: 8px;
  font-size: 14px;
}

.show,
.download {
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 1;
  font-size: 15px;
  transition: opacity 0.3s ease;
}

.show:hover,
.download:hover {
  opacity: 0.5;
}

.show::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7.5' stroke='%23000'/%3E%3Cpath d='M5.5 4.809 11.882 8 5.5 11.191V4.809Z' stroke='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}

.download::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 11 4 7m4 4 4-4m-4 4V1M1.5 11v3.5h13V11' stroke='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}

.downloads-3d {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 960px;
  width: 100%;
}

.downloads-3d__item {
  border: 1px solid #b9b9b9;
  padding: 18px 110px 18px 18px;
  position: relative;
  font-weight: 400;
  line-height: 1.07;
  color: var(--black);
  transition: background 0.3s ease;
}

.downloads-3d__item:hover {
  background: #3a0d55;
}

.downloads-3d__item:hover .downloads-3d__item-name {
  filter: invert(1);
}

.downloads-3d__item-name {
  display: flex;
  line-height: 1.07;
  transition: filter 0.3s ease;
}

.downloads-3d__item-name::before {
  content: "";
  flex: none;
  width: 14px;
  height: 16px;
  margin-right: 12px;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg width='14' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cmask id='a' fill='%23fff'%3E%3Cpath d='m0 3 7-3 7 3v10l-7 3-7-3V3Z'/%3E%3C/mask%3E%3Cpath d='m-.197 3.46 7 3 .394-.92-7-3-.394.92Zm7.394 3 7-3-.394-.92-7 3 .394.92ZM6.5 6v10h1V6h-1ZM0 3l-.394-.92-.606.26V3h1Zm14 0h1v-.66l-.606-.26L14 3Zm0 10 .394.92.606-.26V13h-1ZM0 13h-1v.66l.606.26L0 13Zm7 3-.394.92.394.168.394-.169L7 16ZM7 0l.394-.92L7-1.087l-.394.169L7 0Zm6 3v10h2V3h-2ZM1 13V3h-2v10h2Zm12.606-.92-7 3 .788 1.84 7-3-.788-1.84Zm-6.212 3-7-3-.788 1.84 7 3 .788-1.84Zm-7-11.16 7-3-.788-1.84-7 3 .788 1.84Zm6.212-3 7 3 .788-1.84-7-3L6.606.92Z' fill='%23000' mask='url(%23a)'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 991px) {
  .downloads-catalog__item-btns {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .downloads__page-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .downloads__title {
    font-size: 24px;
  }

  .downloads-3d {
    grid-template-columns: 1fr;
  }

  .downloads-catalog__item {
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
  }

  .downloads-catalog__item-img {
    grid-row: span 2;
  }

  .downloads-catalog__item-name {
    grid-column: span 1;
  }

  .downloads-catalog__item-btns {
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .downloads__title {
    font-size: 18px;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  padding: 64px 0 80px;
  background: #f7f7f7;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.contact__title {
  margin-bottom: 32px;
  font-size: 38px;
}

.contact__form {
  max-width: 640px;
}

.contact__field {
  margin-bottom: 20px;
}

.contact__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.contact__required {
  color: var(--purple);
}

.contact__input {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  border: 1px solid #d4d4d4;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

.contact__input:focus {
  outline: none;
  border-color: var(--black);
}

.contact__input.is-invalid {
  border-color: #c0392b;
}

.contact__textarea {
  resize: vertical;
  min-height: 140px;
}

.contact__error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #c0392b;
  min-height: 1.2em;
}

.contact__field--checkbox {
  margin-top: 8px;
}

.contact__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.contact__checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--black);
}

.contact__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact__link:hover {
  opacity: 0.7;
}

.contact__actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  transition:
    background-color var(--duration) var(--easing),
    color var(--duration) var(--easing);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.contact__status {
  margin-top: 16px;
  font-size: 14px;
}

.contact__status.is-success {
  color: #1e7e34;
}

.contact__status.is-error {
  color: #c0392b;
}

/* ==========================================================================
   Modal
   ========================================================================== */

body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 40px 32px 32px;
  background: var(--white);
  color: var(--black);
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.modal__close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--black);
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.modal__close-btn:hover {
  opacity: 1;
}

.modal__title {
  margin-bottom: 16px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.modal__text {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.5;
  color: #444;
}

.modal__action {
  min-width: 160px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: 32px 0;
  border-top: 1px solid #e5e5e5;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__copy {
  font-size: 14px;
  color: #666;
}

.footer__link {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__link:hover {
  opacity: 0.7;
}
