:root {
  --body-background: #eeecec;
  --title-color: #f0eded;
  --text-color: #696363;
  --container-color: #beb9b9;
  --hover-color: #f5be80;

  --box-shadow: 0 0.5rem 1rem rgb(110, 100, 84);
  --custom-border: 0.5rem solid var(--hover-color);

  --body-font: Georgia, "Times New Roman", serif;
  --title-font: "Palatino Linotype", Palatino, serif;

  --base-size: 1rem;
  --body-line-height: 1.2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  outline: 0;
  text-decoration: none;
  list-style: none;
  line-height: 1.5;
  transition: all 0.3s;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-padding-top: 70px;
}

body {
  background-color: var(--body-background);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Блокування прокручування при відкритому cookie-банері */
body.cookie-lock {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

section {
  min-height: auto;
  padding: 1rem 8% 1rem;
  margin-bottom: 1rem;
  scroll-margin-top: 4rem;
}

h1,
h2 {
  font-family: var(--title-font);
  font-size: clamp(1.9rem, 3vw, 3.5rem);
}

h3 {
  font-family: var(--title-font);
  font-size: clamp(1.8rem, 2.5vw, 3rem);
}

p {
  font-family: var(--body-font);
  font-size: clamp(1.6rem, 2vw, 2.5rem);
  overflow-wrap: break-word;
}

label {
  font-family: var(--body-font);
}

button {
  font-family: var(--body-font);
}

.header {
  background-color: var(--container-color);
  color: var(--title-color);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 8%;
  transition: all 0.5s ease-in-out;
  box-shadow: var(--box-shadow);
}

.header.active {
  border-bottom: 0.2rem solid var(--hover-color);
  box-shadow: var(--box-shadow);
}

.header .logo {
  font-size: 2rem;
  font-family: var(--title-font);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.header .navbar {
  height: 100%;
  display: flex;
  gap: 2rem;
}

.header .navbar .nav-btn {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--title-color);
  background: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-family: var(--body-font);
}

.header .navbar .nav-btn:hover {
  color: var(--hover-color);
}

.header .dropdown-menu {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header .dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--container-color);
  width: 20rem;
  box-shadow: var(--box-shadow);
  flex-direction: column;
  transition: all 0.5s;
  z-index: 1000;
  display: none;
}

.header .dropdown-menu:hover .dropdown-content {
  display: flex;
  border-bottom: var(--custom-border);
}

.header .dropdown-content a,
.header .dropdown-content button {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--title-color);
  padding: 1rem 1.5rem;
  overflow: hidden;
  background-color: transparent;
  cursor: pointer;
}

.header .dropdown-content a:hover {
  color: var(--text-color);
  background-color: var(--hover-color);
}

.header .menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.header .menu-container .menu-btn {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--title-color);
  background: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.header .menu-container #ikon-btn:hover {
  color: var(--hover-color);
}

#ikon-btn {
  display: none;
  font-family: var(--body-font);
}

.mobile-menu {
  display: none;
  font-family: var(--body-font);
}

.start {
  padding: 14rem 8% 1rem;
}

.start-info {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.start-info-name {
  margin-bottom: 20px;
  margin-top: 20px;
}

.start-info h2 {
  text-align: center;
  color: var(--text-color, #23387a);
}

.start-info p {
  color: var(--text-color, #23387a);
  text-align: center;
  margin: 3rem 0 2rem;
  padding-top: 2rem;
}

.my-info {
  padding: 5rem 8% 1rem;
  margin-top: 1rem;
  max-width: 100%;
  color: var(--text-color);
  line-height: 1.5;
  overflow: hidden;
}

.my-info .image {
  float: left;
  width: 25%;
  width: 350px;
  margin: 0 2.5rem 1.5rem 0;
  border-radius: 8px;
}

.my-info .image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.my-info .content {
  overflow: hidden;
}

.my-info h2 {
  margin-bottom: 3.2rem;
  margin-top: 3.2rem;
  color: var(--text-color);
  text-align: left;
}

.my-info .content p {
  text-align: left;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.my-info .content a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  text-decoration: underline;
}

.my-info .nav-btn-my-info {
  font-family: var(--body-font);
  color: var(--text-color);
  font-size: clamp(1.6rem, 2vw, 2.5rem);
}

.my-info .nav-btn-my-info:hover {
  color: var(--hover-color);
}

.my-info .content::after {
  content: "";
  display: table;
  clear: both;
}

.transl {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.5;
  margin-top: 1rem;
}

.transl .transl-info p {
  text-align: left;
  width: 100%;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.transl .transl-info h2 {
  color: var(--text-color);
  margin-bottom: 3.2rem;
  margin-top: 3.2rem;
}

.transl .transl-info h3 {
  color: var(--text-color);
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.faqs {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.5;
  margin-top: 1rem;
}

.faqs .faqs-info p {
  text-align: left;
  width: 100%;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.faqs .faqs-info h2 {
  color: var(--text-color);
  margin-bottom: 3.2rem;
  margin-top: 3.2rem;
}

.faqs .faqs-info a {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  text-decoration: underline;
}

.faqs .nav-btn-faqs {
  font-family: var(--body-font);
  color: var(--text-color);
  font-size: clamp(1.6rem, 2vw, 2.5rem);
}

.faqs .nav-btn-faqs:hover {
  color: var(--hover-color);
}

.grid-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 2rem;
  font-family: var(--body-font);
}

.group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.title {
  grid-column: span 3;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid black;
  padding: 8px 0;
}

.info-table {
  font-weight: bold;
  border-bottom: 1px solid black;
  padding: 4px;
  text-align: center;
}

.cell {
  border: 1px solid black;
  padding: 6px;
}

.impressum {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.5;
  margin-top: 1rem;
}

.impressum .impressum-info p {
  text-align: left;
  width: 100%;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.impressum .impressum-info h2 {
  color: var(--text-color);
  margin-bottom: 3.2rem;
  margin-top: 3.2rem;
}

.impressum .impressum-info h3 {
  color: var(--text-color);
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.data {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  line-height: 1.5;
  margin-top: 1rem;
}

.data-info {
  max-width: 100%;
  overflow-wrap: break-word;
}

.data .data-info p {
  text-align: left;
  width: 100%;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.data .data-info h2 {
  color: var(--text-color);
  margin-bottom: 3.2rem;
  margin-top: 3.2rem;
}

.data .data-info h3 {
  color: var(--text-color);
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.contact {
  padding: 8rem 5rem;
}

.section-title {
  text-align: center;
  color: var(--text-color);
  font-family: var(--title-font);
  margin: 2rem 2rem 6rem;
}

.container-form {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form,
.contact-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form {
  position: relative;
}

.contact-input {
  padding: 1.5rem;
  font-size: 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--container-color);
  color: var(--title-color);
  box-shadow: var(--box-shadow);
}

.contact-input::placeholder {
  color: var(--title-color);
  font-size: 1.5rem;
  opacity: 1;
}

.contact-form textarea {
  height: 15rem;
  resize: none;
  margin-bottom: 2rem;
}

.container-form a {
  display: inline-block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  text-decoration: underline;
}

.container-form .nav-btn-data-consent {
  font-family: var(--body-font);
  color: var(--text-color);
  font-size: clamp(1.6rem, 2vw, 2.5rem);
}

.container-form .nav-btn-data-consent:hover {
  color: var(--hover-color);
}

.button {
  display: inline-block;
  width: 18rem;
  margin: 2rem auto;
  font-size: 1.6rem;
  background-color: var(--hover-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
  color: var(--title-color);
  font-weight: 500;
  cursor: pointer;
  transition: box-shadow 0.5s;
}

.button:hover {
  box-shadow: 0 8px 25px rgb(58, 155, 225);
}

.checkbox-label {
  font-family: var(--body-font);
  font-size: clamp(1.6rem, 2vw, 2.5rem);
}

.footer {
  background-color: var(--container-color);
  color: var(--title-color);
  width: 100%;
}

.footer .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding: 2rem 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--body-font);
}

.footer .footer-column {
  flex: 1 1 20px;
  min-width: 180px;
}

.footer h3,
.footer p,
.footer a {
  margin: 0 0 1rem;
  line-height: 1.5;
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.footer .navbar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer .nav-btn-cookie {
  text-decoration: underline;
  font-family: var(--body-font);
  color: var(--title-color);
  cursor: pointer;
  transition: color 0.3s;
}

.footer .nav-btn-cookie:hover {
  color: var(--hover-color);
}

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 90vh; 
  overflow-y: auto; 
  background: #222;
  color: #eee;
  padding: 20px;
  font-family: var(--body-font);
  font-size: 18px;
  z-index: 10000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
  scrollbar-gutter: stable; 
}

#cookie-banner p {
  margin: 10px 0 10px 0;
}

#cookie-banner a {
  color: #eee;
  text-decoration: underline;
}

#cookie-banner a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

#cookie-banner button {
  margin-right: 10px;
  background: #444;
  color: #eee;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

#cookie-banner .button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#cookie-banner button:hover {
  background: #666;
}

#cookie-settings {
  display: none;
  margin-top: 10px;
  background: #333;
  padding: 10px;
  border-radius: 5px;
}

#cookie-settings label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

#cookie-settings input[type="checkbox"] {
  margin-right: 8px;
  margin-bottom: 9px;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color:var(--body-background);
}

.toggle-arrow {
  background: none;
  border: 1px solid #ccc;
  color:#eee;
  font-size: 1px; 
  cursor: pointer;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  padding: 0;
  margin-left: 5px;
  margin-bottom: 5px;
  width: 10px; 
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px; 
  line-height: 1;
}

.toggle-arrow.open {
  transform: rotate(15rem);
}

.cookie-description.hidden {
  display: none;
}

@media (max-width: 1200px) {
  .header .navbar {
    display: none;
  }
  .header #ikon-btn {
    display: initial;
  }
  .mobile-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10000;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--container-color);
    transition: all 0.5s ease-in-out;
    box-shadow: var(--box-shadow);
    border-bottom: 0.2rem solid var(--hover-color);
    padding: 2rem 4rem;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  .header.active .mobile-menu {
    padding-top: 6rem;
  }
  .mobile-menu.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  .mobile-navbar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-navbar .nav-link {
    overflow: hidden;
  }
  .mobile-navbar .main-nav-link,
  .mobile-navbar .sub-nav-link a {
    display: inline-block;
    color: var(--title-color);
    font-size: 2rem;
    font-weight: bold;
    width: 100%;
    padding: 1.5rem;
    cursor: pointer;
    border-bottom: 0.1rem solid rgb(22, 24, 107, 0.2);
  }
  .mobile-navbar .main-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .mobile-navbar .main-nav-link a {
    color: var(--title-color);
  }
  .mobile-navbar .sub-nav-link {
    padding: 1rem 0rem;
    padding-left: 4rem;
    transition: all 0s;
    display: none;
  }
  .mobile-navbar .sub-nav-link a:hover {
    color: var(--hover-color);
  }
  .mobile-menu::-webkit-scrollbar {
    width: 0.8rem;
  }
  .mobile-menu::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    background-color: var(--hover-color);
  }
  .mobile-menu::-webkit-scrollbar-track {
    background: transparent;
  }
}

@media (max-width: 860px) {
  .my-info .image {
    float: none;
    display: block;
    margin: 0 auto 2rem auto;
    width: 100%;
    max-width: 350px;
  }
  .my-info .content {
    overflow: visible;
    text-align: left;
  }
}

@media (max-width: 850px) {
  .grid-table {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 690px) {
  .footer .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .footer .footer-column {
    width: 100%;
  }
}

@media (max-width: 660px){
  .section-title h1{
    font-size: 2rem;
  }
  .footer .nav-btn-cookie {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .start {
    padding: 12rem 8% 1rem;
  }
  .start,
  .my-info,
  .transl,
  .faqs,
  .impressum,
  .data,
  .contact {
    scroll-margin-top: 10px;
  }
  .header .logo {
    font-size: 1.8rem;
  }
}

@media (max-width: 520px) {
  .start-info p {
    margin-top: 0;
    margin-bottom: 0;
  }
  .start-info h2 {
    margin-bottom: 20px;
  }
}

