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

/* Сброс стилей */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #f4f5f7;
  color: #1f2937;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

code {
  font-family: 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  background: #f1f5f9;
  padding: 0.125rem 0.375rem;
  border-radius: 6px;
}

:root {
  --color-primary: #2c5530;
  --color-primary-dark: #1e3a22;
  --color-surface: #ffffff;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --radius-md: 12px;
  --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.page {
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f9fb 100%);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(6px);
}

.header__logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  color: #111827;
  transition: all 0.3s ease;
}

.nav__link:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
}

.nav__link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

.nav__item--active .nav__link {
  color: var(--color-primary);
  background: rgba(44, 85, 48, 0.08);
  border: 1px solid rgba(44, 85, 48, 0.12);
}

.main {
  width: min(1140px, 100% - 40px);
  margin: 0 auto;
  padding: 24px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 32px;
  background: linear-gradient(135deg, #f8fbf9 0%, #eef2f7 100%);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(44, 85, 48, 0.1);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.hero__title {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  letter-spacing: -0.02em;
}

.hero__text {
  color: var(--color-muted);
  max-width: 620px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.hero__panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero__badge {
  width: fit-content;
  padding: 10px 14px;
  background: #111827;
  color: #f9fafb;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.hero__card {
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.hero__card-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.hero__card-text {
  color: var(--color-muted);
}

.section {
  padding: 20px 12px 0;
}

.section--light {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
}

.section__header {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.section__eyebrow {
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section__title {
  font-size: 1.6rem;
  letter-spacing: -0.01em;
}

.section__description {
  color: var(--color-muted);
  max-width: 720px;
}

.section__content {
  display: grid;
  gap: 16px;
}

.section__content--grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section__content--wide {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.section__content--split {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 20px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card--featured {
  border-color: rgba(44, 85, 48, 0.18);
  background: linear-gradient(180deg, rgba(44, 85, 48, 0.04) 0%, #ffffff 100%);
}

.card--gallery {
  min-height: 160px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.card__title {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card__text {
  color: var(--color-muted);
}

.interactive-card {
  cursor: pointer;
}

.interactive-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.interactive-card:active {
  transform: translateY(-2px);
}

.section-highlight {
  transition: all 0.3s ease;
}

.section-highlight:hover {
  border-left: 4px solid var(--color-primary);
  padding-left: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #e5e7eb;
  color: #111827;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #dfe3e8;
}

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

.button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.button:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
  transform: none;
}

.button--primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.button--primary:hover {
  background: var(--color-primary-dark);
}

.button--ghost {
  background: #ffffff;
  color: #111827;
  border-color: #d1d5db;
}

.button--ghost:hover {
  background: #f3f4f6;
}

.button--ghost:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form__field {
  display: grid;
  gap: 6px;
}

.form__label {
  font-weight: 600;
  color: #111827;
}

.form__input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(44, 85, 48, 0.15);
  background: #ffffff;
}

.form__input:disabled {
  background: #f3f4f6;
  cursor: not-allowed;
}

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

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.contact-card__list {
  list-style: disc;
  padding-left: 18px;
  color: var(--color-muted);
  display: grid;
  gap: 6px;
}

.footer {
  width: min(1140px, 100% - 40px);
  margin: 40px auto 28px;
  padding: 16px 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e5e7eb;
  color: var(--color-muted);
}

.footer__link {
  color: var(--color-primary);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-primary-dark);
}

/* Плавное появление элементов */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .header {
    padding: 14px 18px;
  }

  .nav__list {
    gap: 10px;
  }

  .hero,
  .section--light {
    padding: 22px 16px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
