/* Указываем box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Убираем внутренние отступы */
ul[class],
ol[class] {
  padding: 0;
}

/* Убираем внешние отступы */
body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Выставляем основные настройки по-умолчанию для body */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Удаляем стандартную стилизацию для всех ul и il, у которых есть атрибут class */
ul[class],
ol[class] {
  list-style: none;
}

/* Элементы a, у которых нет класса, сбрасываем до дефолтных стилей */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Упрощаем работу с изображениями */
img {
  max-width: 100%;
  display: block;
}

/* Указываем понятную периодичность в потоке данных у article */
article > * + * {
  margin-top: 1em;
}

/* Наследуем шрифты для инпутов и кнопок */
input,
button,
textarea,
select {
  font: inherit;
}

/* Удаляем все анимации и переходы для людей, которые предпочитай их не использовать */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*********************************************/
html, body {
  height: 100%;
  background-size: cover;
  background-attachment: fixed;
}
.wrapper {
  max-width: 1200px;
  padding: 20px;
  height: 100%;
  margin: 0 auto;
}

img {
  display: inline-block;
  border-radius: 5px;
  width: 80px;
  height: 80px;
}

header h1 {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 36px;
  color: #fff;
  font-weight: bold;
  margin: 50px;
  display: inline-block;
}

.works {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

footer {
  height: 200px;
}

.redtextbold {
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: red;
  font-weight: 900;
  margin: 50px;
  display: block;
}

.btn {
  height: 95px;
  width: 220px;
  border-radius: 5%;
  margin: 6px 7px 6px 7px;
  background-color: #32dc72;
  padding: 10px;
  font-family: 'Open Sans', sans-serif;
  font-weight: bold;
  display: inline-block;
  background-repeat: no-repeat;
  text-align: center;
  background-position: center center;
  background-size: 95% 85%;
}

.main-btn {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  margin: 30px auto;
  padding: 0;
  background-color: transparent;
  color: white;
  text-decoration: none;
  border-radius: 15px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
  height: 155px;
  overflow: hidden;
}

.main-btn-text { transform: translateY(3mm); }
.main-btn-icon { transform: translateY(4mm); }

.main-btn:hover {
  background-color: #ff5722;
  transform: scale(1.1);
}

/* ==== Плаваючі іконки в стовпчик ==== */
.floating-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  z-index: 9999;
}

.floating-icon {
  width: 48px;
  height: 48px;
  background-color: white;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-icon:hover { transform: scale(1.1); }
.floating-icon img { width: 100%; height: auto; display: block; }

/* ==== Кольори для блоків ==== */
#one, #two, #three, #four, #five, #six { background-color: #FF1493; }
#seven, #eight, #nine { background-color: #aa99ff; }
#ten, #eleven, #twelve, #thirteen, #fourteen,
#fifteen, #sixteen, #seventeen, #eighteen,
#nineteen, #twenty, #twentyone, #twentytwo,
#twentythree, #twentyfive, #twentysix, #twentyseven { background-color: #FFFF00; }

/* ==== Зображення для кнопок ==== */
#one { background-image: url("images/1.png"); }
#two { background-image: url("images/2.png"); }
#three { background-image: url("images/3.png"); }
#four { background-image: url("images/4.png"); }
#five { background-image: url("images/5.png"); }
#six { background-image: url("images/6.png"); }
#seven { background-image: url("images/7.png"); }
#eight { background-image: url("images/8.png"); }
#nine { background-image: url("images/9.png"); }
#ten { background-image: url("images/10.png"); }
#eleven { background-image: url("images/11.png"); }
#twelve { background-image: url("images/12.png"); }
#thirteen { background-image: url("images/13.png"); }
#fourteen { background-image: url("images/14.png"); }
#fifteen { background-image: url("images/15.png"); }
#sixteen { background-image: url("images/16.png"); }
#seventeen { background-image: url("images/17.png"); }
#eighteen { background-image: url("images/18.png"); }
#nineteen { background-image: url("images/19.png"); }
#twenty { background-image: url("images/20.png"); }
#twentyone { background-image: url("images/21.png"); }
#twentytwo { background-image: url("images/22.png"); }
#twentythree { background-image: url("images/24.png"); }
#twentyfive { background-image: url("images/25.png"); }
#twentysix { background-image: url("images/26.png"); }
#twentyseven { background-image: url("images/27.png"); }
#twentyeight { background-image: url("images/28.png"); }

/* ========================================================= */
/* === Горизонтальні «іконки‑посилання» для .text-links === */
.text-links {
  display: flex;
  flex-wrap: wrap;        
  justify-content: center;
  gap: 10px;                
  padding: 20px;
}

.text-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #001f3f;             /* темно‑синій фон */
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0;                      
  overflow: hidden;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.text-links a:hover {
  transform: scale(1.1);
  background-color: #003366;
}

/* Текст (href) залишається в DOM для SEO, але не видно */
.text-links a::after {
  content: attr(href);
  position: absolute;
  bottom: -9999px;
  left: -9999px;
}

/* Якщо в <a> є <img> — відображаємо його як іконку */
.text-links img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
