/* General */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #333;
}
a {
    text-decoration: none;
    color: #333 !important;
}

:root {
    --index: calc(1vw + 1vh);
}

h1, h2, h3 {
  color: #2c2c7a;
}

.section {
  padding: 60px 20px;
  text-align: center;
}

.section.light {
  background: #f2f4ff;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 30px;
  background: #fff;
  border-bottom: 2px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-weight: 700;
  font-size: 1rem;
  max-width: 400px;
}

.logo-slogo {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo-img {
  max-width: 50px;
    margin-right: 10px;
}
.logo-img img {
  width: 100%;
  height: auto;

}

header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.phone, .email {
  display: flex;
  align-items: center;
  text-align: left;
  margin: 10px 20px 10px 0;
}
.phone strong, .email strong {
  margin-right: 10px;
}

.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  user-select: none;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}

@media (max-width: 1200px) {
  .burger {
    display: block;
  }

  .menu {
    display: none; /* по умолчанию скрыто */
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .menu.active {
    display: flex;
  }
}

.section h2, .hero h1, .section-title  {
    font-size: calc(var(--index) * 1);
}

.section p, .hero p {
    font-size: calc(var(--index) * 0.5);
}

/* Hero */
.hero {
  width: 100%;
  background: #f9f9ff;
}

.hero-wrapper {
  max-width: 1920px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 30px;
  background: #f9f9ff;
  flex-wrap: wrap;
  margin: 0 auto;
}

.hero-text {
  max-width: 500px;
  text-align: center;
  margin: 0 auto;
}

.hero-text h1 {
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-text p {
  margin-bottom: 40px;
}

.hero-img {
max-width: 1220px;
  margin: 50px auto;
}

.hero-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;

}

.btn {
  background: #ff9900;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;

  font-weight: bold;
}

#clients p {
    padding-bottom: 30px;
}

.catalog-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.catalog-item {
  max-width: 480px;
}

.catalog-item img {
  width: 100%;
  max-height: 300px;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-item img:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.why-box {
  background: #e5f7e5;
  padding: 80px;
  border-radius: 10px;
  max-width: 300px;
  max-height: 160px;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

#market p {
    max-width: 1220px;
    margin: 0 auto;
    padding-bottom: 30px;
}

.market-img {
  max-width: 600px;
  width: 100%;
  border-radius: 10px;
  margin-top: 20px;
}

.banner-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 20px;
}

footer {
  background: #2c2c7a;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-img img {
    margin-top: 20px;
  }

  .catalog-grid, .why-grid {
    flex-direction: column;
    align-items: center;
  }
}

nav a.active {
  color: #ff9900;
  font-weight: bold;
}

.join-form {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: left;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.join-form .form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.join-form label {
  margin-bottom: 8px;
  font-weight: bold;
}

.join-form input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
  .join-form {
    padding: 20px;
  }
}

.section-title {
  text-align: center;
  margin: 40px 0 20px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.flower-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 15px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.flower-card:hover {
  transform: translateY(-5px);
}
.flower-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}
.flower-card h3 {
  margin: 5px 0;
}
.flower-card p {
  font-size: 0.9rem;
  color: #555;
}

/* ===================== */
/* Modal popup styles    */
/* ===================== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  padding: 20px;
  text-align: center;
  position: relative;
  animation: scaleIn 0.3s ease;
}
.modal-content img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Animation */
@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* Contacts section */
.contacts-container {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.contacts-info {
  flex: 1;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  line-height: 1.6;
  text-align: left;
}

.contacts-info h3 {
  margin-bottom: 15px;
 font-size: calc(var(--index) * 0.5);
}

.contacts-info p {
 font-size: calc(var(--index) * 0.4);
}

.contacts-map {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Mobile */
@media (max-width: 768px) {
  .contacts-container {
    flex-direction: column;
  }
  .contacts-map iframe {
    height: 300px;
  }
}

#toTop {
  display: none; /* скрыта по умолчанию */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  font-size: 20px;
  background: #3c1cce;
  color: #fff;
  border: none;
  outline: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

#toTop:hover {
  background: #388e3c;
  transform: translateY(-3px);
}

button, .btn {
  position: relative;
  overflow: hidden;
}

button::after, .btn::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.1);
  transition: left 0.3s;
}

button:hover::after, .btn:hover::after {
  left: 100%;
}




