:root {
  --primary: #2d6a4f;
  --secondary: #1b4332;
  --accent: #74c69d;
  --text: #2d3e2d;
  --text-light: #f8f9fa;
  --light-bg: #f8f9fa;
  --dark-bg: #081c15;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --transition: 0.3s ease;
  --container-max: 1200px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--light-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  min-height: 44px;
}

.btn:hover,
.btn:focus-visible {
  background: var(--primary);
  color: #fff;
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--secondary);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--dark-bg);
  color: var(--text-light);
}

.section__title {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--secondary);
}

.section__title--light {
  color: var(--text-light);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 48px;
  opacity: 0.85;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform var(--transition);
}

.header--hidden {
  transform: translateY(-100%);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

.header__toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__toggle--active span:nth-child(2) {
  opacity: 0;
}

.header__toggle--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.header__menu {
  display: flex;
  gap: 8px;
}

.header__link {
  display: block;
  padding: 8px 16px;
  font-weight: 500;
  transition: color var(--transition);
  border-radius: 4px;
  min-height: 44px;
  line-height: 28px;
}

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

.header__link--active {
  color: var(--primary);
  background: rgba(45, 106, 79, 0.08);
}

.header__lang {
  display: flex;
  gap: 2px;
  margin-left: 16px;
  align-items: center;
}

.header__lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
  min-width: 32px;
  min-height: 32px;
}

.header__lang-btn:hover {
  transform: scale(1.15);
}

.header__lang-btn--active {
  background: rgba(45, 106, 79, 0.12);
  box-shadow: 0 0 0 2px var(--primary);
  border-radius: 4px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--secondary) 40%, var(--primary) 100%);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(116, 198, 157, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(80vw, 75vh);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: clamp(24px, 4vw, 60px);
  text-align: center;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #fff;
}

.hero__subtitle {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  max-width: 480px;
  margin: 0 auto 24px;
  color: #fff;
  opacity: 0.9;
  line-height: 1.6;
}

.hero__btn {
  border-color: #fff;
  color: #fff;
}

.hero__btn:hover,
.hero__btn:focus-visible {
  background: #fff;
  color: var(--secondary);
}

/* About */
.about__rows {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about__row {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about__row p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.about__image-img {
  width: 100%;
  height: 280px;
  border-radius: 12px;
  object-fit: cover;
}

/* Services */
.services__grid {
  display: grid;
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 32px 24px;
  transition: transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.service-card__icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #fff;
}

.service-card__text {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Sferas */
.sferas__grid {
  display: grid;
  gap: 32px;
}

.sfera-card {
  display: grid;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.sfera-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sfera-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.sfera-card__body {
  padding: 24px;
}

.sfera-card__title {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--secondary);
}

.sfera-card__detail {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sfera-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* Contact */
.contact__grid {
  display: grid;
  gap: 40px;
}

.contact__info p {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.contact__info a {
  color: var(--accent);
}

.contact__info a:hover {
  text-decoration: underline;
}

.contact__note {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-light);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  transition: border-color var(--transition), background var(--transition);
  min-height: 44px;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.form-input--textarea {
  resize: vertical;
  min-height: 100px;
}

.form-message {
  font-size: 0.95rem;
  padding: 8px 0;
  min-height: 24px;
}

.form-message--success {
  color: var(--accent);
}

.form-message--error {
  color: #e76f6f;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer__copy {
  font-size: 0.9rem;
  opacity: 0.6;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: border-color var(--transition), background var(--transition);
  color: var(--text-light);
}

.footer__social-link:hover {
  border-color: var(--accent);
  background: rgba(116, 198, 157, 0.1);
}

/* Scroll top */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-2px);
  background: var(--secondary);
}

.fullscreen-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.fullscreen-overlay--open {
  display: flex;
}

.fullscreen-overlay__img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 4px;
}

.fullscreen-overlay__close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.fullscreen-overlay__close:hover {
  opacity: 1;
}
