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

:root {
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-accent: #c41e3a;
  --color-accent-light: #e53e3e;
  --color-text: #1a202c;
  --color-text-muted: #4a5568;
  --color-bg: #f7fafc;
  --color-bg-alt: #edf2f7;
  --color-white: #ffffff;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}

.header--transparent {
  background: transparent;
  box-shadow: none;
}

.header.scrolled {
  background: var(--color-white);
  box-shadow: var(--shadow);
}

.header.scrolled .logo,
.header.scrolled .nav-list a {
  color: var(--color-primary);
}

.header.scrolled .nav-list a:hover {
  color: var(--color-primary-light);
}

.header.scrolled .nav-toggle span {
  background: var(--color-text);
}


.header--transparent .logo,
.header--transparent .nav-list a {
  color: var(--color-white);
}

.header--transparent .nav-toggle span {
  background: var(--color-white);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  text-decoration: none;
}

.logo-img {
  width: 36px;
  height: 42px;
  object-fit: contain;
}


.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

.hero {
  position: relative;
  color: var(--color-white);
  overflow: hidden;
}

.hero--fullscreen {
  height: 100vh;
  max-height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('фон.webp') center / cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 39, 68, 0.7) 0%, rgba(26, 54, 93, 0.6) 50%, rgba(44, 82, 130, 0.5) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 0 2rem;
}

.hero-photo {
  flex-shrink: 0;
  align-self: flex-end;
}


.photo-placeholder {
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.photo-placeholder--hero {
  width: 280px;
  height: 280px;
}

.hero-img {
  max-width: 320px;
  width: 100%;
  height: auto;
  display: block;
}

.img-placeholder {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.img-placeholder--tall {
  width: 100%;
  height: 420px;
  min-height: 320px;
}

.section-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.section-img--tall {
  height: 420px;
  min-height: 320px;
}

.img-placeholder--wide {
  width: 100%;
  height: 260px;
}

.img-placeholder--map {
  width: 100%;
  height: 280px;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 420px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(6px); }
}

.section {
  padding: 5rem 1.5rem;
}

.section .container {
  padding: 0;
}

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

.section--accent {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

#media.section {
  padding-bottom: 0.5rem;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.section-image-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.section-image {
  min-height: 400px;
}

.section-image .img-placeholder--tall {
  border-radius: 0;
}

.section-image-content {
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-bg);
}

.section-image-content h2 {
  margin-bottom: 1.5rem;
}

.section-image-content p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.section-image-content p:last-child {
  margin-bottom: 0;
}

.media-showcase {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.media-showcase-img .img-placeholder--wide,
.media-showcase-img .media-showcase-img-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.contact-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-map-img .img-placeholder--map,
.contact-map-img .contact-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card--image {
  padding: 0;
}

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

.card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-img .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.card-img .card-img-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.socials-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.socials-grid .social-card {
  width: 200px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--color-white);
  border: 1px solid rgba(26, 54, 93, 0.15);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.socials-grid .social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.socials-grid .qr-wrap {
  position: relative;
  display: inline-block;
  padding: 6px;
  background: rgba(26, 54, 93, 0.04);
  border: 1px solid rgba(26, 54, 93, 0.3);
  box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.socials-grid .social-qr {
  width: 96px;
  height: 96px;
  border-radius: 0;
  border: 0;
  background: transparent;
  display: block;
}

.socials-grid .qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: #fff url('Warsaw_logo.png') center/contain no-repeat;
  border-radius: 4px;
  opacity: 0.95;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.socials-grid .social-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.socials-grid .social-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(26, 54, 93, 0.08);
  border: 1px solid rgba(26, 54, 93, 0.35);
  color: var(--color-primary);
}

.socials-grid .social-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.socials-grid .social-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
}

.socials-grid .social-handle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-block {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.contact-block h4 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-block p {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-primary-light);
}

.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .section-image-block {
    grid-template-columns: 1fr;
  }

  .section-image {
    min-height: 280px;
  }

  .section-image-content {
    padding: 3rem 1.5rem;
  }

  .contact-with-image {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-list--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list.nav-list--open a {
    color: var(--color-text);
  }

  .hero--fullscreen {
    padding: 6rem 1rem 2rem;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    flex-direction: column;
    justify-content: center;
    flex: 1;
  }

  .hero-text {
    margin-top: 40rem;
  }

  .photo-placeholder--hero {
    width: 220px;
    height: 220px;
  }


  .hero-content {
    text-align: center;
  }

  .hero-desc {
    margin: 0 auto;
  }

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

  .socials-grid .social-card {
    width: 180px;
  }

  .socials-grid .social-qr {
    width: 88px;
    height: 88px;
  }
}
