* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#block-1-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* Центрирование */
}

#block-1 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 20px;
  flex-wrap: wrap; 
  text-align: center;
  position: relative;
  
  height: 100%;
  background: linear-gradient(rgba(2, 164, 252, 0.85), rgba(255, 244, 221, 0.85)); 
  border-radius: 8px;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  padding: 20px;      
  color: white;       
  max-width: 800px;  
  margin: 0px auto; 
}

.block-1-center {
  font-size: 2.0rem;
  font-weight: bold;
  color: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  margin: 0 auto;
}

.block-1-center p {
  margin: 0;
  text-align: center;
}


.block-1-center .second_string {
  font-size: 90%;
}

.block-1-top {
  text-align: center;
  padding: 1em;
}

.image-row {
  display: flex;
  justify-content: center;
  gap: 2rem; 
  flex-wrap: wrap; 
  margin-bottom: 1em;
}

.image-item img {
  max-width: 140px; 
  height: auto;
  display: block;
}


.title-paragraph {
  font-size: 1.5rem;
  font-weight: bold;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.image-item:first-child img {
  margin-top: 30px; 
}

#block-2-image {
  max-width: 120px;
  height: auto;
  display: block;
  border-radius: 8px;
}

#block-1-image{
    max-width: 120px;
    height: auto;
    display: block;
}

.block-1-top h1 {
  margin: 0;
  font-size: 2.5rem;
  white-space: nowrap;
}

.block-1-bottom p {
  margin: 10px 0;
  font-size: 1.2rem;
  line-height: 1.5;
  background: #004080;
  padding: 16px;
  border-radius: 12px;
  color: white;
}

.image-overlay-wrapper {
  position: relative;
  display: inline-block;
}

.image-overlay-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  border-radius: 8px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, #a2dcf3, #029edb);
    color: #333;
}

.block-1-wrapper {
  position: relative; /* чтобы внутренние элементы можно было позиционировать */
  width: 100vw;       /* растягиваем на всю ширину экрана */
  overflow: hidden;   /* чтобы ничего не вылезало */
  background-image: url('img/stock_quotes.jpg');
  background-size: cover;      /* растянуть, сохраняя пропорции */
  background-position: center; /* по центру */
  background-repeat: no-repeat;
  min-height: 400px;   
  margin: 0 auto;
}

.block-1-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* Картинка растягивается по блоку */
  border-radius: 8px;
  z-index: 0;
  opacity: 0.4;           /* Прозрачность, можно изменить */
}

h1, h2 {
    color: #2c3e50;
}

h1 {
    text-align: center;
    margin: 20px 0;
}

h2 {
    margin: 20px 0 10px;
}

p {
    margin: 10px 0;
}

ul, ol {
    margin: 10px 0 20px 20px;
}

#block-13 > div:not(:last-child) {
  margin-bottom: 20px;
}

#block-9 ul li {
  overflow-wrap: anywhere;
}

#block-2, #block-3, #block-4, #block-5,
#block-6, #block-8, #block-9, #block-10, #block-11, #block-12, #block-13, #block-14 {
    position: relative;
    background: rgba(255, 244, 221, 0.85);
        /*linear-gradient(rgba(2, 164, 252, 0.85), rgba(255, 244, 221, 0.85)); /* сепия */    
    margin: 20px auto;
    padding: 20px;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #222;
    left: 7px;
}

#block-2::before,
#block-3::before,
#block-4::before,
#block-5::before,
#block-6::before,
#block-8::before,
#block-9::before,
#block-10::before,
#block-11::before,
#block-12::before,
#block-13::before,
#block-14::before {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 90px;
    height: 90px;
    background-image: url('img/sepalogo.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
    pointer-events: none;
}


.cta-button {
  display: inline-block;
  background-color: #007BFF;
  color: white;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #0056b3;
}

input::placeholder,
textarea::placeholder {
  font-family: 'Arial', sans-serif; 
  font-size: 0.8rem; 
  color: #666;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
}

button {
    margin-top: 10px;
    padding: 10px;
    background-color: #3498db;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #2980b9;
}

#deutsche_banken, #europaische_banken, #krypto_partners {
    margin: 20px 0;
    padding: 10px;
    background: #ecf0f1;
    border-radius: 4px;
}


.tile-container {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.tile {
    display: none;
    background: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tile.active {
    display: block;
}

.controls {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

.bank-columns {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

#block-6 a {
  text-decoration: none;
  color: inherit;
  font-weight: normal;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

#block-6 a:hover {
  color: #3498db; /* Цвет при наведении */
  text-decoration: underline; /* Подчёркивание при наведении */
}

#deutsche_banken, #europaische_banken, #krypto_partners {
    flex: 1 1 30%;
    background-color: rgba(255, 255, 255, 0.6); /* полупрозрачный белый фон */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 200px;
    backdrop-filter: blur(2px); /* эффект стекла, по желанию */
}

#main-footer {
    background: #029edb;
    color: #f0f8ff;
    padding: 30px 20px 15px;
    font-family: Arial, sans-serif;
  }
  .footer-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }
  .footer-info, .footer-links {
    flex: 1 1 230px;
  }

  .footer-info, .footer-links {
  text-align: center;
}

  .footer-info h3 {
    margin-bottom: 12px;
  }
  .footer-links h4,
  .footer-social h4 {
    margin-bottom: 10px;
    font-weight: 600;
  }
  .footer-links ul {
    list-style: none;
    padding: 0;
  }
  .footer-links li {
    margin-bottom: 8px;
  }
  .footer-links a {
    color: #f0f8ff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .footer-links a:hover {
    color: #a2dcf3;
  }
  .footer-social a {
    font-size: 24px;
    margin-right: 15px;
    color: #f0f8ff;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  .footer-social a:hover {
    color: #a2dcf3;
  }
  .footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    opacity: 0.7;
  }

  /* Responsive */
  @media (max-width: 600px) {
    .footer-container {
      flex-direction: column;
      gap: 15px;
    }
  }

  #block-7.carousel {
    position: relative;
    width: 600px;
    height: 300px;
    margin: 0 auto;
    perspective: 1000px;
    overflow: visible;
  }
  #block-7.carousel .tile {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 370px;
    height: 270px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, filter 0.6s ease, opacity 0.6s ease;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    user-select: none;
  }
  
  /* Центральная плитка */
  #block-7.carousel .tile.active {
    transform: translate(-50%, -50%) translateX(0) scale(1);
    filter: none;
    opacity: 1;
    z-index: 3;
  }
  /* Левая плитка */
  #block-7.carousel .tile.left {
    transform: translate(calc(-50% - 220px), -50%) scale(0.8);
    filter: blur(3px) brightness(0.8);
    opacity: 0.6;
    z-index: 2;
  }
  /* Правая плитка */
  #block-7.carousel .tile.right {
    transform: translate(calc(-50% + 220px), -50%) scale(0.8);
    filter: blur(3px) brightness(0.8);
    opacity: 0.6;
    z-index: 2;
  }
  /* Остальные плитки (скрыты) */
  #block-7.carousel .tile:not(.active):not(.left):not(.right) {
    opacity: 0;
    pointer-events: none;
  }

  #block-7 .tile img {
  width: 50px;       /* фиксированный размер круга */
  height: 50px;
  border-radius: 50%; /* делает изображение круглым */
  object-fit: cover;  /* обрезает изображение, сохраняя пропорции */
  display: block;
  margin: 0 auto 15px auto; /* центрируем и отступ снизу */
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.profile img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 5px;
}

.profile .caption {
  font-size: 14px;
  color: #333;
  text-align: center;
}

#waehrungs-widget {
    display: none;
  position: fixed;
  top: 100px;
  left: 20px;
  width: 160px;
  background: linear-gradient(rgba(2, 164, 252, 0.85), rgba(255, 244, 221, 0.85)); 
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 9999;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

#waehrungs-widget h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
  text-align: center;
}

#waehrungs-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#waehrungs-widget li {
  margin-bottom: 5px;
  color: #222;
}

    #boersen-widget {
        display: none;
      position: fixed;
      top: 100px;
      right: 20px;
      width: 160px;
      right: 20px;
      background: linear-gradient(rgba(2, 164, 252, 0.85), rgba(255, 244, 221, 0.85));
      border: 1px solid #ccc;
      padding: 15px;
      z-index: 1000;
      font-family: Arial, sans-serif;
      width: 160px;
      box-shadow: -2px 2px 10px rgba(0,0,0,0.1);
      border-radius: 8px;
    }

    #boersen-widget h4 {
      margin: 0 0 10px;
      font-size: 16px;
    }
    #boersen-widget ul {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    #boersen-widget li {
      margin-bottom: 6px;
      font-size: 14px;
    }

    /* Мобильная адаптация для экранов до 600px */
@media (max-width: 600px) {  
  #block-2, #block-3, #block-4, #block-5,
  #block-6, #block-8, #block-9, #block-10, #block-11, #block-12, #block-13, #block-14 {
    max-width: 100%;
    font-size: 16px !important;
    padding: 15px 10px;
    margin: 15px auto;
    border-radius: 6px;
    box-shadow: none;
  }

  #block-2, #block-3, #block-4, #block-5,
  #block-6, #block-8, #block-9, #block-10,
  #block-11, #block-12, #block-13, #block-14 {
    padding: 70px 10px 15px 10px; 
    position: relative; 
  }

  #block-2::before,
  #block-3::before,
  #block-4::before,
  #block-5::before,
  #block-6::before,
  #block-8::before,
  #block-9::before,
  #block-10::before,
  #block-11::before,
  #block-12::before,
  #block-13::before,
  #block-14::before {
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
  }

  #block-9 ul li {
  overflow-wrap: anywhere;
}

  #block-13 > div:not(:last-child) {
  margin-bottom: 20px;
}

  #block-2 h2,
  #block-3 h2,
  #block-4 h2,
  #block-5 h2,
  #block-6 h2,
  #block-8 h2,
  #block-9 h2,
  #block-10 h2,
  #block-11 h2,
  #block-12 h2,
  #block-13 h2, 
  #block-14 h2 {
    margin-top: 0; 
  }

  #block-1 {
    margin-top: 0 !important;
    padding-top: 0; 
  }
  
#block-7.carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;       
    height: 300px;
    margin: 0 auto;          
    perspective: 1000px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#block-7.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;       
    height: 360px;          
    margin: 0 auto;
    perspective: 1000px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}


.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px; /* боковые отступы для мобильных */
  z-index: 1;
}

.carousel {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.tile {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 300px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}

.tile img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.tile-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tile-content h3 {
  font-size: 1.2rem;
  margin: 0;
}

.tile-content p {
  font-size: 1rem;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}


@media (max-width: 768px) {
  .carousel {
    flex-direction: column;
    align-items: center;
  }

  .tile {
    width: 90%; 
    max-width: 400px;
  }

  .tile-content h3 {
    font-size: 1.1rem;
  }

  .tile-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .tile-content h3 {
    font-size: 1rem;
  }

  .tile-content p {
    font-size: 0.9rem;
  }
}


  
  .block-1-center {
    font-size: 1.8rem;
    text-align: center;
  }

  .block-1-top h1 {
    font-size: 1.8rem;
    white-space: normal; 
  }

  .block-1-bottom p {
    font-size: 1rem;
    padding: 12px;
  }

  
  #block-1-image,
  #block-2-image {
    max-width: 80px;
    margin: 0 auto;
  }

  
  #block-1 {
    flex-direction: column;
    text-align: center;
  }

  
  form {
    padding: 0 0;
  }

  
  .bank-columns {
    flex-direction: column;
    gap: 15px;
  }

  #deutsche_banken, #europaische_banken, #krypto_partners {
    min-width: auto;
    flex: none;
    width: 100%;
  }

  
  #main-footer {
    padding: 20px 10px 15px;
  }
  .footer-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .footer-info, .footer-links {
    flex: none;
    width: 100%;
  }

  @media (max-width: 768px) {
  .image-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px; 
    flex-wrap: nowrap;
  }

  .image-item img {
    width: 80px; 
    height: auto;
  }

  .title-paragraph {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .image-overlay-wrapper {
    position: relative;
    left: 5px;
  }
}
  
  #waehrungs-widget,
  #boersen-widget {
    display: none !important;
  }
}
.lang-flag {
    opacity: 0.5;
    transition: opacity 0.2s ease;
    cursor: pointer;
  }

  .lang-flag.active-lang {
    opacity: 1;
    border: 2px solid #007bff;
    border-radius: 4px;
  }
