/* === Variables === */
:root {
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-accent: #ed8936;
  --color-accent-hover: #dd6b20;
  --color-bg: #f7fafc;
  --color-bg-dark: #edf2f7;
  --color-text: #2d3748;
  --color-text-muted: #4a5568;
  --color-white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
  margin-bottom: 0.5em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  margin: 0;
  padding-left: 1.25em;
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
}

.logo:hover {
  color: var(--color-primary-light);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  color: var(--color-text);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-accent);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 3rem 0 4rem;
}

.hero__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero__info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
}

.hero__info-item {
  font-size: 0.95rem;
}

.hero__info-item a {
  color: var(--color-white);
}

.hero__info-item a:hover {
  color: var(--color-accent);
}

/* === Sections === */
.section {
  padding: 3rem 0;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

/* === Reasons === */
.reasons__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
  padding-left: 0;
}

.reasons__list li {
  position: relative;
  padding-left: 2rem;
}

.reasons__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* === Guarantees === */
.guarantees {
  background: var(--color-bg-dark);
}

.guarantees__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.guarantee-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.guarantee-card__icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.guarantees__text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: var(--color-text-muted);
}

/* === CTA === */
.cta {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}

.cta__title {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.cta__subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta__phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* === Page Hero === */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 2.5rem 0;
}

.page-hero__title {
  font-size: 1.75rem;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-hero__subtitle {
  opacity: 0.9;
  font-size: 1rem;
}

/* === Services === */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
}

.service-card__title {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.service-card ul {
  list-style: none;
  padding-left: 0;
}

.service-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.services__cta {
  margin-top: 2rem;
  text-align: center;
  padding: 1.5rem;
  background: var(--color-bg-dark);
  border-radius: var(--radius);
}

/* === Contacts === */
.contacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.contact-card__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.contacts__info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-bg-dark);
  border-radius: var(--radius);
}

.contacts__info h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Карта на странице контактов */
.contacts__map {
  margin-top: 2.5rem;
}

.contacts__map h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-dark);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
}

@media (max-width: 768px) {
  .map-container {
    height: 320px;
  }
}

.contacts__map-hint {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contacts__map-hint a {
  color: var(--color-primary);
}

/* === Footer === */
.footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* === Mobile === */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__info {
    flex-direction: column;
    gap: 1rem;
  }
}
