/*

Template 2103 Central

http://www.tooplate.com/view/2103-central
	
*/


html, body {
  height:100%;
}
* {
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background:#0f0f0f;
  color:#fff;
}

/* ===== GLOBAL SERIF FONT ===== */
:root {
            --font-serif: "Times New Roman", Times, serif; /* шрифт с засечками */
            --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; /* без засечек */
        }

h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: 0.4px;
}

p, li {
  font-weight: 400;
  line-height: 1.75;
}

button,
.btn {
  font-family: "Merriweather", serif;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.tm-quote,
.tm-slogan,
blockquote {
  font-style: italic;
  opacity: 0.9;
}
.text-muted,
small,
.helper-text {
  font-style: italic;
  color: #9ca3af;
}
.tm-address-box address {
  font-style: italic;
}
body.dark em,
body.dark i {
  color: #cbd5f5;
}
em {
  font-style: italic;
  opacity: 0.92;
}

/* ===== GLOBAL BACKGROUND ===== */
///body {
 // background: linear-gradient(
  //  180deg,
 //   #2f3e34 0%,   /* тёмно-оливковый */
 //   #7d8f69 45%,  /* мягкий зелёный */
  //  #e6e2d3 100%  /* тёплый песочный */
  //);
}

//body {
//  background: linear-gradient(
 //   180deg,
 //   #1c1f26 0%,
 // //  #2b2f3a 40%,
 //   #f4f1ec 100%
 // );
//}
//body {
 // background: linear-gradient(
   // 180deg,
   // #0f172a 0%,
   // #1e293b 50%,
   // #e5e7eb 100%
  //);
//}

//body {
 // background: linear-gradient(
 //   180deg,
 //   #3e3a32 0%,
 //   #8b8375 45%,
 //   #efece7 100%
 // );
//}






body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

:root {
  /* Фон */
  --bg-dark: #2f3e34;
  --bg-mid:  #7d8f69;
  --bg-light:#e6e2d3;

  /* Карточки */
  --card-bg: #ffffff;
  --card-shadow: 0 18px 40px rgba(0,0,0,0.14);

  /* Текст */
  --text-main: #1f2933;
  --text-muted: #6b7280;

  /* Акцент (бренд) */
  --accent: #8b6b3d;       /* золото-олива */
  --accent-soft: #c8b28a;

  /* Кнопки */
  --btn-bg: #8b6b3d;
  --btn-bg-hover: #75572f;
}

body {
  background: linear-gradient(
    180deg,
    var(--bg-dark) 0%,
    var(--bg-mid) 45%,
    var(--bg-light) 100%
  );
  color: var(--text-main);
}




/*=============*/
a:hover,
a:focus,
.tm-text-gray {
  color: #666666;
}

.tm-text-black {
  color: #212529;
}
h1 {
  font-size: 3rem;
}
p {
  line-height: 1.8;
}

.navbar-toggler {
  border-color: #6c757d;
  cursor: pointer;
}

#mainNav {
  background: white;
  padding: 5px 15px;
  width: 180px;
  position: absolute;
  top: 50px;
  right: 15px;
  -webkit-box-shadow: 0px 0px 7px 0px rgba(214, 214, 214, 1);
  -moz-box-shadow: 0px 0px 7px 0px rgba(214, 214, 214, 1);
  box-shadow: 0px 0px 7px 0px rgba(214, 214, 214, 1);
  z-index: 1000;
}

.navbar {
  justify-content: flex-end;
}
button {
  cursor: pointer;
}
button:focus {
  outline: none;
}
.tm-section-mb {
  margin-bottom: 90px;
}

#top {
  padding-top: 65px;
}

#tm-section-2,
#tm-section-6 {
  padding-top: 60px;
}

/* Верхняя секция */
.tm-section-4 {
  padding-top: 100px;
  padding-bottom: 80px;
  background-image: url(../img/tm-bg-section-4.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;

  /* 🔥 вместо height */
  min-height: 300px;
}

/* Сам слайдер */
.tm-img-slider {
  width: 100%;
  height: 100%;
}

/* Каждый слайд */
.tm-img-slider-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;            /* 🔥 ровный размер */
  overflow: hidden;
}



.menu {
  float: right;
}

.tm-box-3 {
  padding: 40px 50px;
  background: #f2f2f2;
}

.tm-box-5 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 25px;
  padding-right: 25px;
  min-height: 200px;
  background: #f2f2f2;
}

.tm-media {
  margin-bottom: 25px;
}

.slick-dots li button:before {
  font-size: 20px;
  color: white;
  opacity: 1;
}

.tm-img-slider-item {
  position: relative;
}

.tm-slider-caption {
  color: white;
  font-size: 1.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 1000;
  margin-bottom: 0;
  padding: 8px 30px;
  background-color: rgba(206, 212, 218, 0.5);
  color: #111;
}

.tm-img-container {
  width: 96%;
  max-width: 1020px;
}

.slick-dots {
  position: absolute;
  bottom: -50px;
  display: block;
  width: 100%;
  padding: 0;
  list-style: none;
  text-align: center;
}

.slick-prev:before,
.slick-next:before {
  color: #f8f9fa;
}

.slick-prev {
  left: 5px;
  z-index: 1000;
}

.slick-next {
  right: 5px;
}
.tm-slider-img {
  width: 100%;
}

.tm-slider-img,
.slick-slide {
  min-height: 250px;
}

.tm-slider-img {
  min-width: 500px;
}

.footer {
  padding: 15px;
  position: absolute;
  bottom: 0;
  left: 0;
  color: white;
  text-align: center;
  width: 100%;
}

a {
  transition: all 0.3s ease;
}

.btn {
  background-color: white;
  border-color: gray;
  border-radius: 0;
  color: #666666;
  font-size: 1.3rem;
  margin-top: 5px;
  padding: 12px 30px;
}

.btn-big {
  padding: 10px 45px;
}

.btn:hover,
.btn:focus {
  background-color: gray;
  color: #111;
}

.tm-media-img {
  width: 200px;
  height: 200px;
}

.float-right {
  float: right;
}

.tm-fa-toggler-icon {
  font-size: 30px;
  padding: 0;
  color: gray;
}

.tm-2col-l {
  padding-right: 40px;
}
.tm-2col-r {
  padding-left: 40px;
}

.form-control {
  border-radius: 0;
  font-size: 1.2rem;
  padding: 13px 19px;
}

.form-control:focus {
  border-color: #b5b5b5;
  box-shadow: 0 0 0 0.2rem #a3a3a329;
}

.form-control::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #666666;
  opacity: 1;
  /* Firefox */
}

.form-control:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #666666;
}

.form-control::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #666666;
}

.form-control::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #666666;
  opacity: 1;
  /* Firefox */
}

.form-control:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #666666;
}

.form-control::-ms-input-placeholder {
  /* Microsoft Edge */
  color: #666666;
}

/* Loader */

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}
#loader {
  display: block;
  position: relative;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #3498db;

  -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */

  z-index: 1001;
}

#loader:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #e74c3c;

  -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #f9c922;

  -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
  animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(0deg); /* IE 9 */
    transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
  }
  100% {
    -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(360deg); /* IE 9 */
    transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
  }
}
@keyframes spin {
  0% {
    -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(0deg); /* IE 9 */
    transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
  }
  100% {
    -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: rotate(360deg); /* IE 9 */
    transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
  }
}

#loader-wrapper .loader-section {
  position: fixed;
  top: 0;
  width: 51%;
  height: 100%;
  background: #222222;
  z-index: 1000;
  -webkit-transform: translateX(0); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateX(0); /* IE 9 */
  transform: translateX(0); /* Firefox 16+, IE 10+, Opera */
}

#loader-wrapper .loader-section.section-left {
  left: 0;
}

#loader-wrapper .loader-section.section-right {
  right: 0;
}

/* Loaded */
.loaded #loader-wrapper .loader-section.section-left {
  -webkit-transform: translateX(-100%); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateX(-100%); /* IE 9 */
  transform: translateX(-100%); /* Firefox 16+, IE 10+, Opera */

  -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader-wrapper .loader-section.section-right {
  -webkit-transform: translateX(100%); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateX(100%); /* IE 9 */
  transform: translateX(100%); /* Firefox 16+, IE 10+, Opera */

  -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader {
  opacity: 0;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
.loaded #loader-wrapper {
  visibility: hidden;

  -webkit-transform: translateY(-100%); /* Chrome, Opera 15+, Safari 3.1+ */
  -ms-transform: translateY(-100%); /* IE 9 */
  transform: translateY(-100%); /* Firefox 16+, IE 10+, Opera */

  -webkit-transition: all 0.3s 1s ease-out;
  transition: all 0.3s 1s ease-out;
}

/* JavaScript Turned Off */
.no-js #loader-wrapper {
  display: none;
}

@media screen and (max-width: 1199px) {
  .tm-2col-l {
    padding-right: 30px;
  }
  .tm-2col-r {
    padding-left: 30px;
  }
}

@media screen and (max-width: 991px) {
  .tm-img-container {
    max-width: 490px;
    width: 90%;
  }
  .tm-address-box {
    padding-left: 10px;
  }
  .fit {
    margin-bottom: 50px;
  }
  .tm-slider-caption {
    font-size: 1rem;
    padding: 8px 10px;
  }
  .tm-2col-l {
    padding-right: 20px;
  }
  .tm-2col-r {
    padding-left: 20px;
  }
}

@media screen and (max-width: 900px) {
  .navbar {
    justify-content: flex-end;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    flex-direction: column;
    align-items: end;
  }
  #mainNav {
    top: 90px;
    right: 30px;
  }

  .tm-2col-l {
    padding-right: 15px;
  }
  .tm-2col-r {
    padding-left: 15px;
  }
  .tm-address-box {
    padding-left: 0;
    padding-top: 40px;
  }
  .tm-form-section {
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .tm-box-5 {
    padding-top: 25px;
    padding-bottom: 25px;
  }
  .tm-section-mb {
    margin-bottom: 60px;
  }
  .tm-mb-sm-4 {
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 540px) {
  .tm-address-box {
    margin-bottom: 50px;
  }
  .tm-page-4-content {
    margin-bottom: 50px;
  }

  .tm-slider-caption {
    right: 0;
    left: 0;
    bottom: 0;
  }

  .tm-slider-col {
    padding-left: 0;
    padding-right: 0;
  }
}

@media screen and (max-width: 430px) {
  .tm-media {
    flex-direction: column;
  }
  .navbar {
    padding: 0;
  }
}

@media (min-width: 900px) {
  .tm-contact-right {
    padding-left: 40px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1310px;
  }
}

.site-footer {
  margin-top: 80px;
  padding: 20px 10px;
  text-align: center;
  font-size: 14px;
  color: #666666;
  border-top: 1px solid #e5e5e5;
  background-color: #f8f9fa;
}

.site-footer a {
  color: #122529;
  text-decoration: none;
  font-weight: 500;
}

.site-footer a:hover {
  color: #000;
  text-decoration: underline;
}



/* Telegram floating button */
.tg-float {
  position: fixed;
  bottom: 20px;
  left: 20px;              /* левый нижний угол */
  width: 56px;
  height: 56px;
  background-color: #ffffff; /* СИНИЙ фон */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  animation: tg-pulse 2s infinite;
}

/* самолётик */
.tg-float svg {
  width: 50px;
  height: 50px;
  fill: #229ED9;          /* БЕЛЫЙ самолётик */
}

/* на всякий случай */
.tg-float svg path {
  fill: #229ED9;
}

/* hover */
.tg-float:hover {
  background-color: #1b8fc4;
  animation-play-state: paused;
}

/* СИНЯЯ пульсация */
@keyframes tg-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.7);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(34, 158, 217, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 158, 217, 0);
  }
}
.tg-float {
  background-color: #ffffff !important;
}

/* Popup overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Popup box */
.popup-box {
  background: #ffffff;
  width: 90%;
  max-width: 360px;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  animation: popupScale 0.25s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Title */
.popup-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #229ED9;
}

/* Text */
.popup-text {
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Button */
.popup-btn {
  background: #229ED9;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
}

.popup-btn:active {
  transform: scale(0.97);
}

/* Animation */
@keyframes popupScale {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.phone-prefill {
  color: #9ca3af;
}

.phone-prefill:focus {
  color: #111;
}
.phone-prefill {
  color: #9ca3af;
}

.phone-prefill:focus {
  color: #111;
}
.contact-form .form-control {
  height: 48px;
  border-radius: 6px;
}

.contact-form textarea.form-control {
  height: auto;
}

.contact-form .btn {
  border-radius: 6px;
  font-weight: 500;
}
/* ===== HEADER WITH LOGO ===== */

.tm-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: left;
}

.tm-logo img {
  width: 70px;
  height: auto;
  display: block;
}

.tm-header-text h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 2px;
}

.tm-header-text p {
  margin: 5px 0 0;
  font-size: 1.1rem;
  color: #666;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .tm-header {
    flex-direction: column;
    text-align: center;
  }

  .tm-logo img {
    width: 60px;
  }

  .tm-header-text h1 {
    font-size: 2.4rem;
  }
}
/* ===== HERO HEADER UPGRADE ===== */

.tm-header-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 20px;

  /* прозрачная шапка */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 16px;

  /* анимация появления */
  animation: heroFadeUp 0.9s ease-out;
}

/* ===== LOGO ===== */

.tm-logo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;              /* 🔵 круглый логотип */
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: logoFloat 3s ease-in-out infinite;
}

/* ===== TEXT ===== */

.tm-header-text h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 2px;
  color: #212529;
}

.tm-subtitle {
  margin-top: 8px;
  font-size: 1.15rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-subtitle-icon {
  font-size: 1.2rem;
}

/* ===== ANIMATIONS ===== */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {
  .tm-header-hero {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
  }

  .tm-logo img {
    width: 72px;
    height: 72px;
  }

  .tm-header-text h1 {
    font-size: 2.4rem;
  }

  .tm-subtitle {
    justify-content: center;
    font-size: 1rem;
  }
}
/* ===== HERO HEADER ADVANCED ===== */

.tm-header-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 42px 22px;

  position: relative;

  /* стартовое состояние */
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(6px);
  border-radius: 18px;

  transition: background 0.35s ease, box-shadow 0.35s ease;
  animation: heroFadeUp 0.9s ease-out;
}

/* состояние при скролле */
.tm-header-hero.is-scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ===== LOGO ===== */

.tm-logo {
  display: inline-flex;
}

.tm-logo img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: logoFloat 3s ease-in-out infinite;
}

/* ===== TEXT ===== */

.tm-header-text h1 {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 2px;
  color: #212529;
}

.tm-subtitle {
  margin-top: 8px;
  font-size: 1.15rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tm-subtitle-icon {
  width: 20px;
  height: 20px;
  fill: #229ED9;
  flex-shrink: 0;
}

.tm-slogan {
  margin-top: 6px;
  font-size: 0.95rem;
  color: #666;
  letter-spacing: 0.3px;
}

/* ===== ANIMATIONS ===== */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {
  .tm-header-hero {
    flex-direction: column;
    text-align: center;
    padding: 32px 16px;
  }

  .tm-logo img {
    width: 72px;
    height: 72px;
  }

  .tm-header-text h1 {
    font-size: 2.4rem;
  }

  .tm-subtitle {
    justify-content: center;
    font-size: 1rem;
  }
}
/* ===== HEADER BASE ===== */

.tm-header {
  display: flex;
  align-items: center;
  gap: 16px;

  padding: 14px 22px;
  max-width: 900pxpx;
  margin: 0 auto;

  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(6px);
  border-radius: 14px;

  transition: all 0.35s ease;
}

/* ===== LOGO ===== */

.tm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.tm-logo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
  transition: all 0.35s ease;
}

.tm-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #212529;
  white-space: nowrap;
}

/* ===== TEXT ===== */

.tm-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tm-subtitle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: #444;
}

.tm-subtitle-icon {
  width: 16px;
  height: 16px;
  fill: #229ED9;
}

.tm-slogan {
  font-size: 0.85rem;
  color: #666;
}

/* ================================================= */
/* ===== MINI HEADER ON SCROLL ===== */
/* ================================================= */

.tm-header.is-fixed {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);

  max-width: 520px;
  padding: 8px 16px;

  background: rgba(255,255,255,0.95);
  box-shadow: 0 8px 26px rgba(0,0,0,0.18);
  z-index: 1200;
}

/* уменьшаем логотип */
.tm-header.is-fixed .tm-logo img {
  width: 38px;
  height: 38px;
}

/* уменьшаем заголовок */
.tm-header.is-fixed .tm-title {
  font-size: 1.1rem;
}

/* скрываем лишний текст */
.tm-header.is-fixed .tm-header-text {
  display: none;
}

/* ===== MOBILE ===== */

@media (max-width: 900px) {
  .tm-header {
    flex-direction: column;
    text-align: center;
  }

  .tm-header.is-fixed {
    flex-direction: row;
    text-align: left;
    max-width: calc(100% - 24px);
  }
}
/* ===== CARD STYLE FOR SECTIONS ===== */

.tm-section-1,
.tm-section-2,
.tm-section-3,
.tm-section-4,
.tm-section-5,
.tm-section-6,
.tm-section-head {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);

  padding: 40px 30px;
  margin-bottom: 60px;
}
.tm-section-head {
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.85);
}
/* ===== INNER CARDS ===== */

.tm-box-3,
.tm-box-5,
.tm-address-box {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
}

/* ================= SLIDER FIX ================= */
/* Карточка слайдера */
.tm-slider-col {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;               /* 🔥 главное */
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}
/* ===== FOOTER ===== */

.site-footer {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);

  padding: 25px 20px;
  margin: 80px auto 40px;
  max-width: 1100px;
}

.site-footer p {
  margin: 0;
  color: #555;
  font-size: 14px;
}

.site-footer a {
  color: #229ED9;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .tm-section-1,
  .tm-section-2,
  .tm-section-3,
  .tm-section-4,
  .tm-section-5,
  .tm-section-6,
  .tm-section-head {
    padding: 30px 20px;
    margin-bottom: 40px;
  }
}
/* ===== IMAGES: ROUNDED + SHADOW ===== */

img {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* эффект при наведении */
img:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}
.tm-slider-img {
  border-radius: 0;
  box-shadow: none;
}
/* ===== BUTTONS: VOLUME STYLE ===== */

.btn {
  border-radius: 12px;
  padding: 12px 34px;
  font-weight: 500;

  background: linear-gradient(180deg, #ffffff, #f1f1f1);
  border: 1px solid #d0d0d0;

  box-shadow:
    0 6px 14px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.7);

  transition: all 0.3s ease;
}

/* наведение */
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

/* нажатие */
.btn:active {
  transform: translateY(0);
  box-shadow:
    0 4px 10px rgba(0,0,0,0.15),
    inset 0 3px 6px rgba(0,0,0,0.12);
}
.btn-primary {
  background: linear-gradient(180deg, #3aa6e8, #1e88c9);
  border: none;
  color: #fff;

  box-shadow:
    0 8px 20px rgba(34,158,217,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #4bb2f0, #229ED9);
}
.image img {
  border-radius: 16px;
}
@media (max-width: 900px) {
  img {
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.14);
  }

  .btn {
    border-radius: 10px;
  }
}

.btn {
  color: #333;
  text-shadow: none;
}
.btn-primary {
  color: #fff;
}

.btn-primary:hover {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

/* ===== CARD HOVER EFFECT ===== */

.tm-section-1,
.tm-section-2,
.tm-section-3,
.tm-section-4,
.tm-section-5,
.tm-section-6,
.tm-section-head,
.tm-box-3,
.tm-box-5,
.tm-slider-col {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tm-section-1:hover,
.tm-section-2:hover,
.tm-section-3:hover,
.tm-section-4:hover,
.tm-section-5:hover,
.tm-section-6:hover,
.tm-box-3:hover,
.tm-box-5:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
/* ===== SCROLL REVEAL ===== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* ===== ACTIVE MENU ===== */

.nav-link.active {
  color: #229ED9 !important;
  font-weight: 600;
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #229ED9;
  border-radius: 2px;
}
/* ===== DARK MODE ===== */

body.dark {
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #e5e7eb;
}

body.dark .tm-section-1,
body.dark .tm-section-2,
body.dark .tm-section-3,
body.dark .tm-section-4,
body.dark .tm-section-5,
body.dark .tm-section-6,
body.dark .tm-section-head,
body.dark .tm-box-3,
body.dark .tm-box-5,
body.dark .site-footer {
  background: #111827;
  color: #e5e7eb;
}

body.dark a {
  color: #93c5fd;
}
/* ================= SLIDER FIX ================= */

/* Карточка слайдера */
.tm-slider-col {
  padding: 0;
  border-radius: 20px;
  overflow: hidden;               /* 🔥 главное */
  background: #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* Сам слайдер */
.tm-img-slider {
  width: 100%;
  height: 100%;
}

/* Каждый слайд */
.tm-img-slider-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;            /* 🔥 ровный размер */
  overflow: hidden;
}

/* Картинка */
.tm-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* ❌ убираем лишнее */
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Надпись поверх картинки */
.tm-slider-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;

  padding: 16px 22px;
  margin: 0;

  font-size: 1.15rem;
  line-height: 1.4;
  color: #fff;

  /* затемнение под текст */
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.05)
  );

  z-index: 5;
}

/* Slick не ломает высоту */
.slick-slide {
  height: auto !important;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {
  .tm-img-slider-item {
    aspect-ratio: 4 / 3;
  }

  .tm-slider-caption {
    font-size: 1rem;
    padding: 12px 16px;
  }
}
.tm-section-1,
.tm-section-2,
.tm-section-3,
.tm-section-4,
.tm-section-5,
.tm-section-6,
.tm-section-head,
.tm-box-3,
.tm-box-5,
.tm-slider-col,
.tm-address-box {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
img {
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

img:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.22);
}
.btn {
  border-radius: 14px;
  padding: 12px 36px;
  font-weight: 600;
  letter-spacing: 0.3px;

  background: linear-gradient(
    180deg,
    #ffffff,
    #f2f2f2
  );

  color: var(--text-main);
  border: 1px solid #d1d5db;

  box-shadow:
    0 6px 14px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.8);

  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(
    180deg,
    #f9fafb,
    #e5e7eb
  );
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Главная кнопка */
.btn-primary {
  background: linear-gradient(
    180deg,
    var(--btn-bg),
    #6f552f
  );
  color: #fff;
  border: none;

  box-shadow:
    0 10px 26px rgba(139,107,61,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover {
  background: linear-gradient(
    180deg,
    var(--btn-bg-hover),
    #5e4625
  );
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.nav-link {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  background: var(--accent);
}

.site-footer {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.14);
}

.site-footer p {
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent);
}
body.dark {
  background: linear-gradient(
    180deg,
    #0f172a,
    #020617
  );
  color: #e5e7eb;
}

body.dark .tm-section-1,
body.dark .tm-section-2,
body.dark .tm-section-3,
body.dark .tm-section-4,
body.dark .tm-section-5,
body.dark .tm-section-6,
body.dark .tm-box-3,
body.dark .tm-box-5,
body.dark .site-footer {
  background: #111827;
}
/* ===== HEADER BASE (COMPACT CARD) ===== */

.tm-header {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 12px 18px;          /* 🔽 меньше высота */
  max-width: 820px;            /* 🔽 компактнее */
  margin: 0 auto 30px;

  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);

  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    background 0.45s ease;
}
.tm-logo img {
  width: 48px;
  height: 48px;
}
/* ===== FIXED HEADER (SMOOTH) ===== */

.tm-header {
  position: relative;
}

.tm-header.is-fixed {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -20px); /* 🔥 старт выше */
  opacity: 0;

  max-width: 520px;
  padding: 8px 14px;

  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);

  pointer-events: none;
}

/* когда видна */
.tm-header.is-fixed.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* уменьшаем логотип */
.tm-header.is-fixed img {
  width: 36px;
  height: 36px;
}

/* скрываем подзаголовки */
.tm-header.is-fixed .tm-header-text {
  display: none;
}
/* ===== LOGO LINK CLEAN ===== */

.tm-logo {
  text-decoration: none !important;
}

.tm-logo:hover,
.tm-logo:focus {
  text-decoration: none !important;
}

.tm-logo span {
  text-decoration: none !important;
}

.tm-logo:hover span {
  color: #000;               /* просто акцент */
}

.tm-logo:hover {
  opacity: 0.85;
}

/* ===== CONTACT SECTION FIX ===== */

/* сама секция — карточка */
.tm-section-6 {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 40px 30px;
}

/* колонки не вылазят */
.tm-section-6 .row {
  margin-left: 0;
  margin-right: 0;
}

/* форма — как карточка */
.contact-form {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* блок "Алоқа" */
.tm-contact-right {
  margin-bottom: 30px;
}

/* блок "Манзил" */
.tm-address-box {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* address аккуратно */
.tm-address-box address {
  margin: 0;
  font-style: normal;
  line-height: 1.7;
}

/* ===============================
   DARK MODE — HARD OVERRIDE
   =============================== */

body.dark .tm-section-6,
body.dark .tm-section-6 .row,
body.dark .tm-section-6 .col-lg-7,
body.dark .tm-section-6 .col-lg-5 {
  background: transparent;
}

/* ФОРМА */
body.dark .tm-section-6 .contact-form {
  background-color: #0b1220;
  color: #f1f5f9;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.7);
}

/* АДРЕС */
body.dark .tm-section-6 .tm-address-box {
  background-color: #0b1220;
  color: #f1f5f9;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.7);
}

/* ТЕКСТ — ЖЁСТКО ДЕЛАЕМ СВЕТЛЫМ */
body.dark .tm-section-6,
body.dark .tm-section-6 p,
body.dark .tm-section-6 address,
body.dark .tm-section-6 h2,
body.dark .tm-section-6 h4,
body.dark .tm-section-6 label {
  color: #f8fafc;
}

/* ПОЛЯ */
body.dark .tm-section-6 .form-control {
  background-color: #020617;
  color: #f8fafc;
  border: 1px solid #334155;
}

body.dark .tm-section-6 .form-control::placeholder {
  color: #94a3b8;
}

/* ФОКУС */
body.dark .tm-section-6 .form-control:focus {
  background-color: #020617;
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.15rem rgba(96,165,250,0.35);
}

/* КНОПКА */
body.dark .tm-section-6 .btn-primary {
  background: linear-gradient(180deg, #2563eb, #1e40af);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37,99,235,0.55);
}
/* ===============================
   DARK MODE — BUTTONS
   =============================== */

/* ===== THEME TOGGLE BUTTON (SMALL) ===== */

/* ===== THEME TOGGLE BUTTON (MEDIUM) ===== */

#themeToggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;

  width: 44px;        /* ↑ + ~40% */
  height: 44px;

  padding: 0;
  border-radius: 50%;

  font-size: 18px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #020617;
  color: #f9fafb;

  border: 1px solid #334155;
  box-shadow: 0 8px 20px rgba(0,0,0,0.85);

  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* hover */
#themeToggle:hover {
  transform: scale(1.08);
}

/* светлая тема */
body:not(.dark) #themeToggle {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}
/* ===== THEME TOGGLE ICON ANIMATION ===== */

#themeToggle {
  transition:
    transform 0.35s ease,
    box-shadow 0.25s ease;
}

/* состояние анимации */
#themeToggle.is-animating {
  transform: rotate(180deg) scale(0.85);
}
/* ===== GLOBAL CARD SPACING ===== */

/* Все основные карточки */
.tm-section-1,
.tm-section-2,
.tm-section-3,
.tm-section-4,
.tm-section-5,
.tm-section-6,
.tm-section-head,
.tm-slider-col,
.site-footer {
  margin-bottom: 64px; /* 🔥 единое расстояние */
}

/* чтобы слайдер НЕ прижимался к следующей секции */
#tm-section-1 {
  margin-bottom: 72px;
}
/* ===== MOBILE CONTACT FORM FIX ===== */

@media (max-width: 900px) {

  /* секция контактов */
  .tm-section-6 {
    padding-left: 0;
    padding-right: 0;
  }

  /* row без отрицательных margin */
  .tm-section-6 .row {
    margin-left: 0;
    margin-right: 0;
  }

  /* форма */
  .tm-section-6 .contact-form {
    width: 90vw;              /* 🔥 90% экрана */
    max-width: 90vw;
    margin: 0 auto 32px;
    padding: 24px 20px;
  }

  /* адрес */
  .tm-section-6 .tm-address-box {
    width: 90vw;
    max-width: 90vw;
    margin: 0 auto;
    padding: 24px 20px;
  }

  /* колонки */
  .tm-section-6 .col-lg-7,
  .tm-section-6 .col-lg-5 {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===== CONTACT FORM — ULTRA COMPACT PADDING ===== */

.contact-form {
  padding: 1px 1px;   /* почти вровень с карточкой */
}

@media (max-width: 900px) {
  .contact-form {
    padding: 1px 1px; /* 🔥 максимально аккуратно */
  }
}
@media (max-width: 900px) {
  .contact-form button[type="submit"] {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== MOBILE: CENTER ALL IMAGES ===== */

@media (max-width: 900px) {

  /* все изображения */
  img {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  /* контейнеры с изображениями */
  .image,
  .tm-media,
  .tm-media-img,
  .tm-img-container {
    text-align: center;
  }

  /* изображения внутри media-блоков */
  .tm-media-img {
    margin: 0 auto 16px;
  }
}

/* ===== HEADER CLEAN & COMPACT ===== */

.tm-header {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 14px 24px;
  border-radius: 16px;

  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* логотип */
.tm-logo {
  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none !important;
}

/* убираем подчёркивание навсегда */
.tm-logo:hover,
.tm-logo:focus {
  text-decoration: none;
}

/* название */
.tm-title {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
}
body:not(.dark) .tm-header {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

body:not(.dark) .tm-title {
  color: #1f2933;
}
body.dark .tm-header {
  background: rgba(15, 23, 42, 0.75); /* тёмный, не белый */
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

body.dark .tm-title {
  color: #e5e7eb;
}
/* ===== BUTTONS — DARK THEME FIX ===== */

body.dark .btn,
body.dark button {
  background: linear-gradient(
    180deg,
    #1e293b 0%,
    #0f172a 100%
  );
  color: #e5e7eb;                 /* читаемый светлый */
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

/* hover */
body.dark .btn:hover,
body.dark button:hover {
  background: linear-gradient(
    180deg,
    #334155 0%,
    #1e293b 100%
  );
  color: #ffffff;
  box-shadow:
    0 8px 22px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

/* active */
body.dark .btn:active,
body.dark button:active {
  transform: translateY(1px);
  box-shadow:
    0 4px 10px rgba(0,0,0,0.6) inset;
}
body.dark .btn-primary {
  background: linear-gradient(
    180deg,
    #2563eb 0%,
    #1e40af 100%
  );
  color: #f8fafc;
  border: none;
}
/* ===== NAV DROPDOWN — THEME FIX ===== */

/* общее */
#mainNav {
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* пункты меню */
#mainNav .nav-link {
  padding: 12px 18px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ================= LIGHT THEME ================= */

body:not(.dark) #mainNav {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

body:not(.dark) #mainNav .nav-link {
  color: #1f2933;
}

body:not(.dark) #mainNav .nav-link:hover {
  background: rgba(0,0,0,0.05);
}

/* ================= DARK THEME ================= */

body.dark #mainNav {
  background: rgba(15, 23, 42, 0.95); /* 🔥 тёмный, как карточки */
  box-shadow: 0 14px 36px rgba(0,0,0,0.7);
}

body.dark #mainNav .nav-link {
  color: #e5e7eb;
}

body.dark #mainNav .nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}
#mainNav .nav-link.active {
  font-weight: 600;
  position: relative;
}

#mainNav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.6;
}
/* ===== UPLOAD PROGRESS ===== */

.upload-progress {
  margin-top: 14px;
}

.upload-bar {
  height: 8px;
  border-radius: 6px;
  overflow: hidden;
}

/* заполнение */
.upload-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.2s ease;
}

.upload-text {
  margin-top: 6px;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.85;
}

/* ---------- LIGHT ---------- */

body:not(.dark) .upload-bar {
  background: #e5e7eb;
}

body:not(.dark) .upload-bar-fill {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

body:not(.dark) .upload-text {
  color: #1f2933;
}

/* ---------- DARK ---------- */

body.dark .upload-bar {
  background: rgba(255,255,255,0.12);
}

body.dark .upload-bar-fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

body.dark .upload-text {
  color: #e5e7eb;
}

.file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.file-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  font-size: 12px;
  color: #cbd5f5;
}

body:not(.dark) .file-item {
  background: #f8f9fa;
  border-color: #ddd;
  color: #333;
}

.file-item img {
  max-width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
}

.file-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.file-name {
  word-break: break-all;
}

.file-size {
  font-size: 11px;
  opacity: .7;
}
/* ====== FORM ACTIONS ====== */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px; /* 🔥 главное — расстояние */
  margin-top: 10px;
}

/* Основная кнопка */
.form-actions .btn-primary {
  min-width: 220px;
}

/* Telegram login */
.telegram-login-wrap {
  margin-top: 4px;
}

/* Кнопка смены аккаунта */
.btn-switch {
  padding: 8px 16px;
  font-size: 0.9rem;
  border-radius: 12px;
  max-width: 260px;
  width: auto;
  opacity: 0.9;
}

/* Темная тема */
body.dark .btn-switch {
  border-color: rgba(255,255,255,0.25);
  color: #ddd;
}

body.dark .btn-switch:hover {
  background: rgba(255,255,255,0.08);
}

/* Инфо-текст под Telegram */
.telegram-login-wrap + .telegram-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: center;
  max-width: 260px;
}
<button class="btn btn-link btn-switch">
.btn-link.btn-switch {
  color: #8ab4f8;
  text-decoration: none;
}
.btn-link.btn-switch:hover {
  text-decoration: underline;
}
/* ===== FORM ACTIONS ===== */
.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;              /* 🔥 расстояние между ВСЕМИ элементами */
  margin-top: 12px;
}

/* Основная кнопка */
.form-actions .btn-primary {
  min-width: 220px;
}

/* Telegram widget */
.telegram-login-wrap {
  display: flex;
  justify-content: center;
}

/* Подсказка */
.telegram-hint {
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: center;
  max-width: 260px;
  line-height: 1.4;
}

/* Кнопка "Бошқа аккаунт" */
.btn-switch {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ddd;
}

.btn-switch:hover {
  background: rgba(255,255,255,0.08);
}
/* ===== FILE UPLOAD ===== */
.file-upload {
  width: 100%;
}

.file-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
}

.file-btn {
  background: #2f6fed;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.file-name {
  font-size: 0.85rem;
  opacity: 0.75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* hover */
.file-label:hover {
  background: rgba(255,255,255,0.06);
}

/* светлая тема */
body:not(.dark) .file-label {
  background: #f8f9fa;
  border-color: #ddd;
}

body:not(.dark) .file-name {
  color: #333;
}
.upload-progress {
  margin-top: 12px;
}

.upload-bar {
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.dark .upload-bar {
  background: rgba(255,255,255,0.15);
}

.upload-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4caf50, #81c784);
  transition: width 0.2s ease;
}

.upload-text {
  font-size: 13px;
  margin-top: 6px;
  text-align: center;
}
.file-upload {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.file-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: #e9ecef;
  color: #222;
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease;
}

.file-label:hover .file-btn {
  background: #dfe3e6;
}

.file-name {
  font-size: 14px;
  color: #555;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 🌙 dark theme */
.dark .file-btn {
  background: #2b2f33;
  color: #eee;
}

.dark .file-label:hover .file-btn {
  background: #3a3f45;
}

.dark .file-name {
  color: #ccc;
}
