body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #333;
}

header {
  background: #222;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.logo {
  max-width: 559px;
  height: auto;
  margin: 0 auto;
}

/* ==== НАВІГАЦІЯ ==== */
nav {
  background: #333;
  padding: 10px 15px;
  position: relative;
  display: flow;

}

nav a,
.dropdown-button {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 1px 5px;
}

/* ==== ВИПАДАЮЧЕ МЕНЮ ==== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 280px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 10;
  top: 40px;
  text-align: left;
}

.dropdown-content a {
  color: #333;
  padding: 0.2rem 0.3rem;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.show {
  display: block;
}

/* ==== КОНТЕНТ ==== */
.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
}

.lang-block {
  margin-bottom: 60px;
}

/* ==== МОБІЛЬНА АДАПТАЦІЯ ==== */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
  }

  .dropdown-content a {
    padding: 12px;
    border-top: 1px solid #ddd;
  }
}
/* ==== Date  ==== */
.article-date {
  font-size: 0.9em;
  color: #888;
  text-align: right;
  margin-top: 20px;
}
/* ==== FOOTER ==== */
footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  font-size: 14px;
  border-top: 4px solid #444;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1 1 300px;
  min-width: 250px;
}

footer h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-section {
  margin-bottom: 20px;
  min-width: 200px;
}

footer a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin: 5px 0;
  transition: color 0.3s;
}

footer a:hover {
  color: #f5f5f5;
}

.footer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-form input,
.footer-form textarea {
  padding: 8px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
}

.footer-form button {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.footer-form button:hover {
  background-color: #666;
}

/* ==== Mobile Friendly ==== */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-section {
    width: 100%;
    max-width: 400px;
  }
}
/* ==== scrollTopBtn  ==== */
#scroll-top-placeholder {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 999;
}

#scrollTopBtn {
  display: none;
  background-color: #444;
  color: white;
  border: none;
  padding: 12px 15px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: #fff;
}

/* === MOBILE IMPROVEMENTS === */
@media (max-width: 768px) {
  /* Зменшуємо фон у шапці, робимо логотип компактнішим */
  header {
    padding: 15px 10px;
  }
  .logo img {
    width: 120px; /* замість великого 559px */
  }

  /* Навігація: перетворюємо в колонку з повною шириною кнопок */
  nav {
    flex-direction: column;
    align-items: stretch;
    padding: 5px 0;
  }
  nav a,
  .dropdown-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
  }
  nav a:first-child,
  .dropdown-button:first-child {
    border-top: none;
  }

  /* Контейнер статті — зменшуємо паддінги */
  .container {
    margin: 20px auto;
    padding: 15px;
  }

  /* Шрифти — трохи дрібніше та компактніше */
  h1 {
    font-size: 1.5rem;
  }
  .lang-block p,
  .article-body p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Кнопка наверх — зміщуємо ближче до краю */
  #scroll-top-placeholder {
    bottom: 20px;
    right: 20px;
  }
  #scrollTopBtn {
    padding: 10px;
    font-size: 16px;
  }
}
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-add {
    background-color: #4caf50;
    color: white;
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.5rem 1rem;
}
.account-header .welcome {
  margin-right: right;
  font-weight: 600;
}
.lng {
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-right: auto;
}
.account-header .btn {
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid #007bff;
  border-radius: 4px;
  color: #007bff;
  background: white;
  font-size: 0.9rem;
}
.account-header .btn:hover {
  background: #007bff;
  color: white;
}
.lang-switcher {
  text-align: right;
  font-size: 0.9rem;
}
.lang-switcher a {
  color: #555;
  text-decoration: none;
}
.lang-switcher strong {
  color: #000;
}	
.lang-btn {
  font-size: 0.9rem;
  justify-content: flex-end;
  gap: 1rem;
  margin-right: auto;
}
.lang-btn a {
  color: #555;
  text-decoration: none;
}
.lang-btn strong {
  color: #000;
}
/* В додаток до існуючих стилів */

/* Карточка для форми профілю */
.profile-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* у styles/style.css (додайте після .profile-form / перед .orders-table) */

/* Перерендер форми профілю з чітким вирівнюванням */
.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.profile-form .form-group {
  display: grid;
  grid-template-columns: 120px 1fr; /* ширина лейбла + гнучкий інпут */
  column-gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.profile-form .form-group.full-width {
  grid-column: span 2;
}

/* Інпутам даємо 100% ширину своєї колонки */
.profile-form .form-group input,
.profile-form .form-group select {
  width: 100%;
  box-sizing: border-box;
}

/* Кнопка теж підлаштовується під грід */
.profile-form .btn-save {
  grid-column: span 2;
  justify-self: start;
  margin-top: 0.5rem;
}


/* Таблиця замовлень */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.orders-table th,
.orders-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ececec;
}
.orders-table th {
  background: #f5f5f5;
  text-align: left;
  font-weight: 600;
}
.orders-table tr:hover td {
  background: #fafafa;
}
.orders-table a {
  color: #007bff;
  text-decoration: none;
}
.orders-table a:hover {
  text-decoration: underline;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.gallery-item img {
  max-height: 150px;
  object-fit: cover;
  border-radius: 6px;
}
.gallery-item p {
  margin: .5rem;
  font-size: .9rem;
  color: #333;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}


.thankyou { text-align:center; padding:3rem 1rem; }
.thankyou .btn { margin: .5rem; }


