// import React from 'react';
// import BufferLandingPage from './components/BufferLandingPage';

// function App() {
//   return (
//     <BufferLandingPage />
//   );
// }

// export default App;

// import React from 'react';
// import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
// import BufferLandingPage from './components/BufferLandingPage';
// import PricingPage from './components/PricingPage';

// function App() {
//   return (
//     <Router>
//       <Routes>
//         <Route path="/" element={<BufferLandingPage />} />
//         <Route path="/pricing" element={<PricingPage />} />
//       </Routes>
//     </Router>
//   );
// }

// export default App;


// import React from 'react';
// import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
// import BufferLandingPage from './components/BufferLandingPage';
// import PricingPage from './components/PricingPage';
// import { LanguageProvider } from './contexts/LanguageContext';
// import ScrollToTop from './components/ScrollToTop';

// function App() {
//   return (
//     <LanguageProvider>
//       <Router>
//         <ScrollToTop />
//         <Routes>
//           <Route path="/" element={<BufferLandingPage />} />
//           <Route path="/pricing" element={<PricingPage />} />
//         </Routes>
//       </Router>
//     </LanguageProvider>
//   );
// }

// export default App;


import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import BufferLandingPage from './components/BufferLandingPage';
import PricingPage from './components/PricingPage';
import { LanguageProvider } from './contexts/LanguageContext';
import RTLProvider from './contexts/RTLProvider';
import ScrollToTop from './components/ScrollToTop';
import PolicyPage from './components/PolicyPage';

// Импорт глобальных стилей для RTL
import './styles/rtl.css';

function App() {
  return (
    <LanguageProvider>
      <RTLProvider>
        <Router>
          <ScrollToTop />
          <Routes>
            <Route path="/" element={<BufferLandingPage />} />
            <Route path="/pricing" element={<PricingPage />} />
            <Route path="/policy" element={<PolicyPage />} />
          </Routes>
        </Router>
      </RTLProvider>
    </LanguageProvider>
  );
}

export default App;