/* Global Styles */
@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/rubik-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/rubik-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/nunito-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/nunito-semibold.woff2') format('woff2');
}

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
}

img {
    max-width: 350px;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #e67e22;
}

h2 {
    font-size: 2rem;
    color: #d35400;
}

h3 {
    font-size: 1.5rem;
    color: #e67e22;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

a {
    color: #e67e22;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #d35400;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f39c12;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #e67e22;
}

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

nav a {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: #f39c12;
    color: white;
    transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #e67e22;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: #f8f8f8;
}

.mobile-menu-toggle[aria-expanded="true"] {
    background: #f39c12;
    color: white;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #f39c12;
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.btn-secondary:hover {
    box-shadow: 0 10px 25px rgba(149, 165, 166, 0.3);
}

/* Card Styles */
.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.image-gallery img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-links {
    margin: 2rem 0;
}

.footer-links a {
    color: #f39c12;
    margin: 0 1rem;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #e67e22;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

/* Focus indicators for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #f39c12;
    outline-offset: 2px;
}
.footer {
  background: linear-gradient(180deg, #fff7ea 0%, #ffe5bf 100%);
  border-top: 2px solid #f39c12;
  padding: 2.5rem 1.25rem;
  color: #444;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: start;
}
.footer-column a {
  color: #e67e22;
  text-decoration: none;
}
.footer-column a:hover { text-decoration: underline; }
.footer-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: #e67e22;
  margin-bottom: .5rem;
}
.footer-links {
  display: grid;
  gap: .5rem;
}
.back-to-top {
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: .75rem;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.back-to-top:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }

/* Анимация появления, если используешь наблюдатель */
.animate-on-scroll { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.animate-on-scroll.is-visible { opacity: 1; transform: none; }

/* Адаптив */
@media (max-width: 900px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-container { grid-template-columns: 1fr; }
  .footer { text-align: center; }
  .footer-links { justify-content: center; }
}
footer[data-backtotop] .back-to-top {
  position: static;
  width: auto; height: auto;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: #fff; color: #e67e22;
  border: 1px solid rgba(0,0,0,.08);
  display: inline-flex; align-items: center; justify-content: center;
  white-space: nowrap; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
footer[data-backtotop] .back-to-top.visible { opacity: 1; visibility: visible; }
