/* Імпорт декоративного шрифта */
@import url(https://fonts.googleapis.com/css?family=Montserrat);

:root {
  --side: 10.5vw;
  /* сторона квадрата головної анімації */
}

/* СТИЛІ ТІЛА СТОРІНОК */

body {
  background-color: white;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Під час тестування в браузері Firefox 115.19.0.esr (32-біт, 7 січня 2025)
на ноутбуку HP Probook 4740s 17.3" (1600px x 900px) з Windows 7 Ultimate
виявлено відсутність підтримки селекторів :has, а саме: на сторінці
products.html біла смуга нижче футера, немає градієнта тла на сторінці
instagram.html, немає згадки про :has в інструментах розробника. У фінальній
збірці для Windows 7 Google Chrome версія 109.0.5414.120 від січня 2023 є
підтримка селекторів :has, відповідні рядки коду працюють. */
/* 10 лютого 2025 р.Б. instagram.html відтепер index.html */

/* body:has(main > section.instagram) */
#body_instagram_page {
  background: radial-gradient(circle, #E6E6FA, white);
}

/* body:has(main.sel_ukraine) */
#body_products_page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background-color: #003a5d;
}

/* body:has(main.orders) */
#body_orders_page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* СТИЛІ ЗАГОЛОВКІВ */
/* Розробив на початку роботи над проєктом */

header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1002;
  background-color: #003a5d;
  color: white;
  font-family: Arial, Helvetica, sans-serif
}

header h1 {
  display: flex;
  align-items: center;
  z-index: 1001;
  width: 100%;
  margin-left: 0;
  margin-top: 2.4vh;
  margin-bottom: 1.0vh;
  font-size: 2.094vw;
}

/* Стиль логотипа */
header h1 img {
  margin-left: 4.58vw;
  margin-right: 6.54vw;
  width: auto;
  max-width: 17vw;
  height: auto;
  max-height: 7.97vh;
}

header nav {
  width: 90%;
  padding: 0;
  margin-top: 2.2vh;
  margin-bottom: 2.5vh;
  margin-left: 4.58vw;
  z-index: 1000;
  align-items: center;
  color: white;
  /* font-size: 1.18vw; */
  font-size: clamp(13px, 1.18vw, 24px);
  letter-spacing: 0.04em;
}

header nav div {
  padding: 0;
  margin: 0;
  display: flex;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: space-between;
}

header nav a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-right: auto;
  text-decoration: none;
  color: white;
  flex-grow: 1;
}

header nav a:hover {
  transform: scale(1.2) !important;
  transition: transform 1s ease-in-out;
  text-decoration: underline 2px;
  text-underline-offset: 0.3em;
  color: lime;
}

a[href="#contacts"]:hover {
  text-decoration: line-through solid 2px;
}

header nav a:active {
  transform: scale(1) rotate(1turn) !important;
  transition: transform 60s linear;
  text-decoration: none;
  color: lime;
}

/* СТИЛІ ОСНОВНОГО ЗМІСТУ СТОРІНОК */

main {
  margin-top: 24vh;
  margin-bottom: 7vh;
}

main.sel_ukraine {
  flex: 1;
  background: linear-gradient(101deg, #a8a9ad 0%, #e3e3e3 10%,
      #a8a9ad 20%, #e3e3e3 30%, #a8a9ad 40%, #e3e3e3 50%,
      #a8a9ad 60%, #e3e3e3 70%, #a8a9ad 80%, #e3e3e3 90%, #e3e3e3 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  min-width: 100%;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 1000;
}

main.orders {
  background: #EDEADE;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 280vh;
  height: auto;
}

main.sel_video {
  background-image: url('../images/background_sel_video.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  /*height: 960vh;*/
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

main.sel_hyperlinks {
  background-image: url('../images/20220513_185611.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: 55% 45%;
  background-size: cover;
  height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: scroll;
}

/* СТИЛІ НИЖНІХ КОЛОНТИТУЛІВ */

footer {
  display: block;
  /* align-items: center; */
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: #003a5d;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.03em;
  padding: 0;
  margin: 0;
  text-align: center;
  line-height: 0.4;
  z-index: 800;
}

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

footer ul {
  list-style-type: none;
}

footer ul li {
  display: inline;
}

#footer_for_laptops_and_tablets {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#footer_row1 {
  display: flex;
  flex-wrap: nowrap;
  box-sizing: border-box;
  animation: marquee 15s linear infinite;
  /*animation: none;*/
  height: 5.7vh;
  align-items: center;
  line-height: 2.0;
  font-size: 1.25em;
  color: #CFB53B;
}

#footer_row1 span {
  flex: 0 0 auto;
  margin-right: 5%;
}

/* Анімація біжучого рядка */
@keyframes marquee {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(-100%, 0);
  }
}

#footer_row2 {
  /*  width: 99%;*/
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
}

#footer_row2_column1,
#footer_row2_column2,
#footer_row2_column3 {
  /*  display: inline-block;*/
  flex: 1;
  vertical-align: top;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: clamp(10px, 1.1vw, 22px);
}

#footer_row2_column1 {
  text-align: left;
  padding-left: 5vw;
  padding-top: 1vh;
}

#footer_row2_column2 {
  padding-left: 8vw;
  padding-top: 2vh;
}

#footer_row2_column2 ul {
  display: flex;
  gap: 2vw;
  justify-content: center;
  white-space: nowrap;
}

#footer_row2_column3 {
  text-align: left;
  padding-left: 15vw;
  padding-top: 1vh;
  font-family: Georgia, 'Times New Roman', Times, serif;
}

#footer_row3 {
  width: 100%;
  margin: 0;
  padding-top: 1vh;
  padding-bottom: 1vh;
  font-size: clamp(11px, 1.18vw, 22px);
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: lemonchiffon;
}

#footer_for_smartphones {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0.1vh 0vw 0.2vh 0vw;
}

#footer_mobile_row1 {
  width: 100%;
  /*align-items: center;*/
  margin: 0;
  padding: 0;
  height: 4.4vh;
}

#footer_mobile_row1 ul {
  display: flex;
  justify-content: space-around;
  /*gap: 2vw;*/
  padding-left: 0;
  margin-top: 1.5vh;
  margin-bottom: 0.5vh;
  white-space: nowrap;
}

#footer_mobile_row2 {
  width: 100%;
  margin: 0;
  margin-top: 0.2vh;
  margin-bottom: 1.8vh;
  text-align: center;
  font-size: 3.5vw;
  line-height: 0.4;
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: lemonchiffon;
}

.animation_footer {
  position: relative;
  bottom: 0;
  background-color: #003a5d;
  z-index: 800;
  width: 100%;
  margin: 0;
  padding-top: 0.1vh;
  padding-bottom: 0.1vh;
  font-size: clamp(8.5px, 1.18vw, 22px);
  font-family: Georgia, 'Times New Roman', Times, serif;
  letter-spacing: 0.03em;
  line-height: 0.5;
  text-align: center;
  color: lemonchiffon;
}

/* СТИЛІ ФОТОГАЛЕРЕЇ */

.instagram {
  display: flex;
  flex-wrap: wrap;
  gap: 6vh 3.5vw;
  justify-content: center;
  align-items: stretch;
}

.instagram img {
  max-width: 26.178vw;
  max-height: 47.939vh;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  /* у Firefox aspect-ratio не розтягує до квадрата... */
  object-fit: cover;
  box-sizing: border-box;
  margin-bottom: 0.6vh;
  box-shadow: 7px 7px 0 rgba(0, 58, 93, 0.3);
  border-radius: 12px;
  position: relative;
  z-index: 500;
}

.instagram img:hover {
  transform: scale(1.3) rotate(5deg);
  transition: transform 0.5s ease;
  box-shadow: none;
  z-index: 1500;
  /* щоб край не закривався футером чи хедером */
}

/* СТИЛІ ВІДЕОГАЛЕРЕЇ */

section.youtube {
  width: 61.8vw;
  height: auto;
  margin-top: 25vh;
  margin-bottom: 10vh;
}

.youtube iframe {
  width: 100%;
  max-width: 1280px;
  max-height: 720px;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  border-radius: 20px;
  margin-bottom: 11vh;
}

/* СТИЛІ ГОЛОВНОЇ АНІМАЦІЇ */

section.animation {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  left: 50vw;
  top: 15vh;
  position: relative;
}

.hyperlink_1,
.hyperlink_2,
.hyperlink_3,
.hyperlink_4,
.hyperlink_5,
.hyperlink_6,
.hyperlink_7 {
  will-change: box-shadow;
  /*щоб уникнути пригальмовування анімації */
  width: var(--side);
  aspect-ratio: 1;
  transform: translate(calc(-2 * var(--side)), calc(2 * var(--side)));
  animation: l14 15s linear infinite alternate-reverse;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hyperlink_text {
  will-change: opacity, text-shadow;
  /*щоб уникнути пригальмовування анімації */
  font-size: 1.256vw;
  text-align: center;
  position: absolute;
  z-index: 2;
  color: #FFFFFF;
  text-decoration: none;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: bold;
  font-style: oblique;
  line-height: 1.5;
  letter-spacing: 0.03em;
  top: -50%;
  left: 150%;
  transform: translate(-50%, -50%);
  animation: flicker 0.3s linear infinite alternate;
}

.hyperlink_1 {
  grid-column: 2;
  grid-row: 1;
}

.hyperlink_2 {
  grid-column: 4;
  grid-row: 1;
}

.hyperlink_1 .hyperlink_text,
.hyperlink_2 .hyperlink_text {
  font-size: 1.57vw;
}

.hyperlink_3 {
  grid-column: 1;
  grid-row: 2;
}

.hyperlink_4 {
  grid-column: 3;
  grid-row: 2;
}

.hyperlink_5 {
  grid-column: 5;
  grid-row: 2;
}

.hyperlink_6 {
  grid-column: 2;
  grid-row: 3;
}

.hyperlink_7 {
  grid-column: 4;
  grid-row: 3;
}

/* https://css-loaders.com/colorful/ */
@keyframes l14 {
  0% {
    box-shadow:
      calc(var(--side)) calc(-1 * var(--side)) #B5AC01,
      calc(var(--side)) calc(-1 * var(--side)) #ECBA09,
      calc(var(--side)) calc(-1 * var(--side)) #0000,
      calc(var(--side)) calc(-1 * var(--side)) #0000,
      calc(var(--side)) calc(-1 * var(--side)) #0000
  }

  25% {
    box-shadow:
      calc(2 * var(--side)) calc(-1 * var(--side)) #0000,
      calc(var(--side)) calc(-1 * var(--side)) #ECBA09,
      calc(var(--side)) calc(-1 * var(--side)) #E86E1C,
      calc(var(--side)) calc(-1 * var(--side)) #0000,
      calc(var(--side)) calc(-1 * var(--side)) #0000
  }

  50% {
    box-shadow:
      calc(2 * var(--side)) calc(-1 * var(--side)) #0000,
      calc(var(--side)) calc(-2 * var(--side)) #0000,
      calc(var(--side)) calc(-1 * var(--side)) #E86E1C,
      calc(var(--side)) calc(-1 * var(--side)) #D41E45,
      calc(var(--side)) calc(-1 * var(--side)) #0000
  }

  75% {
    box-shadow:
      calc(2 * var(--side)) calc(-1 * var(--side)) #0000,
      calc(var(--side)) calc(-2 * var(--side)) #0000,
      0 calc(-1 * var(--side)) #0000,
      calc(var(--side)) calc(-1 * var(--side)) #D41E45,
      calc(var(--side)) calc(-1 * var(--side)) #B5AC01
  }

  100% {
    box-shadow:
      calc(2 * var(--side)) calc(-1 * var(--side)) #0000,
      calc(var(--side)) calc(-2 * var(--side)) #0000,
      0 calc(-1 * var(--side)) #0000,
      calc(var(--side)) 0 #0000,
      calc(var(--side)) calc(-1 * var(--side)) #B5AC01
  }
}

.hyperlink_1:hover,
.hyperlink_2:hover,
.hyperlink_3:hover,
.hyperlink_4:hover,
.hyperlink_5:hover,
.hyperlink_6:hover,
.hyperlink_7:hover {
  will-change: box-shadow, transform;
  /*щоб уникнути пригальмовування анімації */
  animation: l14 15s linear infinite alternate-reverse,
    pulse 0.3s linear infinite;
}

@keyframes pulse {
  0% {
    transform: translate(calc(-2 * var(--side)), calc(2 * var(--side))) scale(1);
  }

  25% {
    transform: translate(calc(-2 * var(--side)), calc(2 * var(--side))) scale(1.2);
  }

  50% {
    transform: translate(calc(-2 * var(--side)), calc(2 * var(--side))) scale(0.9);
  }

  75% {
    transform: translate(calc(-2 * var(--side)), calc(2 * var(--side))) scale(1.1);
  }

  100% {
    transform: translate(calc(-2 * var(--side)), calc(2 * var(--side))) scale(1);
  }
}

@keyframes flicker {

  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    opacity: 1;
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff, 0 0 50px #00ffff,
      0 0 100px #00ffff, 0 0 150px #00ffff, 0 0 200px #00ffff, 0 0 250px #00ffff;
  }

  20%,
  24%,
  55% {
    opacity: 0.4;
    text-shadow: 0 0 5px #fff, 0 0 10px #00ffff;
  }

  22%,
  53% {
    opacity: 0.2;
    text-shadow: 0 0 2px #fff, 0 0 5px #00ffff;
  }
}

/* МЕДІА-ЗАПИТИ */

/* Адаптація для планшета Samsung Galaxy Tab A 10.1 */
@media only screen and (max-width: 1300px) and (max-height: 820px) {
  /* За допомогою сайту mydevice.io визначив 1280px x 800px */

  :root {
    --side: 14vw;
  }

  #body_products_page {
    height: calc(100vh - 100px);
  }

  main {
    margin-top: 22vh;
    margin-bottom: 12vh;
  }

  header h1 {
    margin-top: 2.5vh;
    margin-bottom: 0.9vh;
    font-size: 2.8vw;
  }

  header nav a {
    font-size: 1.6vw;
  }

  header nav {
    width: 95%;
    margin-top: 1vh;
    margin-bottom: 2vh;
  }

  section.youtube {
    width: 85vw;
    margin-top: 35vh;
    margin-bottom: 15vh;
    height: auto;
  }

  .youtube iframe {
    margin-bottom: 13vh;
  }

  #footer_for_smartphones {
    display: none;
  }

  #footer_for_laptops_and_tablets {
    display: block;
  }

  #footer_row2 {
    font-size: 1.18vw;
  }

  #footer_row3 {
    font-size: 1.3vw;
  }

  .instagram {
    gap: 5vh 3vw;
  }

  .instagram img {
    max-width: 55vw;
    margin-bottom: 0.5vh;
    box-shadow: 7px 7px 0 rgba(0, 58, 93, 0.3);
    border-radius: 18px;
  }

  main.sel_hyperlinks {
    height: 100vh;
  }

  section.animation {
    left: 35vw;
    top: -2vh;
  }

  .hyperlink_text {
    font-size: 1.75vw;
  }

  .hyperlink_1 .hyperlink_text,
  .hyperlink_2 .hyperlink_text {
    font-size: 2.19vw;
  }
}

@media only screen and (max-width: 1300px) {
  main.orders {
    flex-direction: column;
  }
}

/* Адаптація для мобільного телефона типу Redmi Note 11S */
@media only screen and (max-width: 400px) and (max-height: 880px) {
  /* Сайт mydevice.io допоміг визначити розмір екрана 393px x 873px */
  /* Створив шаблон в інструментах розробника з розмірами 393px x 873px */
  /* але grid анімації залишався нерухомим!.. Тому я змінив max... */

  :root {
    --side: 18vw;
    /* Зміна розміру змінної */
  }

  main {
    margin-top: 10vh;
    margin-bottom: 5vh;
  }

  header h1 {
    margin-top: 1vh;
    margin-bottom: 1vh;
    font-size: 3.5vw;
  }

  header nav a {
    font-size: 2.5vw;
  }

  header nav {
    width: 95%;
    margin-top: 0;
    margin-bottom: 1vh;
  }

  header div a:last-child {
    display: none;
  }

  section.youtube {
    width: 85vw;
    margin-top: 12vh;
    margin-bottom: 10vh;
  }

  .youtube iframe {
    margin-bottom: 5vh;
  }

  #footer_for_smartphones {
    display: block;
  }

  #footer_for_laptops_and_tablets {
    display: none;
  }

  .instagram {
    gap: 4vh 3.5vw;
  }

  .instagram img {
    max-width: 70vw;
    margin-bottom: 0;
    box-shadow: 4px 4px 0 rgba(0, 58, 93, 0.3);
    border-radius: 9px;
  }

  main.sel_hyperlinks {
    height: 95vh;
  }

  section.animation {
    left: 23vw;
    top: 15vh;
  }

  .hyperlink_text {
    font-size: 2.153vw;
  }

  .hyperlink_1 .hyperlink_text,
  .hyperlink_2 .hyperlink_text {
    font-size: 2.69vw;
  }
}

/* ТЕКСТОВА АНІМАЦІЯ ЗАМІСТЬ ТОВАРІВ */
/* https://codepen.io/anon/embed/qBXeJab?height=450&theme-id=1&slug-hash=qBXeJab&default-tab=css,result */
@import url(https://fonts.googleapis.com/css?family=Montserrat);

svg {
  display: block;
  font: 8em 'Montserrat';
  width: 100%;
  margin: 0;
}

.text-copy {
  fill: none;
  stroke: white;
  stroke-dasharray: 6% 29%;
  stroke-width: 3.25px;
  stroke-dashoffset: 0%;
  animation: stroke-offset 5.5s infinite linear;
}

.text-copy:nth-child(1) {
  stroke: #4D163D;
  animation-delay: -1;
}

.text-copy:nth-child(2) {
  stroke: #840037;
  animation-delay: -2s;
}

.text-copy:nth-child(3) {
  stroke: #BD0034;
  animation-delay: -3s;
}

.text-copy:nth-child(4) {
  stroke: #BD0034;
  animation-delay: -4s;
}

.text-copy:nth-child(5) {
  stroke: #FDB731;
  animation-delay: -5s;
}

@keyframes stroke-offset {
  100% {
    stroke-dashoffset: -35%;
  }
}