/* Apple 2025 Design System */
:root {
  /* Colors */
  --apple-blue: #007AFF;
  --apple-blue-dark: #0051D5;
  --apple-gray: #8E8E93;
  --apple-gray-light: #F2F2F7;
  --apple-gray-dark: #1C1C1E;
  --apple-green: #34C759;
  --apple-orange: #FF9500;
  --apple-red: #FF3B30;
  --apple-purple: #AF52DE;
  
  /* Typography */
  --apple-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
  --apple-font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Spacing */
  --apple-space-xs: 4px;
  --apple-space-sm: 8px;
  --apple-space-md: 16px;
  --apple-space-lg: 24px;
  --apple-space-xl: 32px;
  --apple-space-2xl: 48px;
  --apple-space-3xl: 64px;
  
  /* Border Radius */
  --apple-radius-sm: 8px;
  --apple-radius-md: 12px;
  --apple-radius-lg: 16px;
  --apple-radius-xl: 20px;
  --apple-radius-full: 50%;
  
  /* Shadows */
  --apple-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --apple-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --apple-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --apple-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --apple-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --apple-transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode */
@media (prefers-color-scheme: light) {
  :root {
    --apple-bg: #FFFFFF;
    --apple-surface: #F2F2F7;
    --apple-surface-secondary: #FFFFFF;
    --apple-text: #1C1C1E;
    --apple-text-secondary: #8E8E93;
    --apple-border: #E5E5EA;
  }
}

/* Force light theme on mobile */
@media (max-width: 768px) {
  :root {
    --apple-bg: #FFFFFF;
    --apple-surface: #F2F2F7;
    --apple-surface-secondary: #FFFFFF;
    --apple-text: #1C1C1E;
    --apple-text-secondary: #8E8E93;
    --apple-border: #E5E5EA;

    --ios-bg: #F2F2F7;
    --ios-card: #FFFFFF;
    --ios-accent: #0A84FF;
    --ios-accent-press: #0066CC;
    --ios-success: #34C759;
    --ios-danger: #FF3B30;
    --ios-muted: rgba(60,60,67,0.6);
    --ios-label: rgba(0,0,0,0.85);
    --ios-hairline: rgba(60,60,67,0.29);

    --seo-border: rgba(60,60,67,0.29);
    --seo-bg: #FFFFFF;
    --seo-muted: rgba(60,60,67,0.6);
  }

  body {
    background: #FFFFFF;
    color: #1C1C1E;
  }
}

/* Apple 2025 Components */

/* Hero Section */
.apple-hero {
  background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
  color: white;
  padding: var(--apple-space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.apple-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.apple-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--apple-space-lg);
  position: relative;
  z-index: 1;
}

.apple-hero__title {
  font: 600 48px/1.1 var(--apple-font);
  margin: 0 0 var(--apple-space-md);
  letter-spacing: -0.02em;
}

.apple-hero__subtitle {
  font: 400 20px/1.4 var(--apple-font);
  margin: 0 0 var(--apple-space-2xl);
  opacity: 0.9;
}

/* Search */
.apple-search {
  max-width: 600px;
  margin: 0 auto var(--apple-space-2xl);
}

.apple-search__field {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--apple-radius-lg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.apple-search__input {
  flex: 1;
  padding: var(--apple-space-lg);
  background: transparent;
  border: none;
  color: white;
  font: 400 16px var(--apple-font);
  outline: none;
}

.apple-search__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Убираем подсказки браузера */
.apple-search__input::-webkit-search-decoration,
.apple-search__input::-webkit-search-cancel-button,
.apple-search__input::-webkit-search-results-button,
.apple-search__input::-webkit-search-results-decoration {
  display: none;
}

.apple-search__input::-ms-clear,
.apple-search__input::-ms-reveal {
  display: none;
}

/* Apple Killer Feature Section */
.apple-killer-feature {
  background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
  color: white;
  padding: var(--apple-space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.apple-killer-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.apple-killer-feature__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--apple-space-lg);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.apple-killer-feature__content {
  max-width: 600px;
}

.apple-killer-feature__title {
  font-size: 48px;
  font-weight: 700;
  color: white;
  margin: 0 0 20px 0;
  line-height: 1.1;
}

.apple-killer-feature__subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 40px 0;
  line-height: 1.4;
}

.apple-killer-feature__benefits {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

.apple-benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--apple-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  transition: all var(--apple-transition);
}

.apple-benefit:hover {
  transform: translateY(-2px);
  box-shadow: var(--apple-shadow-lg);
  background: rgba(255, 255, 255, 0.15);
}

.apple-benefit__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--apple-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.apple-benefit__icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
}

.apple-benefit__content {
  flex: 1;
}

.apple-benefit__title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px 0;
}

.apple-benefit__text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

.apple-killer-feature__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.apple-killer-feature__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.apple-price-preview {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--apple-radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  max-width: 400px;
  width: 100%;
}

.apple-price-preview__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.apple-price-preview__header h4 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.apple-price-preview__badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, #0a84ff 18%, transparent);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 12px;
}

.apple-price-preview__items {
  display: grid;
  gap: 12px;
}

.apple-price-preview__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.apple-price-preview__name {
  font-size: 14px;
  color: white;
  font-weight: 500;
}

.apple-price-preview__price {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}


/* Focus indicators */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #0a84ff;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .apple-killer-feature__container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .apple-killer-feature__title {
    font-size: 36px;
  }
  
  .apple-killer-feature__subtitle {
    font-size: 18px;
  }
  
  .apple-add-prices-form__fields {
    grid-template-columns: 1fr;
  }
  
  .apple-killer-feature__actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .apple-killer-feature__container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .apple-section {
    padding-inline: 14px;
  }
}

.apple-search__button {
  padding: var(--apple-space-lg);
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  transition: var(--apple-transition-fast);
}

.apple-search__button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Chips */
.apple-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--apple-space-sm);
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.apple-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--apple-space-sm);
  padding: var(--apple-space-sm) var(--apple-space-md);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--apple-radius-full);
  color: white;
  text-decoration: none;
  font: 500 14px var(--apple-font);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--apple-transition-fast);
}

.apple-chip:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.apple-chip__count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: var(--apple-radius-sm);
  font-size: 12px;
}

/* Sections */
.apple-section {
  padding: var(--apple-space-3xl) 0;
  background: var(--apple-bg);
}

.apple-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--apple-space-2xl);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--apple-space-lg);
}

.apple-section__title {
  font: 600 32px/1.2 var(--apple-font);
  color: var(--apple-text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--apple-space-sm);
}

.apple-section__more {
  display: flex;
  align-items: center;
  gap: var(--apple-space-sm);
  color: var(--apple-blue);
  text-decoration: none;
  font: 500 16px var(--apple-font);
  transition: var(--apple-transition-fast);
}

.apple-section__more:hover {
  color: var(--apple-blue-dark);
}

/* Grids */
.apple-grid {
  display: grid;
  gap: var(--apple-space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--apple-space-lg);
}

.apple-grid--cities {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.apple-grid--stories {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.apple-grid--prices {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* City Cards */
.apple-city-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--apple-space-md);
  padding: var(--apple-space-lg);
  background: var(--apple-surface-secondary);
  border-radius: var(--apple-radius-lg);
  border: 1px solid var(--apple-border);
  text-decoration: none;
  color: var(--apple-text);
  transition: var(--apple-transition);
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.apple-city-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
  opacity: 0;
  transition: var(--apple-transition);
}

.apple-city-card:hover::before {
  opacity: 0.05;
}

.apple-city-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--apple-shadow-lg);
  border-color: var(--apple-blue);
}

.apple-city-card__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--apple-blue) 0%, var(--apple-purple) 100%);
  border-radius: var(--apple-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.apple-city-card__content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.apple-city-card__title {
  font: 600 18px/1.3 var(--apple-font);
  margin: 0 0 var(--apple-space-xs);
  color: var(--apple-text);
}

.apple-city-card__region {
  font: 400 14px/1.4 var(--apple-font);
  color: var(--apple-text-secondary);
  margin: 0 0 var(--apple-space-sm);
}

.apple-city-card__meta {
  display: flex;
  align-items: center;
  gap: var(--apple-space-sm);
  font: 500 14px var(--apple-font);
  color: var(--apple-text-secondary);
}

.apple-city-card__count {
  color: var(--apple-blue);
  font-weight: 600;
}

/* Story Cards */
.apple-story-card {
  background: var(--apple-surface-secondary);
  border-radius: var(--apple-radius-lg);
  border: 1px solid var(--apple-border);
  overflow: hidden;
  transition: var(--apple-transition);
  position: relative;
}

.apple-story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-lg);
  border-color: var(--apple-blue);
}

.apple-story-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--apple-gray-light);
}

.apple-story-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--apple-transition);
}

.apple-story-card:hover .apple-story-card__image img {
  transform: scale(1.05);
}

.apple-story-card__content {
  padding: var(--apple-space-lg);
}

.apple-story-card__title {
  font: 600 18px/1.3 var(--apple-font);
  margin: 0 0 var(--apple-space-sm);
}

.apple-story-card__title a {
  color: var(--apple-text);
  text-decoration: none;
  transition: var(--apple-transition-fast);
}

.apple-story-card__title a:hover {
  color: var(--apple-blue);
}

.apple-story-card__excerpt {
  font: 400 14px/1.5 var(--apple-font);
  color: var(--apple-text-secondary);
  margin: 0 0 var(--apple-space-md);
}

.apple-story-card__meta {
  display: flex;
  align-items: center;
  gap: var(--apple-space-sm);
  font: 400 12px var(--apple-font);
  color: var(--apple-text-secondary);
}

/* Price Cards */
.apple-price-card {
  background: var(--apple-surface-secondary);
  border-radius: var(--apple-radius-lg);
  border: 1px solid var(--apple-border);
  padding: var(--apple-space-lg);
  transition: var(--apple-transition);
  position: relative;
  overflow: hidden;
}

.apple-price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--apple-green) 0%, var(--apple-blue) 100%);
  opacity: 0;
  transition: var(--apple-transition);
}

.apple-price-card:hover::before {
  opacity: 0.05;
}

.apple-price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apple-shadow-lg);
  border-color: var(--apple-green);
}

.apple-price-card__link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.apple-price-card__header {
  position: relative;
  z-index: 2;
  margin-bottom: var(--apple-space-md);
}

.apple-price-card__category {
  display: inline-block;
  padding: var(--apple-space-xs) var(--apple-space-sm);
  background: var(--apple-blue);
  color: white;
  border-radius: var(--apple-radius-sm);
  font: 500 12px var(--apple-font);
  margin-bottom: var(--apple-space-sm);
}

.apple-price-card__title {
  font: 600 18px/1.3 var(--apple-font);
  color: var(--apple-text);
  margin: 0 0 var(--apple-space-sm);
}

.apple-price-card__description {
  font: 400 14px/1.5 var(--apple-font);
  color: var(--apple-text-secondary);
  margin: 0;
}

.apple-price-card__price {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: var(--apple-space-xs);
}

.apple-price-card__amount {
  font: 700 24px/1 var(--apple-font);
  color: var(--apple-text);
}

.apple-price-card__currency {
  font: 600 18px/1 var(--apple-font);
  color: var(--apple-text-secondary);
}

.apple-price-card__unit {
  font: 400 14px/1 var(--apple-font);
  color: var(--apple-text-secondary);
}

/* CTA Section */
.apple-cta {
  background: var(--apple-surface);
  padding: var(--apple-space-3xl) 0;
  text-align: center;
}

.apple-cta__container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--apple-space-lg);
}

.apple-cta__title {
  font: 600 32px/1.2 var(--apple-font);
  color: var(--apple-text);
  margin: 0 0 var(--apple-space-md);
}

.apple-cta__text {
  font: 400 18px/1.5 var(--apple-font);
  color: var(--apple-text-secondary);
  margin: 0 0 var(--apple-space-2xl);
}

.apple-cta__actions {
  display: flex;
  gap: var(--apple-space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.apple-button {
  display: inline-flex;
  align-items: center;
  gap: var(--apple-space-sm);
  padding: var(--apple-space-md) var(--apple-space-xl);
  border-radius: var(--apple-radius-md);
  font: 500 16px var(--apple-font);
  text-decoration: none;
  transition: var(--apple-transition);
  border: 1px solid var(--apple-border);
  background: var(--apple-surface-secondary);
  color: var(--apple-text);
  min-height: 44px;
}

.apple-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--apple-shadow-md);
}

.apple-button--primary {
  background: var(--apple-blue);
  color: white;
  border-color: var(--apple-blue);
}

.apple-button--primary:hover {
  background: var(--apple-blue-dark);
  border-color: var(--apple-blue-dark);
}

/* Reviews */
.apple-reviews {
  background: var(--apple-surface);
  border-radius: var(--apple-radius-lg);
  border: 1px solid var(--apple-border);
  padding: var(--apple-space-lg);
  margin-top: var(--apple-space-2xl);
}

.apple-reviews__title {
  font: 600 20px/1.3 var(--apple-font);
  color: var(--apple-text);
  margin: 0 0 var(--apple-space-lg);
  display: flex;
  align-items: center;
  gap: var(--apple-space-sm);
}

.apple-reviews__list {
  display: flex;
  flex-direction: column;
  gap: var(--apple-space-md);
}

.apple-review {
  padding: var(--apple-space-md);
  background: var(--apple-surface-secondary);
  border-radius: var(--apple-radius-md);
  border: 1px solid var(--apple-border);
}

.apple-review__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--apple-space-sm);
}

.apple-review__rating {
  display: flex;
  gap: 2px;
}

.apple-review__rating .dashicons {
  color: var(--apple-orange);
  font-size: 14px;
}

.apple-review__rating .dashicons:not(.active) {
  color: var(--apple-text-secondary);
}

.apple-review__author {
  font: 600 14px var(--apple-font);
  color: var(--apple-text);
}

.apple-review__content {
  font: 400 14px/1.5 var(--apple-font);
  color: var(--apple-text);
  margin: 0 0 var(--apple-space-sm);
}

.apple-review__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: 400 12px var(--apple-font);
  color: var(--apple-text-secondary);
}

.apple-review__post {
  font-weight: 600;
  color: var(--apple-blue);
  text-decoration: none;
  transition: color var(--apple-transition);
}

.apple-review__post:hover {
  color: var(--apple-blue-dark);
  text-decoration: underline;
}

/* Dashicons стили */
.dashicons {
  font-family: dashicons;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
  margin-right: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .apple-hero__title {
    font-size: 36px;
  }
  
  .apple-hero__subtitle {
    font-size: 18px;
  }
  
  .apple-section__title {
    font-size: 28px;
  }
  
  .apple-grid--cities,
  .apple-grid--stories,
  .apple-grid--prices {
    grid-template-columns: 1fr;
  }
  
  .apple-cta__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .apple-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}