﻿:root {
  --main-color: #8B4513;
  --secondary-color: #228B22;
  --bg-color: #FFF8F0;
  --secondary-bg-color: #F5F5DC;
  --accent-color: #FF6B6B;

  --font-text: "Nunito", sans-serif
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-color);
  font-family: var(--font-text);
  line-height: 1.2;
  background-color: var(--bg-color);
}

h1 {
  margin: 0;
  padding: 0;
}

h2 {
  margin: 0;
  padding: 0;
}

h3 {
  margin: 0;
  padding: 0;
}

h4 {
  margin: 0;
  padding: 0;
}

h5 {
  margin: 0;
  padding: 0;
}

h6 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  font-family: inherit;
  font-size: inherit;
  background: none;
  cursor: pointer;
}

input {
  font-family: inherit;
  font-size: inherit;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.header {
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--secondary-bg-color) 100%);
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--main-color);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  position: relative;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--main-color);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.header__logo:hover {
  transform: scale(1.05);
}

.header__logo i {
  font-size: 2.2rem;
  color: var(--accent-color);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.logo__text {
  background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer .logo__text {
  background: none;
  -webkit-background-clip: none;
  -webkit-text-fill-color: white;
  background-clip: none;
}


.header__nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 25px;
  color: var(--main-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav__link:hover::before {
  left: 100%;
}

.nav__link:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.nav__link i {
  font-size: 1.1rem;
}


.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-btn,
.cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.search-btn:hover,
.cart-btn:hover {
  background: var(--main-color);
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}


.burger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.burger-line {
  width: 25px;
  height: 3px;
  background: var(--main-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


.footer {
  background: linear-gradient(135deg, var(--main-color) 0%, #654321 100%);
  color: white;
  margin-top: auto;
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
}

.footer__section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__brand {
  gap: 25px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
  max-width: max-content;
}

.footer__logo i {
  font-size: 2.2rem;
  color: var(--accent-color);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.footer__tagline {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 300px;
}

.footer__social {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-color);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.footer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  margin-bottom: 5px;
}

.footer__title i {
  color: var(--accent-color);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.footer__link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.footer__link:hover {
  color: white;
  padding-left: 10px;
}

.footer__link:hover::before {
  width: 30px;
}


.newsletter__text {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin-bottom: 5px;
}

.newsletter__form {
  margin-bottom: 20px;
}

.newsletter__input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.newsletter__input-group:focus-within {
  border-color: var(--accent-color);
}

.newsletter__input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: white;
  font-size: 1rem;
}

.newsletter__input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter__input:focus {
  outline: none;
}

.newsletter__btn {
  background: var(--accent-color);
  border: none;
  color: white;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter__btn:hover {
  background: #ff5252;
  transform: scale(1.05);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.contact__item i {
  color: var(--accent-color);
  width: 20px;
}


.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 25px 0;
}

.footer__bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer__copyright i {
  color: var(--accent-color);
  margin: 0 5px;
}

.footer__legal {
  display: flex;
  gap: 25px;
}

.legal-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.legal-link:hover {
  color: var(--accent-color);
}


@media (max-width: 1024px) {
  .footer__content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .nav__list {
    gap: 20px;
  }

  .nav__link {
    padding: 10px 15px;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--secondary-bg-color) 100%);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .header__nav.active {
    left: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 25px;
    text-align: center;
  }

  .nav__link {
    font-size: 1.2rem;
    padding: 15px 25px;
  }

  .burger-menu {
    display: flex;
  }

  .footer__content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer__bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header__inner {
    padding: 12px 0;
  }

  .header__logo {
    font-size: 1.5rem;
  }

  .header__logo i {
    font-size: 1.8rem;
  }

  .header__actions {
    gap: 10px;
  }

  .search-btn,
  .cart-btn {
    width: 40px;
    height: 40px;
  }

  .footer__content {
    padding: 40px 0 30px;
  }

  .footer__tagline {
    max-width: 100%;
  }

  .newsletter__input-group {
    flex-direction: column;
    border-radius: 15px;
  }

  .newsletter__btn {
    border-radius: 0 0 15px 15px;
  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer__section {
  animation: fadeIn 0.6s ease-out;
}

.footer__section:nth-child(1) {
  animation-delay: 0.1s;
}

.footer__section:nth-child(2) {
  animation-delay: 0.2s;
}

.footer__section:nth-child(3) {
  animation-delay: 0.3s;
}

.footer__section:nth-child(4) {
  animation-delay: 0.4s;
}


.header {
  position: relative;
  transition: all 0.3s ease;
}


.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


.header__logo i {
  transition: all 0.3s ease;
}

.footer__center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.footer__center-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__center-item i {
  font-size: 1.2rem;
  color: var(--accent-color);
}

.footer__center-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer__center-link:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {

  .footer__logo,
  .footer__brand,
  .footer__title {
    justify-content: center;
    text-align: center;
    align-items: center;
  }
}


.form-input.error,
.form-select.error {
  border-color: #f44336 !important;
  box-shadow: 0 0 5px rgba(244, 67, 54, 0.3);
}

.calculator-button.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.calculator-result.animated {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(33, 150, 243, 0.2);
  transition: all 0.3s ease;
}

.calculator-result.animated-end {
  transform: scale(1);
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.1);
  transition: all 0.3s ease;
}


.success-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #4caf50, #66bb6a);
  color: white;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
  z-index: 1000;
  font-weight: 600;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.success-message.show {
  transform: translateX(0);
}

.success-message.hide {
  transform: translateX(100%);
}


.button-scaled {
  transform: scale(1.2);
  transition: transform 0.2s ease;
}

.button-scaled-down {
  transform: scale(0.95);
  transition: transform 0.15s ease;
}

.button-normal {
  transform: scale(1);
  transition: transform 0.2s ease;
}


.header-scrolled {
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.15);
  backdrop-filter: blur(10px);
}

.header-normal {
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
  backdrop-filter: none;
}

.header-hidden {
  transform: translateY(-100%);
}

.header-visible {
  transform: translateY(0);
}


.social-link-hovered {
  transform: scale(1.1) rotate(5deg);
}

.social-link-normal {
  transform: scale(1) rotate(0deg);
}


.logo-floating {
  transform: translateY(-2px);
  transition: transform 1s ease;
}

.logo-normal {
  transform: translateY(0px);
  transition: transform 1s ease;
}


.footer-section-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.footer-section-visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}


.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .header__nav.active {
    overflow-y: auto;
  }
}


.newsletter-success {
  background: var(--secondary-color) !important;
}

.newsletter-normal {
  background: var(--accent-color) !important;
}