@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;
  --bg-body: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #334155;
  --txt-body: #e2e8f0;
  --txt-muted: #94a3b8;
  --border: #475569;
  --shadow: rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 70px;
}

.light {
  --bg-body: #f8fafc;
  --bg-alt: #ffffff;
  --bg-card: #f1f5f9;
  --txt-body: #1e293b;
  --txt-muted: #64748b;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.08);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-body);
  color: var(--txt-body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--txt-muted);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.menu-list {
  display: flex;
  gap: 32px;
}

.list-item.active .list-link {
  color: var(--primary);
}

.list-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.list-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.list-link:hover::after {
  width: 100%;
}

.list-link:hover {
  color: var(--primary);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-theme,
.btn-open,
.btn-close {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--txt-body);
  background: var(--bg-card);
  transition: var(--transition);
}

.btn-theme:hover,
.btn-open:hover,
.btn-close:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.btn-open {
  display: none;
}

.btn-theme i,
.btn-open i {
  pointer-events: none;
}

.img-wht {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  background: linear-gradient(135deg, #25d366, #128c7e);
  transition: var(--transition);
}

.img-wht:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.img-wht i {
  pointer-events: none;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 25px;
    transition: var(--transition);
    border-right: 1px solid var(--border);
  }

  .nav-menu.show-menu {
    left: 0;
  }

  .menu-list {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .list-item {
    border-bottom: 1px solid var(--border);
  }

  .list-link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }

  .btn-open {
    display: flex;
  }

  .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
  }

  .actions {
    gap: 8px;
  }
}

.hero {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-body) 100%);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--txt-body);
}

.hero-title span {
  color: var(--primary);
}

.hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--txt-muted);
  margin-bottom: 30px;
}

.hero-description span {
  color: var(--primary);
  font-weight: 600;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--txt-body);
}

.section-title::before {
  content: '// ';
  color: var(--primary);
}

.search-section {
  max-width: 600px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.search-box {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 16px 24px;
  padding-left: 50px;
  font-size: 1rem;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--txt-body);
  transition: var(--transition);
}

.search-input::placeholder {
  color: var(--txt-muted);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--txt-muted);
  font-size: 1.2rem;
}

.search-message {
  text-align: center;
  padding: 16px;
  margin-top: 16px;
  color: var(--txt-muted);
  font-size: 0.95rem;
  display: none;
}

.search-message.show {
  display: block;
}

.services {
  padding: 40px 0 80px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.services-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.services-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--shadow);
  border-color: var(--primary);
}

.services-card:hover::before {
  opacity: 1;
}

.services-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  text-align: center;
}

.services-img {
  width: 70px;
  height: 70px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.services-info {
  width: 100%;
}

.services-info .h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--txt-body);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) {
  .services-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .services-card a {
    padding: 15px 10px;
  }

  .services-img {
    width: 55px;
    height: 55px;
  }

  .services-info .h3 {
    font-size: 0.75rem;
  }
}

.contact {
  padding: 60px 0;
  background: var(--bg-alt);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.form {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 35px 30px;
  border: 1px solid var(--border);
}

.form__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--txt-body);
}

.form__container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__input {
  width: 100%;
  padding: 14px 18px;
  font-size: 0.95rem;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--txt-body);
  transition: var(--transition);
}

.form__input::placeholder {
  color: var(--txt-muted);
}

.form__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form__input--message {
  min-height: 120px;
  resize: vertical;
}

.form__cta {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.form__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.form__cta:active {
  transform: translateY(0);
}

.contact-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-image img {
  width: 200px;
  height: auto;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .form {
    padding: 25px 20px;
  }

  .contact-image img {
    width: 150px;
  }
}

.footer {
  padding: 25px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: var(--txt-muted);
}

.footer h3 {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--txt-muted);
}

.light .btn-theme:hover,
.light .btn-open:hover,
.light .btn-close:hover {
  background: var(--primary-dark);
}
