@import url("reset.css");
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --red:        #e5493a;
  --red-dark:   #c93328;
  --red-light:  rgba(229,73,58,0.08);
  --dark:       #0f1523;
  --dark2:      #1a2236;
  --dark3:      #242f45;
  --text:       #3d4558;
  --text-light: #7c8499;
  --bg:         #f4f6fa;
  --white:      #ffffff;
  --border:     #e2e6ef;
  --shadow:     0 2px 16px rgba(15,21,35,0.08);
  --shadow-md:  0 6px 30px rgba(15,21,35,0.12);
  --shadow-lg:  0 12px 50px rgba(15,21,35,0.16);
  --radius:     8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --container:  1240px;
  --tr:         all 0.28s ease;
}

/* ============================================================
   BASE
   ============================================================ */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-width: 320px;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: var(--red);
  transition: var(--tr);
}

a:hover {
  color: var(--red-dark);
}

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

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

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
  width: 100%;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1;
}

.site-logo:hover {
  color: var(--dark);
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.logo-text span { color: var(--red); }

/* Main nav */
nav.main-nav {
  flex: 1;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: var(--tr);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  color: var(--red);
  background: var(--red-light);
  text-decoration: none;
}

/* Dropdown arrow */
.arrow-icon {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.has-dropdown:hover .arrow-icon {
  transform: rotate(180deg);
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 300px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  list-style: none;
  z-index: 200;
}
.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}
.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text);
  border-radius: var(--radius);
  line-height: 1.4;
}

.dropdown-menu li a:hover {
  background: var(--bg);
  color: var(--red);
  text-decoration: none;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

/* Header contacts */
.header-contacts {
  flex-shrink: 0;
  text-align: right;
}

.header-phone {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.header-phone:hover {
  color: var(--red);
  text-decoration: none;
}

.header-email {
  display: block;
  font-size: 12.5px;
  color: var(--text-light);
}

.header-email:hover { color: var(--red); }

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
  background: none;
  border: none;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--tr);
}

body.mobile-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.mobile-open .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.mobile-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: url('../images/img-slider.jpg') center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(10,15,28,0.93) 0%,
    rgba(10,15,28,0.72) 55%,
    rgba(229,73,58,0.22) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 100px 24px 80px;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229,73,58,0.15);
  border: 1px solid rgba(229,73,58,0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #ff8577;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 2s infinite;
  flex-shrink: 0;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(1.5); }
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: var(--red);
  display: block;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin-bottom: 42px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--tr);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229,73,58,0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.09);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.28);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.17);
  border-color: rgba(255,255,255,0.55);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--red);
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.18;
  letter-spacing: -0.7px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 560px;
}

.section-header {
  margin-bottom: 52px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-desc {
  margin: 0 auto;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background: var(--white);
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

.about-feature {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  transition: var(--tr);
}

.about-feature:hover {
  border-color: rgba(229,73,58,0.2);
  background: rgba(229,73,58,0.03);
}

.feat-icon {
  width: 40px;
  height: 40px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feat-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-feature h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.about-feature p {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.6;
}

.about-visual {
  position: relative;
}

.about-placeholder {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--dark2) 0%, var(--dark3) 60%, #2a1825 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-placeholder::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(229,73,58,0.18);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-placeholder::after {
  content: '';
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(229,73,58,0.12);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-placeholder svg {
  width: 90px;
  height: 90px;
  position: relative;
  z-index: 1;
  stroke: rgba(255,255,255,0.22);
  fill: none;
  stroke-width: 1;
}

.about-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  position: absolute;
  inset: 0;
}

.stat-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

.stat-badge.stat-tl { top: 28px; left: -24px; }
.stat-badge.stat-br { bottom: 28px; right: -24px; }

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-num span { color: var(--red); }

.stat-lbl {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.3;
  max-width: 72px;
}

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories {
  background: var(--bg);
  padding: 96px 0;
}

.cat-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--tr);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  color: inherit;
  border-left: 3px solid var(--red);
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  border-left-color: var(--red-dark);
}

.cat-card-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cat-card-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
  transition: var(--tr);
}

.cat-card:hover h3 { color: var(--red); }

.cat-more {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--red);
}

/* ============================================================
   ADVANTAGES
   ============================================================ */
.advantages {
  background: var(--dark);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.advantages::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229,73,58,0.07) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.advantages .section-title { color: var(--white); }

.adv-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.adv-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--tr);
}

.adv-card:hover {
  background: rgba(229,73,58,0.06);
  border-color: rgba(229,73,58,0.2);
  transform: translateY(-4px);
}

.adv-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(229,73,58,0.12);
  border: 1px solid rgba(229,73,58,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.adv-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.adv-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.adv-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.42);
  line-height: 1.78;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--dark2);
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/img-slider.jpg') center / cover no-repeat;
  opacity: 0.06;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  font-size: 13px;
  color: rgba(255,255,255,0.42);
}

.breadcrumb a:hover { color: var(--red); }

.breadcrumb .sep {
  font-size: 13px;
  color: rgba(255,255,255,0.2);
}

.crumb-current {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.page-hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.5px;
  max-width: 700px;
}

/* ============================================================
   CATEGORY CONTENT
   ============================================================ */
.cat-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.cat-content > ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ============================================================
   SHORTSTORY / PRODUCT CARD
   ============================================================ */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--tr);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.pc-img {
  position: relative;
  height: 210px;
  background: linear-gradient(145deg, var(--dark2), var(--dark3));
  overflow: hidden;
  flex-shrink: 0;
}

.pc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .pc-img img {
  transform: scale(1.05);
}

.pc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,15,28,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--tr);
}

.product-card:hover .pc-overlay { opacity: 1; }

.pc-overlay a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
}

.pc-overlay a:hover {
  background: var(--red-dark);
  text-decoration: none;
  color: white;
}

.pc-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pc-body a.pc-title {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--dark);
  display: block;
  margin-bottom: 10px;
  line-height: 1.45;
}

.pc-body a.pc-title:hover {
  color: var(--red);
  text-decoration: none;
}

.pc-body p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.65;
  flex: 1;
}

/* ============================================================
   FULL STORY
   ============================================================ */
.story-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

.story-main {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.story-main h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.story-main p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.story-main a { color: var(--red); }
.story-main a:hover { color: var(--red-dark); }

.highslide img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 140px;
  height: 111px;
  object-fit: cover;
  margin-right: 10px;
  margin-bottom: 8px;
  transition: var(--tr);
}

.highslide img:hover {
  border-color: var(--red);
  transform: scale(1.02);
}

.story-strip {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

.story-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.sidebar-widget h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.sidebar-widget p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 18px;
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.sidebar-cta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-cta-row svg {
  width: 16px;
  height: 16px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-cta-row a {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: block;
  line-height: 1.4;
}

.sidebar-cta-row a:hover { color: var(--red); }

.btn-sidebar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: var(--tr);
  margin-top: 4px;
}

.btn-sidebar:hover {
  background: var(--red-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229,73,58,0.35);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: var(--white);
  padding: 96px 0;
}

.contact-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-desc {
  margin-bottom: 40px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.cr-icon {
  width: 42px;
  height: 42px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cr-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cr-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 3px;
}

.cr-text span,
.cr-text a {
  font-size: 14px;
  color: var(--text-light);
}

.cr-text a:hover { color: var(--red); }

.contact-form-box {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
}

/* ============================================================
   UNIFORM INLINE FORM
   ============================================================ */
.uf-wrapper-inline {
  width: 100%;
}

.uf-inline-loading {
  text-align: center;
  padding: 32px 0;
  color: var(--text-light);
  font-size: 14px;
}
.uf-inline-loading::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: uf-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-left: 10px;
}
@keyframes uf-spin { to { transform: rotate(360deg); } }

.uf-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.uf-input-first,
.uf-wrapper-inline textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.uf-input-first:focus,
.uf-wrapper-inline textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,73,58,0.12);
}

.uf-input-first::placeholder,
.uf-wrapper-inline textarea::placeholder {
  color: var(--text-light);
}

.uf-input-error {
  border-color: #d93025 !important;
  box-shadow: 0 0 0 3px rgba(217,48,37,0.1) !important;
}

.uf-wrapper-inline textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.uf-field { margin-top: 4px; }

.uf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--red);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  width: 100%;
}

.uf-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.uf-btn:active { transform: none; }

.uf-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.uf-alert-error {
  background: rgba(217,48,37,0.07);
  border: 1px solid rgba(217,48,37,0.25);
  color: #c0392b;
}

.uf-alert-error b { display: block; margin-bottom: 4px; }
.uf-alert-error p { margin: 2px 0; }

.uf-alert-success {
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.3);
  color: #1e7e45;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  padding: 72px 0 0;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 56px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.footer-brand-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--red);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand-logo .logo-icon svg {
  width: 18px;
  height: 18px;
  stroke: white;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.footer-brand-logo .f-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.3px;
}

.footer-brand-logo .f-logo-text span { color: var(--red); }

.footer-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.32);
  line-height: 1.75;
  margin-bottom: 0;
}

footer h5 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.32);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 11px; }

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.58);
}

.footer-links a:hover {
  color: var(--red);
  text-decoration: none;
}

.f-contact-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.f-contact-row svg {
  width: 15px;
  height: 15px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.f-contact-row p,
.f-contact-row a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

.f-contact-row a:hover { color: var(--red); }

.footer-map-wrap {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0.7;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.22);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.dpad {
  display: flex;
  justify-content: center;
  padding: 40px 24px;
}

.bnnavi {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.navigation {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.navigation a,
.navigation span,
.navigation b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--tr);
}

.navigation a:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
  text-decoration: none;
}

.navigation b {
  background: var(--red);
  color: white;
  border-color: var(--red);
  font-weight: 600;
}

.nextprev {
  display: flex;
  gap: 6px;
}

.nextprev a {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--tr);
}

.nextprev a:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
  text-decoration: none;
}

.toptop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 18px;
  color: var(--text-light);
  background: var(--white);
  border: 1px solid var(--border);
  margin-left: 4px;
  transition: var(--tr);
  text-decoration: none;
}

.toptop:hover {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

/* ============================================================
   RESPONSIVE — 1100px
   ============================================================ */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 48px; }
  .stat-badge.stat-tl { left: 0; }
  .stat-badge.stat-br { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ============================================================
   RESPONSIVE — 900px
   ============================================================ */
@media (max-width: 900px) {
  .section-title { font-size: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .about-placeholder { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cat-content > ul { grid-template-columns: repeat(2, 1fr); }
  .story-layout { grid-template-columns: 1fr; }
  .story-sidebar { position: static; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  .header-contacts { display: none; }

  nav.main-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    overflow-y: auto;
    padding: 16px 24px 48px;
    flex-direction: column;
  }

  nav.main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .main-nav > ul > li > a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-radius: var(--radius);
    background: var(--bg);
    margin: 4px 0 8px;
    padding: 6px;
    min-width: 0;
  }

  .arrow-icon { display: none; }

  body.mobile-open nav.main-nav { display: flex; }

  .burger { display: flex; }

  .hero { min-height: 500px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; }
  .hero-inner { padding: 80px 20px 60px; }

  .about-features { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-content > ul { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  .story-main { padding: 28px 20px; }
  .story-main h2 { font-size: 22px; }
  .contact-form-box { padding: 24px 20px; }
  .page-hero { padding: 36px 0; }
  .page-hero h1 { font-size: 26px; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 27px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .section-title { font-size: 23px; }
  .cat-grid { grid-template-columns: 1fr; }
}
