/* ============================
   Валентина Чекан — стили сайта
   Тёплая палитра: терракота + глубокий синий
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-bg: #fffcfc;
  --color-bg-alt: #f7e6da;
  --color-text: #0f1a25;
  --color-text-muted: #5c6b78;
  --color-accent: #fe0000;
  --color-accent-2: #05233a;
  --color-border: #edcab6;
  --color-card: #ffffff;
  --font-main: "Playfair Display", "Georgia", serif;
  --font-ui: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --max-width: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

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

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-main);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--color-text);
}

.logo img {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}

.logo span {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: 0.85em;
  display: block;
  font-family: var(--font-ui);
  margin-top: 2px;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 15px;
  letter-spacing: 0.01em;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--color-accent);
}

.nav-toggle {
  display: none;
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--color-border);
}

.hero h1 {
  font-family: var(--font-main);
  font-size: 44px;
  line-height: 1.25;
  margin: 0 0 20px;
  max-width: 760px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 0 32px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-tags span {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--color-accent-2);
  border-radius: 100px;
  color: var(--color-accent-2);
  background: var(--color-card);
  font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  border-radius: 4px;
  border: 1px solid var(--color-accent);
  cursor: pointer;
  transition: opacity 0.15s ease;
  font-family: var(--font-ui);
}

.btn:hover {
  opacity: 0.85;
}

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

/* ===== Sections ===== */
section {
  padding: 64px 0;
}

section.alt {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

h2.section-title {
  font-family: var(--font-main);
  font-size: 30px;
  margin: 0 0 12px;
}

.section-intro {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 0 40px;
}

/* ===== Cards / grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent-2);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}


.card h3 {
  margin-top: 0;
  font-size: 19px;
  font-family: var(--font-main);
  font-weight: 600;
  color: var(--color-accent-2);
}

.card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.card .meta {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card ul {
  color: var(--color-text-muted);
  padding-left: 20px;
  margin: 12px 0 0;
}

.card ul li {
  margin-bottom: 6px;
}

.card .btn-small {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 18px;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
}

.card .btn-small:hover {
  opacity: 0.85;
}

/* ===== Page header (inner pages) ===== */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  font-family: var(--font-main);
  font-size: 36px;
  margin: 0 0 14px;
}

.page-hero p {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0;
  font-size: 18px;
}

/* ===== Quick nav (services page) ===== */
.services-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.services-quicknav a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--color-accent-2);
  border-radius: 100px;
  color: var(--color-accent-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.services-quicknav a:hover {
  background: var(--color-accent-2);
  color: #fff;
}

section[id] {
  scroll-margin-top: 76px;
}

/* ===== Page header with photo ===== */
.page-hero .hero-flex,
.hero .hero-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

.page-hero .hero-flex .hero-text,
.hero .hero-flex .hero-text {
  flex: 1 1 420px;
}

.page-hero .hero-photo img,
.hero .hero-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

.hero .hero-photo {
  flex-shrink: 0;
}

.hero .hero-bio {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.hero .hero-bio p {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.hero .hero-bio p.bio-name {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* ===== Photo gallery ===== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--color-border);
}

@media (max-width: 760px) {
  .page-hero .hero-flex,
  .hero .hero-flex {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 24px;
  }

  .page-hero .hero-photo img,
  .hero .hero-photo img {
    width: 160px;
    height: 160px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Quote / testimonial ===== */
.quote-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  padding: 28px 32px;
  margin-bottom: 20px;
}

.quote-card p.quote-text {
  font-family: var(--font-main);
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--color-accent-2);
}

.quote-card .quote-author {
  font-size: 14px;
  color: var(--color-text-muted);
}

.placeholder-note {
  font-size: 14px;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  padding: 16px 20px;
  background: var(--color-bg-alt);
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 18px 24px;
  margin-bottom: 12px;
}

.faq-item summary {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-accent-2);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 20px;
  color: var(--color-accent);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  color: var(--color-text-muted);
  margin: 14px 0 0;
}

/* ===== Form ===== */
.form-wrap {
  max-width: 560px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-card);
  font-family: var(--font-ui);
  color: var(--color-text);
}

.form-row textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.form-row-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-row-checkbox input[type="checkbox"] {
  width: auto;
  margin: 3px 0 0;
  flex-shrink: 0;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 36px 0;
  margin-top: 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent);
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .hero h1 {
    font-size: 28px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 18px;
  }

  .logo span {
    display: none;
  }

  nav.main-nav ul {
    gap: 12px;
    flex-wrap: wrap;
  }

  nav.main-nav a {
    font-size: 14px;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  section {
    padding: 44px 0;
  }
}
