/* css/style.css */
:root {
  --bg: #f6fbfb;
  --card: #ffffff;
  --accent: #0a8a7b;
  --accent-2: #0b6b9f;
  --muted: #dadddf;
  --shadow: 0 8px 30px rgba(11,22,30,0.06);
  --radius: 12px;
  --maxw: 1150px;
  --glass: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(250,255,255,0.7));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #0e1720;
  background: linear-gradient(180deg, #f6fbfb, #ffffff);
  -webkit-font-smoothing: antialiased;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
}

/* Header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  color: var(--accent-2);
  text-decoration: none;
  font-size: 1.4rem;
}

.top-nav a {
  margin-left: 18px;
  color: #0e1720;
  text-decoration: none;
}

.header-contact .phone {
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a73e8, #00796b);
  color: white;
  text-align: center;
  padding: 40px 0;
  border-radius: 0 0 40px 40px;
}

.hero .wrap {
  display: flex;
  gap: 28px;
  align-items: stretch;
}

.hero-left {
  flex: 1;
}

.hero-right {
  width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

h1 {
  font-size: 2rem;
  margin: 0 0 8px;
}

h1, h2, h3 {
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 18px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #00796b, #0b6b9f);
  color: #fff;
  box-shadow: 0 4px 15px rgba(11, 107, 159, 0.25);
  transition: all 0.3s ease;
}

.btn.outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid rgba(10,138,123,0.12);
}

.btn:hover {
  background: #009688;
}

.btn.primary:hover {
  background: linear-gradient(135deg, #009688, #0288d1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 121, 107, 0.35);
}

.btn.small {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.btn.danger {
  background: #ff5a5f;
  color: #fff;
}

/* Cards & Sections */
.section {
  margin-top: 60px;
  padding: 40px 0;
}

.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  transform: translateY(0);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(10,138,123,0.08), rgba(11,107,159,0.05));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.card:hover::before {
  opacity: 1;
}

.card h3, .card p, .card ul {
  position: relative;
  z-index: 1;
}

.contact-card {
  margin-top: 10px;
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: none;
}

.contact-card:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.accent {
  color: var(--accent);
  font-weight: 700;
  margin-top: 8px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* City List */
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin-top: 12px;
}

.city-list li a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg,#fff,#f3f7f7);
  text-decoration: none;
  color: #0e1720;
  border: 1px solid rgba(10,130,120,0.06);
  transition: all 0.3s ease;
}

.city-list li a:hover {
  color: #00796b;
  background: linear-gradient(135deg, #e0f7f5, #b2dfdb);
  box-shadow: 0 4px 12px rgba(0,121,107,0.3);
  transform: translateY(-2px);
}

/* Page Content */
main.page {
  flex: 1 0 auto;
}

.page .wrap {
  padding-top: 18px;
  padding-bottom: 60px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
}

.bullet {
  padding-left: 20px;
}

.aside .card {
  position: sticky;
  top: 20px;
}

/* Forms */
.contact-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.contact-section h2,
.contact-section h3 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--accent-2);
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-section h2::after,
.contact-section h3::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: #00796b;
  box-shadow: 0 0 0 2px rgba(0,121,107,0.2);
  outline: none;
}

#customCityLabel {
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(-5px);
}

#customCityLabel[style*="display: block"] {
  opacity: 1;
  transform: translateY(0);
}

/* Admin */
.admin .wrap {
  padding-top: 24px;
}

.small {
  max-width: 560px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.admin-form label {
  display: block;
  margin-bottom: 10px;
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6eef0;
}

.form-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.form-message {
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.form-message.success {
  color: #0a8a7b;
  opacity: 1;
}

.form-message.error {
  color: #d84343;
  opacity: 1;
}

.form-message.fade-out {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid #eef3f3;
  text-align: left;
  font-size: 0.95rem;
}

.alert {
  background: #fff6f6;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ffdddd;
  color: #6a1b1b;
  margin-bottom: 12px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6,10,12,0.4);
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  width: 640px;
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

/* Cooperation Section */
.cooperation-section {
  background: linear-gradient(135deg, #f9fefe, #f3fbfa);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 50px 0;
  animation: fadeIn 1s ease forwards;
}

.cooperation-section h2 {
  color: var(--accent-2);
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.cooperation-section p {
  max-width: 900px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  font-size: 1.05rem;
  color: #333;
}

.cooperation-section strong {
  color: var(--accent);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  flex-shrink: 0;
  background: linear-gradient(135deg, #1a73e8, #00796b);
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-top: 60px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

footer a {
  color: #dff6f2;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

footer .brand {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

footer small {
  display: block;
  color: #b8dbe4;
  font-size: 0.9rem;
  margin-top: 6px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap {
    flex-direction: column;
  }
  
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .admin-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-right {
    width: 100%;
    align-items: flex-start;
  }
}