/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ================= GLOBAL ================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 30px;
  margin-bottom: 40px;
  font-weight: 700;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #000;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #444;
}

.btn-light {
  background: #fff;
  color: #000;
}

/* ================= TOPBAR ================= */
.topbar {
  background: #111;
  color: #fff;
  font-size: 14px;
}

.topbar-wrap {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  border-bottom: 1px solid #e5e5e5;
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo h2 {
  font-size: 22px;
  letter-spacing: 1px;
}

.logo small {
  font-size: 12px;
  color: #777;
}

.nav a {
  margin-left: 25px;
  font-weight: 600;
}

.nav a:hover {
  color: #777;
}

/* ================= HERO / SLIDER ================= */
.hero {
  height: 65vh;
  position: relative;
}

.slider,
.slide {
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  background: url("../img/g1.jpg") center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.slide:nth-child(2) {
  background-image: url("../img/g2.jpg");
}

.slide:nth-child(3) {
  background-image: url("../img/g3.jpg");
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.overlay h1 {
  font-size: 44px;
  margin-bottom: 10px;
}

.overlay p {
  font-size: 18px;
  margin-bottom: 20px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 30px;
  cursor: pointer;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

/* ================= VISA ================= */
.visa {
  padding: 80px 0;
}

.visa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.visa-card {
  background: #f5f5f5;
  padding: 30px;
  text-align: center;
  transition: 0.3s;
}

.visa-card:hover {
  background: #eaeaea;
}

.visa-card h3 {
  margin-bottom: 10px;
}

.visa-card p {
  font-size: 14px;
  color: hsl(0, 0%, 100%);
  margin-bottom: 15px;
}

.visa-card .link {
  font-weight: 600;
  font-size: 14px;
}

.dubai-bg {
  background: url("../img/DUBAID.png") center/cover no-repeat;
}
.malaysia-bg {
  background: url("../img/MALAYSIAVISAD.png") center/cover no-repeat;
}
.malaysia-bg2 {
  background: url("../img/MALAYSIAVISAED.png") center/cover no-repeat;
}
.singapore-bg {
  background: url("../img/SINGAPOREDD.png") center/cover no-repeat;
}
.thailand-bg {
  background: url("../img/THAILANDD.png") center/cover no-repeat;
}
/* ================= ABOUT ================= */
.about {
  background: #f0f0f0;
  padding: 80px 0;
}

.about-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.about-text p {
  margin-bottom: 15px;
}

.about-boxes {
  display: grid;
  gap: 20px;
}

.about-box {
  background: #fff;
  padding: 20px;
  border-left: 4px solid #000;
}

.about-box h4 {
  margin-bottom: 10px;
}

/* ================= SERVICES ================= */
.services {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.service-card {
  border: 1px solid #ddd;
  padding: 30px;
  text-align: center;
  transition: 0.3s;
}

.service-card:hover {
  background: #f5f5f5;
}

/* ================= CTA ================= */
.cta {
  background: #111;
  color: #fff;
  padding: 70px 0;
}

.cta-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== GALLERY FIX 1:1 ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* как на скрине */
  gap: 20px;
}

.gallery-item {
  height: 180px;            /* ФИКСИРОВАННАЯ ВЫСОТА */
  overflow: hidden;
  border-radius: 6px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* КЛЮЧЕВОЕ */
  transition: transform .3s;
}

.gallery-item img:hover {
  transform: scale(1.08);
}

/* ADAPTIVE */
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(1, 1fr); }
}


/* ================= CONTACT ================= */
.contact {
  padding: 80px 0;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
}

.contact-form button {
  padding: 12px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

/* ================= FOOTER ================= */
.footer {
  background: #111;
  color: #fff;
  padding: 25px 0;
  text-align: center;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .about-wrap,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .cta-wrap {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .overlay h1 {
    font-size: 28px;
  }

  .nav {
    display: none;
  }
}
