/* Алабушев, Сидоров и партнеры — графический дизайн */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Manrope:wght@400;500;600&display=swap');

:root {
  --color-text: #1a1814;
  --color-text-soft: #4a4540;
  --color-bg: #faf9f7;
  --color-bg-card: #fff;
  --color-accent: #2c4f6e;
  --color-accent-hover: #1e3a52;
  --color-gold: #a67c52;
  --color-border: #e8e4df;
  --color-link: #2c4f6e;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --max-width: 800px;
  --space: 1.5rem;
  --space-lg: 3.5rem;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(26, 24, 20, 0.06);
  --shadow-hover: 0 4px 20px rgba(26, 24, 20, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* Header */
.header {
  padding: var(--space) 0;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-accent);
}

/* Hero */
.hero {
  position: relative;
  padding: var(--space-lg) 0;
  text-align: center;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img,
.hero-bg svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-bg svg {
  object-fit: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 24, 20, 0.5) 0%, rgba(26, 24, 20, 0.65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  margin: 0 0 0.5em;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-tagline {
  margin: 0 0 var(--space);
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 32em;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero .btn-primary {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.btn {
  display: inline-block;
  padding: 0.75em 1.75em;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  color: #fff;
  background: var(--color-accent);
  border: none;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

/* Sections */
.section {
  padding: var(--space-lg) 0;
}

.section:nth-child(even) {
  background: var(--color-bg-card);
}

.section-title {
  font-family: var(--font-heading);
  margin: 0 0 var(--space);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

/* Benefits list */
.benefits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.benefits-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-soft);
}

.benefits-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* How we work (steps) */
.how-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-soft);
}

.how-steps li {
  margin-bottom: 0.75rem;
}

.how-steps li strong {
  color: var(--color-text);
}

/* Service highlight (family law) */
.service-highlight {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
  align-items: center;
  margin-bottom: var(--space);
  background: var(--color-bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.service-highlight-img {
  flex: 0 0 280px;
  min-height: 180px;
}

.service-highlight-img img,
.service-highlight-img svg {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.service-highlight-img svg {
  object-fit: none;
}

.service-highlight-text {
  flex: 1 1 280px;
  padding: var(--space);
  border-left: 4px solid var(--color-accent);
}

@media (max-width: 640px) {
  .service-highlight {
    flex-direction: column;
  }

  .service-highlight-img {
    flex: 0 0 auto;
    width: 100%;
    min-height: 200px;
  }

  .service-highlight-text {
    border-left: none;
    border-top: 4px solid var(--color-accent);
  }
}

.service-highlight-title {
  font-family: var(--font-heading);
  margin: 0 0 0.4em;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
}

.service-highlight p {
  margin: 0 0 0.75em;
  color: var(--color-text-soft);
}

.link-more {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Services grid */
.services-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.services-grid li {
  padding: 0.6em 0;
  padding-left: 1rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

.services-grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* Pricing */
.section-pricing {
  background: var(--color-bg);
}

.section-lead {
  margin: 0 0 var(--space);
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--color-bg-card);
}

.pricing-table th,
.pricing-table td {
  padding: 0.85em 1.25em;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.pricing-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  background: var(--color-accent);
  color: #fff;
}

.pricing-table th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table td:last-child {
  white-space: nowrap;
  font-weight: 500;
  color: var(--color-accent);
}

/* About / Principles */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-lg);
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space);
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img,
.about-img svg {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.about-img svg {
  object-fit: none;
}

.about-content .section-title::after {
  display: block;
}

@media (max-width: 700px) {
  .about-wrap {
    grid-template-columns: 1fr;
  }

  .about-img {
    max-height: 220px;
  }

  .about-img img,
  .about-img svg {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }

  .about-img svg {
    object-fit: none;
  }
}

.section-about p {
  color: var(--color-text-soft);
  margin-bottom: var(--space);
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 0.5em 0 0.5em 1.75em;
  position: relative;
  color: var(--color-text-soft);
}

.principles li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 600;
}

/* Contacts */
.section-contacts {
  position: relative;
}

.contacts-section-bg {
  position: absolute;
  inset: 0;
}

.contacts-section-bg img,
.contacts-section-bg svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.contacts-section-bg svg {
  object-fit: none;
}

.contacts-section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 247, 0.88);
}

.section-contacts .container {
  position: relative;
  z-index: 1;
}

.section-contacts .section-title {
  color: var(--color-text);
}

.contacts-block {
  background: var(--color-bg-card);
  padding: var(--space);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: var(--space);
}

.contacts-block p {
  margin: 0.6em 0;
}

.contacts-block a {
  font-weight: 500;
}

.address {
  color: var(--color-text-soft);
  margin-top: 0.75em;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent-hover);
}

.section-contacts .btn {
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  padding: var(--space-lg) 0;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer .container {
  max-width: var(--max-width);
}

.footer-legal {
  margin: 0 0 0.35em;
  font-weight: 500;
  color: #fff;
}

.footer-note {
  margin: 0.5em 0 0;
  opacity: 0.9;
}

.footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: #fff;
}