/* ============================================================
   RAKORD.RU — Static Site Styles
   ============================================================ */

/* === FONTS === */
@font-face {
  font-family: 'Circe';
  src: url('https://fonts.tildacdn.com/get/?fonts=167&format=woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Circe';
  src: url('https://fonts.tildacdn.com/get/?fonts=168&format=woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Circe';
  src: url('https://fonts.tildacdn.com/get/?fonts=169&format=woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Circe', Arial, sans-serif; color: #333; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* === VARIABLES === */
:root {
  --nav-height: 72px;
  --black: #000;
  --white: #fff;
  --gray: #f5f5f5;
  --text: #333;
  --muted: #888;
  --navy: #07284a;
  --blue-pill: #2c3aa2;
}

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img {
  height: 46px;
  width: auto;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  color: #333;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.2s;
  position: relative;
}
.nav-links a:hover { opacity: 0.6; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.dropdown-arrow { font-size: 10px; transition: transform 0.2s; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  min-width: 220px;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 8px 0;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
  white-space: nowrap;
}
.dropdown-menu a:hover { color: #666; }

/* Nav right side */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-social a {
  display: flex;
  align-items: center;
  color: #333;
  transition: opacity 0.2s;
}
.nav-social a:hover { opacity: 0.6; }
.nav-social svg { width: 20px; height: 20px; }

/* CTA button */
.btn-cta {
  display: inline-block;
  border: 3px solid #000;
  border-radius: 10px;
  padding: 9px 18px;
  color: #000;
  font-family: 'Circe', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-cta:hover { background: #000; color: #fff; }

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.burger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: #111;
  z-index: 99;
  padding: 20px 0;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu li a {
  display: block;
  padding: 14px 24px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-submenu a {
  padding-left: 40px !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.75) !important;
}
.mobile-social {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
}
.mobile-social a {
  color: #fff;
  display: flex;
}
.mobile-social svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .btn-cta { display: none; }
  .nav-social { display: none; }
  .burger { display: flex; }
}

/* ============================================================
   HERO (main page)
   ============================================================ */
.hero {
  height: 100vh;
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://static.tildacdn.com/tild3332-6265-4864-a161-663137616561/3.jpg');
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.45));
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 0 20px;
  padding-top: var(--nav-height);
}
.hero-title {
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 10px;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title strong { font-weight: 700; }
.hero-subtitle {
  font-size: 20px;
  font-weight: 300;
  margin-bottom: 52px;
  opacity: 0.9;
}
.btn-hero {
  display: inline-block;
  border: 3px solid #fff;
  border-radius: 5px;
  padding: 16px 44px;
  color: #fff;
  font-family: 'Circe', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: background 0.2s, color 0.2s;
}
.btn-hero:hover { background: #fff; color: #000; }

.hero-arrow {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  animation: bounce 2s infinite;
}
.hero-arrow svg { width: 28px; height: 28px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

@media (max-width: 768px) {
  .hero-title { font-size: 32px; letter-spacing: 5px; }
  .hero-subtitle { font-size: 16px; }
  .btn-hero { padding: 12px 28px; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  padding: 100px 0;
  background: #fff;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  border-radius: 20px;
}
.about-name {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}
.about-role {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 28px;
}
.about-divider {
  width: 40px;
  height: 2px;
  background: #aaa;
  margin-bottom: 28px;
}
.about-text p {
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 14px;
}
.about-text ul {
  list-style: none;
  margin: 8px 0 14px 0;
}
.about-text ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}
.about-text ul li::before {
  content: '•';
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .about { padding: 60px 0; }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-name { font-size: 30px; }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  padding: 90px 0;
  background: var(--gray);
}
.section-title {
  font-size: 42px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 70px;
  color: #333;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
}
.service-card { text-align: center; }
.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}
.service-icon img { width: 100%; height: 100%; }
.service-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111;
}
.service-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #555;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-title { font-size: 30px; margin-bottom: 40px; }
  .services { padding: 60px 0; }
}

/* ============================================================
   PORTFOLIO PILLS SECTION (main page)
   ============================================================ */
.portfolio-pills-section {
  padding: 100px 0 150px;
  background: linear-gradient(0turn, #07284a 0%, #000 100%);
  text-align: center;
}
.portfolio-pills-section .section-title { color: #fff; }
.portfolio-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.portfolio-pill {
  display: inline-block;
  background: var(--blue-pill);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 14px 28px;
  font-size: 26px;
  font-weight: 300;
  transition: background 0.2s, color 0.2s;
}
.portfolio-pill:hover {
  background: #f5f5f5;
  color: #000;
}

@media (max-width: 768px) {
  .portfolio-pill { font-size: 18px; padding: 10px 20px; }
  .portfolio-pills-section { padding: 60px 0 100px; }
}

/* ============================================================
   CONTACTS SECTION
   ============================================================ */
.contacts {
  padding: 100px 0;
  background: var(--gray);
  text-align: center;
}
.contacts-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 30px;
}
.contacts-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contacts-name {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 18px;
  color: #111;
}
.contacts-info {
  font-size: 18px;
  line-height: 2;
  color: #444;
}
.contacts-info a { color: #444; }
.contacts-info a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .contacts { padding: 60px 0; }
  .contacts-name { font-size: 26px; }
  .contacts-info { font-size: 16px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #000;
  color: #fff;
  padding: 28px 20px;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}
.footer-inner a {
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.footer-inner a:hover {
  color: #fff;
  border-color: #fff;
}

/* ============================================================
   SUB-PAGE HERO
   ============================================================ */
.sub-hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sub-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #000;
}
.sub-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
}
.sub-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: calc(var(--nav-height) + 40px) 20px 60px;
}
.sub-hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}
.sub-hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .sub-hero-title { font-size: 30px; }
  .sub-hero-subtitle { font-size: 15px; }
}

/* ============================================================
   HOW WE WORK SECTION (sub-pages)
   ============================================================ */
.how-section {
  padding: 80px 0;
  background: var(--gray);
}
.how-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.how-step { text-align: center; padding: 10px; }
.how-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
}
.how-icon img { width: 100%; height: 100%; }
.how-text {
  font-size: 15px;
  color: #555;
  line-height: 1.65;
}
.how-arrow {
  text-align: center;
  font-size: 28px;
  color: #666;
  line-height: 1;
}

@media (max-width: 700px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .how-arrow { transform: rotate(90deg); }
}

/* ============================================================
   VIDEO GRID (portfolio sub-pages)
   ============================================================ */
.video-section { padding: 80px 0; background: #fff; }
.video-section .section-title { text-align: left; margin-bottom: 40px; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 36px;
}
.video-card {}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-title {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; gap: 28px; }
  .video-section { padding: 50px 0; }
  .video-title { font-size: 16px; }
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */
.privacy-content {
  padding: 60px 0 100px;
  max-width: 800px;
}
.privacy-content h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 32px;
}
.privacy-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}
.privacy-content p {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 12px;
}

/* ============================================================
   FEATURES SECTION (otchet page — «К нам обращаются»)
   ============================================================ */
.features-section {
  padding: 80px 0;
  background: #f9f9f9;
  text-align: center;
}
.features-lead {
  font-size: 20px;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 60px;
  color: #333;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
  text-align: left;
}
.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #111;
}
.feature-card p {
  font-size: 16px;
  line-height: 1.65;
  color: #555;
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; gap: 28px; }
  .features-lead { font-size: 17px; margin-bottom: 40px; }
  .features-section { padding: 50px 0; }
}

/* ============================================================
   PAGE PADDING TOP (below fixed header)
   ============================================================ */
.page-content { padding-top: var(--nav-height); }
