* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333333;
    background-color: #FAF3E0;
}

h2 {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    color: #0D3B66;
    margin-bottom: 10px;
}

.about,
.services,
.languages,
.gallery,
.contact {
    background-color: #FFE8D0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#main-content {
  display: none;
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFE8D0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 20px solid #f3f3f3;
  border-top: 20px solid #3498db;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#preloader-text {
  margin-top: 20px;
  font-size: 30px;
  color: #333;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* ======================== HEADER OK ======================== */
header {
    background: url('banner.jpg') center/cover no-repeat;
    height: 35vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2px 20px 3px 20px;
}

header h1 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
    color: #ffffff;
    line-height: 1;
}

header h2 {
    font-size: 1.8rem;
    color: #64C7E1;
    margin: 5px 0 0 0;
    font-weight: 600;
}

.header-topics {
    margin: 0;
    line-height: 1.5;
}

.header-topics span.new-line {
  display: block;
  margin-top: 2px;
}

.language-switcher{
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    font-size: 2rem;
}

.language-switcher a{
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s;
}

.language-switcher a:hover{
    transform: scale(1.25);
    opacity: 0.8;
}

/* ================= ABOUT: PROFIL & BIO OK ================= */
.about .card {
    width: 100%;
    height: 1100px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

#profileContent {
  background: white;
  color: #0D3B66;
}


.profile-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.about h2 {
    color: #0D3B66;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.about h3 {
    color: #0D3B66;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 800;
}

.about h4 {
    color: #5A5A5A;
    font-size: 1.8rem;
    line-height: 1.4;
    text-align: left;
    margin-bottom: 15px;
    font-weight: bold;
}

.about p {
    color: #2b2b2b;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.6;
    text-align: left;
    margin-bottom: 12px;
}

#bioContent {
    display: none;
    background-image: url('background-biography.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(6px);
    background-color: rgba(0,0,0,0.45);
}

.bio-title {
    color: #0D3B66;
}

#bioContent p {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2b2b2b;
    line-height: 1.8rem;
    margin-bottom: 10px;
    text-align: left;
}

.card {
    transition: all 0.3s ease;
}

.btn-container {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    width: 100%;
}

.bio-btn {
    width: 200px;
    height: 60px;
    border: none;
    background-color: #0D3B66;
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


/* ======================== SERVICES OK ======================== */
.services h2 {
    color: #0D3B66;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 5px;
    font-weight: bold;
}

.services h3 {
    color: #165cdb;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #165cdb;
    text-decoration-thickness: 2px;
}

.services .card h4 {
    font-size: 1.8rem;
    line-height: 1.8rem;
    font-weight: 400;
    color: #333333;
    text-align: left;
    letter-spacing: 0.2px;
    flex-grow: 1;
    margin-bottom: 4px;
}

.services .flex {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    padding: 5px 0;
}

.services .card {
    width: 100%;
    height: 180px;
    padding: 5px;
    background: #FAF3E0;
    border: 3px solid #FFD6A5;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}


/* ======================== LANGUAGES OK ======================== */
.languages .flex-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
}

.languages .card {
    background:  #FAF3E0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 180px;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.languages h2 {
    color: #0D3B66;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: bold;
}

.languages .card h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #165cdb;
}

.languages .card p {
    font-size: 1.6rem !important;
    line-height: 1.8;
    font-weight: 500;
    color: #333333;
    text-align: justify;
    letter-spacing: 0.2px;
    flex-grow: 1;
}

.progress {
    width: 100%;
    background: #FAF3E0;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 12px;
    height: 30px;
    display: flex;
    align-items: center;
}

.bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    font-weight: bold;
    border-radius: 20px;
    font-size: 16px;
}

.progress .percent {
    font-size: 20px;
    font-weight: bold;
    color: #5A5A5A;
    margin-left: 8px;
    white-space: nowrap;
}

.card p .fi {
    font-size: 2.5rem;
    display: block;
    margin: 0 auto;
}

.russian  { width: 70%; background: white; color: #5A5A5A; }
.english  { width: 60%; background: #64C7E1; color: #64C7E1; }
.french   { width: 80%; background: #ff4d4d; color: white; }
.italian  { width: 60%; background: #2ecc71; color: white; }


/* ======================== GALLERY OK ======================== */
.gallery {
    padding: 20px 10px;
}

.gallery h2 {
    color: #0D3B66;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: bold;
}

.gallery .card {
    position: relative;
    border: 3px solid #FFD6A5;
    border-radius: 12px;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
}

.gallery .swiper {
    width: 100%;
    height: 700px;
    border-radius: inherit;
    overflow: hidden;
}

.gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    background-color: #FAF3E0;
}

.gallery .swiper-pagination {
    bottom: 10px !important;
}

/* ======================== CONTACT OK ======================== */
.contact h2 {
    color: #0D3B66;
    text-align: center;
    font-size: 2rem;
    font-weight: 1000;
    margin-bottom: 10px;
}

.contact .card {
    position: relative;
    border: 3px solid #FFD6A5;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    gap: 15px;
    color: #ffffff;
}

.contact .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.contact .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
}

.contact .card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.contact .card-content h3 {
    margin: 0;
    font-size: 1.8rem;
}

.contact .card-content .label {
    color: #FFD6A5;
    text-decoration: underline;
    margin-right: 5px;
}

.contact .card-content .value {
    color: #ffffff;
    text-decoration: none;
}

/* ======================== FOOTER OK ======================== */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #FFD6A5;
    color: #5A5A5A;
    padding: 5px 8px;
    height: 120px;
    margin-top: 0px;
    text-align: center;
    width: 100%;
}

footer div {
    margin-bottom: 4px;
}

footer a {
    color: #165cdb;
    text-decoration: none;
    margin: 0 30px;
    font-size: 2rem;
}

footer p {
    font-size: 1.6rem;
    color: #5A5A5A;
    margin-top: 5px;
    text-align: center;
}

/* ================= COOKIE BANNER  OK ================= */
#cookieBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; 
    background: #0D3B66;
    color: white;
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 999;
    text-align: center;
    font-size: 1.6rem;
    line-height: 1.6rem;
}

#cookieBanner button {
    background: #FFD6A5;
    color: #0D3B66;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

#cookieBanner button:hover {
    background: #ffc87c;
}
