body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5; /* общий фон сайта */
}

/* главное */ 
.header {
  position: fixed;         
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;            
  background-color: #2e7d32; 
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 40px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;           
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: white;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav a {
  text-decoration: none;  
  font-weight: bold;       
  color: white;           
  font-size: 18px;
}

.nav a.active {
  color: #c8e6c9;       
}
.hero {
  margin-top: 120px; 
  text-align: center;
  padding: 450px 20px;
  background-image: url('original.jfif'); 
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white; 
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); 
  z-index: 0;
}

.hero h1, .hero p, .cta-btn {
  position: relative; 
  z-index: 1;
}

.hero h1 {
  font-size: 36px;      
  color: #2e7d32;      
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;      
  color: #c9c9c9;         
  margin-bottom: 30px;
}

.cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #2e7d32; 
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  position: relative;
  z-index: 1;
}

.cta-btn:hover {
  background-color: #1b5e20; 
}




.how-it-works {
  background: #f5f5f5;
  text-align: center;
  padding: 200px 20px;
}

.how-it-works h2 {
  font-size: 28px;
  color: #2e7d32;
  margin-bottom: 30px;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.step {
  background: #c8e6c9;
  padding: 20px 30px;
  border-radius: 8px;
  font-weight: bold;
  color: #2e7d32;
}



.benefits {
  background: #f5f5f5;
  text-align: center;
  padding: 60px 20px;
}

.benefits h2 {
  font-size: 28px;
  color: #2e7d32;
  margin-bottom: 40px;
}

.benefit-list {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.benefit {
  background: #c8e6c9;
  padding: 30px 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.benefit .icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.benefit h3 {
  color: #2e7d32;
  margin-bottom: 10px;
}

.benefit p {
  color: #555;
  font-size: 16px;
}

.reviews {
  text-align: center;
  padding: 60px 20px;
  background: #f5f5f5; 
}

.reviews h2 {
  font-size: 28px;
  color: #2e7d32;
  margin-bottom: 40px;
}

.review-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.review {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  width: 280px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: left;
}

.review p {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.review span {
  font-weight: bold;
  color: #2e7d32;
}

/* CTA блок */
.cta {
  text-align: center;
  padding: 60px 20px;
  background: #c8e6c9;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 800px;
}

.cta h2 {
  font-size: 28px;
  color: #2e7d32;
  margin-bottom: 15px;
}

.cta p {
  font-size: 18px;
  color: #555;
  margin-bottom: 25px;
}

.cta-btn {
  display: inline-block;
  padding: 14px 28px;
  margin: 10px;
  background-color: #2e7d32;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
}

.cta-btn:hover {
  background-color: #1b5e20;
}

.cta-btn.secondary {
  background-color: #388e3c;
}

.cta-btn.secondary:hover {
  background-color: #2e7d32;
}

/* Статистика */
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 150px 20px;
  background: #f5f5f5;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stat h3 {
  font-size: 32px;
  color: #2e7d32;
  margin-bottom: 10px;
}

.stat p {
  font-size: 16px;
  color: #555;
}
.footer {
  background-color: #2e7d32;
  color: #fff;
  padding: 130px 80px 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-logo h3 {
  margin: 0;
  font-size: 24px;
}

.footer-logo p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #c8e6c9;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #c8e6c9;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #388e3c;
  padding-top: 50px;
  font-size: 13px;
  color: #c8e6c9;
}

/* Контакты */
.contacts {
  padding: 140px 20px 80px; 
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

.contacts h2 {
  font-size: 32px;
  color: #2e7d32;
  margin-bottom: 30px;
}

/* Информация */
.contact-info {
  margin-bottom: 40px;
}

.contact-info p {
  font-size: 18px;
  margin: 10px 0;
  color: #555;
}

.contact-info a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Форма */
.contact-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  padding: 16px;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #1b5e20;
}

/* Блок "О проекте" */
.about {
  padding: 140px 20px 60px; 
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.6;
  color: #333;
}

.about h1 {
  font-size: 36px;
  color: #2e7d32;
  text-align: center;
  margin-bottom: 30px;
}

.about h2 {
  font-size: 26px;
  color: #2e7d32;
  margin-top: 40px;
  margin-bottom: 15px;
}

.about p {
  font-size: 18px;
  margin-bottom: 20px;
}

.about ol {
  margin: 20px 0;
  padding-left: 20px;
}

.about ul {
  margin: 20px 0;
  padding-left: 20px;
}

.about li {
  margin-bottom: 10px;
  font-size: 17px;
}

/* Статистика */
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
}

.stat {
  background: #c8e6c9;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  flex: 1;
}

.stat h3 {
  font-size: 32px;
  color: #2e7d32;
  margin: 0;
}

.stat p {
  font-size: 16px;
  color: #555;
  margin: 5px 0 0;
}

/* Отзывы */
.about blockquote {
  background: #f5f5f5;
  border-left: 5px solid #2e7d32;
  padding: 15px 20px;
  margin: 20px auto;
  font-style: italic;
  max-width: 700px;
}

/* CTA кнопки */
.about .cta {
  text-align: center;
  margin-top: 40px;
}

.about .cta-btn {
  display: inline-block;
  padding: 14px 28px;
  margin: 10px;
  background-color: #2e7d32;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
}

.about .cta-btn:hover {
  background-color: #1b5e20;
}

.about .cta-btn.secondary {
  background-color: #388e3c;
}

.about .cta-btn.secondary:hover {
  background-color: #2e7d32;
}

/* Блок добавления объявления */
.add-form {
  max-width: 600px;
  margin: 150px auto;
  padding: 20px;
  background: #f5f5f5;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.add-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.add-form input,
.add-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.add-form textarea {
  min-height: 120px;
  resize: vertical;
}

.add-form button {
  padding: 14px;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.add-form button:hover {
  background: #1b5e20;
}

.ads {
  padding-top: 120px;
  max-width: 900px;
  margin: 40px auto;
  /* padding: 20px; */
}

.ads h2 {
  font-size: 28px;
  color: #2e7d32;
  text-align: center;
  margin-bottom: 30px;
}
/* Список объявлений */
.ads-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 20px;
  list-style: none;
}


.ad-card {
  background: #e8f5e9; 
  border-radius: 14px;
  padding: 15px;
  border: 1px solid #c8e6c9; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 20px;
}



.ad-card strong {
  font-size: 18px;
  color: #2e7d32; 
  display: block;
  margin-bottom: 8px;
}

.ad-card p {
  margin: 4px 0;
  color: #444;
}

.ad-card em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  color: #33691e;
  font-weight: bold;
}


.ad-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.ad-card p {
  margin: 4px 0;
  font-size: 14px;
  color: #333;
}

.ad-card a {
  color: #00695c;
  text-decoration: none;
}

.ad-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  text-decoration: underline;
}

.ads-list h2 {
  font-size: 26px;
  color: #2e7d32;
  margin-bottom: 20px;
  text-align: center; 
}

.ads-list ul {
  list-style: none;
  padding: 0;
}

.ads-list li {
  background: #c8e6c9;
  margin: 10px 0;
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ads-list li strong {
  font-size: 18px;
  color: #1b5e20;
}

.ads-list li em {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
}

.ads-list li img {
  display: block;
  margin-top: 12px;
  max-width: 220px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
body.add-page .ads-list {
  max-width: 900px;
  margin: 40px auto;
}
body.add-page #ads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 20px;
  max-width: 900px;
  margin: 40px auto; 
}

body.add-page .ad-card {
  background: #e8f5e9;
  border-radius: 14px;
  padding: 15px;
  border: 1px solid #c8e6c9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}



.delete-btn {
  margin-top: 10px;
  padding: 8px 12px;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
  width: auto;
  display: inline-block;
  align-self: flex-start;
}


.delete-btn:hover {
  background: #b71c1c;
}

/* profile */

.profile-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

.profile-card {
  display: flex;
  align-items: center;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  margin-bottom: 30px;
}

.profile-page {
  padding-top: 140px;
}


.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
}

.profile-main h2 {
  margin: 0;
  font-size: 24px;
  color: #2e7d32;
}

.profile-status {
  color: #388e3c;
  font-weight: bold;
}

.profile-date {
  color: #555;
}

.profile-stats {
  margin-left: auto;
  text-align: center;
}

.stat-box strong {
  font-size: 26px;
  color: #2e7d32;
}

.stat-box span {
  color: #555;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  border: 1px solid #c8e6c9;
  background: #f1f8f2;
  border-radius: 8px;
  cursor: pointer;
}

.tab.active {
  background: #2e7d32;
  color: white;
  border-color: #2e7d32;
}

/* settings */
.settings-page {
  padding-top: 140px;
  min-height: calc(100vh - 200px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.settings-container {
  width: 100%;
  max-width: 500px;
  padding: 20px;
}

.settings-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border: 1px solid #e0e0e0;
  text-align: center;
}

/* AVATAR */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
  border: 3px solid #2e7d32;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PREVIEW BELOW INPUT */
#avatarPreview {
  width: 120px;
  height: 100px;
  border-radius: 50%;
  margin: 15px auto 0;
  display: block;
  object-fit: cover;
  border: 3px solid #2e7d32;
}

/* TITLE */
.settings-card h2 {
  margin-bottom: 20px;
  color: #2e7d32;
  font-size: 24px;
}

/* LABELS */
.settings-card label {
  font-weight: 600;
  color: #2e7d32;
  margin-top: 18px;
  display: block;
  font-size: 15px;
  text-align: left;
}

/* INPUTS */
.settings-card input[type="text"],
.settings-card input[type="email"],
.settings-card input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #bdbdbd;
  font-size: 15px;
  transition: 0.2s;
}

.settings-card input:focus {
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46,125,50,0.2);
  outline: none;
}

/* BUTTONS — одинаковые */
.save-btn,
.edit-btn {
  display: block;
  width: 180px;
  padding: 10px 0;
  margin: 20px auto 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: 0.2s;
}

/* SAVE */
.save-btn {
  background: #2e7d32;
  color: white;
  border: none;
}

.save-btn:hover {
  background: #1b5e20;
}

/* EXIT */
.edit-btn {
  background: #4caf50;
  color: white;
  text-decoration: none;
}

.edit-btn:hover {
  background: #388e3c;
}


/* login */

.login-page {
  padding-top: 160px; 
  display: flex;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 380px;
  padding: 20px;
}

.login-card {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-card label {
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 5px;
}

.login-card input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}

.save-btn {
  margin-top: 10px;
  padding: 12px;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

.logout-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #2e7d32;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: inline-block;
}
.logout-btn:hover {
  background: #1b5e20;
}
.logout-wrapper {
    margin-bottom: 30px;
}

/* closed */

.more-btn {
    padding: 6px 12px;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.more-btn:hover {
    background: #2e7d32;
}

.details {
    margin-top: 10px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 8px;
    position: relative;
}

.close-details {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* modal */

/* затемнение */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding-top: 130px; 
    z-index: 999;
}

/* окно */
.modal-window {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.25s ease;
}

/* картинка */
.modal-img-wrapper {
    width: 100%;
    max-height: 60vh; 
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-img-wrapper img {
    width: 100%;        
    height: auto;       
    max-height: 50vh;   
    object-fit: contain;
}


/* кнопка закрытия */
.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #444;
}

/* анимация */
@keyframes fadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* текстовая часть */
.modal-body {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-title {
    font-size: 22px;
    margin: 0;
}

.modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.meta-item {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 999px;
}

.modal-story {
    font-size: 14px;
    color: #444;
    font-style: italic;
}

.modal-description {
    font-size: 15px;
    color: #222;
}

/* кнопка Telegram */
.contact-btn {
    margin-top: 10px;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #229ED9;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: 0.2s ease;
}

.contact-btn:hover {
    background: #1b86b7;
}

/* аfilters */

.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filters select,
.filter-photo {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
}

/* badges */

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
  margin-bottom: 6px;
}

.badge.reserved {
  background: #e6a100; /* жёлтый */
}

.badge.pending {
  background: #0077cc; /* синий */
}
.phone-block {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* phone */
/* === PROFILE MODAL === */

.profile-wrapper {
  max-width: 900px;
  margin: 20px auto;
  padding: 10px;
}

.profile-card {
  display: flex;
  align-items: center;
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  margin-bottom: 25px;
}

.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
  border: 3px solid #2e7d32;
}

.profile-main h2 {
  margin: 0;
  font-size: 24px;
  color: #2e7d32;
}

.profile-status {
  color: #388e3c;
  font-weight: bold;
}

.profile-date {
  color: #555;
}

/* === ОБЪЯВЛЕНИЯ АВТОРА === */

.profile-ads {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-ads .ad-card.small {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
  align-items: center;
  cursor: pointer;
  transition: 0.2s;
}

.profile-ads .ad-card.small:hover {
  background: #f1f8f2;
  border-color: #c8e6c9;
}

.profile-ads .ad-card.small img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.profile-ads .ad-card.small strong {
  font-size: 16px;
  margin-bottom: 4px;
  display: block;
}

.profile-ads .ad-card.small p {
  margin: 0;
  color: #555;
}

.author-link {
  color: #229ED9;
  cursor: pointer;
  font-weight: 600;
}

.author-link:hover {
  text-decoration: underline;
}

.add-form select {
  width: 100%;
}

#profileAvatar.no-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #c8e6c9;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #2e7d32;
  font-weight: 700;
  font-size: 14px;
}

/* чтобы текст был виден вместо пустой картинки */
#profileAvatar.no-photo::after {
  content: "нет фото";
}
